Expand description
CUDA Runtime API declarations and driver-compatible handle aliases.
Re-exports§
pub use crate::driver::cudaError_enum as cudaError_t;pub use crate::driver::CUevent as cudaEvent_t;pub use crate::driver::CUfunction as cudaFunction_t;pub use crate::driver::CUstream as cudaStream_t;pub use crate::driver::CUuuid as cudaUUID_t;pub use crate::driver::CUuserObject as cudaUserObject_t;pub use crate::driver::CUarray as cudaArray_t;pub use crate::driver::CUmipmappedArray as cudaMipmappedArray_t;pub use crate::driver::CUmemoryPool as cudaMemPool_t;pub use crate::driver::CUgraphicsResource as cudaGraphicsResource_t;pub use crate::driver::CUexternalMemory as cudaExternalMemory_t;pub use crate::driver::CUexternalSemaphore as cudaExternalSemaphore_t;pub use crate::driver::CUgraph as cudaGraph_t;pub use crate::driver::CUgraphNode as cudaGraphNode_t;pub use crate::driver::CUgraphExec as cudaGraphExec_t;pub use crate::driver::CUkernel as cudaKernel_t;pub use crate::driver::CUlibrary as cudaLibrary_t;pub use crate::driver::CUgraphConditionalHandle as cudaGraphConditionalHandle;pub use crate::driver::CUasyncCallbackHandle as cudaAsyncCallbackHandle_t;pub use crate::driver::CUflushGPUDirectRDMAWritesScope as cudaFlushGPUDirectRDMAWritesScope;pub use crate::driver::CUflushGPUDirectRDMAWritesTarget as cudaFlushGPUDirectRDMAWritesTarget;pub use crate::driver::CUDA_MEMSET_NODE_PARAMS as cudaMemsetParams;pub use crate::driver::CUDA_HOST_NODE_PARAMS as cudaHostNodeParams;pub use crate::driver::CUDA_EXT_SEM_SIGNAL_NODE_PARAMS as cudaExternalSemaphoreSignalNodeParams;pub use crate::driver::CUDA_EXT_SEM_WAIT_NODE_PARAMS as cudaExternalSemaphoreWaitNodeParams;pub use crate::driver::CUDA_MEM_ALLOC_NODE_PARAMS as cudaMemAllocNodeParams;pub use crate::driver::CUDA_ARRAY_MEMORY_REQUIREMENTS as cudaArrayMemoryRequirements;pub use crate::driver::CUDA_ARRAY_SPARSE_PROPERTIES as cudaArraySparseProperties;pub use crate::driver::CUDA_MEMCPY3D_BATCH_OP as cudaMemcpy3DBatchOp;pub use crate::driver::CUmemcpyAttributes as cudaMemcpyAttributes;pub use crate::driver::CUmemPoolProps as cudaMemPoolProps;pub use crate::driver::CUmemPoolPtrExportData as cudaMemPoolPtrExportData;pub use crate::driver::CUmemAllocationHandleType as cudaMemAllocationHandleType;pub use crate::driver::CUmemPool_attribute as cudaMemPoolAttr;pub use crate::driver::CUmemLocation as cudaMemLocation;pub use crate::driver::CUmemAccessDesc as cudaMemAccessDesc;pub use crate::driver::CUmem_range_attribute as cudaMemRangeAttribute;pub use crate::driver::CUmem_advise as cudaMemoryAdvise;pub use crate::driver::CUmemAccess_flags as cudaMemAccessFlags;pub use crate::driver::CUipcEventHandle as cudaIpcEventHandle_t;pub use crate::driver::CUipcMemHandle as cudaIpcMemHandle_t;pub use crate::driver::CUgraphExecUpdateResult as cudaGraphExecUpdateResult;pub use crate::driver::CUgraphMem_attribute as cudaGraphMemAttributeType;pub use crate::driver::CUgraphNodeType as cudaGraphNodeType;pub use crate::driver::CUgraphEdgeData as cudaGraphEdgeData;pub use crate::driver::CUgraphNodeParams as cudaGraphNodeParams;pub use crate::driver::CUgraphExecUpdateResultInfo as cudaGraphExecUpdateResultInfo;pub use crate::driver::CUDA_GRAPH_INSTANTIATE_PARAMS as cudaGraphInstantiateParams;pub use crate::driver::CUhostFn as cudaHostFn_t;pub use crate::driver::CUasyncCallback as cudaAsyncCallback;pub use crate::driver::CUdevice_attribute as cudaDeviceAttr;pub use crate::driver::CUfunction_attribute as cudaFuncAttribute;pub use crate::driver::CUjit_option as cudaJitOption;pub use crate::driver::CUdevice_P2PAttribute as cudaDeviceP2PAttr;pub use crate::driver::CUlibraryOption as cudaLibraryOption;pub use crate::driver::CUdriverProcAddressQueryResult as cudaDriverEntryPointQueryResult;pub use crate::driver::CUfunc_cache as cudaFuncCache;pub use crate::driver::CUstreamCaptureMode as cudaStreamCaptureMode;pub use crate::driver::CUstreamCaptureStatus as cudaStreamCaptureStatus;pub use self::CUDAlogLevel_enum as cudaLogLevel;
Structs§
- CUDAlog
Level_ enum - Severity of a CUDA runtime log message.
- CUdev
Resource Desc_ st - Incomplete native type used by
cudaDevResourceDesc_thandles. The native API owns its layout. - CUgraph
Device Updatable Node_ st - Incomplete native type used by
cudaGraphDeviceNode_thandles. The native API owns its layout. - CUlogs
Callback Entry_ st - Incomplete native type used by
cudaLogsCallbackHandlehandles. The native API owns its layout. - __
Bindgen Union Field - Zero-sized marker for one member of a bindgen-emulated C union.
- cuda
Access Policy Window - Specifies an access policy for a window, a contiguous extent of memory beginning at base_ptr and ending at base_ptr + num_bytes.
- cuda
Access Property - Specifies performance hint with
cudaAccessPolicyWindowfor hitProp and missProp members. - cuda
Atomic Operation - CUDA-valid Atomic Operations.
- cuda
Channel Format Desc - CUDA Channel format descriptor.
- cuda
Channel Format Kind - Channel format kind.
- cuda
Cluster Scheduling Policy - Cluster scheduling policies.
- cuda
Compute Mode - CUDA device compute modes.
- cuda
DevResource Type - Type of resource.
- cuda
DevResource_ st - A tagged union describing different resources identified by the type field.
- cuda
DevSm Resource - Data for SM-related resources All parameters in this structure are OUTPUT only.
- cuda
DevSm Resource Group Params_ st - Input data for splitting SMs.
- cuda
DevWorkqueue Config Resource - Data for workqueue configuration related resources.
- cuda
DevWorkqueue Config Scope - Sharing scope for workqueues.
- cuda
DevWorkqueue Resource - Handle to a pre-existing workqueue related resource.
- cuda
Device Prop - CUDA device properties.
- cuda
Event Record Node Params - Event record node parameters.
- cuda
Execution Context_ st - An opaque handle to a CUDA execution context.
- cuda
Extent - CUDA extent.
- cuda
External Memory Buffer Desc - External memory buffer descriptor.
- cuda
External Memory Handle Desc - External memory handle descriptor.
- cuda
External Memory Handle Desc__ bindgen_ ty_ 1__ bindgen_ ty_ 1 - Win32 handle referencing the semaphore object. Valid when type is one of the following:
- cuda
External Memory Handle Type - External memory handle types.
- cuda
External Memory Mipmapped Array Desc - External memory mipmap descriptor.
- cuda
External Semaphore Handle Desc - External semaphore handle descriptor.
- cuda
External Semaphore Handle Desc__ bindgen_ ty_ 1__ bindgen_ ty_ 1 - Win32 handle referencing the semaphore object. Valid when type is one of the following:
- cuda
External Semaphore Handle Type - External semaphore handle types.
- cuda
External Semaphore Signal Params - External semaphore signal parameters, compatible with driver type.
- cuda
External Semaphore Signal Params__ bindgen_ ty_ 1 - Native layout of the
paramsmember ofcudaExternalSemaphoreSignalParams. - cuda
External Semaphore Signal Params__ bindgen_ ty_ 1__ bindgen_ ty_ 1 - Parameters for fence objects
- cuda
External Semaphore Signal Params__ bindgen_ ty_ 1__ bindgen_ ty_ 3 - Parameters for keyed mutex objects
- cuda
External Semaphore Wait Params - External semaphore wait parameters, compatible with driver type.
- cuda
External Semaphore Wait Params__ bindgen_ ty_ 1 - Native layout of the
paramsmember ofcudaExternalSemaphoreWaitParams. - cuda
External Semaphore Wait Params__ bindgen_ ty_ 1__ bindgen_ ty_ 1 - Parameters for fence objects
- cuda
External Semaphore Wait Params__ bindgen_ ty_ 1__ bindgen_ ty_ 3 - Parameters for keyed mutex objects
- cuda
Func Attributes - CUDA function attributes.
- cuda
Graph Recapture Callback Data - Struct of user callback data that is invoked when node parameter mismatches are detected while recapturing to an existing graph.
- cuda
Kernel Node Params - CUDA GPU kernel node parameters.
- cuda
Launch AttributeID - Launch attributes enum; used as id field of
cudaLaunchAttribute. - cuda
Launch Attribute Portable Cluster Mode - Enum for defining applicability of portable cluster size, used with cudaLaunchKernelEx.
- cuda
Launch Attribute Value - Launch attributes union; used as value field of
cudaLaunchAttribute. - cuda
Launch Attribute Value__ bindgen_ ty_ 1 - Value of launch attribute
cudaLaunchAttributeID::cudaLaunchAttributeClusterDimensionthat represents the desired cluster dimensions for the kernel. Opaque type with the following fields: - cuda
Launch Attribute Value__ bindgen_ ty_ 2 - Value of launch attribute
cudaLaunchAttributeID::cudaLaunchAttributeProgrammaticEventwith the following fields: - cuda
Launch Attribute Value__ bindgen_ ty_ 3 - Value of launch attribute
cudaLaunchAttributeID::cudaLaunchAttributePreferredClusterDimensionthat represents the desired preferred cluster dimensions for the kernel. Opaque type with the following fields: - cuda
Launch Attribute Value__ bindgen_ ty_ 4 - Value of launch attribute
cudaLaunchAttributeID::cudaLaunchAttributeLaunchCompletionEventwith the following fields: - cuda
Launch Attribute Value__ bindgen_ ty_ 5 - Value of launch attribute
cudaLaunchAttributeID::cudaLaunchAttributeDeviceUpdatableKernelNodewith the following fields: - cuda
Launch Attribute_ st - Launch attribute.
- cuda
Launch Config_ st - CUDA extensible launch configuration.
- cuda
Launch MemSync Domain - Memory Synchronization Domain.
- cuda
Launch MemSync Domain Map_ st - Memory Synchronization Domain map.
- cuda
Limit - CUDA Limits.
- cuda
MemAllocation Type - Defines the allocation types available.
- cuda
Memcpy3D Parms - CUDA 3D memory copying parameters.
- cuda
Memcpy3D Peer Parms - CUDA 3D cross-device memory copying parameters.
- cuda
Memcpy Kind - CUDA memory copy types.
- cuda
Memory Type - CUDA memory types.
- cuda
Pitched Ptr - CUDA Pitched memory pointer.
- cuda
Pointer Attributes - CUDA pointer attributes.
- cudaPos
- CUDA 3D position.
- cuda
Resource Desc - CUDA resource descriptor.
- cuda
Resource Desc__ bindgen_ ty_ 1 - Native layout of the
resmember ofcudaResourceDesc. - cuda
Resource Desc__ bindgen_ ty_ 1__ bindgen_ ty_ 1 - Native layout of the
arraymember ofcudaResourceDesc__bindgen_ty_1. - cuda
Resource Desc__ bindgen_ ty_ 1__ bindgen_ ty_ 2 - Native layout of the
mipmapmember ofcudaResourceDesc__bindgen_ty_1. - cuda
Resource Desc__ bindgen_ ty_ 1__ bindgen_ ty_ 3 - Native layout of the
linearmember ofcudaResourceDesc__bindgen_ty_1. - cuda
Resource Desc__ bindgen_ ty_ 1__ bindgen_ ty_ 4 - Native layout of the
pitch2Dmember ofcudaResourceDesc__bindgen_ty_1. - cuda
Resource Desc__ bindgen_ ty_ 1__ bindgen_ ty_ 5 - Native layout of the
reservedmember ofcudaResourceDesc__bindgen_ty_1. - cuda
Resource Type - CUDA resource types.
- cuda
Resource View Desc - CUDA resource view descriptor.
- cuda
Resource View Format - CUDA texture resource view formats.
- cuda
Round Mode - Floating-point rounding direction for CUDA conversion operations.
- cuda
Shared Memory Mode - Shared memory related attributes for use with
cuLaunchKernelEx. - cuda
Stream Update Capture Dependencies Flags - Flags for
cudaStreamUpdateCaptureDependencies. - cuda
Surface Boundary Mode - CUDA Surface boundary modes.
- cuda
Surface Format Mode - CUDA Surface format modes.
- cuda
Synchronization Policy - Host waiting policy for synchronization with CUDA work.
- cuda
Texture Address Mode - CUDA texture address modes.
- cuda
Texture Desc - CUDA texture descriptor.
- cuda
Texture Filter Mode - CUDA texture filter modes.
- cuda
Texture Read Mode - CUDA texture read modes.
- dim3
Constants§
- CUDART_
VERSION - Compile-time CUDA runtime API version code. This identifies the headers used to generate these bindings, which may differ from the loaded library.
- cuda
Event Record Default - Default event record flag.
- cuda
Event Record External - Event is captured in the graph as an external event node when performing stream capture.
- cuda
Host Alloc Default - Default page-locked allocation flag.
- cuda
Host Alloc Mapped - Map allocation into device space.
- cuda
Host Alloc Portable - Pinned memory accessible by all CUDA contexts.
- cuda
Host Alloc Write Combined - Write-combined memory.
- cuda
Host Register Default - Default host memory registration flag.
- cuda
Host Register IoMemory - Memory-mapped I/O space.
- cuda
Host Register Mapped - Map registered memory into device space.
- cuda
Host Register Portable - Pinned memory accessible by all CUDA contexts.
- cuda
Host Register Read Only - Memory-mapped read-only.
- cuda
Peer Access Default - Default peer addressing enable flag.
- cuda
Stream Default - Default stream flag.
- cuda
Stream NonBlocking - Stream does not synchronize with stream 0 (the NULL stream).
- cuda
Surface Type1D - Selects a one-dimensional surface resource.
- cuda
Surface Type1D Layered - Selects a layered one-dimensional surface resource.
- cuda
Surface Type2D - Selects a two-dimensional surface resource.
- cuda
Surface Type2D Layered - Selects a layered two-dimensional surface resource.
- cuda
Surface Type3D - Selects a three-dimensional surface resource.
- cuda
Surface Type Cubemap - Selects a cube-map surface resource.
- cuda
Surface Type Cubemap Layered - Selects a layered cube-map surface resource.
- cuda
Texture Type1D - Selects a one-dimensional texture resource.
- cuda
Texture Type1D Layered - Selects a layered one-dimensional texture resource.
- cuda
Texture Type2D - Selects a two-dimensional texture resource.
- cuda
Texture Type2D Layered - Selects a layered two-dimensional texture resource.
- cuda
Texture Type3D - Selects a three-dimensional texture resource.
- cuda
Texture Type Cubemap - Selects a cube-map texture resource.
- cuda
Texture Type Cubemap Layered - Selects a layered cube-map texture resource.
Functions§
- cuda
Array ⚠GetInfo - Gets info about the specified cudaArray.
- cuda
Array ⚠GetMemory Requirements - Returns the memory requirements of a CUDA array.
- cuda
Array ⚠GetPlane - Gets a CUDA array plane from a CUDA array.
- cuda
Array ⚠GetSparse Properties - Returns the layout properties of a sparse CUDA array.
- cuda
Choose ⚠Device - Select compute-device which best matches criteria.
- cuda
Create ⚠Channel Desc - Returns a channel descriptor using the specified format.
- cuda
Create ⚠Surface Object - Creates a surface object.
- cuda
Create ⚠Texture Object - Creates a texture object.
- cuda
CtxReset ⚠Persisting L2Cache - Resets all persisting lines in cache to normal status.
- cuda
Destroy ⚠External Memory - Destroys an external memory object.
- cuda
Destroy ⚠External Semaphore - Destroys an external semaphore.
- cuda
Destroy ⚠Surface Object - Destroys a surface object.
- cuda
Destroy ⚠Texture Object - Destroys a texture object.
- cuda
DevResource ⚠Generate Desc - Generate a resource descriptor.
- cuda
DevSm ⚠Resource Split - Splits a
cudaDevResourceType::cudaDevResourceTypeSmresource into structured groups. - cuda
DevSm ⚠Resource Split ByCount - Splits
cudaDevResourceType::cudaDevResourceTypeSmresources. - cuda
Device ⚠CanAccess Peer - Queries if a device may directly access a peer device’s memory.
- cuda
Device ⚠Disable Peer Access - Disables direct access to memory allocations on a peer device.
- cuda
Device ⚠Enable Peer Access - Enables direct access to memory allocations on a peer device.
- cuda
Device ⚠FlushGPU DirectRDMA Writes - Blocks until remote writes are visible to the specified scope.
- cuda
Device ⚠GetAttribute - Returns information about the device.
- cuda
Device ⚠GetByPCI BusId - Returns a handle to a compute device.
- cuda
Device ⚠GetCache Config - Returns the preferred cache configuration for the current device.
- cuda
Device ⚠GetDefault MemPool - Returns the default mempool of a device.
- cuda
Device ⚠GetDev Resource - Get device resources.
- cuda
Device ⚠GetExecution Ctx - Returns the execution context for a device.
- cuda
Device ⚠GetGraph MemAttribute - Query asynchronous allocation attributes related to graphs.
- cuda
Device ⚠GetHost Atomic Capabilities - Queries details about atomic operations supported between the device and host.
- cuda
Device ⚠GetLimit - Return resource limits.
- cuda
Device ⚠GetMem Pool - Gets the current mempool for a device.
- cuda
Device ⚠GetNv SciSync Attributes - Return NvSciSync attributes that this device can support.
- cuda
Device ⚠GetP2P Atomic Capabilities - Queries details about atomic operations supported between two devices.
- cuda
Device ⚠GetP2P Attribute - Queries attributes of the link between two devices.
- cuda
Device ⚠GetPCI BusId - Returns a PCI Bus Id string for the device.
- cuda
Device ⚠GetShared MemConfig Deprecated - Returns the shared memory configuration for the current device.
- cuda
Device ⚠GetStream Priority Range - Returns numerical values that correspond to the least and greatest stream priorities.
- cuda
Device ⚠GetTexture1D Linear MaxWidth - Returns the maximum number of elements allocatable in a 1D linear texture for a given element size.
- cuda
Device ⚠Graph MemTrim - Free unused memory that was cached on the specified device for use with graphs back to the OS.
- cuda
Device ⚠Register Async Notification - Registers a callback function to receive async notifications.
- cuda
Device ⚠Reset - Destroy all allocations and reset all state on the current device in the current process.
- cuda
Device ⚠SetCache Config - Sets the preferred cache configuration for the current device.
- cuda
Device ⚠SetGraph MemAttribute - Set asynchronous allocation attributes related to graphs.
- cuda
Device ⚠SetLimit - Set resource limits.
- cuda
Device ⚠SetMem Pool - Sets the current memory pool of a device.
- cuda
Device ⚠SetShared MemConfig Deprecated - Sets the shared memory configuration for the current device.
- cuda
Device ⚠Synchronize - Wait for compute device to finish.
- cuda
Device ⚠Unregister Async Notification - Unregisters an async notification callback.
- cuda
Driver ⚠GetVersion - Returns the latest version of CUDA supported by the driver.
- cuda
Event ⚠Create - Creates an event object.
- cuda
Event ⚠Create With Flags - Creates an event object with the specified flags.
- cuda
Event ⚠Destroy - Destroys an event object.
- cuda
Event ⚠Elapsed Time - Computes the elapsed time between events.
- cuda
Event ⚠Query - Queries an event’s status.
- cuda
Event ⚠Record - Records an event.
- cuda
Event ⚠Record With Flags - Records an event.
- cuda
Event ⚠Synchronize - Waits for an event to complete.
- cuda
Execution ⚠CtxDestroy - Destroy a execution context.
- cuda
Execution ⚠CtxGet DevResource - Get context resources.
- cuda
Execution ⚠CtxGet Device - Returns the device handle for the execution context.
- cuda
Execution ⚠CtxGet Id - Returns the unique Id associated with the execution context supplied.
- cuda
Execution ⚠CtxRecord Event - Records an event for the specified execution context.
- cuda
Execution ⚠CtxStream Create - Creates a stream and initializes it for the given execution context.
- cuda
Execution ⚠CtxSynchronize - Block for the specified execution context’s tasks to complete.
- cuda
Execution ⚠CtxWait Event - Make an execution context wait on an event.
- cuda
External ⚠Memory GetMapped Buffer - Maps a buffer onto an imported memory object.
- cuda
External ⚠Memory GetMapped Mipmapped Array - Maps a CUDA mipmapped array onto an external memory object.
- cuda
Free ⚠ - Frees memory on the device.
- cuda
Free ⚠Array - Frees an array on the device.
- cuda
Free ⚠Async - Frees memory with stream ordered semantics.
- cuda
Free ⚠Host - Frees page-locked memory.
- cuda
Free ⚠Mipmapped Array - Frees a mipmapped array on the device.
- cuda
Func ⚠GetAttributes - Find out attributes for a given function.
- cuda
Func ⚠GetName - Returns the function name for a device entry function pointer.
- cuda
Func ⚠GetParam Count - Returns the number of parameters used by the function.
- cuda
Func ⚠GetParam Info - Returns the offset and size of a kernel parameter in the device-side parameter layout.
- cuda
Func ⚠SetAttribute - Set attributes for a given function.
- cuda
Func ⚠SetCache Config - Sets the preferred cache configuration for a device function.
- cuda
Func ⚠SetShared MemConfig Deprecated - Sets the shared memory configuration for a device function.
- cuda
GetChannel ⚠Desc - Get the channel descriptor of an array.
- cuda
GetDevice ⚠ - Returns which device is currently being used.
- cuda
GetDevice ⚠Count - Returns the number of compute-capable devices.
- cuda
GetDevice ⚠Flags - Gets the flags for the current device.
- cuda
GetDevice ⚠Properties - Returns information about the compute-device.
- cuda
GetDriver ⚠Entry Point Deprecated - Returns the requested driver API function pointer.
- cuda
GetDriver ⚠Entry Point ByVersion - Returns the requested driver API function pointer by CUDA version.
- cuda
GetError ⚠Name - Returns the string representation of an error code enum name.
- cuda
GetError ⚠String - Returns the description string for an error code.
- cuda
GetExport ⚠Table - impl_private
- cuda
GetFunc ⚠BySymbol - Get pointer to device entry function that matches entry function
symbolPtr. - cuda
GetKernel ⚠ - Get pointer to device kernel that matches entry function
entryFuncAddr. - cuda
GetLast ⚠Error - Returns the last error from a runtime call.
- cuda
GetMipmapped ⚠Array Level - Gets a mipmap level of a CUDA mipmapped array.
- cuda
GetSurface ⚠Object Resource Desc - Returns a surface object’s resource descriptor Returns the resource descriptor for the surface object specified by
surfObject. - cuda
GetSymbol ⚠Address - Finds the address associated with a CUDA symbol.
- cuda
GetSymbol ⚠Size - Finds the size of the object associated with a CUDA symbol.
- cuda
GetTexture ⚠Object Resource Desc - Returns a texture object’s resource descriptor.
- cuda
GetTexture ⚠Object Resource View Desc - Returns a texture object’s resource view descriptor.
- cuda
GetTexture ⚠Object Texture Desc - Returns a texture object’s texture descriptor.
- cuda
Graph ⚠AddChild Graph Node - Creates a child graph node and adds it to a graph.
- cuda
Graph ⚠AddDependencies - Adds dependency edges to a graph.
- cuda
Graph ⚠AddEmpty Node - Creates an empty node and adds it to a graph.
- cuda
Graph ⚠AddEvent Record Node - Creates an event record node and adds it to a graph.
- cuda
Graph ⚠AddEvent Wait Node - Creates an event wait node and adds it to a graph.
- cuda
Graph ⚠AddExternal Semaphores Signal Node - Creates an external semaphore signal node and adds it to a graph.
- cuda
Graph ⚠AddExternal Semaphores Wait Node - Creates an external semaphore wait node and adds it to a graph.
- cuda
Graph ⚠AddHost Node - Creates a host execution node and adds it to a graph.
- cuda
Graph ⚠AddKernel Node - Creates a kernel execution node and adds it to a graph.
- cuda
Graph ⚠AddMem Alloc Node - Creates an allocation node and adds it to a graph.
- cuda
Graph ⚠AddMem Free Node - Creates a memory free node and adds it to a graph.
- cuda
Graph ⚠AddMemcpy Node - Creates a memcpy node and adds it to a graph.
- cuda
Graph ⚠AddMemcpy Node1D - Creates a 1D memcpy node and adds it to a graph.
- cuda
Graph ⚠AddMemcpy Node From Symbol - Creates a memcpy node to copy from a symbol on the device and adds it to a graph.
- cuda
Graph ⚠AddMemcpy Node ToSymbol - Creates a memcpy node to copy to a symbol on the device and adds it to a graph.
- cuda
Graph ⚠AddMemset Node - Creates a memset node and adds it to a graph.
- cuda
Graph ⚠AddNode - Adds a node of arbitrary type to a graph.
- cuda
Graph ⚠Child Graph Node GetGraph - Gets a handle to the embedded graph of a child graph node.
- cuda
Graph ⚠Clone - Clones a graph.
- cuda
Graph ⚠Conditional Handle Create - Create a conditional handle.
- cuda
Graph ⚠Conditional Handle Create_ v2 - Create a conditional handle.
- cuda
Graph ⚠Create - Creates a graph.
- cuda
Graph ⚠Debug DotPrint - Write a DOT file describing graph structure.
- cuda
Graph ⚠Destroy - Destroys a graph.
- cuda
Graph ⚠Destroy Node - Remove a node from the graph.
- cuda
Graph ⚠Event Record Node GetEvent - Returns the event associated with an event record node.
- cuda
Graph ⚠Event Record Node SetEvent - Sets an event record node’s event.
- cuda
Graph ⚠Event Wait Node GetEvent - Returns the event associated with an event wait node.
- cuda
Graph ⚠Event Wait Node SetEvent - Sets an event wait node’s event.
- cuda
Graph ⚠Exec Child Graph Node SetParams - Updates node parameters in the child graph node in the given graphExec.
- cuda
Graph ⚠Exec Destroy - Destroys an executable graph.
- cuda
Graph ⚠Exec Event Record Node SetEvent - Sets the event for an event record node in the given graphExec.
- cuda
Graph ⚠Exec Event Wait Node SetEvent - Sets the event for an event wait node in the given graphExec.
- cuda
Graph ⚠Exec External Semaphores Signal Node SetParams - Sets the parameters for an external semaphore signal node in the given graphExec.
- cuda
Graph ⚠Exec External Semaphores Wait Node SetParams - Sets the parameters for an external semaphore wait node in the given graphExec.
- cuda
Graph ⚠Exec GetFlags - Query the instantiation flags of an executable graph.
- cuda
Graph ⚠Exec GetId - Returns the id of a given graph exec.
- cuda
Graph ⚠Exec Host Node SetParams - Sets the parameters for a host node in the given graphExec.
- cuda
Graph ⚠Exec Kernel Node SetParams - Sets the parameters for a kernel node in the given graphExec.
- cuda
Graph ⚠Exec Memcpy Node SetParams - Sets the parameters for a memcpy node in the given graphExec.
- cuda
Graph ⚠Exec Memcpy Node SetParams1D - Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional copy.
- cuda
Graph ⚠Exec Memcpy Node SetParams From Symbol - Sets the parameters for a memcpy node in the given graphExec to copy from a symbol on the device.
- cuda
Graph ⚠Exec Memcpy Node SetParams ToSymbol - Sets the parameters for a memcpy node in the given graphExec to copy to a symbol on the device.
- cuda
Graph ⚠Exec Memset Node SetParams - Sets the parameters for a memset node in the given graphExec.
- cuda
Graph ⚠Exec Node SetParams - Update a graph node’s parameters in an instantiated graph.
- cuda
Graph ⚠Exec Update - Check whether an executable graph can be updated with a graph and perform the update if possible.
- cuda
Graph ⚠External Semaphores Signal Node GetParams - Returns an external semaphore signal node’s parameters.
- cuda
Graph ⚠External Semaphores Signal Node SetParams - Sets an external semaphore signal node’s parameters.
- cuda
Graph ⚠External Semaphores Wait Node GetParams - Returns an external semaphore wait node’s parameters.
- cuda
Graph ⚠External Semaphores Wait Node SetParams - Sets an external semaphore wait node’s parameters.
- cuda
Graph ⚠GetEdges - Returns a graph’s dependency edges.
- cuda
Graph ⚠GetId - Returns the id of a given graph.
- cuda
Graph ⚠GetNodes - Returns a graph’s nodes.
- cuda
Graph ⚠GetRoot Nodes - Returns a graph’s root nodes.
- cuda
Graph ⚠Host Node GetParams - Returns a host node’s parameters.
- cuda
Graph ⚠Host Node SetParams - Sets a host node’s parameters.
- cuda
Graph ⚠Instantiate - Creates an executable graph from a graph.
- cuda
Graph ⚠Instantiate With Flags - Creates an executable graph from a graph.
- cuda
Graph ⚠Instantiate With Params - Creates an executable graph from a graph.
- cuda
Graph ⚠Kernel Node Copy Attributes - Copies attributes from source node to destination node.
- cuda
Graph ⚠Kernel Node GetAttribute - Queries node attribute.
- cuda
Graph ⚠Kernel Node GetParams - Returns a kernel node’s parameters.
- cuda
Graph ⚠Kernel Node SetAttribute - Sets node attribute.
- cuda
Graph ⚠Kernel Node SetParams - Sets a kernel node’s parameters.
- cuda
Graph ⚠Launch - Launches an executable graph in a stream.
- cuda
Graph ⚠MemAlloc Node GetParams - Returns a memory alloc node’s parameters.
- cuda
Graph ⚠MemFree Node GetParams - Returns a memory free node’s parameters.
- cuda
Graph ⚠Memcpy Node GetParams - Returns a memcpy node’s parameters.
- cuda
Graph ⚠Memcpy Node SetParams - Sets a memcpy node’s parameters.
- cuda
Graph ⚠Memcpy Node SetParams1D - Sets a memcpy node’s parameters to perform a 1-dimensional copy.
- cuda
Graph ⚠Memcpy Node SetParams From Symbol - Sets a memcpy node’s parameters to copy from a symbol on the device.
- cuda
Graph ⚠Memcpy Node SetParams ToSymbol - Sets a memcpy node’s parameters to copy to a symbol on the device.
- cuda
Graph ⚠Memset Node GetParams - Returns a memset node’s parameters.
- cuda
Graph ⚠Memset Node SetParams - Sets a memset node’s parameters.
- cuda
Graph ⚠Node Find InClone - Finds a cloned version of a node.
- cuda
Graph ⚠Node GetContaining Graph - Returns the graph that contains a given graph node.
- cuda
Graph ⚠Node GetDependencies - Returns a node’s dependencies.
- cuda
Graph ⚠Node GetDependent Nodes - Returns a node’s dependent nodes.
- cuda
Graph ⚠Node GetEnabled - Query whether a node in the given graphExec is enabled.
- cuda
Graph ⚠Node GetLocal Id - Returns the node id of a given graph node.
- cuda
Graph ⚠Node GetParams - Returns a graph node’s parameters.
- cuda
Graph ⚠Node GetTools Id - Returns an id used by tools to identify a given node.
- cuda
Graph ⚠Node GetType - Returns a node’s type.
- cuda
Graph ⚠Node SetEnabled - Enables or disables the specified node in the given graphExec.
- cuda
Graph ⚠Node SetParams - Update a graph node’s parameters.
- cuda
Graph ⚠Release User Object - Release a user object reference from a graph.
- cuda
Graph ⚠Remove Dependencies - Removes dependency edges from a graph.
- cuda
Graph ⚠Retain User Object - Retain a reference to a user object from a graph.
- cuda
Graph ⚠Upload - Uploads an executable graph in a stream.
- cuda
Graphics ⚠MapResources - Map graphics resources for access by CUDA.
- cuda
Graphics ⚠Resource GetMapped Mipmapped Array - Get a mipmapped array through which to access a mapped graphics resource.
- cuda
Graphics ⚠Resource GetMapped Pointer - Get an device pointer through which to access a mapped graphics resource.
- cuda
Graphics ⚠Resource SetMap Flags - Set usage flags for mapping a graphics resource.
- cuda
Graphics ⚠SubResource GetMapped Array - Get an array through which to access a subresource of a mapped graphics resource.
- cuda
Graphics ⚠Unmap Resources - Unmap graphics resources.
- cuda
Graphics ⚠Unregister Resource - Unregisters a graphics resource for access by CUDA.
- cuda
Green ⚠CtxCreate - Creates a green context with a specified set of resources.
- cuda
Host ⚠Alloc - Allocates page-locked memory on the host.
- cuda
Host ⚠GetDevice Pointer - Passes back device pointer of mapped host memory allocated by cudaHostAlloc or registered by cudaHostRegister.
- cuda
Host ⚠GetFlags - Passes back flags used to allocate pinned host memory allocated by cudaHostAlloc.
- cuda
Host ⚠Register - Registers an existing host memory range for use by CUDA.
- cuda
Host ⚠Unregister - Unregisters a memory range that was registered with cudaHostRegister.
- cuda
Import ⚠External Memory - Imports an external memory object.
- cuda
Import ⚠External Semaphore - Imports an external semaphore.
- cuda
Init ⚠Device - Initialize device to be used for GPU executions.
- cuda
IpcClose ⚠MemHandle - Attempts to close memory mapped with cudaIpcOpenMemHandle.
- cuda
IpcGet ⚠Event Handle - Gets an interprocess handle for a previously allocated event.
- cuda
IpcGet ⚠MemHandle - Gets an interprocess memory handle for an existing device memory allocation.
- cuda
IpcOpen ⚠Event Handle - Opens an interprocess event handle for use in the current process.
- cuda
IpcOpen ⚠MemHandle - Opens an interprocess memory handle exported from another process and returns a device pointer usable in the local process.
- cuda
Kernel ⚠SetAttribute ForDevice - Sets information about a kernel.
- cuda
Launch ⚠Cooperative Kernel - Launches a device function where thread blocks can cooperate and synchronize as they execute.
- cuda
Launch ⚠Host Func - Enqueues a host function call in a stream.
- cuda
Launch ⚠Host Func_ v2 - Enqueues a host function call in a stream.
- cuda
Launch ⚠Kernel - Launches a device function.
- cuda
Launch ⚠Kernel ExC - Launches a CUDA function with launch-time configuration.
- cuda
Library ⚠Enumerate Kernels - Retrieve the kernel handles within a library.
- cuda
Library ⚠GetGlobal - Returns a global device pointer.
- cuda
Library ⚠GetKernel - Returns a kernel handle.
- cuda
Library ⚠GetKernel Count - Returns the number of kernels within a library.
- cuda
Library ⚠GetManaged - Returns a pointer to managed memory.
- cuda
Library ⚠GetUnified Function - Returns a pointer to a unified function.
- cuda
Library ⚠Load Data - Load a library with specified code and options.
- cuda
Library ⚠Load From File - Load a library with specified file and options.
- cuda
Library ⚠Unload - Unloads a library.
- cuda
Logs ⚠Current - Sets log iterator to point to the end of log buffer, where the next message would be written.
- cuda
Logs ⚠Dump ToFile - Dump accumulated driver logs into a file.
- cuda
Logs ⚠Dump ToMemory - Dump accumulated driver logs into a buffer.
- cuda
Logs ⚠Register Callback - Register a callback function to receive error log messages.
- cuda
Logs ⚠Unregister Callback - Unregister a log message callback.
- cuda
Malloc ⚠ - Allocate memory on the device.
- cuda
Malloc3D ⚠ - Allocates logical 1D, 2D, or 3D memory objects on the device.
- cuda
Malloc3D ⚠Array - Allocate an array on the device.
- cuda
Malloc ⚠Array - Allocate an array on the device.
- cuda
Malloc ⚠Async - Allocates memory with stream ordered semantics.
- cuda
Malloc ⚠From Pool Async - Allocates memory from a specified pool with stream ordered semantics.
- cuda
Malloc ⚠Host - Allocates page-locked memory on the host.
- cuda
Malloc ⚠Managed - Allocates memory that will be automatically managed by the Unified Memory system.
- cuda
Malloc ⚠Mipmapped Array - Allocate a mipmapped array on the device.
- cuda
Malloc ⚠Pitch - Allocates pitched memory on the device.
- cuda
MemAdvise ⚠ - Advise about the usage of a given memory range.
- cuda
MemDiscard ⚠AndPrefetch Batch Async - Performs a batch of memory discards and prefetches asynchronously.
- cuda
MemDiscard ⚠Batch Async - Performs a batch of memory discards asynchronously.
- cuda
MemGet ⚠Default MemPool - Returns the default memory pool for a given location and allocation type.
- cuda
MemGet ⚠Info - Gets free and total device memory.
- cuda
MemGet ⚠Location Info - Gets location information for a memory address range.
- cuda
MemGet ⚠MemPool - Gets the current memory pool for a given memory location and allocation type.
- cuda
MemPool ⚠Create - Creates a memory pool.
- cuda
MemPool ⚠Destroy - Destroys the specified memory pool.
- cuda
MemPool ⚠Export Pointer - Export data to share a memory pool allocation between processes.
- cuda
MemPool ⚠Export ToShareable Handle - Exports a memory pool to the requested handle type.
- cuda
MemPool ⚠GetAccess - Returns the accessibility of a pool from a device.
- cuda
MemPool ⚠GetAttribute - Gets attributes of a memory pool.
- cuda
MemPool ⚠Import From Shareable Handle - imports a memory pool from a shared handle.
- cuda
MemPool ⚠Import Pointer - Import a memory pool allocation from another process.
- cuda
MemPool ⚠SetAccess - Controls visibility of pools between devices.
- cuda
MemPool ⚠SetAttribute - Sets attributes of a memory pool.
- cuda
MemPool ⚠Trim To - Tries to release memory back to the OS.
- cuda
MemPrefetch ⚠Async - Prefetches memory to the specified destination location.
- cuda
MemPrefetch ⚠Batch Async - Performs a batch of memory prefetches asynchronously.
- cuda
MemRange ⚠GetAttribute - Query an attribute of a given memory range.
- cuda
MemRange ⚠GetAttributes - Query attributes of a given memory range.
- cuda
MemSet ⚠MemPool - Sets the current memory pool for a memory location and allocation type.
- cuda
Memcpy ⚠ - Copies data between host and device.
- cuda
Memcpy2D ⚠ - Copies data between host and device.
- cuda
Memcpy2D ⚠Array ToArray - Copies data between host and device.
- cuda
Memcpy2D ⚠Async - Copies data between host and device.
- cuda
Memcpy2D ⚠From Array - Copies data between host and device.
- cuda
Memcpy2D ⚠From Array Async - Copies data between host and device.
- cuda
Memcpy2D ⚠ToArray - Copies data between host and device.
- cuda
Memcpy2D ⚠ToArray Async - Copies data between host and device.
- cuda
Memcpy3D ⚠ - Copies data between 3D objects.
- cuda
Memcpy3D ⚠Async - Copies data between 3D objects.
- cuda
Memcpy3D ⚠Batch Async - Performs a batch of 3D memory copies asynchronously.
- cuda
Memcpy3D ⚠Peer - Copies memory between devices.
- cuda
Memcpy3D ⚠Peer Async - Copies memory between devices asynchronously.
- cuda
Memcpy3D ⚠With Attributes Async - Performs 3D asynchronous memory copy with the specified attributes.
- cuda
Memcpy ⚠Array ToArray Deprecated - Copies data between host and device.
- cuda
Memcpy ⚠Async - Copies data between host and device.
- cuda
Memcpy ⚠Batch Async - Performs a batch of memory copies asynchronously.
- cuda
Memcpy ⚠From Array Deprecated - Copies data between host and device.
- cuda
Memcpy ⚠From Array Async Deprecated - Copies data between host and device.
- cuda
Memcpy ⚠From Symbol - Copies data from the given symbol on the device.
- cuda
Memcpy ⚠From Symbol Async - Copies data from the given symbol on the device.
- cuda
Memcpy ⚠Peer - Copies memory between two devices.
- cuda
Memcpy ⚠Peer Async - Copies memory between two devices asynchronously.
- cuda
Memcpy ⚠ToArray Deprecated - Copies data between host and device.
- cuda
Memcpy ⚠ToArray Async Deprecated - Copies data between host and device.
- cuda
Memcpy ⚠ToSymbol - Copies data to the given symbol on the device.
- cuda
Memcpy ⚠ToSymbol Async - Copies data to the given symbol on the device.
- cuda
Memcpy ⚠With Attributes Async - Performs asynchronous memory copy operation with the specified attributes.
- cuda
Memset ⚠ - Initializes or sets device memory to a value.
- cuda
Memset2D ⚠ - Initializes or sets device memory to a value.
- cuda
Memset2D ⚠Async - Initializes or sets device memory to a value.
- cuda
Memset3D ⚠ - Initializes or sets device memory to a value.
- cuda
Memset3D ⚠Async - Initializes or sets device memory to a value.
- cuda
Memset ⚠Async - Initializes or sets device memory to a value.
- cuda
Mipmapped ⚠Array GetMemory Requirements - Returns the memory requirements of a CUDA mipmapped array.
- cuda
Mipmapped ⚠Array GetSparse Properties - Returns the layout properties of a sparse CUDA mipmapped array.
- cuda
Occupancy ⚠Available DynamicS MemPer Block - Returns dynamic shared memory available per block when launching
numBlocksblocks on SM. - cuda
Occupancy ⚠MaxActive Blocks PerMultiprocessor - Returns occupancy for a device function.
- cuda
Occupancy ⚠MaxActive Blocks PerMultiprocessor With Flags - Returns occupancy for a device function with the specified flags.
- cuda
Occupancy ⚠MaxActive Clusters - Given the kernel function (
func) and launch configuration (config), return the maximum number of clusters that could co-exist on the target device in*numClusters. - cuda
Occupancy ⚠MaxPotential Cluster Size - Given the kernel function (
func) and launch configuration (config), return the maximum cluster size in*clusterSize. - cuda
Peek ⚠AtLast Error - Returns the last error from a runtime call.
- cuda
Pointer ⚠GetAttributes - Returns attributes about a specified pointer.
- cuda
Runtime ⚠GetVersion - Returns the CUDA Runtime version.
- cuda
SetDevice ⚠ - Set device to be used for GPU executions.
- cuda
SetDevice ⚠Flags - Sets flags to be used for device executions.
- cuda
SetValid ⚠Devices - Set a list of devices that can be used for CUDA.
- cuda
Signal ⚠External Semaphores Async - Signals a set of external semaphore objects.
- cuda
Stream ⚠AddCallback - Add a callback to a compute stream.
- cuda
Stream ⚠Attach MemAsync - Attach memory to a stream asynchronously.
- cuda
Stream ⚠Begin Capture - Begins graph capture on a stream.
- cuda
Stream ⚠Begin Capture ToGraph - Begins graph capture on a stream to an existing graph.
- cuda
Stream ⚠Begin Recapture ToGraph - Begin graph capture on a stream to an existing graph.
- cuda
Stream ⚠Copy Attributes - Copies attributes from source stream to destination stream.
- cuda
Stream ⚠Create - Create an asynchronous stream.
- cuda
Stream ⚠Create With Flags - Create an asynchronous stream.
- cuda
Stream ⚠Create With Priority - Create an asynchronous stream with the specified priority.
- cuda
Stream ⚠Destroy - Destroys and cleans up an asynchronous stream.
- cuda
Stream ⚠EndCapture - Ends capture on a stream, returning the captured graph.
- cuda
Stream ⚠GetAttribute - Queries stream attribute.
- cuda
Stream ⚠GetCapture Info - Query a stream’s capture state.
- cuda
Stream ⚠GetDev Resource - Get stream resources.
- cuda
Stream ⚠GetDevice - Query the device of a stream.
- cuda
Stream ⚠GetFlags - Query the flags of a stream.
- cuda
Stream ⚠GetId - Query the Id of a stream.
- cuda
Stream ⚠GetPriority - Query the priority of a stream.
- cuda
Stream ⚠IsCapturing - Returns a stream’s capture status.
- cuda
Stream ⚠Query - Queries an asynchronous stream for completion status.
- cuda
Stream ⚠SetAttribute - Sets stream attribute.
- cuda
Stream ⚠Synchronize - Waits for stream tasks to complete.
- cuda
Stream ⚠Update Capture Dependencies - Update the set of dependencies in a capturing stream.
- cuda
Stream ⚠Wait Event - Make a compute stream wait on an event.
- cuda
Thread ⚠Exchange Stream Capture Mode - Swaps the stream capture interaction mode for a thread.
- cuda
User ⚠Object Create - Create a user object.
- cuda
User ⚠Object Release - Release a reference to a user object.
- cuda
User ⚠Object Retain - Retain a reference to a user object.
- cuda
Wait ⚠External Semaphores Async - Waits on a set of external semaphore objects.
Type Aliases§
- cuda
Array_ const_ t - Pointer to a CUDA array handle in this runtime binding.
- cuda
DevResource - A tagged union describing different resources identified by the type field.
- cuda
DevResource Desc_ t - An opaque descriptor handle.
- cuda
DevSm Resource Group Params - Input data for splitting SMs.
- cuda
Execution Context_ t - An opaque handle to a CUDA execution context.
- cuda
Graph Device Node_ t - CUDA device node handle for device-side node update.
- cuda
Graph Recapture Callback_ t - Callback function invoked when node parameter mismatches are detected while recapturing to an existing graph. Parameter struct pointers are only valid within the callback.
- cuda
Graph Recapture Status - Stream capture status used by graph recapture operations.
- cuda
Launch Attribute - Launch attribute.
- cuda
Launch Config_ t - CUDA extensible launch configuration.
- cuda
Launch MemSync Domain Map - Memory Synchronization Domain map.
- cuda
LogIterator - Native cursor used to iterate through CUDA runtime log messages.
- cuda
Logs Callback Handle - Opaque registration handle returned by the CUDA runtime logging callback API.
- cuda
Logs Callback_ t - Type of public error reporting callback functions.
- cuda
Mipmapped Array_ const_ t - Pointer to an immutable native CUDA mipmapped-array object.
- cuda
Stream Callback_ t - Type of stream callback functions.
- cuda
Surface Object_ t - An opaque value that represents a CUDA Surface object.
- cuda
Texture Object_ t - An opaque value that represents a CUDA texture object.
- size_t
- Unsigned C
size_t, used for byte counts and object sizes in the native ABI.
Unions§
- cuda
DevResource_ st__ bindgen_ ty_ 1 - Anonymous native union in
cudaDevResource_st. Its members share the same storage. - cuda
External Memory Handle Desc__ bindgen_ ty_ 1 - Native layout of the
handlemember ofcudaExternalMemoryHandleDesc. - cuda
External Semaphore Handle Desc__ bindgen_ ty_ 1 - Native layout of the
handlemember ofcudaExternalSemaphoreHandleDesc. - cuda
External Semaphore Signal Params__ bindgen_ ty_ 1__ bindgen_ ty_ 2 - Native layout of the
nvSciSyncmember ofcudaExternalSemaphoreSignalParams__bindgen_ty_1. - cuda
External Semaphore Wait Params__ bindgen_ ty_ 1__ bindgen_ ty_ 2 - Native layout of the
nvSciSyncmember ofcudaExternalSemaphoreWaitParams__bindgen_ty_1. - cuda
Pointer Attributes__ bindgen_ ty_ 1 - Locality domain ordinal for device allocations localized to a locality domain, or -1 when the allocation is not localized to a locality domain.