Skip to main content

Module runtime

Module runtime 

Source
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::CUsharedconfig as cudaSharedMemConfig;Deprecated
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§

CUDAlogLevel_enum
Severity of a CUDA runtime log message.
CUdevResourceDesc_st
Incomplete native type used by cudaDevResourceDesc_t handles. The native API owns its layout.
CUgraphDeviceUpdatableNode_st
Incomplete native type used by cudaGraphDeviceNode_t handles. The native API owns its layout.
CUlogsCallbackEntry_st
Incomplete native type used by cudaLogsCallbackHandle handles. The native API owns its layout.
__BindgenUnionField
Zero-sized marker for one member of a bindgen-emulated C union.
cudaAccessPolicyWindow
Specifies an access policy for a window, a contiguous extent of memory beginning at base_ptr and ending at base_ptr + num_bytes.
cudaAccessProperty
Specifies performance hint with cudaAccessPolicyWindow for hitProp and missProp members.
cudaAtomicOperation
CUDA-valid Atomic Operations.
cudaChannelFormatDesc
CUDA Channel format descriptor.
cudaChannelFormatKind
Channel format kind.
cudaClusterSchedulingPolicy
Cluster scheduling policies.
cudaComputeMode
CUDA device compute modes.
cudaDevResourceType
Type of resource.
cudaDevResource_st
A tagged union describing different resources identified by the type field.
cudaDevSmResource
Data for SM-related resources All parameters in this structure are OUTPUT only.
cudaDevSmResourceGroupParams_st
Input data for splitting SMs.
cudaDevWorkqueueConfigResource
Data for workqueue configuration related resources.
cudaDevWorkqueueConfigScope
Sharing scope for workqueues.
cudaDevWorkqueueResource
Handle to a pre-existing workqueue related resource.
cudaDeviceProp
CUDA device properties.
cudaEventRecordNodeParams
Event record node parameters.
cudaExecutionContext_st
An opaque handle to a CUDA execution context.
cudaExtent
CUDA extent.
cudaExternalMemoryBufferDesc
External memory buffer descriptor.
cudaExternalMemoryHandleDesc
External memory handle descriptor.
cudaExternalMemoryHandleDesc__bindgen_ty_1__bindgen_ty_1
Win32 handle referencing the semaphore object. Valid when type is one of the following:
cudaExternalMemoryHandleType
External memory handle types.
cudaExternalMemoryMipmappedArrayDesc
External memory mipmap descriptor.
cudaExternalSemaphoreHandleDesc
External semaphore handle descriptor.
cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1
Win32 handle referencing the semaphore object. Valid when type is one of the following:
cudaExternalSemaphoreHandleType
External semaphore handle types.
cudaExternalSemaphoreSignalParams
External semaphore signal parameters, compatible with driver type.
cudaExternalSemaphoreSignalParams__bindgen_ty_1
Native layout of the params member of cudaExternalSemaphoreSignalParams.
cudaExternalSemaphoreSignalParams__bindgen_ty_1__bindgen_ty_1
Parameters for fence objects
cudaExternalSemaphoreSignalParams__bindgen_ty_1__bindgen_ty_3
Parameters for keyed mutex objects
cudaExternalSemaphoreWaitParams
External semaphore wait parameters, compatible with driver type.
cudaExternalSemaphoreWaitParams__bindgen_ty_1
Native layout of the params member of cudaExternalSemaphoreWaitParams.
cudaExternalSemaphoreWaitParams__bindgen_ty_1__bindgen_ty_1
Parameters for fence objects
cudaExternalSemaphoreWaitParams__bindgen_ty_1__bindgen_ty_3
Parameters for keyed mutex objects
cudaFuncAttributes
CUDA function attributes.
cudaGraphRecaptureCallbackData
Struct of user callback data that is invoked when node parameter mismatches are detected while recapturing to an existing graph.
cudaKernelNodeParams
CUDA GPU kernel node parameters.
cudaLaunchAttributeID
Launch attributes enum; used as id field of cudaLaunchAttribute.
cudaLaunchAttributePortableClusterMode
Enum for defining applicability of portable cluster size, used with cudaLaunchKernelEx.
cudaLaunchAttributeValue
Launch attributes union; used as value field of cudaLaunchAttribute.
cudaLaunchAttributeValue__bindgen_ty_1
Value of launch attribute cudaLaunchAttributeID::cudaLaunchAttributeClusterDimension that represents the desired cluster dimensions for the kernel. Opaque type with the following fields:
cudaLaunchAttributeValue__bindgen_ty_2
Value of launch attribute cudaLaunchAttributeID::cudaLaunchAttributeProgrammaticEvent with the following fields:
cudaLaunchAttributeValue__bindgen_ty_3
Value of launch attribute cudaLaunchAttributeID::cudaLaunchAttributePreferredClusterDimension that represents the desired preferred cluster dimensions for the kernel. Opaque type with the following fields:
cudaLaunchAttributeValue__bindgen_ty_4
Value of launch attribute cudaLaunchAttributeID::cudaLaunchAttributeLaunchCompletionEvent with the following fields:
cudaLaunchAttributeValue__bindgen_ty_5
Value of launch attribute cudaLaunchAttributeID::cudaLaunchAttributeDeviceUpdatableKernelNode with the following fields:
cudaLaunchAttribute_st
Launch attribute.
cudaLaunchConfig_st
CUDA extensible launch configuration.
cudaLaunchMemSyncDomain
Memory Synchronization Domain.
cudaLaunchMemSyncDomainMap_st
Memory Synchronization Domain map.
cudaLimit
CUDA Limits.
cudaMemAllocationType
Defines the allocation types available.
cudaMemcpy3DParms
CUDA 3D memory copying parameters.
cudaMemcpy3DPeerParms
CUDA 3D cross-device memory copying parameters.
cudaMemcpyKind
CUDA memory copy types.
cudaMemoryType
CUDA memory types.
cudaPitchedPtr
CUDA Pitched memory pointer.
cudaPointerAttributes
CUDA pointer attributes.
cudaPos
CUDA 3D position.
cudaResourceDesc
CUDA resource descriptor.
cudaResourceDesc__bindgen_ty_1
Native layout of the res member of cudaResourceDesc.
cudaResourceDesc__bindgen_ty_1__bindgen_ty_1
Native layout of the array member of cudaResourceDesc__bindgen_ty_1.
cudaResourceDesc__bindgen_ty_1__bindgen_ty_2
Native layout of the mipmap member of cudaResourceDesc__bindgen_ty_1.
cudaResourceDesc__bindgen_ty_1__bindgen_ty_3
Native layout of the linear member of cudaResourceDesc__bindgen_ty_1.
cudaResourceDesc__bindgen_ty_1__bindgen_ty_4
Native layout of the pitch2D member of cudaResourceDesc__bindgen_ty_1.
cudaResourceDesc__bindgen_ty_1__bindgen_ty_5
Native layout of the reserved member of cudaResourceDesc__bindgen_ty_1.
cudaResourceType
CUDA resource types.
cudaResourceViewDesc
CUDA resource view descriptor.
cudaResourceViewFormat
CUDA texture resource view formats.
cudaRoundMode
Floating-point rounding direction for CUDA conversion operations.
cudaSharedMemoryMode
Shared memory related attributes for use with cuLaunchKernelEx.
cudaStreamUpdateCaptureDependenciesFlags
Flags for cudaStreamUpdateCaptureDependencies.
cudaSurfaceBoundaryMode
CUDA Surface boundary modes.
cudaSurfaceFormatMode
CUDA Surface format modes.
cudaSynchronizationPolicy
Host waiting policy for synchronization with CUDA work.
cudaTextureAddressMode
CUDA texture address modes.
cudaTextureDesc
CUDA texture descriptor.
cudaTextureFilterMode
CUDA texture filter modes.
cudaTextureReadMode
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.
cudaEventRecordDefault
Default event record flag.
cudaEventRecordExternal
Event is captured in the graph as an external event node when performing stream capture.
cudaHostAllocDefault
Default page-locked allocation flag.
cudaHostAllocMapped
Map allocation into device space.
cudaHostAllocPortable
Pinned memory accessible by all CUDA contexts.
cudaHostAllocWriteCombined
Write-combined memory.
cudaHostRegisterDefault
Default host memory registration flag.
cudaHostRegisterIoMemory
Memory-mapped I/O space.
cudaHostRegisterMapped
Map registered memory into device space.
cudaHostRegisterPortable
Pinned memory accessible by all CUDA contexts.
cudaHostRegisterReadOnly
Memory-mapped read-only.
cudaPeerAccessDefault
Default peer addressing enable flag.
cudaStreamDefault
Default stream flag.
cudaStreamNonBlocking
Stream does not synchronize with stream 0 (the NULL stream).
cudaSurfaceType1D
Selects a one-dimensional surface resource.
cudaSurfaceType1DLayered
Selects a layered one-dimensional surface resource.
cudaSurfaceType2D
Selects a two-dimensional surface resource.
cudaSurfaceType2DLayered
Selects a layered two-dimensional surface resource.
cudaSurfaceType3D
Selects a three-dimensional surface resource.
cudaSurfaceTypeCubemap
Selects a cube-map surface resource.
cudaSurfaceTypeCubemapLayered
Selects a layered cube-map surface resource.
cudaTextureType1D
Selects a one-dimensional texture resource.
cudaTextureType1DLayered
Selects a layered one-dimensional texture resource.
cudaTextureType2D
Selects a two-dimensional texture resource.
cudaTextureType2DLayered
Selects a layered two-dimensional texture resource.
cudaTextureType3D
Selects a three-dimensional texture resource.
cudaTextureTypeCubemap
Selects a cube-map texture resource.
cudaTextureTypeCubemapLayered
Selects a layered cube-map texture resource.

