|
|
CUDA Runtime API Reference Manual, Release 13.5
cudaEventRecordExternal
Event is captured in the graph as an external event node when performing stream capture.
cudaEventWaitDefault
Default event wait flag.
cudaEventWaitExternal
Event is captured in the graph as an external event node when performing stream capture.
cudaExternalMemoryDedicated
Indicates that the external memory object is a dedicated resource.
cudaExternalSemaphoreSignalSkipNvSciBufMemSync
When the /p flags parameter of cudaExternalSemaphoreSignalParams contains this flag, it indi-
cates that signaling an external semaphore object should skip performing appropriate memory
synchronization operations over all the external memory objects that are imported as cudaEx-
ternalMemoryHandleTypeNvSciBuf , which otherwise are performed by default to ensure data
coherency with other importers of the same NvSciBuf memory objects.
cudaExternalSemaphoreWaitSkipNvSciBufMemSync
When the /p flags parameter of cudaExternalSemaphoreWaitParams contains this flag, it indi-
cates that waiting an external semaphore object should skip performing appropriate memory
synchronization operations over all the external memory objects that are imported as cudaEx-
ternalMemoryHandleTypeNvSciBuf , which otherwise are performed by default to ensure data
coherency with other importers of the same NvSciBuf memory objects.
cudaGraphKernelNodePortDefault
This port activates when the kernel has finished executing.
cudaGraphKernelNodePortLaunchCompletion
This port activates when all blocks of the kernel have begun execution.
cudaGraphKernelNodePortProgrammatic
This port activates when all blocks of the kernel have performed cudaTriggerProgrammati-
cLaunchCompletion() or have terminated.
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.
6.2. Data types used by CUDA Runtime
73
CUDA Runtime API Reference Manual, Release 13.5
cudaInitDeviceFlagsAreValid
Tell the CUDA runtime that DeviceFlags is being set in cudaInitDevice call.
cudaInvalidDeviceId
Device id that represents an invalid device.
cudaIpcMemLazyEnablePeerAccess
Automatically enable peer access between remote devices as needed.
cudaKernelNodeAttrID
cudaKernelNodeAttrValue
cudaKernelNodeAttributeAccessPolicyWindow
cudaKernelNodeAttributeClusterDimension
cudaKernelNodeAttributeClusterSchedulingPolicyPreference
cudaKernelNodeAttributeCooperative
cudaKernelNodeAttributeDeviceUpdatableKernelNode
cudaKernelNodeAttributeMemSyncDomain
cudaKernelNodeAttributeMemSyncDomainMap
cudaKernelNodeAttributeNvlinkUtilCentricScheduling
cudaKernelNodeAttributePreferredSharedMemoryCarveout
cudaKernelNodeAttributePriority
cudaMemAttachGlobal
Memory can be accessed by any stream on any device.
cudaMemAttachHost
Memory cannot be accessed by any stream on any device.
cudaMemAttachSingle
Memory can only be accessed by a single stream on the associated device.
cudaMemPoolCreateUsageHwDecompress
This flag, if set, indicates that the memory will be used as a buffer for hardware accelerated
decompression.
cudaNvSciSyncAttrSignal
When /p flags of cudaDeviceGetNvSciSyncAttributes is set to this, it indicates that application
need signaler specific NvSciSyncAttr to be filled by cudaDeviceGetNvSciSyncAttributes .
74
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
cudaNvSciSyncAttrWait
When /p flags of cudaDeviceGetNvSciSyncAttributes is set to this, it indicates that application
need waiter specific NvSciSyncAttr to be filled by cudaDeviceGetNvSciSyncAttributes .
cudaOccupancyDefault
Default behavior.
cudaOccupancyDisableCachingOverride
Assume global caching is enabled and cannot be automatically turned off.
cudaPeerAccessDefault
Default peer addressing enable flag.
cudaStreamAttrID
cudaStreamAttrValue
cudaStreamAttributeAccessPolicyWindow
cudaStreamAttributeMemSyncDomain
cudaStreamAttributeMemSyncDomainMap
cudaStreamAttributePriority
cudaStreamAttributeSynchronizationPolicy
cudaStreamDefault
Default stream flag.
cudaStreamLegacy
Legacy stream handle.
cudaStreamNonBlocking
Stream does not synchronize with stream 0 (the NULL stream)
cudaStreamPerThread
Per-thread stream handle.
cudaSurfaceType1D
cudaSurfaceType1DLayered
cudaSurfaceType2D
cudaSurfaceType2DLayered
cudaSurfaceType3D
cudaSurfaceTypeCubemap
6.2. Data types used by CUDA Runtime
75
CUDA Runtime API Reference Manual, Release 13.5
cudaSurfaceTypeCubemapLayered
cudaTextureType1D
cudaTextureType1DLayered
cudaTextureType2D
cudaTextureType2DLayered
cudaTextureType3D
cudaTextureTypeCubemap
cudaTextureTypeCubemapLayered
Enumerations
cudaAccessProperty
Specifies performance hint with cudaAccessPolicyWindow for hitProp and missProp members.
cudaAsyncNotificationType
Types of async notification that can occur.
cudaAtomicOperation
CUDA-valid Atomic Operations.
cudaAtomicOperationCapability
CUDA-valid Atomic Operation capabilities.
cudaCGScope
CUDA cooperative group scope.
cudaChannelFormatKind
Channel format kind.
cudaClusterSchedulingPolicy
Cluster scheduling policies.
cudaComputeMode
CUDA device compute modes.
cudaDevResourceType
Type of resource.
cudaDevSmResourceGroup_flags
Flags for a CUdevSmResource group.
cudaDevSmResourceSplitByCount_flags
cudaDevWorkqueueConfigScope
Sharing scope for workqueues.
76
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
cudaDeviceAttr
CUDA device attributes.
cudaDeviceNumaConfig
CUDA device NUMA config.
cudaDeviceP2PAttr
CUDA device P2P attributes.
cudaDriverEntryPointQueryResult
Enum for status from obtaining driver entry points, used with ::cudaApiGetDriverEntryPoint.
cudaEglColorFormat
CUDA EGL Color Format - The different planar and multiplanar formats currently supported for
CUDA_EGL interops.
cudaEglFrameType
CUDA EglFrame type - array or pointer.
cudaEglResourceLocationFlags
Resource location flags- sysmem or vidmem.
cudaError
impl_private
cudaExternalMemoryHandleType
External memory handle types.
cudaExternalSemaphoreHandleType
External semaphore handle types.
cudaFabricOpStatusInfo
Fabric operation status info.
cudaFabricOpStatusSource
Fabric operation status source.
cudaFlushGPUDirectRDMAWritesOptions
CUDA GPUDirect RDMA flush writes APIs supported on the device.
cudaFlushGPUDirectRDMAWritesScope
CUDA GPUDirect RDMA flush writes scopes.
cudaFlushGPUDirectRDMAWritesTarget
CUDA GPUDirect RDMA flush writes targets.
cudaFuncAttribute
CUDA function attributes that can be set using cudaFuncSetAttribute .
cudaFuncCache
CUDA function cache configurations.
cudaGPUDirectRDMAWritesOrdering
CUDA GPUDirect RDMA flush writes ordering features of the device.
cudaGetDriverEntryPointFlags
Flags to specify search options to be used with cudaGetDriverEntryPoint For more details see
::cuGetProcAddress.
cudaGraphChildGraphNodeOwnership
Child graph node ownership.
cudaGraphConditionalHandleFlags
6.2. Data types used by CUDA Runtime
77
CUDA Runtime API Reference Manual, Release 13.5
cudaGraphConditionalNodeType
CUDA conditional node types.
cudaGraphDebugDotFlags
CUDA Graph debug write options.
cudaGraphDependencyType
Type annotations that can be applied to graph edges as part of cudaGraphEdgeData .
cudaGraphExecUpdateResult
CUDA Graph Update error types.
cudaGraphInstantiateFlags
Flags for instantiating a graph.
cudaGraphInstantiateResult
Graph instantiation results.
cudaGraphKernelNodeField
Specifies the field to update when performing multiple node updates from the device.
cudaGraphMemAttributeType
Graph memory attributes.
cudaGraphNodeType
CUDA Graph node types.
cudaGraphRecaptureStatus
Possible recapture statuses that can be returned to the user callback.
cudaGraphicsCubeFace
CUDA graphics interop array indices for cube maps.
cudaGraphicsMapFlags
CUDA graphics interop map flags.
cudaGraphicsRegisterFlags
CUDA graphics interop register flags.
cudaHostTaskSyncMode
Flags for host task sync mode.
cudaJitOption
Online compiler and linker options.
cudaJit_CacheMode
Caching modes for dlcm.
cudaJit_Fallback
Cubin matching fallback strategies.
cudaKernelFunctionType
CUDA Kernel Function Handle Type.
cudaLaunchAttributeID
Launch attributes enum; used as id field of cudaLaunchAttribute .
cudaLaunchAttributePortableClusterMode
Enum for defining applicability of portable cluster size, used with cudaLaunchKernelEx .
cudaLaunchMemSyncDomain
Memory Synchronization Domain.
78
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
cudaLibraryOption
Library options to be specified with cudaLibraryLoadData() or cudaLibraryLoadFromFile()
cudaLimit
CUDA Limits.
cudaLogLevel
cudaMemAccessFlags
Specifies the memory protection flags for mapping.
cudaMemAllocationHandleType
Flags for specifying particular handle types.
cudaMemAllocationType
Defines the allocation types available.
cudaMemLocationType
Specifies the type of location.
cudaMemPoolAttr
CUDA memory pool attributes.
cudaMemRangeAttribute
CUDA range attributes.
cudaMemcpy3DOperandType
These flags allow applications to convey the operand type for individual copies specified in cud-
aMemcpy3DBatchAsync .
cudaMemcpyFlags
Flags to specify for copies within a batch.
cudaMemcpyKind
CUDA memory copy types.
cudaMemcpySrcAccessOrder
cudaMemoryAdvise
CUDA Memory Advise values.
cudaMemoryType
CUDA memory types.
cudaResourceType
CUDA resource types.
cudaResourceViewFormat
CUDA texture resource view formats.
cudaSharedCarveout
Shared memory carveout configurations.
cudaSharedMemConfig
CUDA shared memory configuration.
cudaSharedMemoryMode
Shared memory related attributes for use with ::cuLaunchKernelEx.
cudaStreamCaptureMode
Possible modes for stream capture thread interactions.
6.2. Data types used by CUDA Runtime
79
CUDA Runtime API Reference Manual, Release 13.5
cudaStreamCaptureStatus
Possible stream capture statuses returned by cudaStreamIsCapturing .
cudaStreamUpdateCaptureDependenciesFlags
Flags for cudaStreamUpdateCaptureDependencies .
cudaSurfaceBoundaryMode
CUDA Surface boundary modes.
cudaSurfaceFormatMode
CUDA Surface format modes.
cudaSynchronizationPolicy
cudaTextureAddressMode
CUDA texture address modes.
cudaTextureFilterMode
CUDA texture filter modes.
cudaTextureReadMode
CUDA texture read modes.
cudaUserObjectFlags
Flags for user objects for graphs.
cudaUserObjectRetainFlags
Flags for retaining user object references for graphs.
Structs
CUuuid_st
cudaAccessPolicyWindow
Specifies an access policy for a window, a contiguous extent of memory beginning at base_ptr
and ending at base_ptr + num_bytes.
cudaArrayMemoryRequirements
CUDA array and CUDA mipmapped array memory requirements.
cudaArraySparseProperties
Sparse CUDA array and CUDA mipmapped array properties.
cudaAsyncNotificationInfo_t
Information describing an async notification event.
cudaChannelFormatDesc
CUDA Channel format descriptor.
cudaChildGraphNodeParams
Child graph node parameters.
cudaConditionalNodeParams
CUDA conditional node parameters.
cudaDevResource
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.
80
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
cudaDevSmResourceGroupParams
Input data for splitting SMs.
cudaDevWorkqueueConfigResource
Data for workqueue configuration related resources.
cudaDevWorkqueueResource
Handle to a pre-existing workqueue related resource.
cudaDeviceProp
CUDA device properties.
cudaEglFrame
CUDA EGLFrame Descriptor - structure defining one frame of EGL.
cudaEglPlaneDesc
CUDA EGL Plane Descriptor - structure defining each plane of a CUDA EGLFrame.
cudaEventRecordNodeParams
Event record node parameters.
cudaEventWaitNodeParams
Event wait node parameters.
cudaExtent
CUDA extent.
cudaExternalMemoryBufferDesc
External memory buffer descriptor.
cudaExternalMemoryHandleDesc
External memory handle descriptor.
cudaExternalMemoryMipmappedArrayDesc
External memory mipmap descriptor.
cudaExternalSemaphoreHandleDesc
External semaphore handle descriptor.
cudaExternalSemaphoreSignalNodeParams
External semaphore signal node parameters.
cudaExternalSemaphoreSignalNodeParamsV2
External semaphore signal node parameters.
cudaExternalSemaphoreSignalParams
External semaphore signal parameters, compatible with driver type.
cudaExternalSemaphoreWaitNodeParams
External semaphore wait node parameters.
cudaExternalSemaphoreWaitNodeParamsV2
External semaphore wait node parameters.
cudaExternalSemaphoreWaitParams
External semaphore wait parameters, compatible with driver type.
cudaFuncAttributes
CUDA function attributes.
cudaGraphEdgeData
Optional annotation for edges in a CUDA graph.
6.2. Data types used by CUDA Runtime
81
CUDA Runtime API Reference Manual, Release 13.5
cudaGraphExecUpdateResultInfo
Result information returned by cudaGraphExecUpdate.
cudaGraphInstantiateParams
Graph instantiation parameters.
cudaGraphKernelNodeUpdate
Struct to specify a single node update to pass as part of a larger array to cudaGraphKernelNode-
UpdatesApply .
cudaGraphNodeParams
Graph node parameters.
cudaHostNodeParams
CUDA host node parameters.
cudaHostNodeParamsV2
CUDA host node parameters.
cudaIpcEventHandle_t
CUDA IPC event handle.
cudaIpcMemHandle_t
CUDA IPC memory handle.
cudaKernelNodeParams
CUDA GPU kernel node parameters.
cudaKernelNodeParamsV2
CUDA GPU kernel node parameters.
cudaLaunchAttribute
Launch attribute.
cudaLaunchConfig_t
CUDA extensible launch configuration.
cudaLaunchMemSyncDomainMap
Memory Synchronization Domain map.
cudaMemAccessDesc
Memory access descriptor.
cudaMemAllocNodeParams
Memory allocation node parameters.
cudaMemAllocNodeParamsV2
Memory allocation node parameters.
cudaMemFabricHandle_t
cudaMemFreeNodeParams
Memory free node parameters.
cudaMemLocation
Specifies a memory location.
cudaMemPoolProps
Specifies the properties of allocations made from the pool.
cudaMemPoolPtrExportData
Opaque data for exporting a pool allocation.
82
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
cudaMemcpy3DBatchOp
cudaMemcpy3DOperand
Struct representing an operand for copy with cudaMemcpy3DBatchAsync .
cudaMemcpy3DParms
CUDA 3D memory copying parameters.
cudaMemcpy3DPeerParms
CUDA 3D cross-device memory copying parameters.
cudaMemcpyAttributes
Attributes specific to copies within a batch.
cudaMemcpyBatchNodeParams
CUDA Batch Memcpy Node Parameters.
cudaMemcpyNodeParams
Memcpy node parameters.
cudaMemsetParams
CUDA Memset node parameters.
cudaMemsetParamsV2
CUDA Memset node parameters.
cudaOffset3D
Struct representing offset into a cudaArray_t in elements.
cudaPitchedPtr
CUDA Pitched memory pointer.
cudaPointerAttributes
CUDA pointer attributes.
cudaPos
CUDA 3D position.
cudaResourceDesc
CUDA resource descriptor.
cudaResourceViewDesc
CUDA resource view descriptor.
cudaTextureDesc
CUDA texture descriptor.
cudalibraryHostUniversalFunctionAndDataTable
Typedefs
cudaArray_const_t
CUDA array (as source copy argument)
cudaArray_t
CUDA array.
cudaAsyncCallback
6.2. Data types used by CUDA Runtime
83
CUDA Runtime API Reference Manual, Release 13.5
cudaAsyncCallbackHandle_t
CUDA async callback handle.
cudaDevResourceDesc_t
An opaque descriptor handle.
cudaEglStreamConnection
CUDA EGLSream Connection.
cudaError_t
CUDA Error types.
cudaEvent_t
CUDA event types.
cudaExecutionContext_t
An opaque handle to a CUDA execution context.
cudaExternalMemory_t
CUDA external memory.
cudaExternalSemaphore_t
CUDA external semaphore.
cudaFunction_t
CUDA function.
cudaGraphConditionalHandle
CUDA handle for conditional graph nodes.
cudaGraphDeviceNode_t
CUDA device node handle for device-side node update.
cudaGraphExec_t
CUDA executable (launchable) graph.
cudaGraphNode_t
CUDA graph node.
cudaGraph_t
CUDA graph.
cudaGraphicsResource_t
CUDA graphics resource types.
cudaHostFn_t
CUDA host function.
cudaKernel_t
CUDA kernel.
cudaLibrary_t
CUDA library.
cudaLogIterator
cudaLogsCallbackHandle
cudaMemPool_t
CUDA memory pool.
84
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
cudaMipmappedArray_const_t
CUDA mipmapped array (as source argument)
cudaMipmappedArray_t
CUDA mipmapped array.
cudaStream_t
CUDA stream.
cudaSurfaceObject_t
An opaque value that represents a CUDA Surface object.
cudaTextureObject_t
An opaque value that represents a CUDA texture object.
cudaUserObject_t
CUDA user object for graphs.
Unions
cudaLaunchAttributeValue
Launch attributes union; used as value field of cudaLaunchAttribute .
6.2.1. Macros
CUDART_CB __stdcall
CUDA_EGL_MAX_PLANES 3
Maximum number of planes per frame.
CUDA_IPC_HANDLE_SIZE 64
CUDA IPC Handle Size.
CU_UUID_HAS_BEEN_DEFINED
CUDA UUID types.
RESOURCE_ABI_BYTES 40
cudaArrayColorAttachment 0x20
Must be set in cudaExternalMemoryGetMappedMipmappedArray if the mipmapped array is used
as a color target in a graphics API.
cudaArrayCubemap 0x04
Must be set in cudaMalloc3DArray to create a cubemap CUDA array.
cudaArrayDefault 0x00
Default CUDA array allocation flag.
6.2. Data types used by CUDA Runtime
85
CUDA Runtime API Reference Manual, Release 13.5
cudaArrayDeferredMapping 0x80
Must be set in cudaMallocArray, cudaMalloc3DArray or cudaMallocMipmappedArray in order to
create a deferred mapping CUDA array or CUDA mipmapped array.
cudaArrayLayered 0x01
Must be set in cudaMalloc3DArray to create a layered CUDA array.
cudaArraySparse 0x40
Must be set in cudaMallocArray, cudaMalloc3DArray or cudaMallocMipmappedArray in order to
create a sparse CUDA array or CUDA mipmapped array.
cudaArraySparsePropertiesSingleMipTail 0x1
Indicates that the layered sparse CUDA array or CUDA mipmapped array has a single mip tail
region for all layers.
cudaArraySurfaceLoadStore 0x02
Must be set in cudaMallocArray or cudaMalloc3DArray in order to bind surfaces to the CUDA
array.
cudaArrayTextureGather 0x08
Must be set in cudaMallocArray or cudaMalloc3DArray in order to perform texture gather oper-
ations on the CUDA array.
cudaCpuDeviceId ((int)-1)
Device id that represents the CPU.
cudaDevSmResourceGroupLocalityDomainIdAny (~0u)
Special value for localityDomainId when cudaDevSmResourceSplit is called with cudaDevSmRe-
sourceGroupLocalityDomainId. Selects SMs from the union of all available locality domains in the
input SM resource. See also: cudaDevSmResourceGroupLocalityDomainId for the set of SMs in
a single locality domain.
cudaDeviceBlockingSync 0x04
Device flag - Use blocking synchronization.
Deprecated:
This flag was deprecated as of CUDA 4.0 and replaced with cudaDeviceScheduleBlock-
ingSync.
cudaDeviceLmemResizeToMax 0x10
Device flag - Keep local memory allocation after launch.
cudaDeviceMapHost 0x08
Device flag - Support mapped pinned allocations.
86
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
cudaDeviceMask 0xff
Device flags mask.
cudaDeviceScheduleAuto 0x00
Device flag - Automatic scheduling.
cudaDeviceScheduleBlockingSync 0x04
Device flag - Use blocking synchronization.
cudaDeviceScheduleMask 0x07
Device schedule flags mask.
cudaDeviceScheduleSpin 0x01
Device flag - Spin default scheduling.
cudaDeviceScheduleYield 0x02
Device flag - Yield default scheduling.
cudaDeviceSyncMemops 0x80
Device flag - Ensure synchronous memory operations on this context will synchronize.
cudaEventBlockingSync 0x01
Event uses blocking synchronization.
cudaEventDefault 0x00
Default event flag.
cudaEventDisableTiming 0x02
Event will not record timing data.
cudaEventInterprocess 0x04
Event is suitable for interprocess use.
cudaEventDisableTiming must be set
cudaEventRecordDefault 0x00
Default event record flag.
cudaEventRecordExternal 0x01
Event is captured in the graph as an external event node when performing stream capture.
cudaEventWaitDefault 0x00
Default event wait flag.
cudaEventWaitExternal 0x01
Event is captured in the graph as an external event node when performing stream capture.
6.2. Data types used by CUDA Runtime
87
CUDA Runtime API Reference Manual, Release 13.5
cudaExternalMemoryDedicated 0x1
Indicates that the external memory object is a dedicated resource.
cudaExternalSemaphoreSignalSkipNvSciBufMemSync 0x01
When the /p flags parameter of cudaExternalSemaphoreSignalParams contains this flag, it indi-
cates that signaling an external semaphore object should skip performing appropriate memory
synchronization operations over all the external memory objects that are imported as cudaEx-
ternalMemoryHandleTypeNvSciBuf, which otherwise are performed by default to ensure data co-
herency with other importers of the same NvSciBuf memory objects.
cudaExternalSemaphoreWaitSkipNvSciBufMemSync 0x02
When the /p flags parameter of cudaExternalSemaphoreWaitParams contains this flag, it indi-
cates that waiting an external semaphore object should skip performing appropriate memory
synchronization operations over all the external memory objects that are imported as cudaEx-
ternalMemoryHandleTypeNvSciBuf, which otherwise are performed by default to ensure data co-
herency with other importers of the same NvSciBuf memory objects.
cudaGraphKernelNodePortDefault 0
This port activates when the kernel has finished executing.
cudaGraphKernelNodePortLaunchCompletion 2
This port activates when all blocks of the kernel have begun execution.
See also cudaLaunchAttributeLaunchCompletionEvent.
cudaGraphKernelNodePortProgrammatic 1
This port activates when all blocks of the kernel have performed cudaTriggerProgrammati-
cLaunchCompletion() or have terminated.
It must be used with edge type cudaGraphDependencyTypeProgrammatic. See also cudaLaun-
chAttributeProgrammaticEvent.
cudaHostAllocDefault 0x00
Default page-locked allocation flag.
cudaHostAllocMapped 0x02
Map allocation into device space.
cudaHostAllocPortable 0x01
Pinned memory accessible by all CUDA contexts.
cudaHostAllocWriteCombined 0x04
Write-combined memory.
cudaHostRegisterDefault 0x00
Default host memory registration flag.
88
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
cudaHostRegisterIoMemory 0x04
Memory-mapped I/O space.
cudaHostRegisterMapped 0x02
Map registered memory into device space.
cudaHostRegisterPortable 0x01
Pinned memory accessible by all CUDA contexts.
cudaHostRegisterReadOnly 0x08
Memory-mapped read-only.
cudaInitDeviceFlagsAreValid 0x01
Tell the CUDA runtime that DeviceFlags is being set in cudaInitDevice call.
cudaInvalidDeviceId ((int)-2)
Device id that represents an invalid device.
cudaIpcMemLazyEnablePeerAccess 0x01
Automatically enable peer access between remote devices as needed.
cudaKernelNodeAttrID cudaLaunchAttributeID
cudaKernelNodeAttrValue cudaLaunchAttributeValue
cudaKernelNodeAttributeAccessPolicyWindow cudaLaunchAttributeAccessPolicyWindow
cudaKernelNodeAttributeClusterDimension cudaLaunchAttributeClusterDimension
cudaKernelNodeAttributeClusterSchedulingPolicyPreference
cudaLaunchAttributeClusterSchedulingPolicyPreference
cudaKernelNodeAttributeCooperative cudaLaunchAttributeCooperative
cudaKernelNodeAttributeDeviceUpdatableKernelNode
cudaLaunchAttributeDeviceUpdatableKernelNode
cudaKernelNodeAttributeMemSyncDomain cudaLaunchAttributeMemSyncDomain
cudaKernelNodeAttributeMemSyncDomainMap cudaLaunchAttributeMemSyncDomainMap
cudaKernelNodeAttributeNvlinkUtilCentricScheduling
cudaLaunchAttributeNvlinkUtilCentricScheduling
6.2. Data types used by CUDA Runtime
89
CUDA Runtime API Reference Manual, Release 13.5
cudaKernelNodeAttributePreferredSharedMemoryCarveout
cudaLaunchAttributePreferredSharedMemoryCarveout
cudaKernelNodeAttributePriority cudaLaunchAttributePriority
cudaMemAttachGlobal 0x01
Memory can be accessed by any stream on any device.
cudaMemAttachHost 0x02
Memory cannot be accessed by any stream on any device.
cudaMemAttachSingle 0x04
Memory can only be accessed by a single stream on the associated device.
cudaMemPoolCreateUsageHwDecompress 0x2
This flag, if set, indicates that the memory will be used as a buffer for hardware accelerated
decompression.
cudaNvSciSyncAttrSignal 0x1
When /p flags of cudaDeviceGetNvSciSyncAttributes is set to this, it indicates that application
need signaler specific NvSciSyncAttr to be filled by cudaDeviceGetNvSciSyncAttributes.
cudaNvSciSyncAttrWait 0x2
When /p flags of cudaDeviceGetNvSciSyncAttributes is set to this, it indicates that application
need waiter specific NvSciSyncAttr to be filled by cudaDeviceGetNvSciSyncAttributes.
cudaOccupancyDefault 0x00
Default behavior.
cudaOccupancyDisableCachingOverride 0x01
Assume global caching is enabled and cannot be automatically turned off.
cudaPeerAccessDefault 0x00
Default peer addressing enable flag.
cudaStreamAttrID cudaLaunchAttributeID
cudaStreamAttrValue cudaLaunchAttributeValue
cudaStreamAttributeAccessPolicyWindow cudaLaunchAttributeAccessPolicyWindow
cudaStreamAttributeMemSyncDomain cudaLaunchAttributeMemSyncDomain
cudaStreamAttributeMemSyncDomainMap cudaLaunchAttributeMemSyncDomainMap
90
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
cudaStreamAttributePriority cudaLaunchAttributePriority
cudaStreamAttributeSynchronizationPolicy cudaLaunchAttributeSynchronizationPolicy
cudaStreamDefault 0x00
Default stream flag.
cudaStreamLegacy ((cudaStream_t)0x1)
Legacy stream handle.
Stream handle that can be passed as a cudaStream_t to use an implicit stream with legacy syn-
chronization behavior.
See details of the synchronization behavior.
cudaStreamNonBlocking 0x01
Stream does not synchronize with stream 0 (the NULL stream)
cudaStreamPerThread ((cudaStream_t)0x2)
Per-thread stream handle.
Stream handle that can be passed as a cudaStream_t to use an implicit stream with per-thread
synchronization behavior.
See details of the synchronization behavior.
cudaSurfaceType1D 0x01
cudaSurfaceType1DLayered 0xF1
cudaSurfaceType2D 0x02
cudaSurfaceType2DLayered 0xF2
cudaSurfaceType3D 0x03
cudaSurfaceTypeCubemap 0x0C
cudaSurfaceTypeCubemapLayered 0xFC
cudaTextureType1D 0x01
cudaTextureType1DLayered 0xF1
cudaTextureType2D 0x02
6.2. Data types used by CUDA Runtime
91
CUDA Runtime API Reference Manual, Release 13.5
cudaTextureType2DLayered 0xF2
cudaTextureType3D 0x03
cudaTextureTypeCubemap 0x0C
cudaTextureTypeCubemapLayered 0xFC
6.2.2. Enumerations
enum cudaAccessProperty
Specifies performance hint with cudaAccessPolicyWindow for hitProp and missProp members.
Values:
enumerator cudaAccessPropertyNormal = 0
Normal cache persistence.
enumerator cudaAccessPropertyStreaming = 1
Streaming access is less likely to persit from cache.
enumerator cudaAccessPropertyPersisting = 2
Persisting access is more likely to persist in cache.
enum cudaAsyncNotificationType
Types of async notification that can occur.
Values:
enumerator cudaAsyncNotificationTypeOverBudget = 0x1
Sent when the process has exceeded its device memory budget.
enum cudaAtomicOperation
CUDA-valid Atomic Operations.
Values:
enumerator cudaAtomicOperationIntegerAdd = 0
enumerator cudaAtomicOperationIntegerMin = 1
enumerator cudaAtomicOperationIntegerMax = 2
enumerator cudaAtomicOperationIntegerIncrement = 3
92
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaAtomicOperationIntegerDecrement = 4
enumerator cudaAtomicOperationAnd = 5
enumerator cudaAtomicOperationOr = 6
enumerator cudaAtomicOperationXOR = 7
enumerator cudaAtomicOperationExchange = 8
enumerator cudaAtomicOperationCAS = 9
enumerator cudaAtomicOperationFloatAdd = 10
enumerator cudaAtomicOperationFloatMin = 11
enumerator cudaAtomicOperationFloatMax = 12
enum cudaAtomicOperationCapability
CUDA-valid Atomic Operation capabilities.
Values:
enumerator cudaAtomicCapabilitySigned = 1u << 0
enumerator cudaAtomicCapabilityUnsigned = 1u << 1
enumerator cudaAtomicCapabilityReduction = 1u << 2
enumerator cudaAtomicCapabilityScalar32 = 1u << 3
enumerator cudaAtomicCapabilityScalar64 = 1u << 4
enumerator cudaAtomicCapabilityScalar128 = 1u << 5
enumerator cudaAtomicCapabilityVector32x4 = 1u << 6
enum cudaCGScope
CUDA cooperative group scope.
Values:
enumerator cudaCGScopeInvalid = 0
Invalid cooperative group scope.
6.2. Data types used by CUDA Runtime
93
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaCGScopeGrid = 1
Scope represented by a grid_group.
enumerator cudaCGScopeReserved = 2
Reserved.
enum cudaChannelFormatKind
Channel format kind.
Values:
enumerator cudaChannelFormatKindSigned = 0
Signed channel format.
enumerator cudaChannelFormatKindUnsigned = 1
Unsigned channel format.
enumerator cudaChannelFormatKindFloat = 2
Float channel format.
enumerator cudaChannelFormatKindNone = 3
No channel format.
enumerator cudaChannelFormatKindNV12 = 4
Unsigned 8-bit integers, planar 4:2:0 YUV format.
enumerator cudaChannelFormatKindUnsignedNormalized8X1 = 5
1 channel unsigned 8-bit normalized integer
enumerator cudaChannelFormatKindUnsignedNormalized8X2 = 6
2 channel unsigned 8-bit normalized integer
enumerator cudaChannelFormatKindUnsignedNormalized8X4 = 7
4 channel unsigned 8-bit normalized integer
enumerator cudaChannelFormatKindUnsignedNormalized16X1 = 8
1 channel unsigned 16-bit normalized integer
enumerator cudaChannelFormatKindUnsignedNormalized16X2 = 9
2 channel unsigned 16-bit normalized integer
enumerator cudaChannelFormatKindUnsignedNormalized16X4 = 10
4 channel unsigned 16-bit normalized integer
enumerator cudaChannelFormatKindSignedNormalized8X1 = 11
1 channel signed 8-bit normalized integer
94
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaChannelFormatKindSignedNormalized8X2 = 12
2 channel signed 8-bit normalized integer
enumerator cudaChannelFormatKindSignedNormalized8X4 = 13
4 channel signed 8-bit normalized integer
enumerator cudaChannelFormatKindSignedNormalized16X1 = 14
1 channel signed 16-bit normalized integer
enumerator cudaChannelFormatKindSignedNormalized16X2 = 15
2 channel signed 16-bit normalized integer
enumerator cudaChannelFormatKindSignedNormalized16X4 = 16
4 channel signed 16-bit normalized integer
enumerator cudaChannelFormatKindUnsignedBlockCompressed1 = 17
4 channel unsigned normalized block-compressed (BC1 compression) format
enumerator cudaChannelFormatKindUnsignedBlockCompressed1SRGB = 18
4 channel unsigned normalized block-compressed (BC1 compression) format with sRGB en-
coding
enumerator cudaChannelFormatKindUnsignedBlockCompressed2 = 19
4 channel unsigned normalized block-compressed (BC2 compression) format
enumerator cudaChannelFormatKindUnsignedBlockCompressed2SRGB = 20
4 channel unsigned normalized block-compressed (BC2 compression) format with sRGB en-
coding
enumerator cudaChannelFormatKindUnsignedBlockCompressed3 = 21
4 channel unsigned normalized block-compressed (BC3 compression) format
enumerator cudaChannelFormatKindUnsignedBlockCompressed3SRGB = 22
4 channel unsigned normalized block-compressed (BC3 compression) format with sRGB en-
coding
enumerator cudaChannelFormatKindUnsignedBlockCompressed4 = 23
1 channel unsigned normalized block-compressed (BC4 compression) format
enumerator cudaChannelFormatKindSignedBlockCompressed4 = 24
1 channel signed normalized block-compressed (BC4 compression) format
enumerator cudaChannelFormatKindUnsignedBlockCompressed5 = 25
2 channel unsigned normalized block-compressed (BC5 compression) format
6.2. Data types used by CUDA Runtime
95
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaChannelFormatKindSignedBlockCompressed5 = 26
2 channel signed normalized block-compressed (BC5 compression) format
enumerator cudaChannelFormatKindUnsignedBlockCompressed6H = 27
3 channel unsigned half-float block-compressed (BC6H compression) format
enumerator cudaChannelFormatKindSignedBlockCompressed6H = 28
3 channel signed half-float block-compressed (BC6H compression) format
enumerator cudaChannelFormatKindUnsignedBlockCompressed7 = 29
4 channel unsigned normalized block-compressed (BC7 compression) format
enumerator cudaChannelFormatKindUnsignedBlockCompressed7SRGB = 30
4 channel unsigned normalized block-compressed (BC7 compression) format with sRGB en-
coding
enumerator cudaChannelFormatKindUnsignedNormalized1010102 = 31
4 channel unsigned normalized (10-bit, 10-bit, 10-bit, 2-bit) format
enumerator cudaChannelFormatKindUnsigned8Packed422 = 32
4 channel unsigned 8-bit packed format, with 4:2:2 sampling
enumerator cudaChannelFormatKindUnsigned8Packed444 = 33
4 channel unsigned 8-bit packed format, with 4:4:4 sampling
enumerator cudaChannelFormatKindUnsigned8SemiPlanar420 = 34
3 channel unsigned 8-bit semi-planar format, with 4:2:0 sampling
enumerator cudaChannelFormatKindUnsigned16SemiPlanar420 = 35
3 channel unsigned 16-bit semi-planar format, with 4:2:0 sampling
enumerator cudaChannelFormatKindUnsigned8SemiPlanar422 = 36
3 channel unsigned 8-bit semi-planar format, with 4:2:2 sampling
enumerator cudaChannelFormatKindUnsigned16SemiPlanar422 = 37
3 channel unsigned 16-bit semi-planar format, with 4:2:2 sampling
enumerator cudaChannelFormatKindUnsigned8SemiPlanar444 = 38
3 channel unsigned 8-bit semi-planar format, with 4:4:4 sampling
enumerator cudaChannelFormatKindUnsigned16SemiPlanar444 = 39
3 channel unsigned 16-bit semi-planar format, with 4:4:4 sampling
enumerator cudaChannelFormatKindUnsigned8Planar420 = 40
3 channel unsigned 8-bit planar format, with 4:2:0 sampling
96
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaChannelFormatKindUnsigned16Planar420 = 41
3 channel unsigned 16-bit planar format, with 4:2:0 sampling
enumerator cudaChannelFormatKindUnsigned8Planar422 = 42
3 channel unsigned 8-bit planar format, with 4:2:2 sampling
enumerator cudaChannelFormatKindUnsigned16Planar422 = 43
3 channel unsigned 16-bit planar format, with 4:2:2 sampling
enumerator cudaChannelFormatKindUnsigned8Planar444 = 44
3 channel unsigned 8-bit planar format, with 4:4:4 sampling
enumerator cudaChannelFormatKindUnsigned16Planar444 = 45
3 channel unsigned 16-bit planar format, with 4:4:4 sampling
enum cudaClusterSchedulingPolicy
Cluster scheduling policies.
These may be passed to cudaFuncSetAttribute
Values:
enumerator cudaClusterSchedulingPolicyDefault = 0
the default policy
enumerator cudaClusterSchedulingPolicySpread = 1
spread the blocks within a cluster to the SMs
enumerator cudaClusterSchedulingPolicyLoadBalancing = 2
allow the hardware to load-balance the blocks in a cluster to the SMs
enumerator cudaClusterSchedulingPolicyRubinDsmemLocality = 3
enum cudaComputeMode
CUDA device compute modes.
Values:
enumerator cudaComputeModeDefault = 0
Default compute mode (Multiple threads can use cudaSetDevice() with this device)
enumerator cudaComputeModeExclusive = 1
Compute-exclusive-thread mode (Only one thread in one process will be able to use cud-
aSetDevice() with this device)
enumerator cudaComputeModeProhibited = 2
Compute-prohibited mode (No threads can use cudaSetDevice() with this device)
6.2. Data types used by CUDA Runtime
97
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaComputeModeExclusiveProcess = 3
Compute-exclusive-process mode (Many threads in one process will be able to use cudaSet-
Device() with this device)
enum cudaDevResourceType
Type of resource.
Values:
enumerator cudaDevResourceTypeInvalid = 0
enumerator cudaDevResourceTypeSm = 1
Streaming multiprocessors related information.
enumerator cudaDevResourceTypeWorkqueueConfig = 1000
Workqueue configuration related information.
enumerator cudaDevResourceTypeWorkqueue = 10000
Pre-existing workqueue related information.
enum cudaDevSmResourceGroup_flags
Flags for a CUdevSmResource group.
Values:
enumerator cudaDevSmResourceGroupDefault = 0
enumerator cudaDevSmResourceGroupBackfill = 0x1 << 0
Treats constraints as a hint, ignoring them if necessary to reach the requested smCount.
Lets smCount be a non-multiple of coscheduledSmCount, filling the difference between SM
count and already assigned co-scheduled groupings with other SMs. When used with cu-
daDevSmResourceGroupLocalityDomainId, backfill fills up to the requested smCount using
the target locality domain first, then SMs not attributed to any locality domain, then SMs
from other locality domains. If no SMs can be found in the requested locality domain, cu-
daErrorInvalidResourceConfiguration is returned. When used with cudaDevSmResource-
GroupLocalityDomainNonPortableId, backfill follows the same behavior after first con-
suming all SMs from the target locality domain.
enumerator cudaDevSmResourceGroupLocalityDomainId = 0x1 << 1
The SMs must be located on a specific locality domain, specified by localityDomainId.
enumerator cudaDevSmResourceGroupLocalityDomainSupplementalSms = 0x1 << 2
Modifier
to
cudaDevSmResourceGroupLocalityDomainId
which
al-
lows
selection
of
SMs
in
the
locality
domain
exceeding
the
::cudaDe-
viceAttr::cudaDevAttrLocalityDomainMultiprocessorCount.
enum cudaDevSmResourceSplitByCount_flags
Values:
98
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaDevSmResourceSplitIgnoreSmCoscheduling = 0x1
enumerator cudaDevSmResourceSplitMaxPotentialClusterSize = 0x2
enum cudaDevWorkqueueConfigScope
Sharing scope for workqueues.
Values:
enumerator cudaDevWorkqueueConfigScopeDeviceCtx = 0
Use all shared workqueue resources on the device.
Default driver behaviour.
enumerator cudaDevWorkqueueConfigScopeGreenCtxBalanced = 1
When possible, use non-overlapping workqueue resources with other balanced green con-
texts.
enum cudaDeviceAttr
CUDA device attributes.
Values:
enumerator cudaDevAttrMaxThreadsPerBlock = 1
Maximum number of threads per block.
enumerator cudaDevAttrMaxBlockDimX = 2
Maximum block dimension X.
enumerator cudaDevAttrMaxBlockDimY = 3
Maximum block dimension Y.
enumerator cudaDevAttrMaxBlockDimZ = 4
Maximum block dimension Z.
enumerator cudaDevAttrMaxGridDimX = 5
Maximum grid dimension X.
enumerator cudaDevAttrMaxGridDimY = 6
Maximum grid dimension Y.
enumerator cudaDevAttrMaxGridDimZ = 7
Maximum grid dimension Z.
enumerator cudaDevAttrMaxSharedMemoryPerBlock = 8
Maximum shared memory available per block in bytes.
6.2. Data types used by CUDA Runtime
99
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaDevAttrTotalConstantMemory = 9
Memory available on device for constant variables in a CUDA C kernel in bytes.
enumerator cudaDevAttrWarpSize = 10
Warp size in threads.
enumerator cudaDevAttrMaxPitch = 11
Maximum pitch in bytes allowed by memory copies.
enumerator cudaDevAttrMaxRegistersPerBlock = 12
Maximum number of 32-bit registers available per block.
enumerator cudaDevAttrClockRate = 13
Peak clock frequency in kilohertz.
enumerator cudaDevAttrTextureAlignment = 14
Alignment requirement for textures.
enumerator cudaDevAttrGpuOverlap = 15
Device can possibly copy memory and execute a kernel concurrently.
enumerator cudaDevAttrMultiProcessorCount = 16
Number of multiprocessors on device.
enumerator cudaDevAttrKernelExecTimeout = 17
Specifies whether there is a run time limit on kernels.
enumerator cudaDevAttrIntegrated = 18
Device is integrated with host memory.
enumerator cudaDevAttrCanMapHostMemory = 19
Device can map host memory into CUDA address space.
enumerator cudaDevAttrComputeMode = 20
Compute mode (See cudaComputeMode for details)
enumerator cudaDevAttrMaxTexture1DWidth = 21
Maximum 1D texture width.
enumerator cudaDevAttrMaxTexture2DWidth = 22
Maximum 2D texture width.
enumerator cudaDevAttrMaxTexture2DHeight = 23
Maximum 2D texture height.
100
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaDevAttrMaxTexture3DWidth = 24
Maximum 3D texture width.
enumerator cudaDevAttrMaxTexture3DHeight = 25
Maximum 3D texture height.
enumerator cudaDevAttrMaxTexture3DDepth = 26
Maximum 3D texture depth.
enumerator cudaDevAttrMaxTexture2DLayeredWidth = 27
Maximum 2D layered texture width.
enumerator cudaDevAttrMaxTexture2DLayeredHeight = 28
Maximum 2D layered texture height.
enumerator cudaDevAttrMaxTexture2DLayeredLayers = 29
Maximum layers in a 2D layered texture.
enumerator cudaDevAttrSurfaceAlignment = 30
Alignment requirement for surfaces.
enumerator cudaDevAttrConcurrentKernels = 31
Device can possibly execute multiple kernels concurrently.
enumerator cudaDevAttrEccEnabled = 32
Device has ECC support enabled.
enumerator cudaDevAttrPciBusId = 33
PCI bus ID of the device.
enumerator cudaDevAttrPciDeviceId = 34
PCI device ID of the device.
enumerator cudaDevAttrTccDriver = 35
Device is using TCC driver model.
enumerator cudaDevAttrMemoryClockRate = 36
Peak memory clock frequency in kilohertz.
enumerator cudaDevAttrGlobalMemoryBusWidth = 37
Global memory bus width in bits.
enumerator cudaDevAttrL2CacheSize = 38
Size of L2 cache in bytes.
6.2. Data types used by CUDA Runtime
101
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaDevAttrMaxThreadsPerMultiProcessor = 39
Maximum resident threads per multiprocessor.
enumerator cudaDevAttrAsyncEngineCount = 40
Number of asynchronous engines.
enumerator cudaDevAttrUnifiedAddressing = 41
Device shares a unified address space with the host.
enumerator cudaDevAttrMaxTexture1DLayeredWidth = 42
Maximum 1D layered texture width.
enumerator cudaDevAttrMaxTexture1DLayeredLayers = 43
Maximum layers in a 1D layered texture.
enumerator cudaDevAttrMaxTexture2DGatherWidth = 45
Maximum 2D texture width if cudaArrayTextureGather is set.
enumerator cudaDevAttrMaxTexture2DGatherHeight = 46
Maximum 2D texture height if cudaArrayTextureGather is set.
enumerator cudaDevAttrMaxTexture3DWidthAlt = 47
Alternate maximum 3D texture width.
enumerator cudaDevAttrMaxTexture3DHeightAlt = 48
Alternate maximum 3D texture height.
enumerator cudaDevAttrMaxTexture3DDepthAlt = 49
Alternate maximum 3D texture depth.
enumerator cudaDevAttrPciDomainId = 50
PCI domain ID of the device.
enumerator cudaDevAttrTexturePitchAlignment = 51
Pitch alignment requirement for textures.
enumerator cudaDevAttrMaxTextureCubemapWidth = 52
Maximum cubemap texture width/height.
enumerator cudaDevAttrMaxTextureCubemapLayeredWidth = 53
Maximum cubemap layered texture width/height.
enumerator cudaDevAttrMaxTextureCubemapLayeredLayers = 54
Maximum layers in a cubemap layered texture.
102
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaDevAttrMaxSurface1DWidth = 55
Maximum 1D surface width.
enumerator cudaDevAttrMaxSurface2DWidth = 56
Maximum 2D surface width.
enumerator cudaDevAttrMaxSurface2DHeight = 57
Maximum 2D surface height.
enumerator cudaDevAttrMaxSurface3DWidth = 58
Maximum 3D surface width.
enumerator cudaDevAttrMaxSurface3DHeight = 59
Maximum 3D surface height.
enumerator cudaDevAttrMaxSurface3DDepth = 60
Maximum 3D surface depth.
enumerator cudaDevAttrMaxSurface1DLayeredWidth = 61
Maximum 1D layered surface width.
enumerator cudaDevAttrMaxSurface1DLayeredLayers = 62
Maximum layers in a 1D layered surface.
enumerator cudaDevAttrMaxSurface2DLayeredWidth = 63
Maximum 2D layered surface width.
enumerator cudaDevAttrMaxSurface2DLayeredHeight = 64
Maximum 2D layered surface height.
enumerator cudaDevAttrMaxSurface2DLayeredLayers = 65
Maximum layers in a 2D layered surface.
enumerator cudaDevAttrMaxSurfaceCubemapWidth = 66
Maximum cubemap surface width.
enumerator cudaDevAttrMaxSurfaceCubemapLayeredWidth = 67
Maximum cubemap layered surface width.
enumerator cudaDevAttrMaxSurfaceCubemapLayeredLayers = 68
Maximum layers in a cubemap layered surface.
enumerator cudaDevAttrMaxTexture1DLinearWidth = 69
Maximum 1D linear texture width.
6.2. Data types used by CUDA Runtime
103
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaDevAttrMaxTexture2DLinearWidth = 70
Maximum 2D linear texture width.
enumerator cudaDevAttrMaxTexture2DLinearHeight = 71
Maximum 2D linear texture height.
enumerator cudaDevAttrMaxTexture2DLinearPitch = 72
Maximum 2D linear texture pitch in bytes.
enumerator cudaDevAttrMaxTexture2DMipmappedWidth = 73
Maximum mipmapped 2D texture width.
enumerator cudaDevAttrMaxTexture2DMipmappedHeight = 74
Maximum mipmapped 2D texture height.
enumerator cudaDevAttrComputeCapabilityMajor = 75
Major compute capability version number.
enumerator cudaDevAttrComputeCapabilityMinor = 76
Minor compute capability version number.
enumerator cudaDevAttrMaxTexture1DMipmappedWidth = 77
Maximum mipmapped 1D texture width.
enumerator cudaDevAttrStreamPrioritiesSupported = 78
Device supports stream priorities.
enumerator cudaDevAttrGlobalL1CacheSupported = 79
Device supports caching globals in L1.
enumerator cudaDevAttrLocalL1CacheSupported = 80
Device supports caching locals in L1.
enumerator cudaDevAttrMaxSharedMemoryPerMultiprocessor = 81
Maximum shared memory available per multiprocessor in bytes.
enumerator cudaDevAttrMaxRegistersPerMultiprocessor = 82
Maximum number of 32-bit registers available per multiprocessor.
enumerator cudaDevAttrManagedMemory = 83
Device can allocate managed memory on this system.
enumerator cudaDevAttrIsMultiGpuBoard = 84
Device is on a multi-GPU board.
104
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaDevAttrMultiGpuBoardGroupID = 85
Unique identifier for a group of devices on the same multi-GPU board.
enumerator cudaDevAttrHostNativeAtomicSupported = 86
Link between the device and the host supports native atomic operations.
enumerator cudaDevAttrSingleToDoublePrecisionPerfRatio = 87
Ratio of single precision performance (in floating-point operations per second) to double
precision performance.
enumerator cudaDevAttrPageableMemoryAccess = 88
Device supports coherently accessing pageable memory without calling cudaHostRegister
on it.
enumerator cudaDevAttrConcurrentManagedAccess = 89
Device can coherently access managed memory concurrently with the CPU.
enumerator cudaDevAttrComputePreemptionSupported = 90
Device supports Compute Preemption.
enumerator cudaDevAttrCanUseHostPointerForRegisteredMem = 91
Device can access host registered memory at the same virtual address as the CPU.
enumerator cudaDevAttrReserved92 = 92
enumerator cudaDevAttrReserved93 = 93
enumerator cudaDevAttrReserved94 = 94
enumerator cudaDevAttrCooperativeLaunch = 95
Device supports launching cooperative kernels via cudaLaunchCooperativeKernel.
enumerator cudaDevAttrReserved96 = 96
enumerator cudaDevAttrMaxSharedMemoryPerBlockOptin = 97
The maximum optin shared memory per block.
This value may vary by chip. See cudaFuncSetAttribute
enumerator cudaDevAttrCanFlushRemoteWrites = 98
Device supports flushing of outstanding remote writes.
enumerator cudaDevAttrHostRegisterSupported = 99
Device supports host memory registration via cudaHostRegister.
6.2. Data types used by CUDA Runtime
105
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaDevAttrPageableMemoryAccessUsesHostPageTables = 100
Device accesses pageable memory via the host’s page tables.
enumerator cudaDevAttrDirectManagedMemAccessFromHost = 101
Host can directly access managed memory on the device without migration.
enumerator cudaDevAttrMaxBlocksPerMultiprocessor = 106
Maximum number of blocks per multiprocessor.
enumerator cudaDevAttrMaxPersistingL2CacheSize = 108
Maximum L2 persisting lines capacity setting in bytes.
enumerator cudaDevAttrMaxAccessPolicyWindowSize = 109
Maximum value of cudaAccessPolicyWindow::num_bytes.
enumerator cudaDevAttrReservedSharedMemoryPerBlock = 111
Shared memory reserved by CUDA driver per block in bytes.
enumerator cudaDevAttrSparseCudaArraySupported = 112
Device supports sparse CUDA arrays and sparse CUDA mipmapped arrays.
enumerator cudaDevAttrHostRegisterReadOnlySupported = 113
Device supports using the cudaHostRegister flag cudaHostRegisterReadOnly to register
memory that must be mapped as read-only to the GPU.
enumerator cudaDevAttrTimelineSemaphoreInteropSupported = 114
External timeline semaphore interop is supported on the device.
enumerator cudaDevAttrMemoryPoolsSupported = 115
Device supports using the cudaMallocAsync and ::cudaMemPool family of APIs.
enumerator cudaDevAttrGPUDirectRDMASupported = 116
Device supports GPUDirect RDMA APIs, like nvidia_p2p_get_pages (see https://docs.nvidia.
com/cuda/gpudirect-rdma for more information)
enumerator cudaDevAttrGPUDirectRDMAFlushWritesOptions = 117
The returned attribute shall be interpreted as a bitmask, where the individual bits are listed
in the cudaFlushGPUDirectRDMAWritesOptions enum.
enumerator cudaDevAttrGPUDirectRDMAWritesOrdering = 118
GPUDirect RDMA writes to the device do not need to be flushed for consumers within the
scope indicated by the returned attribute.
See cudaGPUDirectRDMAWritesOrdering for the numerical values returned here.
enumerator cudaDevAttrMemoryPoolSupportedHandleTypes = 119
Handle types supported with mempool based IPC.
106
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaDevAttrClusterLaunch = 120
Indicates device supports cluster launch.
enumerator cudaDevAttrDeferredMappingCudaArraySupported = 121
Device supports deferred mapping CUDA arrays and CUDA mipmapped arrays.
enumerator cudaDevAttrReserved122 = 122
enumerator cudaDevAttrReserved123 = 123
enumerator cudaDevAttrReserved124 = 124
enumerator cudaDevAttrIpcEventSupport = 125
Device supports IPC Events.
enumerator cudaDevAttrMemSyncDomainCount = 126
Number of memory synchronization domains the device supports.
enumerator cudaDevAttrReserved127 = 127
enumerator cudaDevAttrReserved128 = 128
enumerator cudaDevAttrReserved129 = 129
enumerator cudaDevAttrNumaConfig = 130
NUMA configuration of a device: value is of type cudaDeviceNumaConfig enum.
enumerator cudaDevAttrNumaId = 131
NUMA node ID of the GPU memory.
enumerator cudaDevAttrReserved132 = 132
enumerator cudaDevAttrMpsEnabled = 133
Contexts created on this device will be shared via MPS.
enumerator cudaDevAttrHostNumaId = 134
NUMA ID of the host node closest to the device or -1 when system does not support NUMA.
enumerator cudaDevAttrD3D12CigSupported = 135
Device supports CIG with D3D12.
enumerator cudaDevAttrVulkanCigSupported = 138
Device supports CIG with Vulkan.
6.2. Data types used by CUDA Runtime
107
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaDevAttrGpuPciDeviceId = 139
The combined 16-bit PCI device ID and 16-bit PCI vendor ID.
enumerator cudaDevAttrGpuPciSubsystemId = 140
The combined 16-bit PCI subsystem ID and 16-bit PCI subsystem vendor ID.
enumerator cudaDevAttrReserved141 = 141
enumerator cudaDevAttrHostNumaMemoryPoolsSupported = 142
Device supports HOST_NUMA location with the cudaMallocAsync and ::cudaMemPool family
of APIs.
enumerator cudaDevAttrHostNumaMultinodeIpcSupported = 143
Device supports HostNuma location IPC between nodes in a multi-node system.
enumerator cudaDevAttrHostMemoryPoolsSupported = 144
Device suports HOST location with the ::cuMemAllocAsync and ::cuMemPool family of APIs.
enumerator cudaDevAttrReserved145 = 145
enumerator cudaDevAttrOnlyPartialHostNativeAtomicSupported = 147
Link between the device and the host supports only some native atomic operations.
enumerator cudaDevAttrAtomicReductionSupported = 148
Device supports atomic reduction operations in stream batch memory operations.
enumerator cudaDevAttrLocalityDomainCount = 149
Number of locality domains.
enumerator cudaDevAttrOversizedSharedMemoryPerBlock = 150
The maximum oversized shared memory per block.
This value may vary by chip. See cudaFuncSetAttribute
enumerator cudaDevAttrCigStreamsSupported = 151
Device supports CIG streams.
enumerator cudaDevAttrLocalityDomainMultiprocessorCount = 157
Number of multiprocessors on each locality domain.
enumerator cudaDevAttrTensorMapLargeTensorMinSize = 160
Smallest tensor size in bytes at which TMA descriptors are treated as “large” (BASE_128KB
OOB mode).
tensors >= this threshold are eligible for the tensormap.replace.assume_large PTX modifier.
Returns INT_MAX on devices without this distinction where assume_large is a no-op.
108
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaDevAttrMax
enum cudaDeviceNumaConfig
CUDA device NUMA config.
Values:
enumerator cudaDeviceNumaConfigNone = 0
The GPU is not a NUMA node.
enumerator cudaDeviceNumaConfigNumaNode
The GPU is a NUMA node, cudaDevAttrNumaId contains its NUMA ID.
enum cudaDeviceP2PAttr
CUDA device P2P attributes.
Values:
enumerator cudaDevP2PAttrPerformanceRank = 1
A relative value indicating the performance of the link between two devices.
enumerator cudaDevP2PAttrAccessSupported = 2
Peer access is enabled.
enumerator cudaDevP2PAttrNativeAtomicSupported = 3
Native atomic operation over the link supported.
enumerator cudaDevP2PAttrCudaArrayAccessSupported = 4
Accessing CUDA arrays over the link supported.
enumerator cudaDevP2PAttrOnlyPartialNativeAtomicSupported = 5
Only some CUDA-valid atomic operations over the link are supported.
enum cudaDriverEntryPointQueryResult
Enum for status from obtaining driver entry points, used with ::cudaApiGetDriverEntryPoint.
Values:
enumerator cudaDriverEntryPointSuccess = 0
Search for symbol found a match.
enumerator cudaDriverEntryPointSymbolNotFound = 1
Search for symbol was not found.
enumerator cudaDriverEntryPointVersionNotSufficent = 2
Search for symbol was found but version wasn’t great enough.
6.2. Data types used by CUDA Runtime
109
CUDA Runtime API Reference Manual, Release 13.5
enum cudaEglColorFormat
CUDA EGL Color Format - The different planar and multiplanar formats currently supported for
CUDA_EGL interops.
Values:
enumerator cudaEglColorFormatYUV420Planar = 0
Y, U, V in three surfaces, each in a separate surface, U/V width = 1/2 Y width, U/V height =
1/2 Y height.
enumerator cudaEglColorFormatYUV420SemiPlanar = 1
Y, UV in two surfaces (UV as one surface) with VU byte ordering, width, height ratio same as
YUV420Planar.
enumerator cudaEglColorFormatYUV422Planar = 2
Y, U, V each in a separate surface, U/V width = 1/2 Y width, U/V height = Y height.
enumerator cudaEglColorFormatYUV422SemiPlanar = 3
Y, UV in two surfaces with VU byte ordering, width, height ratio same as YUV422Planar.
enumerator cudaEglColorFormatARGB = 6
R/G/B/A four channels in one surface with BGRA byte ordering.
enumerator cudaEglColorFormatRGBA = 7
R/G/B/A four channels in one surface with ABGR byte ordering.
enumerator cudaEglColorFormatL = 8
single luminance channel in one surface.
enumerator cudaEglColorFormatR = 9
single color channel in one surface.
enumerator cudaEglColorFormatYUV444Planar = 10
Y, U, V in three surfaces, each in a separate surface, U/V width = Y width, U/V height = Y
height.
enumerator cudaEglColorFormatYUV444SemiPlanar = 11
Y, UV in two surfaces (UV as one surface) with VU byte ordering, width, height ratio same as
YUV444Planar.
enumerator cudaEglColorFormatYUYV422 = 12
Y, U, V in one surface, interleaved as UYVY in one channel.
enumerator cudaEglColorFormatUYVY422 = 13
Y, U, V in one surface, interleaved as YUYV in one channel.
110
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaEglColorFormatABGR = 14
R/G/B/A four channels in one surface with RGBA byte ordering.
enumerator cudaEglColorFormatBGRA = 15
R/G/B/A four channels in one surface with ARGB byte ordering.
enumerator cudaEglColorFormatA = 16
Alpha color format - one channel in one surface.
enumerator cudaEglColorFormatRG = 17
R/G color format - two channels in one surface with GR byte ordering.
enumerator cudaEglColorFormatAYUV = 18
Y, U, V, A four channels in one surface, interleaved as VUYA.
enumerator cudaEglColorFormatYVU444SemiPlanar = 19
Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V width = Y width, U/V
height = Y height.
enumerator cudaEglColorFormatYVU422SemiPlanar = 20
Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V width = 1/2 Y width,
U/V height = Y height.
enumerator cudaEglColorFormatYVU420SemiPlanar = 21
Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V width = 1/2 Y width,
U/V height = 1/2 Y height.
enumerator cudaEglColorFormatY10V10U10_444SemiPlanar = 22
Y10, V10U10 in two surfaces (VU as one surface) with UV byte ordering, U/V width = Y width,
U/V height = Y height.
enumerator cudaEglColorFormatY10V10U10_420SemiPlanar = 23
Y10, V10U10 in two surfaces (VU as one surface) with UV byte ordering, U/V width = 1/2 Y
width, U/V height = 1/2 Y height.
enumerator cudaEglColorFormatY12V12U12_444SemiPlanar = 24
Y12, V12U12 in two surfaces (VU as one surface) with UV byte ordering, U/V width = Y width,
U/V height = Y height.
enumerator cudaEglColorFormatY12V12U12_420SemiPlanar = 25
Y12, V12U12 in two surfaces (VU as one surface) with UV byte ordering, U/V width = 1/2 Y
width, U/V height = 1/2 Y height.
enumerator cudaEglColorFormatVYUY_ER = 26
Extended Range Y, U, V in one surface, interleaved as YVYU in one channel.
6.2. Data types used by CUDA Runtime
111
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaEglColorFormatUYVY_ER = 27
Extended Range Y, U, V in one surface, interleaved as YUYV in one channel.
enumerator cudaEglColorFormatYUYV_ER = 28
Extended Range Y, U, V in one surface, interleaved as UYVY in one channel.
enumerator cudaEglColorFormatYVYU_ER = 29
Extended Range Y, U, V in one surface, interleaved as VYUY in one channel.
enumerator cudaEglColorFormatYUVA_ER = 31
Extended Range Y, U, V, A four channels in one surface, interleaved as AVUY.
enumerator cudaEglColorFormatAYUV_ER = 32
Extended Range Y, U, V, A four channels in one surface, interleaved as VUYA.
enumerator cudaEglColorFormatYUV444Planar_ER = 33
Extended Range Y, U, V in three surfaces, U/V width = Y width, U/V height = Y height.
enumerator cudaEglColorFormatYUV422Planar_ER = 34
Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width, U/V height = Y height.
enumerator cudaEglColorFormatYUV420Planar_ER = 35
Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width, U/V height = 1/2 Y height.
enumerator cudaEglColorFormatYUV444SemiPlanar_ER = 36
Extended Range Y, UV in two surfaces (UV as one surface) with VU byte ordering, U/V width
= Y width, U/V height = Y height.
enumerator cudaEglColorFormatYUV422SemiPlanar_ER = 37
Extended Range Y, UV in two surfaces (UV as one surface) with VU byte ordering, U/V width
= 1/2 Y width, U/V height = Y height.
enumerator cudaEglColorFormatYUV420SemiPlanar_ER = 38
Extended Range Y, UV in two surfaces (UV as one surface) with VU byte ordering, U/V width
= 1/2 Y width, U/V height = 1/2 Y height.
enumerator cudaEglColorFormatYVU444Planar_ER = 39
Extended Range Y, V, U in three surfaces, U/V width = Y width, U/V height = Y height.
enumerator cudaEglColorFormatYVU422Planar_ER = 40
Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width, U/V height = Y height.
enumerator cudaEglColorFormatYVU420Planar_ER = 41
Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width, U/V height = 1/2 Y height.
112
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaEglColorFormatYVU444SemiPlanar_ER = 42
Extended Range Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V width
= Y width, U/V height = Y height.
enumerator cudaEglColorFormatYVU422SemiPlanar_ER = 43
Extended Range Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V width
= 1/2 Y width, U/V height = Y height.
enumerator cudaEglColorFormatYVU420SemiPlanar_ER = 44
Extended Range Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V width
= 1/2 Y width, U/V height = 1/2 Y height.
enumerator cudaEglColorFormatBayerRGGB = 45
Bayer format - one channel in one surface with interleaved RGGB ordering.
enumerator cudaEglColorFormatBayerBGGR = 46
Bayer format - one channel in one surface with interleaved BGGR ordering.
enumerator cudaEglColorFormatBayerGRBG = 47
Bayer format - one channel in one surface with interleaved GRBG ordering.
enumerator cudaEglColorFormatBayerGBRG = 48
Bayer format - one channel in one surface with interleaved GBRG ordering.
enumerator cudaEglColorFormatBayer10RGGB = 49
Bayer10 format - one channel in one surface with interleaved RGGB ordering.
Out of 16 bits, 10 bits used 6 bits No-op.
enumerator cudaEglColorFormatBayer10BGGR = 50
Bayer10 format - one channel in one surface with interleaved BGGR ordering.
Out of 16 bits, 10 bits used 6 bits No-op.
enumerator cudaEglColorFormatBayer10GRBG = 51
Bayer10 format - one channel in one surface with interleaved GRBG ordering.
Out of 16 bits, 10 bits used 6 bits No-op.
enumerator cudaEglColorFormatBayer10GBRG = 52
Bayer10 format - one channel in one surface with interleaved GBRG ordering.
Out of 16 bits, 10 bits used 6 bits No-op.
enumerator cudaEglColorFormatBayer12RGGB = 53
Bayer12 format - one channel in one surface with interleaved RGGB ordering.
Out of 16 bits, 12 bits used 4 bits No-op.
6.2. Data types used by CUDA Runtime
113
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaEglColorFormatBayer12BGGR = 54
Bayer12 format - one channel in one surface with interleaved BGGR ordering.
Out of 16 bits, 12 bits used 4 bits No-op.
enumerator cudaEglColorFormatBayer12GRBG = 55
Bayer12 format - one channel in one surface with interleaved GRBG ordering.
Out of 16 bits, 12 bits used 4 bits No-op.
enumerator cudaEglColorFormatBayer12GBRG = 56
Bayer12 format - one channel in one surface with interleaved GBRG ordering.
Out of 16 bits, 12 bits used 4 bits No-op.
enumerator cudaEglColorFormatBayer14RGGB = 57
Bayer14 format - one channel in one surface with interleaved RGGB ordering.
Out of 16 bits, 14 bits used 2 bits No-op.
enumerator cudaEglColorFormatBayer14BGGR = 58
Bayer14 format - one channel in one surface with interleaved BGGR ordering.
Out of 16 bits, 14 bits used 2 bits No-op.
enumerator cudaEglColorFormatBayer14GRBG = 59
Bayer14 format - one channel in one surface with interleaved GRBG ordering.
Out of 16 bits, 14 bits used 2 bits No-op.
enumerator cudaEglColorFormatBayer14GBRG = 60
Bayer14 format - one channel in one surface with interleaved GBRG ordering.
Out of 16 bits, 14 bits used 2 bits No-op.
enumerator cudaEglColorFormatBayer20RGGB = 61
Bayer20 format - one channel in one surface with interleaved RGGB ordering.
Out of 32 bits, 20 bits used 12 bits No-op.
enumerator cudaEglColorFormatBayer20BGGR = 62
Bayer20 format - one channel in one surface with interleaved BGGR ordering.
Out of 32 bits, 20 bits used 12 bits No-op.
enumerator cudaEglColorFormatBayer20GRBG = 63
Bayer20 format - one channel in one surface with interleaved GRBG ordering.
Out of 32 bits, 20 bits used 12 bits No-op.
enumerator cudaEglColorFormatBayer20GBRG = 64
Bayer20 format - one channel in one surface with interleaved GBRG ordering.
Out of 32 bits, 20 bits used 12 bits No-op.
114
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaEglColorFormatYVU444Planar = 65
Y, V, U in three surfaces, each in a separate surface, U/V width = Y width, U/V height = Y
height.
enumerator cudaEglColorFormatYVU422Planar = 66
Y, V, U in three surfaces, each in a separate surface, U/V width = 1/2 Y width, U/V height = Y
height.
enumerator cudaEglColorFormatYVU420Planar = 67
Y, V, U in three surfaces, each in a separate surface, U/V width = 1/2 Y width, U/V height =
1/2 Y height.
enumerator cudaEglColorFormatBayerIspRGGB = 68
Nvidia proprietary Bayer ISP format - one channel in one surface with interleaved RGGB
ordering and mapped to opaque integer datatype.
enumerator cudaEglColorFormatBayerIspBGGR = 69
Nvidia proprietary Bayer ISP format - one channel in one surface with interleaved BGGR
ordering and mapped to opaque integer datatype.
enumerator cudaEglColorFormatBayerIspGRBG = 70
Nvidia proprietary Bayer ISP format - one channel in one surface with interleaved GRBG
ordering and mapped to opaque integer datatype.
enumerator cudaEglColorFormatBayerIspGBRG = 71
Nvidia proprietary Bayer ISP format - one channel in one surface with interleaved GBRG
ordering and mapped to opaque integer datatype.
enumerator cudaEglColorFormatBayerBCCR = 72
Bayer format - one channel in one surface with interleaved BCCR ordering.
enumerator cudaEglColorFormatBayerRCCB = 73
Bayer format - one channel in one surface with interleaved RCCB ordering.
enumerator cudaEglColorFormatBayerCRBC = 74
Bayer format - one channel in one surface with interleaved CRBC ordering.
enumerator cudaEglColorFormatBayerCBRC = 75
Bayer format - one channel in one surface with interleaved CBRC ordering.
enumerator cudaEglColorFormatBayer10CCCC = 76
Bayer10 format - one channel in one surface with interleaved CCCC ordering.
Out of 16 bits, 10 bits used 6 bits No-op.
enumerator cudaEglColorFormatBayer12BCCR = 77
6.2. Data types used by CUDA Runtime
115
CUDA Runtime API Reference Manual, Release 13.5
Bayer12 format - one channel in one surface with interleaved BCCR ordering.
Out of 16 bits, 12 bits used 4 bits No-op.
enumerator cudaEglColorFormatBayer12RCCB = 78
Bayer12 format - one channel in one surface with interleaved RCCB ordering.
Out of 16 bits, 12 bits used 4 bits No-op.
enumerator cudaEglColorFormatBayer12CRBC = 79
Bayer12 format - one channel in one surface with interleaved CRBC ordering.
Out of 16 bits, 12 bits used 4 bits No-op.
enumerator cudaEglColorFormatBayer12CBRC = 80
Bayer12 format - one channel in one surface with interleaved CBRC ordering.
Out of 16 bits, 12 bits used 4 bits No-op.
enumerator cudaEglColorFormatBayer12CCCC = 81
Bayer12 format - one channel in one surface with interleaved CCCC ordering.
Out of 16 bits, 12 bits used 4 bits No-op.
enumerator cudaEglColorFormatY = 82
Color format for single Y plane.
enumerator cudaEglColorFormatYUV420SemiPlanar_2020 = 83
Y, UV in two surfaces (UV as one surface) U/V width = 1/2 Y width, U/V height = 1/2 Y height.
enumerator cudaEglColorFormatYVU420SemiPlanar_2020 = 84
Y, VU in two surfaces (VU as one surface) U/V width = 1/2 Y width, U/V height = 1/2 Y height.
enumerator cudaEglColorFormatYUV420Planar_2020 = 85
Y, U, V in three surfaces, each in a separate surface, U/V width = 1/2 Y width, U/V height =
1/2 Y height.
enumerator cudaEglColorFormatYVU420Planar_2020 = 86
Y, V, U in three surfaces, each in a separate surface, U/V width = 1/2 Y width, U/V height =
1/2 Y height.
enumerator cudaEglColorFormatYUV420SemiPlanar_709 = 87
Y, UV in two surfaces (UV as one surface) U/V width = 1/2 Y width, U/V height = 1/2 Y height.
enumerator cudaEglColorFormatYVU420SemiPlanar_709 = 88
Y, VU in two surfaces (VU as one surface) U/V width = 1/2 Y width, U/V height = 1/2 Y height.
enumerator cudaEglColorFormatYUV420Planar_709 = 89
Y, U, V in three surfaces, each in a separate surface, U/V width = 1/2 Y width, U/V height =
1/2 Y height.
116
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaEglColorFormatYVU420Planar_709 = 90
Y, V, U in three surfaces, each in a separate surface, U/V width = 1/2 Y width, U/V height =
1/2 Y height.
enumerator cudaEglColorFormatY10V10U10_420SemiPlanar_709 = 91
Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width, U/V height = 1/2
Y height.
enumerator cudaEglColorFormatY10V10U10_420SemiPlanar_2020 = 92
Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width, U/V height = 1/2
Y height.
enumerator cudaEglColorFormatY10V10U10_422SemiPlanar_2020 = 93
Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width, U/V height = Y
height.
enumerator cudaEglColorFormatY10V10U10_422SemiPlanar = 94
Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width, U/V height = Y
height.
enumerator cudaEglColorFormatY10V10U10_422SemiPlanar_709 = 95
Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width, U/V height = Y
height.
enumerator cudaEglColorFormatY_ER = 96
Extended Range Color format for single Y plane.
enumerator cudaEglColorFormatY_709_ER = 97
Extended Range Color format for single Y plane.
enumerator cudaEglColorFormatY10_ER = 98
Extended Range Color format for single Y10 plane.
enumerator cudaEglColorFormatY10_709_ER = 99
Extended Range Color format for single Y10 plane.
enumerator cudaEglColorFormatY12_ER = 100
Extended Range Color format for single Y12 plane.
enumerator cudaEglColorFormatY12_709_ER = 101
Extended Range Color format for single Y12 plane.
enumerator cudaEglColorFormatYUVA = 102
Y, U, V, A four channels in one surface, interleaved as AVUY.
6.2. Data types used by CUDA Runtime
117
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaEglColorFormatYVYU = 104
Y, U, V in one surface, interleaved as YVYU in one channel.
enumerator cudaEglColorFormatVYUY = 105
Y, U, V in one surface, interleaved as VYUY in one channel.
enumerator cudaEglColorFormatY10V10U10_420SemiPlanar_ER = 106
Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width,
U/V height = 1/2 Y height.
enumerator cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER = 107
Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width,
U/V height = 1/2 Y height.
enumerator cudaEglColorFormatY10V10U10_444SemiPlanar_ER = 108
Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V width = Y width, U/V
height = Y height.
enumerator cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER = 109
Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V width = Y width, U/V
height = Y height.
enumerator cudaEglColorFormatY12V12U12_420SemiPlanar_ER = 110
Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V width = 1/2 Y width,
U/V height = 1/2 Y height.
enumerator cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER = 111
Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V width = 1/2 Y width,
U/V height = 1/2 Y height.
enumerator cudaEglColorFormatY12V12U12_444SemiPlanar_ER = 112
Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V width = Y width, U/V
height = Y height.
enumerator cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER = 113
Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V width = Y width, U/V
height = Y height.
enumerator cudaEglColorFormatUYVY709 = 114
Y, U, V in one surface, interleaved as UYVY in one channel.
enumerator cudaEglColorFormatUYVY709_ER = 115
Extended Range Y, U, V in one surface, interleaved as UYVY in one channel.
enumerator cudaEglColorFormatUYVY2020 = 116
Y, U, V in one surface, interleaved as UYVY in one channel.
118
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enum cudaEglFrameType
CUDA EglFrame type - array or pointer.
Values:
enumerator cudaEglFrameTypeArray = 0
Frame type CUDA array.
enumerator cudaEglFrameTypePitch = 1
Frame type CUDA pointer.
enum cudaEglResourceLocationFlags
Resource location flags- sysmem or vidmem.
For CUDA context on iGPU, since video and system memory are equivalent - these flags will not
have an effect on the execution.
For CUDA context on dGPU, applications can use the flag cudaEglResourceLocationFlags to give
a hint about the desired location.
cudaEglResourceLocationSysmem - the frame data is made resident on the system memory to
be accessed by CUDA.
cudaEglResourceLocationVidmem - the frame data is made resident on the dedicated video mem-
ory to be accessed by CUDA.
There may be an additional latency due to new allocation and data migration, if the frame is
produced on a different memory.
Values:
enumerator cudaEglResourceLocationSysmem = 0x00
Resource location sysmem.
enumerator cudaEglResourceLocationVidmem = 0x01
Resource location vidmem.
enum cudaError
impl_private
CUDA error types
Values:
enumerator cudaSuccess = 0
The API call returned with no errors.
In the case of query calls, this also means that the operation being queried is complete (see
cudaEventQuery() and cudaStreamQuery()).
enumerator cudaErrorInvalidValue = 1
This indicates that one or more of the parameters passed to the API call is not within an
acceptable range of values.
6.2. Data types used by CUDA Runtime
119
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaErrorMemoryAllocation = 2
The API call failed because it was unable to allocate enough memory or other resources to
perform the requested operation.
enumerator cudaErrorInitializationError = 3
The API call failed because the CUDA driver and runtime could not be initialized.
enumerator cudaErrorCudartUnloading = 4
This indicates that a CUDA Runtime API call cannot be executed because it is being called
during process shut down, at a point in time after CUDA driver has been unloaded.
enumerator cudaErrorProfilerDisabled = 5
This indicates profiler is not initialized for this run.
This can happen when the application is running with external profiling tools like visual pro-
filer.
enumerator cudaErrorProfilerNotInitialized = 6
Deprecated:
This error return is deprecated as of CUDA 5.0. It is no longer an error to attempt to en-
able/disable the profiling via cudaProfilerStart or cudaProfilerStop without initialization.
enumerator cudaErrorProfilerAlreadyStarted = 7
Deprecated:
This error return is deprecated as of CUDA 5.0. It is no longer an error to call cudaProfil-
erStart() when profiling is already enabled.
enumerator cudaErrorProfilerAlreadyStopped = 8
Deprecated:
This error return is deprecated as of CUDA 5.0. It is no longer an error to call cudaProfil-
erStop() when profiling is already disabled.
enumerator cudaErrorInvalidConfiguration = 9
This indicates that a kernel launch is requesting resources that can never be satisfied by the
current device.
Requesting more shared memory per block than the device supports will trigger this error, as
will requesting too many threads or blocks. See cudaDeviceProp for more device limitations.
enumerator cudaErrorVersionTranslation = 10
This indicates that the driver is newer than the runtime version and returned graph node
parameter information that the runtime does not understand and is unable to translate.
enumerator cudaErrorInvalidPitchValue = 12
This indicates that one or more of the pitch-related parameters passed to the API call is not
within the acceptable range for pitch.
120
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaErrorInvalidSymbol = 13
This indicates that the symbol name/identifier passed to the API call is not a valid name or
identifier.
enumerator cudaErrorInvalidHostPointer = 16
This indicates that at least one host pointer passed to the API call is not a valid host pointer.
Deprecated:
This error return is deprecated as of CUDA 10.1.
enumerator cudaErrorInvalidDevicePointer = 17
This indicates that at least one device pointer passed to the API call is not a valid device
pointer.
Deprecated:
This error return is deprecated as of CUDA 10.1.
enumerator cudaErrorInvalidTexture = 18
This indicates that the texture passed to the API call is not a valid texture.
enumerator cudaErrorInvalidTextureBinding = 19
This indicates that the texture binding is not valid.
This occurs if you call ::cudaGetTextureAlignmentOffset() with an unbound texture.
enumerator cudaErrorInvalidChannelDescriptor = 20
This indicates that the channel descriptor passed to the API call is not valid.
This occurs if the format is not one of the formats specified by cudaChannelFormatKind, or
if one of the dimensions is invalid.
enumerator cudaErrorInvalidMemcpyDirection = 21
This indicates that the direction of the memcpy passed to the API call is not one of the types
specified by cudaMemcpyKind.
enumerator cudaErrorAddressOfConstant = 22
This indicated that the user has taken the address of a constant variable, which was forbid-
den up until the CUDA 3.1 release.
Deprecated:
This error return is deprecated as of CUDA 3.1. Variables in constant memory may now
have their address taken by the runtime via cudaGetSymbolAddress().
enumerator cudaErrorTextureFetchFailed = 23
This indicated that a texture fetch was not able to be performed.
This was previously used for device emulation of texture operations.
6.2. Data types used by CUDA Runtime
121
CUDA Runtime API Reference Manual, Release 13.5
Deprecated:
This error return is deprecated as of CUDA 3.1. Device emulation mode was removed
with the CUDA 3.1 release.
enumerator cudaErrorTextureNotBound = 24
This indicated that a texture was not bound for access.
This was previously used for device emulation of texture operations.
Deprecated:
This error return is deprecated as of CUDA 3.1. Device emulation mode was removed
with the CUDA 3.1 release.
enumerator cudaErrorSynchronizationError = 25
This indicated that a synchronization operation had failed.
This was previously used for some device emulation functions.
Deprecated:
This error return is deprecated as of CUDA 3.1. Device emulation mode was removed
with the CUDA 3.1 release.
enumerator cudaErrorInvalidFilterSetting = 26
This indicates that a non-float texture was being accessed with linear filtering.
This is not supported by CUDA.
enumerator cudaErrorInvalidNormSetting = 27
This indicates that an attempt was made to read an unsupported data type as a normalized
float.
This is not supported by CUDA.
enumerator cudaErrorMixedDeviceExecution = 28
Mixing of device and device emulation code was not allowed.
Deprecated:
This error return is deprecated as of CUDA 3.1. Device emulation mode was removed
with the CUDA 3.1 release.
enumerator cudaErrorNotYetImplemented = 31
This indicates that the API call is not yet implemented.
Production releases of CUDA will never return this error.
Deprecated:
This error return is deprecated as of CUDA 4.1.
enumerator cudaErrorMemoryValueTooLarge = 32
This indicated that an emulated device pointer exceeded the 32-bit address range.
122
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
Deprecated:
This error return is deprecated as of CUDA 3.1. Device emulation mode was removed
with the CUDA 3.1 release.
enumerator cudaErrorStubLibrary = 34
This indicates that the CUDA driver that the application has loaded is a stub library.
Applications that run with the stub rather than a real driver loaded will result in CUDA API
returning this error.
enumerator cudaErrorInsufficientDriver = 35
This indicates that the installed NVIDIA CUDA driver is older than the CUDA runtime library.
This is not a supported configuration. Users should install an updated NVIDIA display driver
to allow the application to run.
enumerator cudaErrorCallRequiresNewerDriver = 36
This indicates that the API call requires a newer CUDA driver than the one currently installed.
Users should install an updated NVIDIA CUDA driver to allow the API call to succeed.
enumerator cudaErrorInvalidSurface = 37
This indicates that the surface passed to the API call is not a valid surface.
enumerator cudaErrorDuplicateVariableName = 43
This indicates that multiple global or constant variables (across separate CUDA source files
in the application) share the same string name.
enumerator cudaErrorDuplicateTextureName = 44
This indicates that multiple textures (across separate CUDA source files in the application)
share the same string name.
enumerator cudaErrorDuplicateSurfaceName = 45
This indicates that multiple surfaces (across separate CUDA source files in the application)
share the same string name.
enumerator cudaErrorDevicesUnavailable = 46
This indicates that all CUDA devices are busy or unavailable at the current time.
Devices are often busy/unavailable due to use of cudaComputeModeProhibited, cudaCom-
puteModeExclusiveProcess, or when long running CUDA kernels have filled up the GPU and
are blocking new work from starting. They can also be unavailable due to memory con-
straints on a device that already has active CUDA work being performed.
enumerator cudaErrorIncompatibleDriverContext = 49
This indicates that the current context is not compatible with this the CUDA Runtime.
This can only occur if you are using CUDA Runtime/Driver interoperability and have created
an existing Driver context using the driver API. The Driver context may be incompatible ei-
ther because the Driver context was created using an older version of the API, because the
Runtime API call expects a primary driver context and the Driver context is not primary,
6.2. Data types used by CUDA Runtime
123
CUDA Runtime API Reference Manual, Release 13.5
or because the Driver context has been destroyed. Please see Interactions with the CUDA
Driver API” for more information.
enumerator cudaErrorMissingConfiguration = 52
The device function being invoked (usually via cudaLaunchKernel()) was not previously con-
figured via the ::cudaConfigureCall() function.
enumerator cudaErrorPriorLaunchFailure = 53
This indicated that a previous kernel launch failed.
This was previously used for device emulation of kernel launches.
Deprecated:
This error return is deprecated as of CUDA 3.1. Device emulation mode was removed
with the CUDA 3.1 release.
enumerator cudaErrorLaunchMaxDepthExceeded = 65
This error indicates that a device runtime grid launch did not occur because the depth of
the child grid would exceed the maximum supported number of nested grid launches.
enumerator cudaErrorLaunchFileScopedTex = 66
This error indicates that a grid launch did not occur because the kernel uses file-scoped
textures which are unsupported by the device runtime.
Kernels launched via the device runtime only support textures created with the Texture Ob-
ject API’s.
enumerator cudaErrorLaunchFileScopedSurf = 67
This error indicates that a grid launch did not occur because the kernel uses file-scoped
surfaces which are unsupported by the device runtime.
Kernels launched via the device runtime only support surfaces created with the Surface
Object API’s.
enumerator cudaErrorSyncDepthExceeded = 68
This error indicates that a call to cudaDeviceSynchronize made from the device runtime failed
because the call was made at grid depth greater than than either the default (2 levels of
grids) or user specified device limit cudaLimitDevRuntimeSyncDepth.
To be able to synchronize on launched grids at a greater depth successfully, the maximum
nested depth at which cudaDeviceSynchronize will be called must be specified with the cud-
aLimitDevRuntimeSyncDepth limit to the cudaDeviceSetLimit api before the host-side launch
of a kernel using the device runtime. Keep in mind that additional levels of sync depth re-
quire the runtime to reserve large amounts of device memory that cannot be used for user
allocations. Note that cudaDeviceSynchronize made from device runtime is only supported
on devices of compute capability < 9.0.
enumerator cudaErrorLaunchPendingCountExceeded = 69
This error indicates that a device runtime grid launch failed because the launch would exceed
the limit cudaLimitDevRuntimePendingLaunchCount.
For this launch to proceed successfully, cudaDeviceSetLimit must be called to set the cud-
aLimitDevRuntimePendingLaunchCount to be higher than the upper bound of outstanding
124
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
launches that can be issued to the device runtime. Keep in mind that raising the limit of
pending device runtime launches will require the runtime to reserve device memory that
cannot be used for user allocations.
enumerator cudaErrorInvalidDeviceFunction = 98
The requested device function does not exist or is not compiled for the proper device archi-
tecture.
enumerator cudaErrorNoDevice = 100
This indicates that no CUDA-capable devices were detected by the installed CUDA driver.
enumerator cudaErrorInvalidDevice = 101
This indicates that the device ordinal supplied by the user does not correspond to a valid
CUDA device or that the action requested is invalid for the specified device.
enumerator cudaErrorDeviceNotLicensed = 102
This indicates that the device doesn’t have a valid Grid License.
enumerator cudaErrorSoftwareValidityNotEstablished = 103
By default, the CUDA runtime may perform a minimal set of self-tests, as well as CUDA driver
tests, to establish the validity of both.
Introduced in CUDA 11.2, this error return indicates that at least one of these tests has
failed and the validity of either the runtime or the driver could not be established.
enumerator cudaErrorStartupFailure = 127
This indicates an internal startup failure in the CUDA runtime.
enumerator cudaErrorInvalidKernelImage = 200
This indicates that the device kernel image is invalid.
enumerator cudaErrorDeviceUninitialized = 201
This most frequently indicates that there is no context bound to the current thread.
This can also be returned if the context passed to an API call is not a valid handle (such as a
context that has had ::cuCtxDestroy() invoked on it). This can also be returned if a user mixes
different API versions (i.e. 3010 context with 3020 API calls). See ::cuCtxGetApiVersion() for
more details.
enumerator cudaErrorMapBufferObjectFailed = 205
This indicates that the buffer object could not be mapped.
enumerator cudaErrorUnmapBufferObjectFailed = 206
This indicates that the buffer object could not be unmapped.
enumerator cudaErrorArrayIsMapped = 207
This indicates that the specified array is currently mapped and thus cannot be destroyed.
6.2. Data types used by CUDA Runtime
125
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaErrorAlreadyMapped = 208
This indicates that the resource is already mapped.
enumerator cudaErrorNoKernelImageForDevice = 209
This indicates that there is no kernel image available that is suitable for the device.
This can occur when a user specifies code generation options for a particular CUDA source
file that do not include the corresponding device configuration.
enumerator cudaErrorAlreadyAcquired = 210
This indicates that a resource has already been acquired.
enumerator cudaErrorNotMapped = 211
This indicates that a resource is not mapped.
enumerator cudaErrorNotMappedAsArray = 212
This indicates that a mapped resource is not available for access as an array.
enumerator cudaErrorNotMappedAsPointer = 213
This indicates that a mapped resource is not available for access as a pointer.
enumerator cudaErrorECCUncorrectable = 214
This indicates that an uncorrectable ECC error was detected during execution.
enumerator cudaErrorUnsupportedLimit = 215
This indicates that the cudaLimit passed to the API call is not supported by the active device.
enumerator cudaErrorDeviceAlreadyInUse = 216
This indicates that a call tried to access an exclusive-thread device that is already in use by
a different thread.
enumerator cudaErrorPeerAccessUnsupported = 217
This error indicates that P2P access is not supported across the given devices.
enumerator cudaErrorInvalidPtx = 218
A PTX compilation failed.
The runtime may fall back to compiling PTX if an application does not contain a suitable
binary for the current device.
enumerator cudaErrorInvalidGraphicsContext = 219
This indicates an error with the OpenGL or DirectX context.
enumerator cudaErrorNvlinkUncorrectable = 220
This indicates that an uncorrectable NVLink error was detected during the execution.
126
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaErrorJitCompilerNotFound = 221
This indicates that the PTX JIT compiler library was not found.
The JIT Compiler library is used for PTX compilation. The runtime may fall back to compiling
PTX if an application does not contain a suitable binary for the current device.
enumerator cudaErrorUnsupportedPtxVersion = 222
This indicates that the provided PTX was compiled with an unsupported toolchain.
The most common reason for this, is the PTX was generated by a compiler newer than what
is supported by the CUDA driver and PTX JIT compiler.
enumerator cudaErrorJitCompilationDisabled = 223
This indicates that the JIT compilation was disabled.
The JIT compilation compiles PTX. The runtime may fall back to compiling PTX if an applica-
tion does not contain a suitable binary for the current device.
enumerator cudaErrorUnsupportedExecAffinity = 224
This indicates that the provided execution affinity is not supported by the device.
enumerator cudaErrorUnsupportedDevSideSync = 225
This indicates that the code to be compiled by the PTX JIT contains unsupported call to
cudaDeviceSynchronize.
enumerator cudaErrorContained = 226
This indicates that an exception occurred on the device that is now contained by the GPU’s
error containment capability.
Common causes are - a. Certain types of invalid accesses of peer GPU memory over nvlink b.
Certain classes of hardware errors This leaves the process in an inconsistent state and any
further CUDA work will return the same error. To continue using CUDA, the process must be
terminated and relaunched.
enumerator cudaErrorInsufficientLoaderVersion = 227
This indicates that loader version is insufficient for Fatbin.
enumerator cudaErrorInvalidSource = 300
This indicates that the device kernel source is invalid.
enumerator cudaErrorFileNotFound = 301
This indicates that the file specified was not found.
enumerator cudaErrorSharedObjectSymbolNotFound = 302
This indicates that a link to a shared object failed to resolve.
enumerator cudaErrorSharedObjectInitFailed = 303
This indicates that initialization of a shared object failed.
6.2. Data types used by CUDA Runtime
127
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaErrorOperatingSystem = 304
This error indicates that an OS call failed.
enumerator cudaErrorInvalidResourceHandle = 400
This indicates that a resource handle passed to the API call was not valid.
Resource handles are opaque types like cudaStream_t and cudaEvent_t.
enumerator cudaErrorIllegalState = 401
This indicates that a resource required by the API call is not in a valid state to perform the
requested operation.
enumerator cudaErrorLossyQuery = 402
This indicates an attempt was made to introspect an object in a way that would discard
semantically important information.
This is either due to the object using funtionality newer than the API version used to intro-
spect it or omission of optional return arguments.
enumerator cudaErrorSymbolNotFound = 500
This indicates that a named symbol was not found.
Examples of symbols are global/constant variable names, driver function names, texture
names, and surface names.
enumerator cudaErrorNotReady = 600
This indicates that asynchronous operations issued previously have not completed yet.
This result is not actually an error, but must be indicated differently than cudaSuccess (which
indicates completion). Calls that may return this value include cudaEventQuery() and cudaS-
treamQuery().
enumerator cudaErrorIllegalAddress = 700
The device encountered a load or store instruction on an invalid memory address.
This leaves the process in an inconsistent state and any further CUDA work will return the
same error. To continue using CUDA, the process must be terminated and relaunched.
enumerator cudaErrorLaunchOutOfResources = 701
This indicates that a launch did not occur because it did not have appropriate resources.
Although this error is similar to cudaErrorInvalidConfiguration, this error usually indicates
that the user has attempted to pass too many arguments to the device kernel, or the kernel
launch specifies too many threads for the kernel’s register count.
enumerator cudaErrorLaunchTimeout = 702
This indicates that the device kernel took too long to execute.
This can only occur if timeouts are enabled - see the device attribute cudaDevAttrKernelEx-
ecTimeout for more information. This leaves the process in an inconsistent state and any
further CUDA work will return the same error. To continue using CUDA, the process must
be terminated and relaunched.
128
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaErrorLaunchIncompatibleTexturing = 703
This error indicates a kernel launch that uses an incompatible texturing mode.
enumerator cudaErrorPeerAccessAlreadyEnabled = 704
This error indicates that a call to cudaDeviceEnablePeerAccess() is trying to re-enable peer
addressing on from a context which has already had peer addressing enabled.
enumerator cudaErrorPeerAccessNotEnabled = 705
This error indicates that cudaDeviceDisablePeerAccess() is trying to disable peer addressing
which has not been enabled yet via cudaDeviceEnablePeerAccess().
enumerator cudaErrorSetOnActiveProcess = 708
This indicates that the user has called cudaSetValidDevices(),
cudaSetDe-
viceFlags(),
cudaD3D9SetDirect3DDevice(),
cudaD3D10SetDirect3DDevice,
cu-
daD3D11SetDirect3DDevice(), or cudaVDPAUSetVDPAUDevice() after initializing the CUDA
runtime by calling non-device management operations (allocating memory and launching
kernels are examples of non-device management operations).
This error can also be returned if using runtime/driver interoperability and there is an existing
::CUcontext active on the host thread.
enumerator cudaErrorContextIsDestroyed = 709
This error indicates that the context current to the calling thread has been destroyed using
::cuCtxDestroy, or is a primary context which has not yet been initialized.
enumerator cudaErrorAssert = 710
An assert triggered in device code during kernel execution.
The device cannot be used again. All existing allocations are invalid. To continue using CUDA,
the process must be terminated and relaunched.
enumerator cudaErrorTooManyPeers = 711
This error indicates that the hardware resources required to enable peer access have been
exhausted for one or more of the devices passed to ::cudaEnablePeerAccess().
enumerator cudaErrorHostMemoryAlreadyRegistered = 712
This error indicates that the memory range passed to cudaHostRegister() has already been
registered.
enumerator cudaErrorHostMemoryNotRegistered = 713
This error indicates that the pointer passed to cudaHostUnregister() does not correspond to
any currently registered memory region.
enumerator cudaErrorHardwareStackError = 714
Device encountered an error in the call stack during kernel execution, possibly due to stack
corruption or exceeding the stack size limit.
This leaves the process in an inconsistent state and any further CUDA work will return the
same error. To continue using CUDA, the process must be terminated and relaunched.
6.2. Data types used by CUDA Runtime
129
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaErrorIllegalInstruction = 715
The device encountered an illegal instruction during kernel execution This leaves the process
in an inconsistent state and any further CUDA work will return the same error.
To continue using CUDA, the process must be terminated and relaunched.
enumerator cudaErrorMisalignedAddress = 716
The device encountered a load or store instruction on a memory address which is not aligned.
This leaves the process in an inconsistent state and any further CUDA work will return the
same error. To continue using CUDA, the process must be terminated and relaunched.
enumerator cudaErrorInvalidAddressSpace = 717
While executing a kernel, the device encountered an instruction which can only operate on
memory locations in certain address spaces (global, shared, or local), but was supplied a
memory address not belonging to an allowed address space.
This leaves the process in an inconsistent state and any further CUDA work will return the
same error. To continue using CUDA, the process must be terminated and relaunched.
enumerator cudaErrorInvalidPc = 718
The device encountered an invalid program counter.
This leaves the process in an inconsistent state and any further CUDA work will return the
same error. To continue using CUDA, the process must be terminated and relaunched.
enumerator cudaErrorLaunchFailure = 719
An exception occurred on the device while executing a kernel.
Common causes include dereferencing an invalid device pointer and accessing out of bounds
shared memory. Less common cases can be system specific - more information about these
cases can be found in the system specific user guide. This leaves the process in an inconsis-
tent state and any further CUDA work will return the same error. To continue using CUDA,
the process must be terminated and relaunched.
enumerator cudaErrorCooperativeLaunchTooLarge = 720
This error indicates that the number of blocks launched per grid for a kernel that was
launched via either cudaLaunchCooperativeKernel exceeds the maximum number of blocks
as allowed by cudaOccupancyMaxActiveBlocksPerMultiprocessor or cudaOccupancyMaxAc-
tiveBlocksPerMultiprocessorWithFlags times the number of multiprocessors as specified by
the device attribute cudaDevAttrMultiProcessorCount.
enumerator cudaErrorTensorMemoryLeak = 721
An exception occurred on the device while exiting a kernel using tensor memory: the tensor
memory was not completely deallocated.
This leaves the process in an inconsistent state and any further CUDA work will return the
same error. To continue using CUDA, the process must be terminated and relaunched.
enumerator cudaErrorNotPermitted = 800
This error indicates the attempted operation is not permitted.
130
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaErrorNotSupported = 801
This error indicates the attempted operation is not supported on the current system or de-
vice.
enumerator cudaErrorSystemNotReady = 802
This error indicates that the system is not yet ready to start any CUDA work.
To continue using CUDA, verify the system configuration is in a valid state and all required
driver daemons are actively running. More information about this error can be found in the
system specific user guide.
enumerator cudaErrorSystemDriverMismatch = 803
This error indicates that there is a mismatch between the versions of the display driver and
the CUDA driver.
Refer to the compatibility documentation for supported versions.
enumerator cudaErrorCompatNotSupportedOnDevice = 804
This error indicates that the system was upgraded to run with forward compatibility but the
visible hardware detected by CUDA does not support this configuration.
Refer to the compatibility documentation for the supported hardware matrix or ensure that
only supported hardware is visible during initialization via the CUDA_VISIBLE_DEVICES envi-
ronment variable.
enumerator cudaErrorMpsConnectionFailed = 805
This error indicates that the MPS client failed to connect to the MPS control daemon or the
MPS server.
enumerator cudaErrorMpsRpcFailure = 806
This error indicates that the remote procedural call between the MPS server and the MPS
client failed.
enumerator cudaErrorMpsServerNotReady = 807
This error indicates that the MPS server is not ready to accept new MPS client requests.
This error can be returned when the MPS server is in the process of recovering from a fatal
failure.
enumerator cudaErrorMpsMaxClientsReached = 808
This error indicates that the hardware resources required to create MPS client have been
exhausted.
enumerator cudaErrorMpsMaxConnectionsReached = 809
This error indicates the the hardware resources required to device connections have been
exhausted.
enumerator cudaErrorMpsClientTerminated = 810
This error indicates that the MPS client has been terminated by the server.
To continue using CUDA, the process must be terminated and relaunched.
6.2. Data types used by CUDA Runtime
131
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaErrorCdpNotSupported = 811
This error indicates, that the program is using CUDA Dynamic Parallelism, but the current
configuration, like MPS, does not support it.
enumerator cudaErrorCdpVersionMismatch = 812
This error indicates, that the program contains an unsupported interaction between differ-
ent versions of CUDA Dynamic Parallelism.
enumerator cudaErrorStreamCaptureUnsupported = 900
The operation is not permitted when the stream is capturing.
enumerator cudaErrorStreamCaptureInvalidated = 901
The current capture sequence on the stream has been invalidated due to a previous error.
enumerator cudaErrorStreamCaptureMerge = 902
The operation would have resulted in a merge of two independent capture sequences.
enumerator cudaErrorStreamCaptureUnmatched = 903
The capture was not initiated in this stream.
enumerator cudaErrorStreamCaptureUnjoined = 904
The capture sequence contains a fork that was not joined to the primary stream.
enumerator cudaErrorStreamCaptureIsolation = 905
A dependency would have been created which crosses the capture sequence boundary.
Only implicit in-stream ordering dependencies are allowed to cross the boundary.
enumerator cudaErrorStreamCaptureImplicit = 906
The operation would have resulted in a disallowed implicit dependency on a current capture
sequence from cudaStreamLegacy.
enumerator cudaErrorCapturedEvent = 907
The operation is not permitted on an event which was last recorded in a capturing stream.
enumerator cudaErrorStreamCaptureWrongThread = 908
A stream capture sequence not initiated with the cudaStreamCaptureModeRelaxed ar-
gument to cudaStreamBeginCapture was passed to cudaStreamEndCapture in a different
thread.
enumerator cudaErrorTimeout = 909
This indicates that the wait operation has timed out.
enumerator cudaErrorGraphExecUpdateFailure = 910
This error indicates that the graph update was not performed because it included changes
which violated constraints specific to instantiated graph update.
132
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaErrorExternalDevice = 911
This indicates that an error has occurred in a device outside of GPU.
It can be a synchronous error w.r.t. CUDA API or an asynchronous error from the external
device. In case of asynchronous error, it means that if cuda was waiting for an external de-
vice’s signal before consuming shared data, the external device signaled an error indicating
that the data is not valid for consumption. This leaves the process in an inconsistent state
and any further CUDA work will return the same error. To continue using CUDA, the process
must be terminated and relaunched. In case of synchronous error, it means that one or more
external devices have encountered an error and cannot complete the operation.
enumerator cudaErrorInvalidClusterSize = 912
This indicates that a kernel launch error has occurred due to cluster misconfiguration.
enumerator cudaErrorFunctionNotLoaded = 913
Indiciates a function handle is not loaded when calling an API that requires a loaded function.
enumerator cudaErrorInvalidResourceType = 914
This error indicates one or more resources passed in are not valid resource types for the
operation.
enumerator cudaErrorInvalidResourceConfiguration = 915
This error indicates one or more resources are insufficient or non-applicable for the opera-
tion.
enumerator cudaErrorStreamDetached = 917
This error indicates that the requested operation is not permitted because the stream is in
a detached state.
This can occur if the green context associated with the stream has been destroyed, limiting
the stream’s operational capabilities.
enumerator cudaErrorGraphRecaptureFailure = 918
This error indicates that a graph recapture failed and had to be terminated.
enumerator cudaErrorFabricNotReady = 919
This error indicates GPU fabric is not ready within the bounded wait while the fabric manager
probe is still in progress.
Applications may retry after a delay; for the initialization wait budget, see environment vari-
ables such as CUDA_FABRIC_INIT_TIMEOUT_MS.
enumerator cudaErrorUnknown = 999
This indicates that an unknown internal error has occurred.
enumerator cudaErrorApiFailureBase = 10000
enum cudaExternalMemoryHandleType
External memory handle types.
6.2. Data types used by CUDA Runtime
133
CUDA Runtime API Reference Manual, Release 13.5
Values:
enumerator cudaExternalMemoryHandleTypeOpaqueFd = 1
Handle is an opaque file descriptor.
enumerator cudaExternalMemoryHandleTypeOpaqueWin32 = 2
Handle is an opaque shared NT handle.
enumerator cudaExternalMemoryHandleTypeOpaqueWin32Kmt = 3
Handle is an opaque, globally shared handle.
enumerator cudaExternalMemoryHandleTypeD3D12Heap = 4
Handle is a D3D12 heap object.
enumerator cudaExternalMemoryHandleTypeD3D12Resource = 5
Handle is a D3D12 committed resource.
enumerator cudaExternalMemoryHandleTypeD3D11Resource = 6
Handle is a shared NT handle to a D3D11 resource.
enumerator cudaExternalMemoryHandleTypeD3D11ResourceKmt = 7
Handle is a globally shared handle to a D3D11 resource.
enumerator cudaExternalMemoryHandleTypeNvSciBuf = 8
Handle is an NvSciBuf object.
enum cudaExternalSemaphoreHandleType
External semaphore handle types.
Values:
enumerator cudaExternalSemaphoreHandleTypeOpaqueFd = 1
Handle is an opaque file descriptor.
enumerator cudaExternalSemaphoreHandleTypeOpaqueWin32 = 2
Handle is an opaque shared NT handle.
enumerator cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt = 3
Handle is an opaque, globally shared handle.
enumerator cudaExternalSemaphoreHandleTypeD3D12Fence = 4
Handle is a shared NT handle referencing a D3D12 fence object.
enumerator cudaExternalSemaphoreHandleTypeD3D11Fence = 5
Handle is a shared NT handle referencing a D3D11 fence object.
134
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaExternalSemaphoreHandleTypeNvSciSync = 6
Opaque handle to NvSciSync Object.
enumerator cudaExternalSemaphoreHandleTypeKeyedMutex = 7
Handle is a shared NT handle referencing a D3D11 keyed mutex object.
enumerator cudaExternalSemaphoreHandleTypeKeyedMutexKmt = 8
Handle is a shared KMT handle referencing a D3D11 keyed mutex object.
enumerator cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd = 9
Handle is an opaque handle file descriptor referencing a timeline semaphore.
enumerator cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = 10
Handle is an opaque handle file descriptor referencing a timeline semaphore.
enum cudaFabricOpStatusInfo
Fabric operation status info.
Values:
enumerator cudaFabricOpStatusInfoSuccess = 0x0
enumerator cudaFabricOpStatusInfoLast = cudaFabricOpStatusInfoSuccess
enumerator cudaFabricOpStatusInfoMax = 0x7FFFFFFF
enum cudaFabricOpStatusSource
Fabric operation status source.
Values:
enumerator cudaFabricOpStatusSourceMbarrierV1 = 0x0
1B-aligned 1B-wide status from an mbarrier.layout::v1
enumerator cudaFabricOpStatusSourceMax = 0x7FFFFFFF
enum cudaFlushGPUDirectRDMAWritesOptions
CUDA GPUDirect RDMA flush writes APIs supported on the device.
Values:
enumerator cudaFlushGPUDirectRDMAWritesOptionHost = 1 << 0
cudaDeviceFlushGPUDirectRDMAWrites() and its CUDA Driver API counterpart are supported
on the device.
6.2. Data types used by CUDA Runtime
135
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaFlushGPUDirectRDMAWritesOptionMemOps = 1 << 1
The ::CU_STREAM_WAIT_VALUE_FLUSH flag and the ::CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES
MemOp are supported on the CUDA device.
enum cudaFlushGPUDirectRDMAWritesScope
CUDA GPUDirect RDMA flush writes scopes.
Values:
enumerator cudaFlushGPUDirectRDMAWritesToOwner = 100
Blocks until remote writes are visible to the CUDA device context owning the data.
enumerator cudaFlushGPUDirectRDMAWritesToAllDevices = 200
Blocks until remote writes are visible to all CUDA device contexts.
enum cudaFlushGPUDirectRDMAWritesTarget
CUDA GPUDirect RDMA flush writes targets.
Values:
enumerator cudaFlushGPUDirectRDMAWritesTargetCurrentDevice
Sets the target for cudaDeviceFlushGPUDirectRDMAWrites() to the currently active CUDA
device context.
enum cudaFuncAttribute
CUDA function attributes that can be set using cudaFuncSetAttribute.
Values:
enumerator cudaFuncAttributeMaxDynamicSharedMemorySize = 8
Maximum dynamic shared memory size.
enumerator cudaFuncAttributePreferredSharedMemoryCarveout = 9
Preferred shared memory-L1 cache split.
enumerator cudaFuncAttributeClusterDimMustBeSet = 10
Indicator to enforce valid cluster dimension specification on kernel launch.
enumerator cudaFuncAttributeRequiredClusterWidth = 11
Required cluster width.
enumerator cudaFuncAttributeRequiredClusterHeight = 12
Required cluster height.
enumerator cudaFuncAttributeRequiredClusterDepth = 13
Required cluster depth.
136
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaFuncAttributeNonPortableClusterSizeAllowed = 14
Whether non-portable cluster scheduling policy is supported.
enumerator cudaFuncAttributeClusterSchedulingPolicyPreference = 15
Required cluster scheduling policy preference.
enumerator cudaFuncAttributeSharedMemoryMode = 16
Setting that controls a kernel’s use of non-portable or oversized shared memory configura-
tions.
enumerator cudaFuncAttributeMax
enum cudaFuncCache
CUDA function cache configurations.
Values:
enumerator cudaFuncCachePreferNone = 0
Default function cache configuration, no preference.
enumerator cudaFuncCachePreferShared = 1
Prefer larger shared memory and smaller L1 cache
enumerator cudaFuncCachePreferL1 = 2
Prefer larger L1 cache and smaller shared memory.
enumerator cudaFuncCachePreferEqual = 3
Prefer equal size L1 cache and shared memory.
enum cudaGPUDirectRDMAWritesOrdering
CUDA GPUDirect RDMA flush writes ordering features of the device.
Values:
enumerator cudaGPUDirectRDMAWritesOrderingNone = 0
The device does not natively support ordering of GPUDirect RDMA writes.
::cudaFlushGPUDirectRDMAWrites() can be leveraged if supported.
enumerator cudaGPUDirectRDMAWritesOrderingOwner = 100
Natively, the device can consistently consume GPUDirect RDMA writes, although other
CUDA devices may not.
enumerator cudaGPUDirectRDMAWritesOrderingAllDevices = 200
Any CUDA device in the system can consistently consume GPUDirect RDMA writes to this
device.
6.2. Data types used by CUDA Runtime
137
CUDA Runtime API Reference Manual, Release 13.5
enum cudaGetDriverEntryPointFlags
Flags to specify search options to be used with cudaGetDriverEntryPoint For more details see
::cuGetProcAddress.
Values:
enumerator cudaEnableDefault = 0x0
Default search mode for driver symbols.
enumerator cudaEnableLegacyStream = 0x1
Search for legacy versions of driver symbols.
enumerator cudaEnablePerThreadDefaultStream = 0x2
Search for per-thread versions of driver symbols.
enum cudaGraphChildGraphNodeOwnership
Child graph node ownership.
Values:
enumerator cudaGraphChildGraphOwnershipClone = 0
Default behavior for a child graph node.
Child graph is cloned into the parent and memory allocation/free nodes can’t be present in
the child graph.
enumerator cudaGraphChildGraphOwnershipMove = 1
The child graph is moved to the parent.
The handle to the child graph is owned by the parent and will be destroyed when the parent
is destroyed.
The following restrictions apply to child graphs after they have been moved: Cannot be inde-
pendently instantiated or destroyed; Cannot be added as a child graph of a separate parent
graph; Cannot be used as an argument to cudaGraphExecUpdate; Cannot have additional
memory allocation or free nodes added.
enumerator cudaGraphChildGraphOwnershipInvalid = -1
Invalid ownership flag.
Set when params are queried to prevent accidentally reusing the driver-owned graph object
enum cudaGraphConditionalHandleFlags
Values:
enumerator cudaGraphCondAssignDefault = 1
Apply default handle value when graph is launched.
enum cudaGraphConditionalNodeType
CUDA conditional node types.
Values:
138
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaGraphCondTypeIf = 0
Conditional ‘if/else’ Node.
Body[0] executed if condition is non-zero. If size == 2, an optional ELSE graph is created
and this is executed if the condition is zero.
enumerator cudaGraphCondTypeWhile = 1
Conditional ‘while’ Node.
Body executed repeatedly while condition value is non-zero.
enumerator cudaGraphCondTypeSwitch = 2
Conditional ‘switch’ Node.
Body[n] is executed once, where ‘n’ is the value of the condition. If the condition does not
match a body index, no body is launched.
enum cudaGraphDebugDotFlags
CUDA Graph debug write options.
Values:
enumerator cudaGraphDebugDotFlagsVerbose = 1 << 0
Output all debug data as if every debug flag is enabled.
enumerator cudaGraphDebugDotFlagsKernelNodeParams = 1 << 2
Adds cudaKernelNodeParams to output.
enumerator cudaGraphDebugDotFlagsMemcpyNodeParams = 1 << 3
Adds cudaMemcpy3DParms to output.
enumerator cudaGraphDebugDotFlagsMemsetNodeParams = 1 << 4
Adds cudaMemsetParams to output.
enumerator cudaGraphDebugDotFlagsHostNodeParams = 1 << 5
Adds cudaHostNodeParams to output.
enumerator cudaGraphDebugDotFlagsEventNodeParams = 1 << 6
Adds cudaEvent_t handle from record and wait nodes to output.
enumerator cudaGraphDebugDotFlagsExtSemasSignalNodeParams = 1 << 7
Adds cudaExternalSemaphoreSignalNodeParams values to output.
enumerator cudaGraphDebugDotFlagsExtSemasWaitNodeParams = 1 << 8
Adds cudaExternalSemaphoreWaitNodeParams to output.
enumerator cudaGraphDebugDotFlagsKernelNodeAttributes = 1 << 9
Adds cudaKernelNodeAttrID values to output.
6.2. Data types used by CUDA Runtime
139
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaGraphDebugDotFlagsHandles = 1 << 10
Adds node handles and every kernel function handle to output.
enumerator cudaGraphDebugDotFlagsConditionalNodeParams = 1 << 15
Adds cudaConditionalNodeParams to output.
enumerator cudaGraphDebugDotFlagsMemcpyBatchNodeParams = 1 << 16
Adds batch memcpy node parameters to the output.
enum cudaGraphDependencyType
Type annotations that can be applied to graph edges as part of cudaGraphEdgeData.
Values:
enumerator cudaGraphDependencyTypeDefault = 0
This is an ordinary dependency.
enumerator cudaGraphDependencyTypeProgrammatic = 1
This dependency type allows the downstream node to use cudaGridDependencySynchro-
nize().
It may only be used between kernel nodes, and must be used with either the cudaGraphKer-
nelNodePortProgrammatic or cudaGraphKernelNodePortLaunchCompletion outgoing port.
enum cudaGraphExecUpdateResult
CUDA Graph Update error types.
Values:
enumerator cudaGraphExecUpdateSuccess = 0x0
The update succeeded.
enumerator cudaGraphExecUpdateError = 0x1
The update failed for an unexpected reason which is described in the return value of the
function.
enumerator cudaGraphExecUpdateErrorTopologyChanged = 0x2
The update failed because the topology changed.
enumerator cudaGraphExecUpdateErrorNodeTypeChanged = 0x3
The update failed because a node type changed.
enumerator cudaGraphExecUpdateErrorFunctionChanged = 0x4
The update failed because the function of a kernel node changed (CUDA driver < 11.2)
enumerator cudaGraphExecUpdateErrorParametersChanged = 0x5
The update failed because the parameters changed in a way that is not supported.
140
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaGraphExecUpdateErrorNotSupported = 0x6
The update failed because something about the node is not supported.
enumerator cudaGraphExecUpdateErrorUnsupportedFunctionChange = 0x7
The update failed because the function of a kernel node changed in an unsupported way.
enumerator cudaGraphExecUpdateErrorAttributesChanged = 0x8
The update failed because the node attributes changed in a way that is not supported.
enum cudaGraphInstantiateFlags
Flags for instantiating a graph.
Values:
enumerator cudaGraphInstantiateFlagAutoFreeOnLaunch = 1
Automatically free memory allocated in a graph before relaunching.
enumerator cudaGraphInstantiateFlagUpload = 2
Automatically upload the graph after instantiation.
Only supported by cudaGraphInstantiateWithParams . The upload will be performed using
the
stream provided in instantiateParams.
enumerator cudaGraphInstantiateFlagDeviceLaunch = 4
Instantiate the graph to be launchable from the device.
This flag can only
be used on platforms which support unified addressing. This flag cannot be
used in conjunction with cudaGraphInstantiateFlagAutoFreeOnLaunch.
enumerator cudaGraphInstantiateFlagUseNodePriority = 8
Run the graph using the per-node priority attributes rather than the priority of the stream
it is launched into.
enum cudaGraphInstantiateResult
Graph instantiation results.
Values:
enumerator cudaGraphInstantiateSuccess = 0
Instantiation succeeded.
enumerator cudaGraphInstantiateError = 1
Instantiation failed for an unexpected reason which is described in the return value of the
function.
6.2. Data types used by CUDA Runtime
141
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaGraphInstantiateInvalidStructure = 2
Instantiation failed due to invalid structure, such as cycles.
enumerator cudaGraphInstantiateNodeOperationNotSupported = 3
Instantiation for device launch failed because the graph contained an unsupported opera-
tion.
enumerator cudaGraphInstantiateMultipleDevicesNotSupported = 4
Instantiation for device launch failed due to the nodes belonging to different contexts.
enumerator cudaGraphInstantiateConditionalHandleUnused = 5
One or more conditional handles are not associated with conditional nodes.
enum cudaGraphKernelNodeField
Specifies the field to update when performing multiple node updates from the device.
Values:
enumerator cudaGraphKernelNodeFieldInvalid = 0
Invalid field.
enumerator cudaGraphKernelNodeFieldGridDim
Grid dimension update.
enumerator cudaGraphKernelNodeFieldParam
Kernel parameter update.
enumerator cudaGraphKernelNodeFieldEnabled
Node enable/disable.
enum cudaGraphMemAttributeType
Graph memory attributes.
Values:
enumerator cudaGraphMemAttrUsedMemCurrent = 0x0
(value type = cuuint64_t) Amount of memory, in bytes, currently associated with graphs.
enumerator cudaGraphMemAttrUsedMemHigh = 0x1
(value type = cuuint64_t) High watermark of memory, in bytes, associated with graphs since
the last time it was reset.
High watermark can only be reset to zero.
enumerator cudaGraphMemAttrReservedMemCurrent = 0x2
(value type = cuuint64_t) Amount of memory, in bytes, currently allocated for use by the
CUDA graphs asynchronous allocator.
142
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaGraphMemAttrReservedMemHigh = 0x3
(value type = cuuint64_t) High watermark of memory, in bytes, currently allocated for use
by the CUDA graphs asynchronous allocator.
enum cudaGraphNodeType
CUDA Graph node types.
Values:
enumerator cudaGraphNodeTypeKernel = 0x00
GPU kernel node.
enumerator cudaGraphNodeTypeMemcpy = 0x01
Memcpy node.
enumerator cudaGraphNodeTypeMemset = 0x02
Memset node.
enumerator cudaGraphNodeTypeHost = 0x03
Host (executable) node.
enumerator cudaGraphNodeTypeGraph = 0x04
Node which executes an embedded graph.
enumerator cudaGraphNodeTypeEmpty = 0x05
Empty (no-op) node.
enumerator cudaGraphNodeTypeWaitEvent = 0x06
External event wait node.
enumerator cudaGraphNodeTypeEventRecord = 0x07
External event record node.
enumerator cudaGraphNodeTypeExtSemaphoreSignal = 0x08
External semaphore signal node.
enumerator cudaGraphNodeTypeExtSemaphoreWait = 0x09
External semaphore wait node.
enumerator cudaGraphNodeTypeMemAlloc = 0x0a
Memory allocation node.
enumerator cudaGraphNodeTypeMemFree = 0x0b
Memory free node.
6.2. Data types used by CUDA Runtime
143
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaGraphNodeTypeConditional = 0x0d
Conditional node.
May be used to implement a conditional
↪→execution path or loop
inside of a graph. The graph(s) contained
↪→within the body of the conditional node
can be selectively executed or iterated
↪→upon based on the value of a conditional
variable.
Handles must be created in advance of
↪→creating the node
using ::cudaGraphConditionalHandleCreate.
The following restrictions apply to graphs
↪→which contain conditional nodes:
The graph cannot be used in a child node.
Only one instantiation of the graph may
↪→exist at any point in time.
The graph cannot be cloned.
To set the control value, supply a default
↪→value when creating the handle and∕or
call ::cudaGraphSetConditional from device
↪→code.
enumerator cudaGraphNodeTypeMemcpyBatch = 0x0e
Batch Memcpy Node.
enumerator cudaGraphNodeTypeReserved16 = 0x10
Reserved.
enumerator cudaGraphNodeTypeExternalEngine = 0x11
Reserved for External Engine node.
enumerator cudaGraphNodeTypeCount
enum cudaGraphRecaptureStatus
Possible recapture statuses that can be returned to the user callback.
Values:
enumerator cudaGraphRecaptureEligibleForUpdate = 0
Node is eligible for update in an instantiated graph.
enumerator cudaGraphRecaptureIneligibleForUpdate = 1
Parameter changes in the node cannot be applied to an instantiated graph.
144
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaGraphRecaptureError = 2
Error while attempting to recapture the node.
The recapture will be ended regardless of the return value from the callback.
enum cudaGraphicsCubeFace
CUDA graphics interop array indices for cube maps.
Values:
enumerator cudaGraphicsCubeFacePositiveX = 0x00
Positive X face of cubemap.
enumerator cudaGraphicsCubeFaceNegativeX = 0x01
Negative X face of cubemap.
enumerator cudaGraphicsCubeFacePositiveY = 0x02
Positive Y face of cubemap.
enumerator cudaGraphicsCubeFaceNegativeY = 0x03
Negative Y face of cubemap.
enumerator cudaGraphicsCubeFacePositiveZ = 0x04
Positive Z face of cubemap.
enumerator cudaGraphicsCubeFaceNegativeZ = 0x05
Negative Z face of cubemap.
enum cudaGraphicsMapFlags
CUDA graphics interop map flags.
Values:
enumerator cudaGraphicsMapFlagsNone = 0
Default; Assume resource can be read/written.
enumerator cudaGraphicsMapFlagsReadOnly = 1
CUDA will not write to this resource.
enumerator cudaGraphicsMapFlagsWriteDiscard = 2
CUDA will only write to and will not read from this resource.
enum cudaGraphicsRegisterFlags
CUDA graphics interop register flags.
Values:
6.2. Data types used by CUDA Runtime
145
CUDA Runtime API Reference Manual, Release 13.5
enumerator cudaGraphicsRegisterFlagsNone = 0
Default.
enumerator cudaGraphicsRegisterFlagsReadOnly = 1
CUDA will not write to this resource.
enumerator cudaGraphicsRegisterFlagsWriteDiscard = 2
CUDA will only write to and will not read from this resource.
enumerator cudaGraphicsRegisterFlagsSurfaceLoadStore = 4
CUDA will bind this resource to a surface reference.
enumerator cudaGraphicsRegisterFlagsTextureGather = 8
CUDA will perform texture gather operations on this resource.
enum cudaHostTaskSyncMode
Flags for host task sync mode.
Values:
enumerator cudaHostTaskBlocking = 0x0
enumerator cudaHostTaskSpinWait = 0x1
enum cudaJitOption
Online compiler and linker options.
Values:
enumerator cudaJitMaxRegisters = 0
Max number of registers that a thread may use.
Option type: unsigned int
Applies to: compiler only
enumerator cudaJitThreadsPerBlock = 1
IN: Specifies minimum number of threads per block to target compilation for
OUT: Returns the number of threads the compiler actually targeted.
This restricts the resource utilization of the compiler (e.g. max registers) such that a block
with the given number of threads should be able to launch based on register limitations.
Note, this option does not currently take into account any other resource limitations, such
as shared memory utilization.
Option type: unsigned int
Applies to: compiler only
146
Chapter 6. APIs
|
||
|
|
|