|
|
CUDA Runtime API Reference Manual, Release 13.5
was current when the allocation was made (and if that device is deinitialized then this allo-
cation will vanish with that device’s state).
▶ devicePointer is the device pointer alias through which the memory referred to by ptr may
be accessed on the current device. If the memory referred to by ptr cannot be accessed
directly by the current device then this is NULL.
▶ hostPointer is the host pointer alias through which the memory referred to by ptr may be
accessed on the host. If the memory referred to by ptr cannot be accessed directly by the
host then this is NULL.
▶ localityDomainOrdinal is the locality domain ordinal for device allocations localized to a lo-
cality domain, or -1 when the allocation is not localized to a locality domain.
See also:
cudaGetDeviceCount, cudaGetDevice, cudaSetDevice, cudaChooseDevice, cudaInitDevice, ::cu-
PointerGetAttributes
Note: In CUDA 11.0 forward passing host pointer will return cudaMemoryTypeUnregistered in
cudaPointerAttributes::type and call will return cudaSuccess.
Note: Note that this function may also return cudaErrorInitializationError, cudaErrorInsufficient-
Driver or cudaErrorNoDevice if this call tries to initialize internal CUDA RT state.
Note: Note that as specified by cudaStreamAddCallback no CUDA function may be called from
callback. cudaErrorNotPermitted may, but is not guaranteed to, be returned as a diagnostic in
such case.
Parameters
▶ attributes - - Attributes for the specified pointer
▶ ptr - - Pointer to get attributes for
Returns
cudaSuccess, cudaErrorInvalidDevice, cudaErrorInvalidValue
6.37. VDPAU Interoperability
This section describes the VDPAU interoperability functions of the CUDA runtime application program-
ming interface.
6.37. VDPAU Interoperability
585
CUDA Runtime API Reference Manual, Release 13.5
Functions
__host__ cudaError_t cudaGraphicsVDPAURegisterOutputSurface(struct cudaGraphicsResource
**resource, VdpOutputSurface vdpSurface, unsigned int flags)
Register a VdpOutputSurface object.
__host__ cudaError_t cudaGraphicsVDPAURegisterVideoSurface(struct cudaGraphicsResource **re-
source, VdpVideoSurface vdpSurface, unsigned int flags)
Register a VdpVideoSurface object.
__host__ cudaError_t cudaVDPAUGetDevice(int *device, VdpDevice vdpDevice, VdpGetProcAddress
*vdpGetProcAddress)
Gets the CUDA device associated with a VdpDevice.
__host__ cudaError_t cudaVDPAUSetVDPAUDevice(int device, VdpDevice vdpDevice, VdpGetPro-
cAddress *vdpGetProcAddress)
Sets a CUDA device to use VDPAU interoperability.
6.37.1. Functions
__host__ cudaError_t cudaGraphicsVDPAURegisterOutputSurface(struct
cudaGraphicsResource
**resource,
VdpOutputSurface
vdpSurface, unsigned int
flags)
Register a VdpOutputSurface object.
Registers the VdpOutputSurface specified by vdpSurface for access by CUDA. A handle to
the registered object is returned as resource. The surface’s intended usage is specified using
flags, as follows:
▶ cudaGraphicsMapFlagsNone: Specifies no hints about how this resource will be used. It is
therefore assumed that this resource will be read from and written to by CUDA. This is the
default value.
▶ cudaGraphicsMapFlagsReadOnly: Specifies that CUDA will not write to this resource.
▶ cudaGraphicsMapFlagsWriteDiscard: Specifies that CUDA will not read from this resource
and will write over the entire contents of the resource, so none of the data previously stored
in the resource will be preserved.
See also:
cudaVDPAUSetVDPAUDevice,
cudaGraphicsUnregisterResource,
cudaGraphicsSubRe-
sourceGetMappedArray, ::cuGraphicsVDPAURegisterOutputSurface
Note: Note that this function may also return error codes from previous, asynchronous launches.
Parameters
586
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
▶ resource - - Pointer to the returned object handle
▶ vdpSurface - - VDPAU object to be registered
▶ flags - - Map flags
Returns
cudaSuccess,
cudaErrorInvalidDevice,
cudaErrorInvalidValue,
cudaErrorIn-
validResourceHandle, cudaErrorUnknown
__host__ cudaError_t cudaGraphicsVDPAURegisterVideoSurface(struct cudaGraphicsResource
**resource, VdpVideoSurface
vdpSurface, unsigned int
flags)
Register a VdpVideoSurface object.
Registers the VdpVideoSurface specified by vdpSurface for access by CUDA. A handle to the
registered object is returned as resource. The surface’s intended usage is specified using
flags, as follows:
▶ cudaGraphicsMapFlagsNone: Specifies no hints about how this resource will be used. It is
therefore assumed that this resource will be read from and written to by CUDA. This is the
default value.
▶ cudaGraphicsMapFlagsReadOnly: Specifies that CUDA will not write to this resource.
▶ cudaGraphicsMapFlagsWriteDiscard: Specifies that CUDA will not read from this resource
and will write over the entire contents of the resource, so none of the data previously stored
in the resource will be preserved.
See also:
cudaVDPAUSetVDPAUDevice,
cudaGraphicsUnregisterResource,
cudaGraphicsSubRe-
sourceGetMappedArray, ::cuGraphicsVDPAURegisterVideoSurface
Note: Note that this function may also return error codes from previous, asynchronous launches.
Parameters
▶ resource - - Pointer to the returned object handle
▶ vdpSurface - - VDPAU object to be registered
▶ flags - - Map flags
Returns
cudaSuccess,
cudaErrorInvalidDevice,
cudaErrorInvalidValue,
cudaErrorIn-
validResourceHandle, cudaErrorUnknown
__host__ cudaError_t cudaVDPAUGetDevice(int *device, VdpDevice vdpDevice, VdpGetProcAddress
*vdpGetProcAddress)
Gets the CUDA device associated with a VdpDevice.
Returns the CUDA device associated with a VdpDevice, if applicable.
6.37. VDPAU Interoperability
587
CUDA Runtime API Reference Manual, Release 13.5
See also:
cudaVDPAUSetVDPAUDevice, ::cuVDPAUGetDevice
Note: Note that this function may also return error codes from previous, asynchronous launches.
Parameters
▶ device - - Returns the device associated with vdpDevice, or -1 if the device
associated with vdpDevice is not a compute device.
▶ vdpDevice - - A VdpDevice handle
▶ vdpGetProcAddress - - VDPAU’s VdpGetProcAddress function pointer
Returns
cudaSuccess
__host__ cudaError_t cudaVDPAUSetVDPAUDevice(int device, VdpDevice vdpDevice,
VdpGetProcAddress *vdpGetProcAddress)
Sets a CUDA device to use VDPAU interoperability.
Records vdpDevice as the VdpDevice for VDPAU interoperability with the CUDA device device
and sets device as the current device for the calling host thread.
This function will immediately initialize the primary context on device if needed.
If device has already been initialized then this call will fail with the error cudaErrorSetOnAc-
tiveProcess. In this case it is necessary to reset device using cudaDeviceReset() before VDPAU
interoperability on device may be enabled.
See also:
cudaGraphicsVDPAURegisterVideoSurface, cudaGraphicsVDPAURegisterOutputSurface, cudaDe-
viceReset
Note: Note that this function may also return error codes from previous, asynchronous launches.
Parameters
▶ device - - Device to use for VDPAU interoperability
▶ vdpDevice - - The VdpDevice to interoperate with
▶ vdpGetProcAddress - - VDPAU’s VdpGetProcAddress function pointer
Returns
cudaSuccess, cudaErrorInvalidDevice, cudaErrorSetOnActiveProcess
588
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
6.38. Version Management
Functions
__host__ cudaError_t cudaDriverGetVersion(int *driverVersion)
Returns the latest version of CUDA supported by the driver.
__host__ cudaError_t cudaRuntimeGetVersion(int *runtimeVersion)
Returns the CUDA Runtime version.
6.38.1. Functions
__host__ cudaError_t cudaDriverGetVersion(int *driverVersion)
Returns the latest version of CUDA supported by the driver.
Returns in *driverVersion the latest version of CUDA supported by the driver. The version is
returned as (1000 major + 10 minor). For example, CUDA 9.2 would be represented by 9020. If
no driver is installed, then 0 is returned as the driver version.
This function automatically returns cudaErrorInvalidValue if driverVersion is NULL.
See also:
cudaRuntimeGetVersion, ::cuDriverGetVersion
Note: Note that this function may also return error codes from previous, asynchronous launches.
Note: Note that this function may also return cudaErrorInitializationError, cudaErrorInsufficient-
Driver or cudaErrorNoDevice if this call tries to initialize internal CUDA RT state.
Note: Note that as specified by cudaStreamAddCallback no CUDA function may be called from
callback. cudaErrorNotPermitted may, but is not guaranteed to, be returned as a diagnostic in
such case.
Parameters
driverVersion - - Returns the CUDA driver version.
Returns
cudaSuccess, cudaErrorInvalidValue
__host__ cudaError_t cudaRuntimeGetVersion(int *runtimeVersion)
Returns the CUDA Runtime version.
Returns in *runtimeVersion the version number of the current CUDA Runtime instance. The
version is returned as (1000 major + 10 minor). For example, CUDA 9.2 would be represented by
9020.
6.38. Version Management
589
CUDA Runtime API Reference Manual, Release 13.5
As of CUDA 12.0, this function no longer initializes CUDA. The purpose of this API is solely to
return a compile-time constant stating the CUDA Toolkit version in the above format.
As of CUDA 13.0, on Windows, the runtimeVersion may not be the same as the CUDA Toolkit
version the app was built with. Windows will use the CUDA Runtime packaged with the display
driver, and that version will be reported.
This function automatically returns cudaErrorInvalidValue if the runtimeVersion argument is
NULL.
See also:
cudaDriverGetVersion, ::cuDriverGetVersion
Note: Note that this function may also return cudaErrorInitializationError, cudaErrorInsufficient-
Driver or cudaErrorNoDevice if this call tries to initialize internal CUDA RT state.
Note: Note that as specified by cudaStreamAddCallback no CUDA function may be called from
callback. cudaErrorNotPermitted may, but is not guaranteed to, be returned as a diagnostic in
such case.
Parameters
runtimeVersion - - Returns the CUDA Runtime version.
Returns
cudaSuccess, cudaErrorInvalidValue
C++ API Routines
impl_private
Data types used by CUDA Runtime
Device Management
impl_private
Device Management [DEPRECATED]
This section describes the deprecated device management functions of the CUDA runtime ap-
plication programming interface.
Direct3D 10 Interoperability
impl_private
Direct3D 10 Interoperability [DEPRECATED]
This section describes deprecated Direct3D 10 interoperability functions.
Direct3D 11 Interoperability
impl_private
Direct3D 11 Interoperability [DEPRECATED]
This section describes deprecated Direct3D 11 interoperability functions.
Direct3D 9 Interoperability
impl_private
Direct3D 9 Interoperability [DEPRECATED]
This section describes deprecated Direct3D 9 interoperability functions.
590
Chapter 6. APIs
CUDA Runtime API Reference Manual, Release 13.5
Driver Entry Point Access
This section describes the driver entry point access functions of CUDA runtime application pro-
gramming interface.
EGL Interoperability
This section describes the EGL interoperability functions of the CUDA runtime application pro-
gramming interface.
Error Handling
This section describes the error handling functions of the CUDA runtime application program-
ming interface.
Error Log Management Functions
This section describes the error log management functions of the CUDA runtime application
programming interface.
Event Management
This section describes the event management functions of the CUDA runtime application pro-
gramming interface.
Execution Context Management
This section describes the execution context management functions of the CUDA runtime ap-
plication programming interface.
Execution Control
This section describes the execution control functions of the CUDA runtime application program-
ming interface.
Execution Control [DEPRECATED]
This section describes the deprecated execution control functions of the CUDA runtime applica-
tion programming interface.
External Resource Interoperability
This section describes the external resource interoperability functions of the CUDA runtime ap-
plication programming interface.
Graph Management
This section describes the graph management functions of CUDA runtime application program-
ming interface.
Graphics Interoperability
This section describes the graphics interoperability functions of the CUDA runtime application
programming interface.
Interactions with the CUDA Driver API
This section describes the interactions between the CUDA Driver API and the CUDA Runtime API.
Library Management
This section describes the library management functions of the CUDA runtime application pro-
gramming interface.
Logical Endpoint
This section describes the functions for Logical Endpoint operations management.
Memory Management
This section describes the memory management functions of the CUDA runtime application pro-
gramming interface.
Memory Management [DEPRECATED]
This section describes deprecated memory management functions of the CUDA runtime appli-
cation programming interface.
6.38. Version Management
591
CUDA Runtime API Reference Manual, Release 13.5
Occupancy
This section describes the occupancy calculation functions of the CUDA runtime application pro-
gramming interface.
OpenGL Interoperability
impl_private
OpenGL Interoperability [DEPRECATED]
This section describes deprecated OpenGL interoperability functionality.
Peer Device Memory Access
This section describes the peer device memory access functions of the CUDA runtime application
programming interface.
Profiler Control
This section describes the profiler control functions of the CUDA runtime application program-
ming interface.
Stream Management
This section describes the stream management functions of the CUDA runtime application pro-
gramming interface.
Stream Ordered Memory Allocator
Surface Object Management
This section describes the low level texture object management functions of the CUDA runtime
application programming interface.
Texture Object Management
This section describes the low level texture object management functions of the CUDA runtime
application programming interface.
Unified Addressing
This section describes the unified addressing functions of the CUDA runtime application pro-
gramming interface.
VDPAU Interoperability
This section describes the VDPAU interoperability functions of the CUDA runtime application
programming interface.
Version Management
592
Chapter 6. APIs
Chapter 7. Structs
7.1. CUuuid_st
struct CUuuid_st
Public Members
char bytes[16]
< CUDA definition of UUID
7.2. cudaAccessPolicyWindow
struct cudaAccessPolicyWindow
Specifies an access policy for a window, a contiguous extent of memory beginning at base_ptr
and ending at base_ptr + num_bytes.
Partition into many segments and assign segments such that. sum of “hit segments” / window
== approx. ratio. sum of “miss segments” / window == approx 1-ratio. Segments and ratio spec-
ifications are fitted to the capabilities of the architecture. Accesses in a hit segment apply the
hitProp access policy. Accesses in a miss segment apply the missProp access policy.
Public Members
void *base_ptr
Starting address of the access policy window.
CUDA driver may align it.
enum cudaAccessProperty hitProp
::CUaccessProperty set for hit.
593
CUDA Runtime API Reference Manual, Release 13.5
float hitRatio
hitRatio specifies percentage of lines assigned hitProp, rest are assigned missProp.
enum cudaAccessProperty missProp
::CUaccessProperty set for miss.
Must be either NORMAL or STREAMING.
size_t num_bytes
Size in bytes of the window policy.
CUDA driver may restrict the maximum size and alignment.
7.3. cudaArrayMemoryRequirements
struct cudaArrayMemoryRequirements
CUDA array and CUDA mipmapped array memory requirements.
Public Members
size_t alignment
Alignment necessary for mapping the array.
unsigned int reserved[4]
size_t size
Total size of the array.
7.4. cudaArraySparseProperties
struct cudaArraySparseProperties
Sparse CUDA array and CUDA mipmapped array properties.
594
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
Public Members
unsigned int depth
Tile depth in elements.
unsigned int flags
Flags will either be zero or cudaArraySparsePropertiesSingleMipTail.
unsigned int height
Tile height in elements.
unsigned int miptailFirstLevel
First mip level at which the mip tail begins.
unsigned long long miptailSize
Total size of the mip tail.
unsigned int reserved[4]
struct cudaArraySparseProperties::[anonymous] tileExtent
unsigned int width
Tile width in elements.
7.5. cudaAsyncNotificationInfo_t
struct cudaAsyncNotificationInfo_t
Information describing an async notification event.
Public Members
unsigned long long bytesOverBudget
The number of bytes that the process has allocated above its device memory budget.
union cudaAsyncNotificationInfo_t::[anonymous] info
Information about the notification.
type must be checked in order to interpret this field.
struct cudaAsyncNotificationInfo_t::[anonymous]::[anonymous] overBudget
Information about notifications of type cudaAsyncNotificationTypeOverBudget.
7.5. cudaAsyncNotificationInfo_t
595
CUDA Runtime API Reference Manual, Release 13.5
cudaAsyncNotificationType type
The type of notification being sent.
7.6. cudaChannelFormatDesc
struct cudaChannelFormatDesc
CUDA Channel format descriptor.
Public Members
enum cudaChannelFormatKind f
Channel format kind.
int w
w
int x
x
int y
y
int z
z
7.7. cudaChildGraphNodeParams
struct cudaChildGraphNodeParams
Child graph node parameters.
Public Members
cudaGraph_t graph
The child graph to clone into the node for node creation, or a handle to the graph owned by
the node for node query.
The graph must not contain conditional nodes. Graphs containing memory allocation or
memory free nodes must set the ownership to be moved to the parent.
596
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
enum cudaGraphChildGraphNodeOwnership ownership
The ownership relationship of the child graph node.
7.8. cudaConditionalNodeParams
struct cudaConditionalNodeParams
CUDA conditional node parameters.
Public Members
cudaExecutionContext_t ctx
CUDA Execution Context.
cudaGraphConditionalHandle handle
Conditional node handle.
Handles must be created in advance of creating the node using cudaGraphConditionalHan-
dleCreate.
cudaGraph_t *phGraph_out
CUDA-owned array populated with conditional node child graphs during creation of the node.
Valid for the lifetime of the conditional node. The contents of the graph(s) are subject to
the following constraints:
▶ Allowed node types are kernel nodes, empty nodes, child graphs, memsets, memcopies,
and conditionals. This applies recursively to child graphs and conditional bodies.
▶ All kernels, including kernels in nested conditionals or child graphs at any level, must
belong to the same device context.
These graphs may be populated using graph node creation APIs or cudaStreamBeginCap-
tureToGraph. cudaGraphCondTypeIf: phGraph_out[0] is executed when the condition is
non-zero. If size == 2, phGraph_out[1] will be executed when the condition is zero. cud-
aGraphCondTypeWhile: phGraph_out[0] is executed as long as the condition is non-zero.
cudaGraphCondTypeSwitch: phGraph_out[n] is executed when the condition is equal to n.
If the condition >= size, no body graph is executed.
unsigned int size
Size of graph output array.
Allowed values are 1 for cudaGraphCondTypeWhile, 1 or 2 for cudaGraphCondTypeIf, or any
value greater than zero for cudaGraphCondTypeSwitch.
enum cudaGraphConditionalNodeType type
Type of conditional node.
7.8. cudaConditionalNodeParams
597
CUDA Runtime API Reference Manual, Release 13.5
7.9. cudaDevResource
struct cudaDevResource
A tagged union describing different resources identified by the type field.
This structure should not be directly modified outside of the API that created it.
struct {
enum cudaDevResourceType type;
union {
struct cudaDevSmResource sm;
struct cudaDevWorkqueueConfigResource wqConfig;
struct cudaDevWorkqueueResource wq;
};
};
▶ If type is cudaDevResourceTypeInvalid, this resoure is not valid and cannot be further
accessed.
▶ If type is cudaDevResourceTypeSm, the cudaDevSmResource structure sm is filled in. For
example, sm.smCount will reflect the amount of streaming multiprocessors available in this
resource.
▶ If type is cudaDevResourceTypeWorkqueueConfig, the cudaDevWorkqueueConfigRe-
source structure wqConfig is filled in.
▶ If type is cudaDevResourceTypeWorkqueue, the cudaDevWorkqueueResource structure
wq is filled in.
Public Members
union cudaDevResource::[anonymous] [anonymous]
unsigned char _internal_padding[92]
unsigned char _oversize[40]
struct cudaDevResource_st *nextResource
struct cudaDevSmResource sm
Resource corresponding to cudaDevResourceTypeSm type.
enum cudaDevResourceType type
Type of resource, dictates which union field was last set.
struct cudaDevWorkqueueResource wq
Resource corresponding to cudaDevResourceTypeWorkqueue type.
598
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
struct cudaDevWorkqueueConfigResource wqConfig
Resource corresponding to cudaDevResourceTypeWorkqueueConfig type.
7.10. cudaDevSmResource
struct cudaDevSmResource
Data for SM-related resources All parameters in this structure are OUTPUT only.
Do not write to any of the fields in this structure.
Public Members
unsigned int flags
The flags set on this SM resource.
For available flags see cudaDevSmResourceGroup_flags.
unsigned int localityDomainId
Locality domain that the SM must be located on.
Only valid if cudaDevSmResourceConstraintTypeLocalityDomainId is set in flags
unsigned int minSmPartitionSize
The minimum number of streaming multiprocessors required to partition this resource.
unsigned int smCoscheduledAlignment
The number of streaming multiprocessors in this resource that are guaranteed to be co-
scheduled on the same GPU processing cluster.
smCount will be a multiple of this value, unless the backfill flag is set.
unsigned int smCount
The amount of streaming multiprocessors available in this resource.
7.11. cudaDevSmResourceGroupParams
struct cudaDevSmResourceGroupParams
Input data for splitting SMs.
7.10. cudaDevSmResource
599
CUDA Runtime API Reference Manual, Release 13.5
Public Members
unsigned int coscheduledSmCount
The amount of co-scheduled SMs grouped together for locality purposes.
unsigned int flags
Combination of cudaDevSmResourceGroup_flags values to indicate this this group is cre-
ated.
unsigned int localityDomainId
Locality domain that the SM must be located on.
Only valid if cudaDevSmResourceGroupLocalityDomainId is set in flags
unsigned int preferredCoscheduledSmCount
When possible, combine co-scheduled groups together into larger groups of this size.
unsigned int reserved[11]
unsigned int smCount
The amount of SMs available in this resource.
7.12. cudaDevWorkqueueConfigResource
struct cudaDevWorkqueueConfigResource
Data for workqueue configuration related resources.
Public Members
int device
The device on which the workqueue resources are available.
enum cudaDevWorkqueueConfigScope sharingScope
The sharing scope for the workqueue resources.
unsigned int wqConcurrencyLimit
The expected maximum number of concurrent stream-ordered workloads.
600
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
7.13. cudaDevWorkqueueResource
struct cudaDevWorkqueueResource
Handle to a pre-existing workqueue related resource.
Public Members
unsigned char reserved[40]
Reserved for future use.
7.14. cudaDeviceProp
struct cudaDeviceProp
CUDA device properties.
Public Members
int accessPolicyMaxWindowSize
The maximum value of cudaAccessPolicyWindow::num_bytes.
int asyncEngineCount
Number of asynchronous engines.
int canMapHostMemory
Device can map host memory with cudaHostAlloc/cudaHostGetDevicePointer.
int canUseHostPointerForRegisteredMem
Device can access host registered memory at the same virtual address as the CPU.
int clusterLaunch
Indicates device supports cluster launch.
int computePreemptionSupported
Device supports Compute Preemption.
int concurrentKernels
Device can possibly execute multiple kernels concurrently.
int concurrentManagedAccess
Device can coherently access managed memory concurrently with the CPU.
7.13. cudaDevWorkqueueResource
601
CUDA Runtime API Reference Manual, Release 13.5
int cooperativeLaunch
Device supports launching cooperative kernels via cudaLaunchCooperativeKernel.
int deferredMappingCudaArraySupported
1 if the device supports deferred mapping CUDA arrays and CUDA mipmapped arrays
int deviceNumaConfig
NUMA configuration of a device: value is of type cudaDeviceNumaConfig enum.
int deviceNumaId
NUMA node ID of the GPU memory.
int directManagedMemAccessFromHost
Host can directly access managed memory on the device without migration.
int ECCEnabled
Device has ECC support enabled.
int globalL1CacheSupported
Device supports caching globals in L1.
unsigned int gpuDirectRDMAFlushWritesOptions
Bitmask to be interpreted according to the cudaFlushGPUDirectRDMAWritesOptions enum.
int gpuDirectRDMASupported
1 if the device supports GPUDirect RDMA APIs, 0 otherwise
int gpuDirectRDMAWritesOrdering
See the cudaGPUDirectRDMAWritesOrdering enum for numerical values.
unsigned int gpuPciDeviceID
The combined 16-bit PCI device ID and 16-bit PCI vendor ID.
unsigned int gpuPciSubsystemID
The combined 16-bit PCI subsystem ID and 16-bit PCI subsystem vendor ID.
int hostNativeAtomicSupported
Link between the device and the host supports native atomic operations.
int hostNumaId
NUMA ID of the host node closest to the device or -1 when system does not support NUMA.
int hostNumaMultinodeIpcSupported
1 if the device supports HostNuma location IPC between nodes in a multi-node system.
602
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
int hostRegisterReadOnlySupported
Device supports using the cudaHostRegister flag cudaHostRegisterReadOnly to register
memory that must be mapped as read-only to the GPU.
int hostRegisterSupported
Device supports host memory registration via cudaHostRegister.
int integrated
Device is integrated as opposed to discrete.
int ipcEventSupported
Device supports IPC Events.
int isMultiGpuBoard
Device is on a multi-GPU board.
int l2CacheSize
Size of L2 cache in bytes.
int localL1CacheSupported
Device supports caching locals in L1.
char luid[8]
8-byte locally unique identifier.
Value is undefined on TCC and non-Windows platforms
unsigned int luidDeviceNodeMask
LUID device node mask.
Value is undefined on TCC and non-Windows platforms
int major
Major compute capability.
int managedMemory
Device supports allocating managed memory on this system.
int maxBlocksPerMultiProcessor
Maximum number of resident blocks per multiprocessor.
int maxGridSize[3]
Maximum size of each dimension of a grid.
int maxSurface1D
Maximum 1D surface size.
7.14. cudaDeviceProp
603
CUDA Runtime API Reference Manual, Release 13.5
int maxSurface1DLayered[2]
Maximum 1D layered surface dimensions.
int maxSurface2D[2]
Maximum 2D surface dimensions.
int maxSurface2DLayered[3]
Maximum 2D layered surface dimensions.
int maxSurface3D[3]
Maximum 3D surface dimensions.
int maxSurfaceCubemap
Maximum Cubemap surface dimensions.
int maxSurfaceCubemapLayered[2]
Maximum Cubemap layered surface dimensions.
int maxTexture1D
Maximum 1D texture size.
int maxTexture1DLayered[2]
Maximum 1D layered texture dimensions.
int maxTexture1DMipmap
Maximum 1D mipmapped texture size.
int maxTexture2D[2]
Maximum 2D texture dimensions.
int maxTexture2DGather[2]
Maximum 2D texture dimensions if texture gather operations have to be performed.
int maxTexture2DLayered[3]
Maximum 2D layered texture dimensions.
int maxTexture2DLinear[3]
Maximum dimensions (width, height, pitch) for 2D textures bound to pitched memory.
int maxTexture2DMipmap[2]
Maximum 2D mipmapped texture dimensions.
int maxTexture3D[3]
Maximum 3D texture dimensions.
604
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
int maxTexture3DAlt[3]
Maximum alternate 3D texture dimensions.
int maxTextureCubemap
Maximum Cubemap texture dimensions.
int maxTextureCubemapLayered[2]
Maximum Cubemap layered texture dimensions.
int maxThreadsDim[3]
Maximum size of each dimension of a block.
int maxThreadsPerBlock
Maximum number of threads per block.
int maxThreadsPerMultiProcessor
Maximum resident threads per multiprocessor.
int memoryBusWidth
Global memory bus width in bits.
int memoryPoolsSupported
1 if the device supports using the cudaMallocAsync and cudaMemPool family of APIs, 0
otherwise
unsigned int memoryPoolSupportedHandleTypes
Bitmask of handle types supported with mempool-based IPC.
size_t memPitch
Maximum pitch in bytes allowed by memory copies.
int minor
Minor compute capability.
int mpsEnabled
Indicates if contexts created on this device will be shared via MPS.
int multiGpuBoardGroupID
Unique identifier for a group of devices on the same multi-GPU board.
int multiProcessorCount
Number of multiprocessors on device.
char name[256]
ASCII string identifying device.
7.14. cudaDeviceProp
605
CUDA Runtime API Reference Manual, Release 13.5
int pageableMemoryAccess
Device supports coherently accessing pageable memory without calling cudaHostRegister
on it.
int pageableMemoryAccessUsesHostPageTables
Device accesses pageable memory via the host’s page tables.
int pciBusID
PCI bus ID of the device.
int pciDeviceID
PCI device ID of the device.
int pciDomainID
PCI domain ID of the device.
int persistingL2CacheMaxSize
Device’s maximum l2 persisting lines capacity setting in bytes.
int regsPerBlock
32-bit registers available per block
int regsPerMultiprocessor
32-bit registers available per multiprocessor
int reserved[56]
Reserved for future use.
size_t reservedSharedMemPerBlock
Shared memory reserved by CUDA driver per block in bytes.
size_t sharedMemPerBlock
Shared memory available per block in bytes.
size_t sharedMemPerBlockOptin
Per device maximum shared memory per block usable by special opt in.
size_t sharedMemPerMultiprocessor
Shared memory available per multiprocessor in bytes.
int sparseCudaArraySupported
1 if the device supports sparse CUDA arrays and sparse CUDA mipmapped arrays, 0 other-
wise
int streamPrioritiesSupported
Device supports stream priorities.
606
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
size_t surfaceAlignment
Alignment requirements for surfaces.
int tccDriver
1 if device is a Tesla device using TCC driver, 0 otherwise
size_t textureAlignment
Alignment requirement for textures.
size_t texturePitchAlignment
Pitch alignment requirement for texture references bound to pitched memory.
int timelineSemaphoreInteropSupported
External timeline semaphore interop is supported on the device.
size_t totalConstMem
Constant memory available on device in bytes.
size_t totalGlobalMem
Global memory available on device in bytes.
int unifiedAddressing
Device shares a unified address space with the host.
int unifiedFunctionPointers
Indicates device supports unified pointers.
cudaUUID_t uuid
16-byte unique identifier
int warpSize
Warp size in threads.
7.15. cudaEglFrame
struct cudaEglFrame
CUDA EGLFrame Descriptor - structure defining one frame of EGL.
Each frame may contain one or more planes depending on whether the surface is Multiplanar or
not. Each plane of EGLFrame is represented by cudaEglPlaneDesc which is defined as:
typedef struct cudaEglPlaneDesc_st {
unsigned int width;
unsigned int height;
(continues on next page)
7.15. cudaEglFrame
607
CUDA Runtime API Reference Manual, Release 13.5
(continued from previous page)
unsigned int depth;
unsigned int pitch;
unsigned int numChannels;
struct cudaChannelFormatDesc channelDesc;
unsigned int reserved[4];
} cudaEglPlaneDesc;
Public Members
cudaEglColorFormat eglColorFormat
CUDA EGL Color Format.
union cudaEglFrame::[anonymous] frame
cudaEglFrameType frameType
Array or Pitch.
cudaArray_t pArray[3]
Array of CUDA arrays corresponding to each plane.
unsigned int planeCount
Number of planes.
cudaEglPlaneDesc planeDesc[3]
CUDA EGL Plane Descriptor cudaEglPlaneDesc.
struct cudaPitchedPtr pPitch[3]
Array of Pointers corresponding to each plane.
7.16. cudaEglPlaneDesc
struct cudaEglPlaneDesc
CUDA EGL Plane Descriptor - structure defining each plane of a CUDA EGLFrame.
608
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
Public Members
struct cudaChannelFormatDesc channelDesc
Channel Format Descriptor.
unsigned int depth
Depth of plane.
unsigned int height
Height of plane.
unsigned int numChannels
Number of channels for the plane.
unsigned int pitch
Pitch of plane.
unsigned int reserved[4]
Reserved for future use.
unsigned int width
Width of plane.
7.17. cudaEventRecordNodeParams
struct cudaEventRecordNodeParams
Event record node parameters.
Public Members
cudaExecutionContext_t ctx
CUDA Execution Context.
cudaEvent_t event
The event to record when the node executes.
7.17. cudaEventRecordNodeParams
609
CUDA Runtime API Reference Manual, Release 13.5
7.18. cudaEventWaitNodeParams
struct cudaEventWaitNodeParams
Event wait node parameters.
Public Members
cudaEvent_t event
The event to wait on from the node.
7.19. cudaExtent
struct cudaExtent
CUDA extent.
See also:
make_cudaExtent
Public Members
size_t depth
Depth in elements.
size_t height
Height in elements.
size_t width
Width in elements when referring to array memory, in bytes when referring to linear memory.
7.20. cudaExternalMemoryBufferDesc
struct cudaExternalMemoryBufferDesc
External memory buffer descriptor.
610
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
Public Members
unsigned int flags
Flags reserved for future use.
Must be zero.
unsigned long long offset
Offset into the memory object where the buffer’s base is.
unsigned int reserved[16]
Must be zero.
unsigned long long size
Size of the buffer.
7.21. cudaExternalMemoryHandleDesc
struct cudaExternalMemoryHandleDesc
External memory handle descriptor.
Public Members
int fd
File descriptor referencing the memory object.
Valid when type is cudaExternalMemoryHandleTypeOpaqueFd
unsigned int flags
Flags must either be zero or cudaExternalMemoryDedicated.
void *handle
Valid NT handle.
Must be NULL if ‘name’ is non-NULL
union cudaExternalMemoryHandleDesc::[anonymous] handle
const void *name
Name of a valid memory object.
Must be NULL if ‘handle’ is non-NULL.
7.21. cudaExternalMemoryHandleDesc
611
CUDA Runtime API Reference Manual, Release 13.5
const void *nvSciBufObject
A handle representing NvSciBuf Object.
Valid when type is cudaExternalMemoryHandleTypeNvSciBuf
unsigned int reserved[16]
Must be zero.
unsigned long long size
Size of the memory allocation.
enum cudaExternalMemoryHandleType type
Type of the handle.
struct cudaExternalMemoryHandleDesc::[anonymous]::[anonymous] win32
Win32 handle referencing the semaphore object.
Valid when type is one of the following:
▶ cudaExternalMemoryHandleTypeOpaqueWin32
▶ cudaExternalMemoryHandleTypeOpaqueWin32Kmt
▶ cudaExternalMemoryHandleTypeD3D12Heap
▶ cudaExternalMemoryHandleTypeD3D12Resource
▶ cudaExternalMemoryHandleTypeD3D11Resource
▶ cudaExternalMemoryHandleTypeD3D11ResourceKmt Exactly one of ‘handle’ and ‘name’
must be non-NULL. If type is one of the following: cudaExternalMemoryHandleType-
OpaqueWin32Kmt cudaExternalMemoryHandleTypeD3D11ResourceKmt then ‘name’
must be NULL.
7.22. cudaExternalMemoryMipmappedArrayDesc
struct cudaExternalMemoryMipmappedArrayDesc
External memory mipmap descriptor.
Public Members
struct cudaExtent extent
Dimensions of base level of the mipmap chain.
unsigned int flags
Flags associated with CUDA mipmapped arrays.
See cudaMallocMipmappedArray
612
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
struct cudaChannelFormatDesc formatDesc
Format of base level of the mipmap chain.
unsigned int numLevels
Total number of levels in the mipmap chain.
unsigned long long offset
Offset into the memory object where the base level of the mipmap chain is.
unsigned int reserved[16]
Must be zero.
7.23. cudaExternalSemaphoreHandleDesc
struct cudaExternalSemaphoreHandleDesc
External semaphore handle descriptor.
Public Members
int fd
File descriptor referencing the semaphore object.
Valid when type is one of the following:
▶ cudaExternalSemaphoreHandleTypeOpaqueFd
▶ cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd
unsigned int flags
Flags reserved for the future.
Must be zero.
void *handle
Valid NT handle.
Must be NULL if ‘name’ is non-NULL
union cudaExternalSemaphoreHandleDesc::[anonymous] handle
const void *name
Name of a valid synchronization primitive.
Must be NULL if ‘handle’ is non-NULL.
7.23. cudaExternalSemaphoreHandleDesc
613
CUDA Runtime API Reference Manual, Release 13.5
const void *nvSciSyncObj
Valid NvSciSyncObj.
Must be non NULL
unsigned int reserved[16]
Must be zero.
enum cudaExternalSemaphoreHandleType type
Type of the handle.
struct cudaExternalSemaphoreHandleDesc::[anonymous]::[anonymous] win32
Win32 handle referencing the semaphore object.
Valid when type is one of the following:
▶ cudaExternalSemaphoreHandleTypeOpaqueWin32
▶ cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt
▶ cudaExternalSemaphoreHandleTypeD3D12Fence
▶ cudaExternalSemaphoreHandleTypeD3D11Fence
▶ cudaExternalSemaphoreHandleTypeKeyedMutex
▶ cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 Exactly one of ‘handle’
and ‘name’ must be non-NULL. If type is one of the following: cudaExternalSemaphore-
HandleTypeOpaqueWin32Kmt cudaExternalSemaphoreHandleTypeKeyedMutexKmt then
‘name’ must be NULL.
7.24. cudaExternalSemaphoreSignalNodeParams
struct cudaExternalSemaphoreSignalNodeParams
External semaphore signal node parameters.
Public Members
cudaExternalSemaphore_t *extSemArray
Array of external semaphore handles.
unsigned int numExtSems
Number of handles and parameters supplied in extSemArray and paramsArray.
const struct cudaExternalSemaphoreSignalParams *paramsArray
Array of external semaphore signal parameters.
614
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
7.25. cudaExternalSemaphoreSignalNodeParamsV2
struct cudaExternalSemaphoreSignalNodeParamsV2
External semaphore signal node parameters.
Public Members
cudaExecutionContext_t ctx
CUDA Execution Context.
cudaExternalSemaphore_t *extSemArray
Array of external semaphore handles.
unsigned int numExtSems
Number of handles and parameters supplied in extSemArray and paramsArray.
const struct cudaExternalSemaphoreSignalParams *paramsArray
Array of external semaphore signal parameters.
7.26. cudaExternalSemaphoreSignalParams
struct cudaExternalSemaphoreSignalParams
External semaphore signal parameters, compatible with driver type.
Public Members
struct cudaExternalSemaphoreSignalParams::[anonymous]::[anonymous] fence
Parameters for fence objects.
void *fence
Pointer to NvSciSyncFence.
Valid if cudaExternalSemaphoreHandleType is of type cudaExternalSemaphoreHandleTypeN-
vSciSync.
unsigned int flags
Only when cudaExternalSemaphoreSignalParams is used to signal a cudaExter-
nalSemaphore_t of type cudaExternalSemaphoreHandleTypeNvSciSync, the valid flag is
cudaExternalSemaphoreSignalSkipNvSciBufMemSync: which indicates that while signaling
the cudaExternalSemaphore_t, no memory synchronization operations should be performed
for any external memory object imported as cudaExternalMemoryHandleTypeNvSciBuf.
For all other types of cudaExternalSemaphore_t, flags must be zero.
7.25. cudaExternalSemaphoreSignalNodeParamsV2
615
CUDA Runtime API Reference Manual, Release 13.5
unsigned long long key
struct cudaExternalSemaphoreSignalParams::[anonymous]::[anonymous] keyedMutex
Parameters for keyed mutex objects.
union cudaExternalSemaphoreSignalParams::[anonymous]::[anonymous] nvSciSync
struct cudaExternalSemaphoreSignalParams::[anonymous] params
unsigned long long reserved
unsigned int reserved[12]
unsigned long long value
Value of fence to be signaled.
7.27. cudaExternalSemaphoreWaitNodeParams
struct cudaExternalSemaphoreWaitNodeParams
External semaphore wait node parameters.
Public Members
cudaExternalSemaphore_t *extSemArray
Array of external semaphore handles.
unsigned int numExtSems
Number of handles and parameters supplied in extSemArray and paramsArray.
const struct cudaExternalSemaphoreWaitParams *paramsArray
Array of external semaphore wait parameters.
7.28. cudaExternalSemaphoreWaitNodeParamsV2
struct cudaExternalSemaphoreWaitNodeParamsV2
External semaphore wait node parameters.
616
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
Public Members
cudaExecutionContext_t ctx
CUDA Execution Context.
cudaExternalSemaphore_t *extSemArray
Array of external semaphore handles.
unsigned int numExtSems
Number of handles and parameters supplied in extSemArray and paramsArray.
const struct cudaExternalSemaphoreWaitParams *paramsArray
Array of external semaphore wait parameters.
7.29. cudaExternalSemaphoreWaitParams
struct cudaExternalSemaphoreWaitParams
External semaphore wait parameters, compatible with driver type.
Public Members
struct cudaExternalSemaphoreWaitParams::[anonymous]::[anonymous] fence
Parameters for fence objects.
void *fence
Pointer to NvSciSyncFence.
Valid if cudaExternalSemaphoreHandleType is of type cudaExternalSemaphoreHandleTypeN-
vSciSync.
unsigned int flags
Only when cudaExternalSemaphoreSignalParams is used to signal a cudaExter-
nalSemaphore_t of type cudaExternalSemaphoreHandleTypeNvSciSync, the valid flag is
cudaExternalSemaphoreSignalSkipNvSciBufMemSync: which indicates that while waiting
for the cudaExternalSemaphore_t, no memory synchronization operations should be
performed for any external memory object imported as cudaExternalMemoryHandleTypeN-
vSciBuf.
For all other types of cudaExternalSemaphore_t, flags must be zero.
unsigned long long key
Value of key to acquire the mutex with.
7.29. cudaExternalSemaphoreWaitParams
617
CUDA Runtime API Reference Manual, Release 13.5
struct cudaExternalSemaphoreWaitParams::[anonymous]::[anonymous] keyedMutex
Parameters for keyed mutex objects.
union cudaExternalSemaphoreWaitParams::[anonymous]::[anonymous] nvSciSync
struct cudaExternalSemaphoreWaitParams::[anonymous] params
unsigned long long reserved
unsigned int reserved[10]
unsigned int timeoutMs
Timeout in milliseconds to wait to acquire the mutex.
unsigned long long value
Value of fence to be waited on.
7.30. cudaFuncAttributes
struct cudaFuncAttributes
CUDA function attributes.
Public Members
int binaryVersion
The binary architecture version for which the function was compiled.
This value is the major binary version * 10 + the minor binary version, so a binary version 1.3
function would return the value 13.
int cacheModeCA
The attribute to indicate whether the function has been compiled with user specified option
“-Xptxas -dlcm=ca” set.
int clusterDimMustBeSet
If this attribute is set, the kernel must launch with a valid cluster dimension specified.
int clusterSchedulingPolicyPreference
The block scheduling policy of a function.
See cudaFuncSetAttribute
618
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
size_t constSizeBytes
The size in bytes of user-allocated constant memory required by this function.
int deviceNodeUpdateStatus
Whether the function can be updated on device.
1 means device node update is supported, 0 is unsupported or driver is too old to check the
value.
size_t localSizeBytes
The size in bytes of local memory used by each thread of this function.
int maxDynamicSharedSizeBytes
The maximum size in bytes of dynamic shared memory per block for this function.
Any launch must have a dynamic shared memory size smaller than this value.
This attribute is ignored if the sharedMemoryMode function or launch attribute is set.
This attribute cannot be used to access oversized shared memory. Oversized shared memory
can only be accessed by setting the shared memory mode.
See cudaFuncSetAttribute
int maxThreadsPerBlock
The maximum number of threads per block, beyond which a launch of the function would
fail.
This number depends on both the function and the device on which the function is currently
loaded.
int nonPortableClusterSizeAllowed
Whether the function can be launched with non-portable cluster size.
1 is allowed, 0 is disallowed. A non-portable cluster size may only function on the specific
SKUs the program is tested on. The launch might fail if the program is run on a different
hardware platform.
CUDA API provides cudaOccupancyMaxActiveClusters to assist with checking whether the
desired size can be launched on the current device.
Portable Cluster Size
A portable cluster size is guaranteed to be functional on all compute capabilities higher than
the target compute capability. The portable cluster size for sm_90 is 8 blocks per cluster.
This value may increase for future compute capabilities.
The specific hardware unit may support higher cluster sizes that’s not guaranteed to be
portable.
See cudaFuncSetAttribute
int numRegs
The number of registers used by each thread of this function.
7.30. cudaFuncAttributes
619
CUDA Runtime API Reference Manual, Release 13.5
int preferredShmemCarveout
On devices where the L1 cache and shared memory use the same hardware resources, this
sets the shared memory carveout preference, in percent of the maximum shared memory.
Refer to cudaDevAttrMaxSharedMemoryPerMultiprocessor. This is only a hint, and the driver
can choose a different ratio if required to execute the function.
See cudaFuncSetAttribute
int ptxVersion
The PTX virtual architecture version for which the function was compiled.
This value is the major PTX version * 10 + the minor PTX version, so a PTX version 1.3 function
would return the value 13.
int requiredClusterDepth
int requiredClusterHeight
int requiredClusterWidth
The required cluster width/height/depth in blocks.
The values must either all be 0 or all be positive. The validity of the cluster dimensions is
otherwise checked at launch time.
If the value is set during compile time, it cannot be set at runtime. Setting it at runtime
should return cudaErrorNotPermitted.
See cudaFuncSetAttribute
int reserved[14]
Reserved for future use.
cudaSharedMemoryMode sharedMemoryMode
This controls a kernel’s use of non-portable or oversized shared memory configurations.
See cudaFuncSetAttribute
size_t sharedSizeBytes
The size in bytes of statically-allocated shared memory per block required by this function.
This does not include dynamically-allocated shared memory requested by the user at run-
time.
620
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
7.31. cudaGraphEdgeData
struct cudaGraphEdgeData
Optional annotation for edges in a CUDA graph.
Note, all edges implicitly have annotations and default to a zero-initialized value if not specified.
A zero-initialized struct indicates a standard full serialization of two nodes with memory visibility.
Public Members
unsigned char from_port
This indicates when the dependency is triggered from the upstream node on the edge.
The meaning is specfic to the node type. A value of 0 in all cases means full completion
of the upstream node, with memory visibility to the downstream node or portion thereof
(indicated by to_port ).
Only kernel nodes define non-zero ports. A kernel node can use the following output port
types: cudaGraphKernelNodePortDefault, cudaGraphKernelNodePortProgrammatic, or cuda-
GraphKernelNodePortLaunchCompletion.
unsigned char reserved[5]
These bytes are unused and must be zeroed.
This ensures compatibility if additional fields are added in the future.
unsigned char to_port
This indicates what portion of the downstream node is dependent on the upstream node or
portion thereof (indicated by from_port).
The meaning is specific to the node type. A value of 0 in all cases means the entirety of the
downstream node is dependent on the upstream work.
Currently no node types define non-zero ports. Accordingly, this field must be set to zero.
unsigned char type
This should be populated with a value from cudaGraphDependencyType.
(It is typed as char due to compiler-specific layout of bitfields.) See cudaGraphDependency-
Type.
7.31. cudaGraphEdgeData
621
CUDA Runtime API Reference Manual, Release 13.5
7.32. cudaGraphExecUpdateResultInfo
struct cudaGraphExecUpdateResultInfo
Result information returned by cudaGraphExecUpdate.
Public Members
cudaGraphNode_t errorFromNode
The from node of error edge when the topologies do not match.
Otherwise NULL.
cudaGraphNode_t errorNode
The “to node” of the error edge when the topologies do not match.
The error node when the error is associated with a specific node. NULL when the error is
generic.
enum cudaGraphExecUpdateResult result
Gives more specific detail when a cuda graph update fails.
7.33. cudaGraphInstantiateParams
struct cudaGraphInstantiateParams
Graph instantiation parameters.
Public Members
cudaGraphNode_t errNode_out
The node which caused instantiation to fail, if any.
unsigned long long flags
Instantiation flags.
cudaGraphInstantiateResult result_out
Whether instantiation was successful.
If it failed, the reason why
cudaStream_t uploadStream
Upload stream.
622
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
7.34. cudaGraphKernelNodeUpdate
struct cudaGraphKernelNodeUpdate
Struct to specify a single node update to pass as part of a larger array to cudaGraphKernelNode-
UpdatesApply.
Public Members
enum cudaGraphKernelNodeField field
Which type of update to apply.
Determines how updateData is interpreted
uint3 gridDim
Grid dimensions.
unsigned int isEnabled
Node enable/disable data.
Nonzero if the node should be enabled, 0 if it should be disabled
cudaGraphDeviceNode_t node
Node to update.
size_t offset
Offset into the parameter buffer at which to apply the update.
struct cudaGraphKernelNodeUpdate::[anonymous]::[anonymous] param
Kernel parameter data.
const void *pValue
Kernel parameter data to write in.
size_t size
Number of bytes to update.
union cudaGraphKernelNodeUpdate::[anonymous] updateData
Update data to apply.
Which field is used depends on field’s value
7.34. cudaGraphKernelNodeUpdate
623
CUDA Runtime API Reference Manual, Release 13.5
7.35. cudaGraphNodeParams
struct cudaGraphNodeParams
Graph node parameters.
See cudaGraphAddNode.
Public Members
union cudaGraphNodeParams::[anonymous] [anonymous]
struct cudaMemAllocNodeParamsV2 alloc
Memory allocation node parameters.
struct cudaConditionalNodeParams conditional
Conditional node parameters.
struct cudaEventRecordNodeParams eventRecord
Event record node parameters.
struct cudaEventWaitNodeParams eventWait
Event wait node parameters.
struct cudaExternalSemaphoreSignalNodeParamsV2 extSemSignal
External semaphore signal node parameters.
struct cudaExternalSemaphoreWaitNodeParamsV2 extSemWait
External semaphore wait node parameters.
struct cudaMemFreeNodeParams free
Memory free node parameters.
struct cudaChildGraphNodeParams graph
Child graph node parameters.
struct cudaHostNodeParamsV2 host
Host node parameters.
struct cudaKernelNodeParamsV2 kernel
Kernel node parameters.
struct cudaMemcpyNodeParams memcpy
Memcpy node parameters.
624
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
struct cudaMemcpyBatchNodeParams memcpyBatch
Batch memcpy node parameters.
struct cudaMemsetParamsV2 memset
Memset node parameters.
int reserved0[3]
Reserved.
Must be zero.
long long reserved1[29]
Padding.
Unused bytes must be zero.
long long reserved2
Reserved bytes.
Must be zero.
enum cudaGraphNodeType type
Type of the node.
7.36. cudaGraphRecaptureCallbackData
struct cudaGraphRecaptureCallbackData
Struct of user callback data that is invoked when node parameter mismatches are detected while
recapturing to an existing graph.
Public Members
cudaGraphRecaptureCallback_t callbackFunc
Callback function that will be invoked.
void *userData
Generic pointer that is passed to the callback function.
7.36. cudaGraphRecaptureCallbackData
625
CUDA Runtime API Reference Manual, Release 13.5
7.37. cudaHostNodeParams
struct cudaHostNodeParams
CUDA host node parameters.
Public Members
cudaHostFn_t fn
The function to call when the node executes.
void *userData
Argument to pass to the function.
7.38. cudaHostNodeParamsV2
struct cudaHostNodeParamsV2
CUDA host node parameters.
Public Members
cudaExecutionContext_t ctx
CUDA Execution Context.
cudaHostFn_t fn
The function to call when the node executes.
unsigned int syncMode
The synchronization mode to use for the host task.
void *userData
Argument to pass to the function.
626
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
7.39. cudaIpcEventHandle_t
struct cudaIpcEventHandle_t
CUDA IPC event handle.
Public Members
char reserved[64]
7.40. cudaIpcMemHandle_t
struct cudaIpcMemHandle_t
CUDA IPC memory handle.
Public Members
char reserved[64]
7.41. cudaKernelNodeParams
struct cudaKernelNodeParams
CUDA GPU kernel node parameters.
Public Members
dim3 blockDim
Block dimensions.
void **extra
Pointer to kernel arguments in the “extra” format.
void *func
Kernel to launch.
dim3 gridDim
Grid dimensions.
7.39. cudaIpcEventHandle_t
627
CUDA Runtime API Reference Manual, Release 13.5
void **kernelParams
Array of pointers to individual kernel arguments.
unsigned int sharedMemBytes
Dynamic shared-memory size per thread block in bytes.
7.42. cudaKernelNodeParamsV2
struct cudaKernelNodeParamsV2
CUDA GPU kernel node parameters.
Public Members
union cudaKernelNodeParamsV2::[anonymous] [anonymous]
uint3 blockDim
Block dimensions.
cudaExecutionContext_t ctx
Context in which to run the kernel.
If NULL will try to use the current context.
cudaFunction_t cuFunc
functionType = cudaKernelFucntionTypeFunction
void **extra
Pointer to kernel arguments in the “extra” format.
void *func
functionType = cudaKernelFucntionTypeDevice
enum cudaKernelFunctionType functionType
Type of handle passed in the func/kern/cuFunc union above.
uint3 gridDim
Grid dimensions.
cudaKernel_t kern
functionType = cudaKernelFucntionTypeKernel
628
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
void **kernelParams
Array of pointers to individual kernel arguments.
unsigned int sharedMemBytes
Dynamic shared-memory size per thread block in bytes.
7.43. cudaLaunchAttribute
struct cudaLaunchAttribute
Launch attribute.
Public Members
cudaLaunchAttributeID id
Attribute to set.
char pad[8 - sizeof(cudaLaunchAttributeID)]
cudaLaunchAttributeValue val
Value of the attribute.
7.44. cudaLaunchConfig_t
struct cudaLaunchConfig_t
CUDA extensible launch configuration.
Public Members
cudaLaunchAttribute *attrs
List of attributes; nullable if cudaLaunchConfig_t::numAttrs == 0.
dim3 blockDim
Block dimensions.
size_t dynamicSmemBytes
Dynamic shared-memory size per thread block in bytes.
dim3 gridDim
Grid dimensions.
7.43. cudaLaunchAttribute
629
CUDA Runtime API Reference Manual, Release 13.5
unsigned int numAttrs
Number of attributes populated in cudaLaunchConfig_t::attrs.
cudaStream_t stream
Stream identifier.
7.45. cudaLaunchMemSyncDomainMap
struct cudaLaunchMemSyncDomainMap
Memory Synchronization Domain map.
See cudaLaunchMemSyncDomain.
By default, kernels are launched in domain 0. Kernel launched with cudaLaunchMemSyncDomain-
Remote will have a different domain ID. User may also alter the domain ID with cudaLaunchMem-
SyncDomainMap for a specific stream / graph node / kernel launch. See cudaLaunchAttribute-
MemSyncDomainMap.
Domain ID range is available through cudaDevAttrMemSyncDomainCount.
Public Members
unsigned char default_
The default domain ID to use for designated kernels.
unsigned char remote
The remote domain ID to use for designated kernels.
7.46. cudaMemAccessDesc
struct cudaMemAccessDesc
Memory access descriptor.
Public Members
enum cudaMemAccessFlags flags
::CUmemProt accessibility flags to set on the request
struct cudaMemLocation location
Location on which the request is to change it’s accessibility.
630
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
7.47. cudaMemAllocNodeParams
struct cudaMemAllocNodeParams
Memory allocation node parameters.
Public Members
size_t accessDescCount
in: Number of accessDescss
const struct cudaMemAccessDesc *accessDescs
in: number of memory access descriptors.
Must not exceed the number of GPUs.
size_t bytesize
in: size in bytes of the requested allocation
void *dptr
out: address of the allocation returned by CUDA
struct cudaMemPoolProps poolProps
in: location where the allocation should reside (specified in ::location).
::handleTypes must be cudaMemHandleTypeNone. IPC is not supported. in: array of memory
access descriptors. Used to describe peer GPU access
7.48. cudaMemAllocNodeParamsV2
struct cudaMemAllocNodeParamsV2
Memory allocation node parameters.
Public Members
size_t accessDescCount
in: Number of accessDescss
const struct cudaMemAccessDesc *accessDescs
in: number of memory access descriptors.
Must not exceed the number of GPUs.
7.47. cudaMemAllocNodeParams
631
CUDA Runtime API Reference Manual, Release 13.5
size_t bytesize
in: size in bytes of the requested allocation
void *dptr
out: address of the allocation returned by CUDA
struct cudaMemPoolProps poolProps
in: location where the allocation should reside (specified in ::location).
::handleTypes must be cudaMemHandleTypeNone. IPC is not supported. in: array of memory
access descriptors. Used to describe peer GPU access
7.49. cudaMemFabricHandle_t
struct cudaMemFabricHandle_t
Public Members
char reserved[64]
7.50. cudaMemFreeNodeParams
struct cudaMemFreeNodeParams
Memory free node parameters.
Public Members
void *dptr
in: the pointer to free
7.51. cudaMemLocation
struct cudaMemLocation
Specifies a memory location.
To specify a gpu, set type = cudaMemLocationTypeDevice and set id = the gpu’s device ordinal. To
specify a cpu NUMA node, set type = cudaMemLocationTypeHostNuma and set id = host NUMA
node id.
632
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
Public Members
union cudaMemLocation::[anonymous] [anonymous]
unsigned char deviceId
Device ID.
int id
Identifier
for
cudaMemLocationType::cudaMemLocationTypeDevice,
cu-
daMemLocationType::cudaMemLocationTypeHost,
or
cudaMemLocation-
Type::cudaMemLocationTypeHostNuma.
unsigned char localityDomainId
Locality domain ID.
struct cudaMemLocation::[anonymous]::[anonymous] localized
Identifier for cudaMemLocationType::cudaMemLocationTypeDeviceLocalityDomain.
enum cudaMemLocationType type
Specifies the location type, which modifies the meaning of id.
7.52. cudaMemPoolProps
struct cudaMemPoolProps
Specifies the properties of allocations made from the pool.
Public Members
enum cudaMemAllocationType allocType
Allocation type.
Currently must be specified as cudaMemAllocationTypePinned
enum cudaMemAllocationHandleType handleTypes
Handle types that will be supported by allocations from the pool.
struct cudaMemLocation location
Location allocations should reside.
size_t maxSize
Maximum pool size.
When set to 0, defaults to a system dependent value.
7.52. cudaMemPoolProps
633
CUDA Runtime API Reference Manual, Release 13.5
unsigned char reserved[53]
reserved for future use, must be 0
unsigned char reserved1
reserved for future use, must be 0
unsigned short usage
Bitmask indicating intended usage for the pool.
void *win32SecurityAttributes
Windows-specific LPSECURITYATTRIBUTES required when cudaMemHandleTypeWin32 is
specified.
This security attribute defines the scope of which exported allocations may be tranferred
to other processes. In all other cases, this field is required to be zero.
7.53. cudaMemPoolPtrExportData
struct cudaMemPoolPtrExportData
Opaque data for exporting a pool allocation.
Public Members
unsigned char reserved[64]
7.54. cudaMemcpy3DBatchOp
struct cudaMemcpy3DBatchOp
Public Members
struct cudaMemcpy3DOperand dst
Destination memcpy operand.
struct cudaExtent extent
Extents of the memcpy between src and dst.
The width, height and depth components must not be 0.
634
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
unsigned int flags
Additional flags for copy from src to dst.
See cudaMemcpyFlags.
struct cudaMemcpy3DOperand src
Source memcpy operand.
enum cudaMemcpySrcAccessOrder srcAccessOrder
Source access ordering to be observed for copy from src to dst.
7.55. cudaMemcpy3DOperand
struct cudaMemcpy3DOperand
Struct representing an operand for copy with cudaMemcpy3DBatchAsync.
Public Members
cudaArray_t array
struct cudaMemcpy3DOperand::[anonymous]::[anonymous] array
Struct representing an operand when cudaMemcpy3DOperand::type is cudaMemcpy-
OperandTypeArray.
size_t layerHeight
Height of each layer in elements.
struct cudaMemLocation locHint
Hint location for the operand.
Ignored when the pointers are not managed memory or memory allocated outside CUDA.
struct cudaOffset3D offset
union cudaMemcpy3DOperand::[anonymous] op
void *ptr
struct cudaMemcpy3DOperand::[anonymous]::[anonymous] ptr
Struct representing an operand when cudaMemcpy3DOperand::type is cudaMemcpy-
OperandTypePointer.
7.55. cudaMemcpy3DOperand
635
CUDA Runtime API Reference Manual, Release 13.5
size_t rowLength
Length of each row in elements.
enum cudaMemcpy3DOperandType type
7.56. cudaMemcpy3DParms
struct cudaMemcpy3DParms
CUDA 3D memory copying parameters.
Public Members
cudaArray_t dstArray
Destination memory address.
struct cudaPos dstPos
Destination position offset.
struct cudaPitchedPtr dstPtr
Pitched destination memory address.
struct cudaExtent extent
Requested memory copy size.
enum cudaMemcpyKind kind
Type of transfer.
cudaArray_t srcArray
Source memory address.
struct cudaPos srcPos
Source position offset.
struct cudaPitchedPtr srcPtr
Pitched source memory address.
636
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
7.57. cudaMemcpy3DPeerParms
struct cudaMemcpy3DPeerParms
CUDA 3D cross-device memory copying parameters.
Public Members
cudaArray_t dstArray
Destination memory address.
int dstDevice
Destination device.
struct cudaPos dstPos
Destination position offset.
struct cudaPitchedPtr dstPtr
Pitched destination memory address.
struct cudaExtent extent
Requested memory copy size.
cudaArray_t srcArray
Source memory address.
int srcDevice
Source device.
struct cudaPos srcPos
Source position offset.
struct cudaPitchedPtr srcPtr
Pitched source memory address.
7.58. cudaMemcpyAttributes
struct cudaMemcpyAttributes
Attributes specific to copies within a batch.
For more details on usage see cudaMemcpyBatchAsync.
7.57. cudaMemcpy3DPeerParms
637
CUDA Runtime API Reference Manual, Release 13.5
Public Members
struct cudaMemLocation dstLocHint
Hint location for the destination operand.
Ignored when the pointers are not managed memory or memory allocated outside CUDA.
unsigned int flags
Additional flags for copies with this attribute.
See cudaMemcpyFlags.
enum cudaMemcpySrcAccessOrder srcAccessOrder
Source access ordering to be observed for copies with this attribute.
struct cudaMemLocation srcLocHint
Hint location for the source operand.
Ignored when the pointers are not managed memory or memory allocated outside CUDA.
7.59. cudaMemcpyBatchNodeParams
struct cudaMemcpyBatchNodeParams
CUDA Batch Memcpy Node Parameters.
Public Members
struct cudaMemcpyAttributes *attrs
Array of memcpy attributes.
This field cannot be updated in an instantiated graph.
size_t *attrsIdxs
Array of indices specifying which copies each entry in attrs applies to.
The array contents cannot be updated in an instantiated graph.
size_t count
Size of dsts, srcs and sizes arrays.
This field cannot be updated in an instantiated graph.
cudaExecutionContext_t ctx
Preferred CUDA Execution Context to use for the copies.
This field cannot be updated in an instantiated graph.
638
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
void **dsts
Array of destination pointers.
This field can be updated in an instantiated graph.
size_t numAttrs
Size of attrs and attrsIdxs arrays.
The array contents cannot be updated in an instantiated graph.
size_t *sizes
Array of sizes for memcpy operations.
This field can be updated in an instantiated graph. A size of 0 disables the individual copy
operation.
void **srcs
Array of source pointers.
This field can be updated in an instantiated graph.
7.60. cudaMemcpyNodeParams
struct cudaMemcpyNodeParams
Memcpy node parameters.
Public Members
struct cudaMemcpy3DParms copyParams
Parameters for the memory copy.
cudaExecutionContext_t ctx
Context in which to run the memcpy.
If NULL will try to use the current context.
int flags
Must be zero.
int reserved
Must be zero.
7.60. cudaMemcpyNodeParams
639
CUDA Runtime API Reference Manual, Release 13.5
7.61. cudaMemsetParams
struct cudaMemsetParams
CUDA Memset node parameters.
Public Members
void *dst
Destination device pointer.
unsigned int elementSize
Size of each element in bytes.
Must be 1, 2, or 4.
size_t height
Number of rows.
size_t pitch
Pitch of destination device pointer.
Unused if height is 1
unsigned int value
Value to be set.
size_t width
Width of the row in elements.
7.62. cudaMemsetParamsV2
struct cudaMemsetParamsV2
CUDA Memset node parameters.
Public Members
cudaExecutionContext_t ctx
Context in which to run the memset.
If NULL will try to use the current context.
640
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
void *dst
Destination device pointer.
unsigned int elementSize
Size of each element in bytes.
Must be 1, 2, or 4.
size_t height
Number of rows.
size_t pitch
Pitch of destination device pointer.
Unused if height is 1
unsigned int value
Value to be set.
size_t width
Width of the row in elements.
7.63. cudaOffset3D
struct cudaOffset3D
Struct representing offset into a cudaArray_t in elements.
Public Members
size_t x
size_t y
size_t z
7.63. cudaOffset3D
641
CUDA Runtime API Reference Manual, Release 13.5
7.64. cudaPitchedPtr
struct cudaPitchedPtr
CUDA Pitched memory pointer.
See also:
make_cudaPitchedPtr
Public Members
size_t pitch
Pitch of allocated memory in bytes.
void *ptr
Pointer to allocated memory.
size_t xsize
Logical width of allocation in elements.
size_t ysize
Logical height of allocation in elements.
7.65. cudaPointerAttributes
struct cudaPointerAttributes
CUDA pointer attributes.
Public Members
union cudaPointerAttributes::[anonymous] [anonymous]
Locality domain ordinal for device allocations localized to a locality domain, or -1 when the
allocation is not localized to a locality domain.
int device
The device against which the memory was allocated or registered.
If the memory type is cudaMemoryTypeDevice then this identifies the device on which
the memory referred physically resides. If the memory type is cudaMemoryTypeHost
or::cudaMemoryTypeManaged then this identifies the device which was current when the
memory was allocated or registered (and if that device is deinitialized then this allocation
will vanish with that device’s state).
642
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
void *devicePointer
The address which may be dereferenced on the current device to access the memory or
NULL if no such address exists.
void *hostPointer
The address which may be dereferenced on the host to access the memory or NULL if no
such address exists.
Note: CUDA doesn’t check if unregistered memory is allocated so this field may contain
invalid pointer if an invalid pointer has been passed to CUDA.
int localityDomainOrdinal
long reserved[7]
Must be zero.
enum cudaMemoryType type
The type of memory - cudaMemoryTypeUnregistered, cudaMemoryTypeHost, cudaMemory-
TypeDevice or cudaMemoryTypeManaged.
long unused
7.66. cudaPos
struct cudaPos
CUDA 3D position.
See also:
make_cudaPos
Public Members
size_t x
x
size_t y
y
size_t z
z
7.66. cudaPos
643
CUDA Runtime API Reference Manual, Release 13.5
7.67. cudaResourceDesc
struct cudaResourceDesc
CUDA resource descriptor.
Public Members
cudaArray_t array
CUDA array.
struct cudaResourceDesc::[anonymous]::[anonymous] array
struct cudaChannelFormatDesc desc
Channel descriptor.
void *devPtr
Device pointer.
unsigned int flags
Flags (must be zero)
size_t height
Height of the array in elements.
struct cudaResourceDesc::[anonymous]::[anonymous] linear
cudaMipmappedArray_t mipmap
CUDA mipmapped array.
struct cudaResourceDesc::[anonymous]::[anonymous] mipmap
struct cudaResourceDesc::[anonymous]::[anonymous] pitch2D
size_t pitchInBytes
Pitch between two rows in bytes.
union cudaResourceDesc::[anonymous] res
int reserved[32]
struct cudaResourceDesc::[anonymous]::[anonymous] reserved
644
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
enum cudaResourceType resType
Resource type.
size_t sizeInBytes
Size in bytes.
size_t width
Width of the array in elements.
7.68. cudaResourceViewDesc
struct cudaResourceViewDesc
CUDA resource view descriptor.
Public Members
size_t depth
Depth of the resource view.
unsigned int firstLayer
First layer index.
unsigned int firstMipmapLevel
First defined mipmap level.
enum cudaResourceViewFormat format
Resource view format.
size_t height
Height of the resource view.
unsigned int lastLayer
Last layer index.
unsigned int lastMipmapLevel
Last defined mipmap level.
unsigned int reserved[16]
Must be zero.
size_t width
Width of the resource view.
7.68. cudaResourceViewDesc
645
CUDA Runtime API Reference Manual, Release 13.5
7.69. cudaTextureDesc
struct cudaTextureDesc
CUDA texture descriptor.
Public Members
enum cudaTextureAddressMode addressMode[3]
Texture address mode for up to 3 dimensions.
float borderColor[4]
Texture Border Color.
int disableTrilinearOptimization
Disable any trilinear filtering optimizations.
enum cudaTextureFilterMode filterMode
Texture filter mode.
unsigned int maxAnisotropy
Limit to the anisotropy ratio.
float maxMipmapLevelClamp
Upper end of the mipmap level range to clamp access to.
float minMipmapLevelClamp
Lower end of the mipmap level range to clamp access to.
enum cudaTextureFilterMode mipmapFilterMode
Mipmap filter mode.
float mipmapLevelBias
Offset applied to the supplied mipmap level.
int normalizedCoords
Indicates whether texture reads are normalized or not.
enum cudaTextureReadMode readMode
Texture read mode.
int seamlessCubemap
Enable seamless cube map filtering.
646
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
int sRGB
Perform sRGB->linear conversion during texture read.
7.70. cudalibraryHostUniversalFunctionAndDataTable
struct cudalibraryHostUniversalFunctionAndDataTable
Public Members
void *dataTable
size_t dataWindowSize
void *functionTable
size_t functionWindowSize
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.
cudaDevSmResourceGroupParams
Input data for splitting SMs.
7.70. cudalibraryHostUniversalFunctionAndDataTable
647
CUDA Runtime API Reference Manual, Release 13.5
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.
cudaGraphExecUpdateResultInfo
Result information returned by cudaGraphExecUpdate.
648
Chapter 7. Structs
CUDA Runtime API Reference Manual, Release 13.5
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.
cudaGraphRecaptureCallbackData
Struct of user callback data that is invoked when node parameter mismatches are detected while
recapturing to an existing graph.
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.
7.70. cudalibraryHostUniversalFunctionAndDataTable
649
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
650
Chapter 7. Structs
Chapter 8. Deprecated List
Member cudaD3D10GetDirect3DDevice (ID3D10Device **ppD3D10Device)
This function is deprecated as of CUDA 5.0.
Member cudaD3D10MapResources (int count, ID3D10Resource **ppResources)
This function is deprecated as of CUDA 3.0.
Member cudaD3D10RegisterResource (ID3D10Resource *pResource, unsigned int flags)
This function is deprecated as of CUDA 3.0.
Member cudaD3D10ResourceGetMappedArray (cudaArray **ppArray, ID3D10Resource *pResource,
unsigned int subResource)
This function is deprecated as of CUDA 3.0.
Member cudaD3D10ResourceGetMappedPitch (size_t *pPitch, size_t *pPitchSlice, ID3D10Resource
*pResource, unsigned int subResource)
This function is deprecated as of CUDA 3.0.
Member cudaD3D10ResourceGetMappedPointer (void **pPointer, ID3D10Resource *pResource,
unsigned int subResource)
This function is deprecated as of CUDA 3.0.
Member cudaD3D10ResourceGetMappedSize (size_t *pSize, ID3D10Resource *pResource, unsigned
int subResource)
This function is deprecated as of CUDA 3.0.
Member cudaD3D10ResourceGetSurfaceDimensions (size_t *pWidth, size_t *pHeight, size_t *pDepth,
ID3D10Resource *pResource, unsigned int subResource)
This function is deprecated as of CUDA 3.0.
Member cudaD3D10ResourceSetMapFlags (ID3D10Resource *pResource, unsigned int flags)
This function is deprecated as of CUDA 3.0.
Member cudaD3D10SetDirect3DDevice (ID3D10Device *pD3D10Device, int device=-1)
This function is deprecated as of CUDA 5.0.
Member cudaD3D10UnmapResources (int count, ID3D10Resource **ppResources)
This function is deprecated as of CUDA 3.0.
Member cudaD3D10UnregisterResource (ID3D10Resource *pResource)
This function is deprecated as of CUDA 3.0.
651
CUDA Runtime API Reference Manual, Release 13.5
Member cudaD3D11GetDirect3DDevice (ID3D11Device **ppD3D11Device)
This function is deprecated as of CUDA 5.0.
Member cudaD3D11SetDirect3DDevice (ID3D11Device *pD3D11Device, int device=-1)
This function is deprecated as of CUDA 5.0.
Member cudaD3D9MapResources (int count, IDirect3DResource9 **ppResources)
This function is deprecated as of CUDA 3.0.
Member cudaD3D9RegisterResource (IDirect3DResource9 *pResource, unsigned int flags)
This function is deprecated as of CUDA 3.0.
Member cudaD3D9ResourceGetMappedArray (cudaArray **ppArray, IDirect3DResource9 *pResource,
unsigned int face, unsigned int level)
This function is deprecated as of CUDA 3.0.
Member cudaD3D9ResourceGetMappedPitch (size_t *pPitch, size_t *pPitchSlice, IDirect3DResource9
*pResource, unsigned int face, unsigned int level)
This function is deprecated as of CUDA 3.0.
Member cudaD3D9ResourceGetMappedPointer (void **pPointer, IDirect3DResource9 *pResource,
unsigned int face, unsigned int level)
This function is deprecated as of CUDA 3.0.
Member cudaD3D9ResourceGetMappedSize (size_t *pSize, IDirect3DResource9 *pResource, unsigned
int face, unsigned int level)
This function is deprecated as of CUDA 3.0.
Member cudaD3D9ResourceGetSurfaceDimensions (size_t *pWidth, size_t *pHeight, size_t *pDepth,
IDirect3DResource9 *pResource, unsigned int face, unsigned int level)
This function is deprecated as of CUDA 3.0.
Member cudaD3D9ResourceSetMapFlags (IDirect3DResource9 *pResource, unsigned int flags)
This function is deprecated as of CUDA 3.0.
Member cudaD3D9UnmapResources (int count, IDirect3DResource9 **ppResources)
This function is deprecated as of CUDA 3.0.
Member cudaD3D9UnregisterResource (IDirect3DResource9 *pResource)
This function is deprecated as of CUDA 3.0.
Member cudaDeviceBlockingSync
This flag was deprecated as of CUDA 4.0 and replaced with cudaDeviceScheduleBlockingSync.
Member cudaDeviceGetSharedMemConfig (enum cudaSharedMemConfig *pConfig)
Member cudaDeviceSetSharedMemConfig (enum cudaSharedMemConfig config)
Member cudaErrorAddressOfConstant
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().
Member cudaErrorInvalidDevicePointer
This error return is deprecated as of CUDA 10.1.
Member cudaErrorInvalidHostPointer
This error return is deprecated as of CUDA 10.1.
652
Chapter 8. Deprecated List
CUDA Runtime API Reference Manual, Release 13.5
Member cudaErrorMemoryValueTooLarge
This error return is deprecated as of CUDA 3.1. Device emulation mode was removed with the
CUDA 3.1 release.
Member cudaErrorMixedDeviceExecution
This error return is deprecated as of CUDA 3.1. Device emulation mode was removed with the
CUDA 3.1 release.
Member cudaErrorNotYetImplemented
This error return is deprecated as of CUDA 4.1.
Member cudaErrorPriorLaunchFailure
This error return is deprecated as of CUDA 3.1. Device emulation mode was removed with the
CUDA 3.1 release.
Member cudaErrorProfilerAlreadyStarted
This error return is deprecated as of CUDA 5.0. It is no longer an error to call cudaProfilerStart()
when profiling is already enabled.
Member cudaErrorProfilerAlreadyStopped
This error return is deprecated as of CUDA 5.0. It is no longer an error to call cudaProfilerStop()
when profiling is already disabled.
Member cudaErrorProfilerNotInitialized
This error return is deprecated as of CUDA 5.0. It is no longer an error to attempt to enable/disable
the profiling via cudaProfilerStart or cudaProfilerStop without initialization.
Member cudaErrorSynchronizationError
This error return is deprecated as of CUDA 3.1. Device emulation mode was removed with the
CUDA 3.1 release.
Member cudaErrorTextureFetchFailed
This error return is deprecated as of CUDA 3.1. Device emulation mode was removed with the
CUDA 3.1 release.
Member cudaErrorTextureNotBound
This error return is deprecated as of CUDA 3.1. Device emulation mode was removed with the
CUDA 3.1 release.
Member cudaFuncSetSharedMemConfig (const void *func, enum cudaSharedMemConfig config)
Member cudaGetDriverEntryPoint (const char *symbol, void **funcPtr, unsigned long long flags, enum
cudaDriverEntryPointQueryResult *driverStatus=NULL)
This function is deprecated as of CUDA 13.0
Member cudaGLMapBufferObject (void **devPtr, GLuint bufObj)
This function is deprecated as of CUDA 3.0.
Member cudaGLMapBufferObjectAsync (void **devPtr, GLuint bufObj, cudaStream_t stream)
This function is deprecated as of CUDA 3.0.
Member cudaGLRegisterBufferObject (GLuint bufObj)
This function is deprecated as of CUDA 3.0.
Member cudaGLSetBufferObjectMapFlags (GLuint bufObj, unsigned int flags)
This function is deprecated as of CUDA 3.0.
653
CUDA Runtime API Reference Manual, Release 13.5
Member cudaGLSetGLDevice (int device)
This function is deprecated as of CUDA 5.0.
Member cudaGLUnmapBufferObject (GLuint bufObj)
This function is deprecated as of CUDA 3.0.
Member cudaGLUnmapBufferObjectAsync (GLuint bufObj, cudaStream_t stream)
This function is deprecated as of CUDA 3.0.
Member cudaGLUnregisterBufferObject (GLuint bufObj)
This function is deprecated as of CUDA 3.0.
Member cudaMemcpyArrayToArray (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst,
cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, enum cudaMemcpyKind
kind=cudaMemcpyDeviceToDevice)
Member cudaMemcpyFromArray (void *dst, cudaArray_const_t src, size_t wOffset, size_t hOffset,
size_t count, enum cudaMemcpyKind kind)
Member cudaMemcpyFromArrayAsync (void *dst, cudaArray_const_t src, size_t wOffset, size_t
hOffset, size_t count, enum cudaMemcpyKind kind, cudaStream_t stream=0)
Member cudaMemcpyToArray (cudaArray_t dst, size_t wOffset, size_t hOffset, const void *src, size_t
count, enum cudaMemcpyKind kind)
Member cudaMemcpyToArrayAsync (cudaArray_t dst, size_t wOffset, size_t hOffset, const void *src,
size_t count, enum cudaMemcpyKind kind, cudaStream_t stream=0)
Member cudaSharedMemConfig
654
Chapter 8. Deprecated List
Chapter 9. Notices
9.1. Notice
This document is provided for information purposes only and shall not be regarded as a warranty of a
certain functionality, condition, or quality of a product. NVIDIA Corporation (“NVIDIA”) makes no repre-
sentations or warranties, expressed or implied, as to the accuracy or completeness of the information
contained in this document and assumes no responsibility for any errors contained herein. NVIDIA shall
have no liability for the consequences or use of such information or for any infringement of patents
or other rights of third parties that may result from its use. This document is not a commitment to
develop, release, or deliver any Material (defined below), code, or functionality.
NVIDIA reserves the right to make corrections, modifications, enhancements, improvements, and any
other changes to this document, at any time without notice.
Customer should obtain the latest relevant information before placing orders and should verify that
such information is current and complete.
NVIDIA products are sold subject to the NVIDIA standard terms and conditions of sale supplied at the
time of order acknowledgement, unless otherwise agreed in an individual sales agreement signed by
authorized representatives of NVIDIA and customer (“Terms of Sale”). NVIDIA hereby expressly objects
to applying any customer general terms and conditions with regards to the purchase of the NVIDIA
product referenced in this document. No contractual obligations are formed either directly or indirectly
by this document.
NVIDIA products are not designed, authorized, or warranted to be suitable for use in medical, military,
aircraft, space, or life support equipment, nor in applications where failure or malfunction of the NVIDIA
product can reasonably be expected to result in personal injury, death, or property or environmental
damage. NVIDIA accepts no liability for inclusion and/or use of NVIDIA products in such equipment or
applications and therefore such inclusion and/or use is at customer’s own risk.
NVIDIA makes no representation or warranty that products based on this document will be suitable for
any specified use. Testing of all parameters of each product is not necessarily performed by NVIDIA.
It is customer’s sole responsibility to evaluate and determine the applicability of any information con-
tained in this document, ensure the product is suitable and fit for the application planned by customer,
and perform the necessary testing for the application in order to avoid a default of the application or
the product. Weaknesses in customer’s product designs may affect the quality and reliability of the
NVIDIA product and may result in additional or different conditions and/or requirements beyond those
contained in this document. NVIDIA accepts no liability related to any default, damage, costs, or prob-
lem which may be based on or attributable to: (i) the use of the NVIDIA product in any manner that is
contrary to this document or (ii) customer product designs.
No license, either expressed or implied, is granted under any NVIDIA patent right, copyright, or other
NVIDIA intellectual property right under this document. Information published by NVIDIA regarding
third-party products or services does not constitute a license from NVIDIA to use such products or
655
CUDA Runtime API Reference Manual, Release 13.5
services or a warranty or endorsement thereof. Use of such information may require a license from a
third party under the patents or other intellectual property rights of the third party, or a license from
NVIDIA under the patents or other intellectual property rights of NVIDIA.
Reproduction of information in this document is permissible only if approved in advance by NVIDIA
in writing, reproduced without alteration and in full compliance with all applicable export laws and
regulations, and accompanied by all associated conditions, limitations, and notices.
THIS DOCUMENT AND ALL NVIDIA DESIGN SPECIFICATIONS, REFERENCE BOARDS, FILES, DRAWINGS,
DIAGNOSTICS, LISTS, AND OTHER DOCUMENTS (TOGETHER AND SEPARATELY, “MATERIALS”) ARE
BEING PROVIDED “AS IS.” NVIDIA MAKES NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR
OTHERWISE WITH RESPECT TO THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WAR-
RANTIES OF NONINFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL NVIDIA BE LIABLE FOR ANY DAMAGES,
INCLUDING WITHOUT LIMITATION ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE, OR CON-
SEQUENTIAL DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARIS-
ING OUT OF ANY USE OF THIS DOCUMENT, EVEN IF NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY
OF SUCH DAMAGES. Notwithstanding any damages that customer might incur for any reason whatso-
ever, NVIDIA’s aggregate and cumulative liability towards customer for the products described herein
shall be limited in accordance with the Terms of Sale for the product.
9.2. OpenCL
OpenCL is a trademark of Apple Inc. used under license to the Khronos Group Inc.
9.3. Trademarks
NVIDIA and the NVIDIA logo are trademarks or registered trademarks of NVIDIA Corporation in the
U.S. and other countries. Other company and product names may be trademarks of the respective
companies with which they are associated.
©2007-2026, NVIDIA Corporation & affiliates. All rights reserved
656
Chapter 9. Notices
|