Functions§

cudaArrayGetInfo⚠
Gets info about the specified cudaArray.
cudaArrayGetMemoryRequirements⚠
Returns the memory requirements of a CUDA array.
cudaArrayGetPlane⚠
Gets a CUDA array plane from a CUDA array.
cudaArrayGetSparseProperties⚠
Returns the layout properties of a sparse CUDA array.
cudaChooseDevice⚠
Select compute-device which best matches criteria.
cudaCreateChannelDesc⚠
Returns a channel descriptor using the specified format.
cudaCreateSurfaceObject⚠
Creates a surface object.
cudaCreateTextureObject⚠
Creates a texture object.
cudaCtxResetPersistingL2Cache⚠
Resets all persisting lines in cache to normal status.
cudaDestroyExternalMemory⚠
Destroys an external memory object.
cudaDestroyExternalSemaphore⚠
Destroys an external semaphore.
cudaDestroySurfaceObject⚠
Destroys a surface object.
cudaDestroyTextureObject⚠
Destroys a texture object.
cudaDevResourceGenerateDesc⚠
Generate a resource descriptor.
cudaDevSmResourceSplit⚠
Splits a cudaDevResourceType::cudaDevResourceTypeSm resource into structured groups.
cudaDevSmResourceSplitByCount⚠
Splits cudaDevResourceType::cudaDevResourceTypeSm resources.
cudaDeviceCanAccessPeer⚠
Queries if a device may directly access a peer device’s memory.
cudaDeviceDisablePeerAccess⚠
Disables direct access to memory allocations on a peer device.
cudaDeviceEnablePeerAccess⚠
Enables direct access to memory allocations on a peer device.
cudaDeviceFlushGPUDirectRDMAWrites⚠
Blocks until remote writes are visible to the specified scope.
cudaDeviceGetAttribute⚠
Returns information about the device.
cudaDeviceGetByPCIBusId⚠
Returns a handle to a compute device.
cudaDeviceGetCacheConfig⚠
Returns the preferred cache configuration for the current device.
cudaDeviceGetDefaultMemPool⚠
Returns the default mempool of a device.
cudaDeviceGetDevResource⚠
Get device resources.
cudaDeviceGetExecutionCtx⚠
Returns the execution context for a device.
cudaDeviceGetGraphMemAttribute⚠
Query asynchronous allocation attributes related to graphs.
cudaDeviceGetHostAtomicCapabilities⚠
Queries details about atomic operations supported between the device and host.
cudaDeviceGetLimit⚠
Return resource limits.
cudaDeviceGetMemPool⚠
Gets the current mempool for a device.
cudaDeviceGetNvSciSyncAttributes⚠
Return NvSciSync attributes that this device can support.
cudaDeviceGetP2PAtomicCapabilities⚠
Queries details about atomic operations supported between two devices.
cudaDeviceGetP2PAttribute⚠
Queries attributes of the link between two devices.
cudaDeviceGetPCIBusId⚠
Returns a PCI Bus Id string for the device.
cudaDeviceGetSharedMemConfig⚠Deprecated
Returns the shared memory configuration for the current device.
cudaDeviceGetStreamPriorityRange⚠
Returns numerical values that correspond to the least and greatest stream priorities.
cudaDeviceGetTexture1DLinearMaxWidth⚠
Returns the maximum number of elements allocatable in a 1D linear texture for a given element size.
cudaDeviceGraphMemTrim⚠
Free unused memory that was cached on the specified device for use with graphs back to the OS.
cudaDeviceRegisterAsyncNotification⚠
Registers a callback function to receive async notifications.
cudaDeviceReset⚠
Destroy all allocations and reset all state on the current device in the current process.
cudaDeviceSetCacheConfig⚠
Sets the preferred cache configuration for the current device.
cudaDeviceSetGraphMemAttribute⚠
Set asynchronous allocation attributes related to graphs.
cudaDeviceSetLimit⚠
Set resource limits.
cudaDeviceSetMemPool⚠
Sets the current memory pool of a device.
cudaDeviceSetSharedMemConfig⚠Deprecated
Sets the shared memory configuration for the current device.
cudaDeviceSynchronize⚠
Wait for compute device to finish.
cudaDeviceUnregisterAsyncNotification⚠
Unregisters an async notification callback.
cudaDriverGetVersion⚠
Returns the latest version of CUDA supported by the driver.
cudaEventCreate⚠
Creates an event object.
cudaEventCreateWithFlags⚠
Creates an event object with the specified flags.
cudaEventDestroy⚠
Destroys an event object.
cudaEventElapsedTime⚠
Computes the elapsed time between events.
cudaEventQuery⚠
Queries an event’s status.
cudaEventRecord⚠
Records an event.
cudaEventRecordWithFlags⚠
Records an event.
cudaEventSynchronize⚠
Waits for an event to complete.
cudaExecutionCtxDestroy⚠
Destroy a execution context.
cudaExecutionCtxGetDevResource⚠
Get context resources.
cudaExecutionCtxGetDevice⚠
Returns the device handle for the execution context.
cudaExecutionCtxGetId⚠
Returns the unique Id associated with the execution context supplied.
cudaExecutionCtxRecordEvent⚠
Records an event for the specified execution context.
cudaExecutionCtxStreamCreate⚠
Creates a stream and initializes it for the given execution context.
cudaExecutionCtxSynchronize⚠
Block for the specified execution context’s tasks to complete.
cudaExecutionCtxWaitEvent⚠
Make an execution context wait on an event.
cudaExternalMemoryGetMappedBuffer⚠
Maps a buffer onto an imported memory object.
cudaExternalMemoryGetMappedMipmappedArray⚠
Maps a CUDA mipmapped array onto an external memory object.
cudaFree⚠
Frees memory on the device.
cudaFreeArray⚠
Frees an array on the device.
cudaFreeAsync⚠
Frees memory with stream ordered semantics.
cudaFreeHost⚠
Frees page-locked memory.
cudaFreeMipmappedArray⚠
Frees a mipmapped array on the device.
cudaFuncGetAttributes⚠
Find out attributes for a given function.
cudaFuncGetName⚠
Returns the function name for a device entry function pointer.
cudaFuncGetParamCount⚠
Returns the number of parameters used by the function.
cudaFuncGetParamInfo⚠
Returns the offset and size of a kernel parameter in the device-side parameter layout.
cudaFuncSetAttribute⚠
Set attributes for a given function.
cudaFuncSetCacheConfig⚠
Sets the preferred cache configuration for a device function.
cudaFuncSetSharedMemConfig⚠Deprecated
Sets the shared memory configuration for a device function.
cudaGetChannelDesc⚠
Get the channel descriptor of an array.
cudaGetDevice⚠
Returns which device is currently being used.
cudaGetDeviceCount⚠
Returns the number of compute-capable devices.
cudaGetDeviceFlags⚠
Gets the flags for the current device.
cudaGetDeviceProperties⚠
Returns information about the compute-device.
cudaGetDriverEntryPoint⚠Deprecated
Returns the requested driver API function pointer.
cudaGetDriverEntryPointByVersion⚠
Returns the requested driver API function pointer by CUDA version.
cudaGetErrorName⚠
Returns the string representation of an error code enum name.
cudaGetErrorString⚠
Returns the description string for an error code.
cudaGetExportTable⚠
impl_private
cudaGetFuncBySymbol⚠
Get pointer to device entry function that matches entry function symbolPtr.
cudaGetKernel⚠
Get pointer to device kernel that matches entry function entryFuncAddr.
cudaGetLastError⚠
Returns the last error from a runtime call.
cudaGetMipmappedArrayLevel⚠
Gets a mipmap level of a CUDA mipmapped array.
cudaGetSurfaceObjectResourceDesc⚠
Returns a surface object’s resource descriptor Returns the resource descriptor for the surface object specified by surfObject.
cudaGetSymbolAddress⚠
Finds the address associated with a CUDA symbol.
cudaGetSymbolSize⚠
Finds the size of the object associated with a CUDA symbol.
cudaGetTextureObjectResourceDesc⚠
Returns a texture object’s resource descriptor.
cudaGetTextureObjectResourceViewDesc⚠
Returns a texture object’s resource view descriptor.
cudaGetTextureObjectTextureDesc⚠
Returns a texture object’s texture descriptor.
cudaGraphAddChildGraphNode⚠
Creates a child graph node and adds it to a graph.
cudaGraphAddDependencies⚠
Adds dependency edges to a graph.
cudaGraphAddEmptyNode⚠
Creates an empty node and adds it to a graph.
cudaGraphAddEventRecordNode⚠
Creates an event record node and adds it to a graph.
cudaGraphAddEventWaitNode⚠
Creates an event wait node and adds it to a graph.
cudaGraphAddExternalSemaphoresSignalNode⚠
Creates an external semaphore signal node and adds it to a graph.
cudaGraphAddExternalSemaphoresWaitNode⚠
Creates an external semaphore wait node and adds it to a graph.
cudaGraphAddHostNode⚠
Creates a host execution node and adds it to a graph.
cudaGraphAddKernelNode⚠
Creates a kernel execution node and adds it to a graph.
cudaGraphAddMemAllocNode⚠
Creates an allocation node and adds it to a graph.
cudaGraphAddMemFreeNode⚠
Creates a memory free node and adds it to a graph.
cudaGraphAddMemcpyNode⚠
Creates a memcpy node and adds it to a graph.
cudaGraphAddMemcpyNode1D⚠
Creates a 1D memcpy node and adds it to a graph.
cudaGraphAddMemcpyNodeFromSymbol⚠
Creates a memcpy node to copy from a symbol on the device and adds it to a graph.
cudaGraphAddMemcpyNodeToSymbol⚠
Creates a memcpy node to copy to a symbol on the device and adds it to a graph.
cudaGraphAddMemsetNode⚠
Creates a memset node and adds it to a graph.
cudaGraphAddNode⚠
Adds a node of arbitrary type to a graph.
cudaGraphChildGraphNodeGetGraph⚠
Gets a handle to the embedded graph of a child graph node.
cudaGraphClone⚠
Clones a graph.
cudaGraphConditionalHandleCreate⚠
Create a conditional handle.
cudaGraphConditionalHandleCreate_v2⚠
Create a conditional handle.
cudaGraphCreate⚠
Creates a graph.
cudaGraphDebugDotPrint⚠
Write a DOT file describing graph structure.
cudaGraphDestroy⚠
Destroys a graph.
cudaGraphDestroyNode⚠
Remove a node from the graph.
cudaGraphEventRecordNodeGetEvent⚠
Returns the event associated with an event record node.
cudaGraphEventRecordNodeSetEvent⚠
Sets an event record node’s event.
cudaGraphEventWaitNodeGetEvent⚠
Returns the event associated with an event wait node.
cudaGraphEventWaitNodeSetEvent⚠
Sets an event wait node’s event.
cudaGraphExecChildGraphNodeSetParams⚠
Updates node parameters in the child graph node in the given graphExec.
cudaGraphExecDestroy⚠
Destroys an executable graph.
cudaGraphExecEventRecordNodeSetEvent⚠
Sets the event for an event record node in the given graphExec.
cudaGraphExecEventWaitNodeSetEvent⚠
Sets the event for an event wait node in the given graphExec.
cudaGraphExecExternalSemaphoresSignalNodeSetParams⚠
Sets the parameters for an external semaphore signal node in the given graphExec.
cudaGraphExecExternalSemaphoresWaitNodeSetParams⚠
Sets the parameters for an external semaphore wait node in the given graphExec.
cudaGraphExecGetFlags⚠
Query the instantiation flags of an executable graph.
cudaGraphExecGetId⚠
Returns the id of a given graph exec.
cudaGraphExecHostNodeSetParams⚠
Sets the parameters for a host node in the given graphExec.
cudaGraphExecKernelNodeSetParams⚠
Sets the parameters for a kernel node in the given graphExec.
cudaGraphExecMemcpyNodeSetParams⚠
Sets the parameters for a memcpy node in the given graphExec.
cudaGraphExecMemcpyNodeSetParams1D⚠
Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional copy.
cudaGraphExecMemcpyNodeSetParamsFromSymbol⚠
Sets the parameters for a memcpy node in the given graphExec to copy from a symbol on the device.
cudaGraphExecMemcpyNodeSetParamsToSymbol⚠
Sets the parameters for a memcpy node in the given graphExec to copy to a symbol on the device.
cudaGraphExecMemsetNodeSetParams⚠
Sets the parameters for a memset node in the given graphExec.
cudaGraphExecNodeSetParams⚠
Update a graph node’s parameters in an instantiated graph.
cudaGraphExecUpdate⚠
Check whether an executable graph can be updated with a graph and perform the update if possible.
cudaGraphExternalSemaphoresSignalNodeGetParams⚠
Returns an external semaphore signal node’s parameters.
cudaGraphExternalSemaphoresSignalNodeSetParams⚠
Sets an external semaphore signal node’s parameters.
cudaGraphExternalSemaphoresWaitNodeGetParams⚠
Returns an external semaphore wait node’s parameters.
cudaGraphExternalSemaphoresWaitNodeSetParams⚠
Sets an external semaphore wait node’s parameters.
cudaGraphGetEdges⚠
Returns a graph’s dependency edges.
cudaGraphGetId⚠
Returns the id of a given graph.
cudaGraphGetNodes⚠
Returns a graph’s nodes.
cudaGraphGetRootNodes⚠
Returns a graph’s root nodes.
cudaGraphHostNodeGetParams⚠
Returns a host node’s parameters.
cudaGraphHostNodeSetParams⚠
Sets a host node’s parameters.
cudaGraphInstantiate⚠
Creates an executable graph from a graph.
cudaGraphInstantiateWithFlags⚠
Creates an executable graph from a graph.
cudaGraphInstantiateWithParams⚠
Creates an executable graph from a graph.
cudaGraphKernelNodeCopyAttributes⚠
Copies attributes from source node to destination node.
cudaGraphKernelNodeGetAttribute⚠
Queries node attribute.
cudaGraphKernelNodeGetParams⚠
Returns a kernel node’s parameters.
cudaGraphKernelNodeSetAttribute⚠
Sets node attribute.
cudaGraphKernelNodeSetParams⚠
Sets a kernel node’s parameters.
cudaGraphLaunch⚠
Launches an executable graph in a stream.
cudaGraphMemAllocNodeGetParams⚠
Returns a memory alloc node’s parameters.
cudaGraphMemFreeNodeGetParams⚠
Returns a memory free node’s parameters.
cudaGraphMemcpyNodeGetParams⚠
Returns a memcpy node’s parameters.
cudaGraphMemcpyNodeSetParams⚠
Sets a memcpy node’s parameters.
cudaGraphMemcpyNodeSetParams1D⚠
Sets a memcpy node’s parameters to perform a 1-dimensional copy.
cudaGraphMemcpyNodeSetParamsFromSymbol⚠
Sets a memcpy node’s parameters to copy from a symbol on the device.
cudaGraphMemcpyNodeSetParamsToSymbol⚠
Sets a memcpy node’s parameters to copy to a symbol on the device.
cudaGraphMemsetNodeGetParams⚠
Returns a memset node’s parameters.
cudaGraphMemsetNodeSetParams⚠
Sets a memset node’s parameters.
cudaGraphNodeFindInClone⚠
Finds a cloned version of a node.
cudaGraphNodeGetContainingGraph⚠
Returns the graph that contains a given graph node.
cudaGraphNodeGetDependencies⚠
Returns a node’s dependencies.
cudaGraphNodeGetDependentNodes⚠
Returns a node’s dependent nodes.
cudaGraphNodeGetEnabled⚠
Query whether a node in the given graphExec is enabled.
cudaGraphNodeGetLocalId⚠
Returns the node id of a given graph node.
cudaGraphNodeGetParams⚠
Returns a graph node’s parameters.
cudaGraphNodeGetToolsId⚠
Returns an id used by tools to identify a given node.
cudaGraphNodeGetType⚠
Returns a node’s type.
cudaGraphNodeSetEnabled⚠
Enables or disables the specified node in the given graphExec.
cudaGraphNodeSetParams⚠
Update a graph node’s parameters.
cudaGraphReleaseUserObject⚠
Release a user object reference from a graph.
cudaGraphRemoveDependencies⚠
Removes dependency edges from a graph.
cudaGraphRetainUserObject⚠
Retain a reference to a user object from a graph.
cudaGraphUpload⚠
Uploads an executable graph in a stream.
cudaGraphicsMapResources⚠
Map graphics resources for access by CUDA.
cudaGraphicsResourceGetMappedMipmappedArray⚠
Get a mipmapped array through which to access a mapped graphics resource.
cudaGraphicsResourceGetMappedPointer⚠
Get an device pointer through which to access a mapped graphics resource.
cudaGraphicsResourceSetMapFlags⚠
Set usage flags for mapping a graphics resource.
cudaGraphicsSubResourceGetMappedArray⚠
Get an array through which to access a subresource of a mapped graphics resource.
cudaGraphicsUnmapResources⚠
Unmap graphics resources.
cudaGraphicsUnregisterResource⚠
Unregisters a graphics resource for access by CUDA.
cudaGreenCtxCreate⚠
Creates a green context with a specified set of resources.
cudaHostAlloc⚠
Allocates page-locked memory on the host.
cudaHostGetDevicePointer⚠
Passes back device pointer of mapped host memory allocated by cudaHostAlloc or registered by cudaHostRegister.
cudaHostGetFlags⚠
Passes back flags used to allocate pinned host memory allocated by cudaHostAlloc.
cudaHostRegister⚠
Registers an existing host memory range for use by CUDA.
cudaHostUnregister⚠
Unregisters a memory range that was registered with cudaHostRegister.
cudaImportExternalMemory⚠
Imports an external memory object.
cudaImportExternalSemaphore⚠
Imports an external semaphore.
cudaInitDevice⚠
Initialize device to be used for GPU executions.
cudaIpcCloseMemHandle⚠
Attempts to close memory mapped with cudaIpcOpenMemHandle.
cudaIpcGetEventHandle⚠
Gets an interprocess handle for a previously allocated event.
cudaIpcGetMemHandle⚠
Gets an interprocess memory handle for an existing device memory allocation.
cudaIpcOpenEventHandle⚠
Opens an interprocess event handle for use in the current process.
cudaIpcOpenMemHandle⚠
Opens an interprocess memory handle exported from another process and returns a device pointer usable in the local process.
cudaKernelSetAttributeForDevice⚠
Sets information about a kernel.
cudaLaunchCooperativeKernel⚠
Launches a device function where thread blocks can cooperate and synchronize as they execute.
cudaLaunchHostFunc⚠
Enqueues a host function call in a stream.
cudaLaunchHostFunc_v2⚠
Enqueues a host function call in a stream.
cudaLaunchKernel⚠
Launches a device function.
cudaLaunchKernelExC⚠
Launches a CUDA function with launch-time configuration.
cudaLibraryEnumerateKernels⚠
Retrieve the kernel handles within a library.
cudaLibraryGetGlobal⚠
Returns a global device pointer.
cudaLibraryGetKernel⚠
Returns a kernel handle.
cudaLibraryGetKernelCount⚠
Returns the number of kernels within a library.
cudaLibraryGetManaged⚠
Returns a pointer to managed memory.
cudaLibraryGetUnifiedFunction⚠
Returns a pointer to a unified function.
cudaLibraryLoadData⚠
Load a library with specified code and options.
cudaLibraryLoadFromFile⚠
Load a library with specified file and options.
cudaLibraryUnload⚠
Unloads a library.
cudaLogsCurrent⚠
Sets log iterator to point to the end of log buffer, where the next message would be written.
cudaLogsDumpToFile⚠
Dump accumulated driver logs into a file.
cudaLogsDumpToMemory⚠
Dump accumulated driver logs into a buffer.
cudaLogsRegisterCallback⚠
Register a callback function to receive error log messages.
cudaLogsUnregisterCallback⚠
Unregister a log message callback.
cudaMalloc⚠
Allocate memory on the device.
cudaMalloc3D⚠
Allocates logical 1D, 2D, or 3D memory objects on the device.
cudaMalloc3DArray⚠
Allocate an array on the device.
cudaMallocArray⚠
Allocate an array on the device.
cudaMallocAsync⚠
Allocates memory with stream ordered semantics.
cudaMallocFromPoolAsync⚠
Allocates memory from a specified pool with stream ordered semantics.
cudaMallocHost⚠
Allocates page-locked memory on the host.
cudaMallocManaged⚠
Allocates memory that will be automatically managed by the Unified Memory system.
cudaMallocMipmappedArray⚠
Allocate a mipmapped array on the device.
cudaMallocPitch⚠
Allocates pitched memory on the device.
cudaMemAdvise⚠
Advise about the usage of a given memory range.
cudaMemDiscardAndPrefetchBatchAsync⚠
Performs a batch of memory discards and prefetches asynchronously.
cudaMemDiscardBatchAsync⚠
Performs a batch of memory discards asynchronously.
cudaMemGetDefaultMemPool⚠
Returns the default memory pool for a given location and allocation type.
cudaMemGetInfo⚠
Gets free and total device memory.
cudaMemGetLocationInfo⚠
Gets location information for a memory address range.
cudaMemGetMemPool⚠
Gets the current memory pool for a given memory location and allocation type.
cudaMemPoolCreate⚠
Creates a memory pool.
cudaMemPoolDestroy⚠
Destroys the specified memory pool.
cudaMemPoolExportPointer⚠
Export data to share a memory pool allocation between processes.
cudaMemPoolExportToShareableHandle⚠
Exports a memory pool to the requested handle type.
cudaMemPoolGetAccess⚠
Returns the accessibility of a pool from a device.
cudaMemPoolGetAttribute⚠
Gets attributes of a memory pool.
cudaMemPoolImportFromShareableHandle⚠
imports a memory pool from a shared handle.
cudaMemPoolImportPointer⚠
Import a memory pool allocation from another process.
cudaMemPoolSetAccess⚠
Controls visibility of pools between devices.
cudaMemPoolSetAttribute⚠
Sets attributes of a memory pool.
cudaMemPoolTrimTo⚠
Tries to release memory back to the OS.
cudaMemPrefetchAsync⚠
Prefetches memory to the specified destination location.
cudaMemPrefetchBatchAsync⚠
Performs a batch of memory prefetches asynchronously.
cudaMemRangeGetAttribute⚠
Query an attribute of a given memory range.
cudaMemRangeGetAttributes⚠
Query attributes of a given memory range.
cudaMemSetMemPool⚠
Sets the current memory pool for a memory location and allocation type.
cudaMemcpy⚠
Copies data between host and device.
cudaMemcpy2D⚠
Copies data between host and device.
cudaMemcpy2DArrayToArray⚠
Copies data between host and device.
cudaMemcpy2DAsync⚠
Copies data between host and device.
cudaMemcpy2DFromArray⚠
Copies data between host and device.
cudaMemcpy2DFromArrayAsync⚠
Copies data between host and device.
cudaMemcpy2DToArray⚠
Copies data between host and device.
cudaMemcpy2DToArrayAsync⚠
Copies data between host and device.
cudaMemcpy3D⚠
Copies data between 3D objects.
cudaMemcpy3DAsync⚠
Copies data between 3D objects.
cudaMemcpy3DBatchAsync⚠
Performs a batch of 3D memory copies asynchronously.
cudaMemcpy3DPeer⚠
Copies memory between devices.
cudaMemcpy3DPeerAsync⚠
Copies memory between devices asynchronously.
cudaMemcpy3DWithAttributesAsync⚠
Performs 3D asynchronous memory copy with the specified attributes.
cudaMemcpyArrayToArray⚠Deprecated
Copies data between host and device.
cudaMemcpyAsync⚠
Copies data between host and device.
cudaMemcpyBatchAsync⚠
Performs a batch of memory copies asynchronously.
cudaMemcpyFromArray⚠Deprecated
Copies data between host and device.
cudaMemcpyFromArrayAsync⚠Deprecated
Copies data between host and device.
cudaMemcpyFromSymbol⚠
Copies data from the given symbol on the device.
cudaMemcpyFromSymbolAsync⚠
Copies data from the given symbol on the device.
cudaMemcpyPeer⚠
Copies memory between two devices.
cudaMemcpyPeerAsync⚠
Copies memory between two devices asynchronously.
cudaMemcpyToArray⚠Deprecated
Copies data between host and device.
cudaMemcpyToArrayAsync⚠Deprecated
Copies data between host and device.
cudaMemcpyToSymbol⚠
Copies data to the given symbol on the device.
cudaMemcpyToSymbolAsync⚠
Copies data to the given symbol on the device.
cudaMemcpyWithAttributesAsync⚠
Performs asynchronous memory copy operation with the specified attributes.
cudaMemset⚠
Initializes or sets device memory to a value.
cudaMemset2D⚠
Initializes or sets device memory to a value.
cudaMemset2DAsync⚠
Initializes or sets device memory to a value.
cudaMemset3D⚠
Initializes or sets device memory to a value.
cudaMemset3DAsync⚠
Initializes or sets device memory to a value.
cudaMemsetAsync⚠
Initializes or sets device memory to a value.
cudaMipmappedArrayGetMemoryRequirements⚠
Returns the memory requirements of a CUDA mipmapped array.
cudaMipmappedArrayGetSparseProperties⚠
Returns the layout properties of a sparse CUDA mipmapped array.
cudaOccupancyAvailableDynamicSMemPerBlock⚠
Returns dynamic shared memory available per block when launching numBlocks blocks on SM.
cudaOccupancyMaxActiveBlocksPerMultiprocessor⚠
Returns occupancy for a device function.
cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags⚠
Returns occupancy for a device function with the specified flags.
cudaOccupancyMaxActiveClusters⚠
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.
cudaOccupancyMaxPotentialClusterSize⚠
Given the kernel function (func) and launch configuration (config), return the maximum cluster size in *clusterSize.
cudaPeekAtLastError⚠
Returns the last error from a runtime call.
cudaPointerGetAttributes⚠
Returns attributes about a specified pointer.
cudaRuntimeGetVersion⚠
Returns the CUDA Runtime version.
cudaSetDevice⚠
Set device to be used for GPU executions.
cudaSetDeviceFlags⚠
Sets flags to be used for device executions.
cudaSetValidDevices⚠
Set a list of devices that can be used for CUDA.
cudaSignalExternalSemaphoresAsync⚠
Signals a set of external semaphore objects.
cudaStreamAddCallback⚠
Add a callback to a compute stream.
cudaStreamAttachMemAsync⚠
Attach memory to a stream asynchronously.
cudaStreamBeginCapture⚠
Begins graph capture on a stream.
cudaStreamBeginCaptureToGraph⚠
Begins graph capture on a stream to an existing graph.
cudaStreamBeginRecaptureToGraph⚠
Begin graph capture on a stream to an existing graph.
cudaStreamCopyAttributes⚠
Copies attributes from source stream to destination stream.
cudaStreamCreate⚠
Create an asynchronous stream.
cudaStreamCreateWithFlags⚠
Create an asynchronous stream.
cudaStreamCreateWithPriority⚠
Create an asynchronous stream with the specified priority.
cudaStreamDestroy⚠
Destroys and cleans up an asynchronous stream.
cudaStreamEndCapture⚠
Ends capture on a stream, returning the captured graph.
cudaStreamGetAttribute⚠
Queries stream attribute.
cudaStreamGetCaptureInfo⚠
Query a stream’s capture state.
cudaStreamGetDevResource⚠
Get stream resources.
cudaStreamGetDevice⚠
Query the device of a stream.
cudaStreamGetFlags⚠
Query the flags of a stream.
cudaStreamGetId⚠
Query the Id of a stream.
cudaStreamGetPriority⚠
Query the priority of a stream.
cudaStreamIsCapturing⚠
Returns a stream’s capture status.
cudaStreamQuery⚠
Queries an asynchronous stream for completion status.
cudaStreamSetAttribute⚠
Sets stream attribute.
cudaStreamSynchronize⚠
Waits for stream tasks to complete.
cudaStreamUpdateCaptureDependencies⚠
Update the set of dependencies in a capturing stream.
cudaStreamWaitEvent⚠
Make a compute stream wait on an event.
cudaThreadExchangeStreamCaptureMode⚠
Swaps the stream capture interaction mode for a thread.
cudaUserObjectCreate⚠
Create a user object.
cudaUserObjectRelease⚠
Release a reference to a user object.
cudaUserObjectRetain⚠
Retain a reference to a user object.
cudaWaitExternalSemaphoresAsync⚠
Waits on a set of external semaphore objects.

Type Aliases§

cudaArray_const_t
Pointer to a CUDA array handle in this runtime binding.
cudaDevResource
A tagged union describing different resources identified by the type field.
cudaDevResourceDesc_t
An opaque descriptor handle.
cudaDevSmResourceGroupParams
Input data for splitting SMs.
cudaExecutionContext_t
An opaque handle to a CUDA execution context.
cudaGraphDeviceNode_t
CUDA device node handle for device-side node update.
cudaGraphRecaptureCallback_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.
cudaGraphRecaptureStatus
Stream capture status used by graph recapture operations.
cudaLaunchAttribute
Launch attribute.
cudaLaunchConfig_t
CUDA extensible launch configuration.
cudaLaunchMemSyncDomainMap
Memory Synchronization Domain map.
cudaLogIterator
Native cursor used to iterate through CUDA runtime log messages.
cudaLogsCallbackHandle
Opaque registration handle returned by the CUDA runtime logging callback API.
cudaLogsCallback_t
Type of public error reporting callback functions.
cudaMipmappedArray_const_t
Pointer to an immutable native CUDA mipmapped-array object.
cudaStreamCallback_t
Type of stream callback functions.
cudaSurfaceObject_t
An opaque value that represents a CUDA Surface object.
cudaTextureObject_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§

cudaDevResource_st__bindgen_ty_1
Anonymous native union in cudaDevResource_st. Its members share the same storage.
cudaExternalMemoryHandleDesc__bindgen_ty_1
Native layout of the handle member of cudaExternalMemoryHandleDesc.
cudaExternalSemaphoreHandleDesc__bindgen_ty_1
Native layout of the handle member of cudaExternalSemaphoreHandleDesc.
cudaExternalSemaphoreSignalParams__bindgen_ty_1__bindgen_ty_2
Native layout of the nvSciSync member of cudaExternalSemaphoreSignalParams__bindgen_ty_1.
cudaExternalSemaphoreWaitParams__bindgen_ty_1__bindgen_ty_2
Native layout of the nvSciSync member of cudaExternalSemaphoreWaitParams__bindgen_ty_1.
cudaPointerAttributes__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.