/dvs/p4/build/sw/gpgpu/bin/x86_64_Linux_release/stub/cuda.h
In directory: /dvs/p4/build/sw/gpgpu/bin/x86_64_Linux_release/stub
Source file: /dvs/p4/build/sw/gpgpu/bin/x86_64_Linux_release/stub/cuda.h
Header file for the CUDA Toolkit application programming interface.
Structs
- CUDA_ARRAY3D_DESCRIPTOR_v2
3D array descriptor
- CUDA_ARRAY_DESCRIPTOR_v2
Array descriptor.
- CUDA_ARRAY_MEMORY_REQUIREMENTS_v1
CUDA array memory requirements.
- CUDA_ARRAY_SPARSE_PROPERTIES_v1
CUDA array sparse properties.
- CUDA_BATCH_MEM_OP_NODE_PARAMS_v1
Batch memory operation node parameters.
- CUDA_BATCH_MEM_OP_NODE_PARAMS_v2
Batch memory operation node parameters.
- CUDA_CHILD_GRAPH_NODE_PARAMS
Child graph node parameters.
- CUDA_CONDITIONAL_NODE_PARAMS
Conditional node parameters.
- CUDA_EVENT_RECORD_NODE_PARAMS
Event record node parameters.
- CUDA_EVENT_WAIT_NODE_PARAMS
Event wait node parameters.
- CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1
External memory buffer descriptor.
- CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1
External memory handle descriptor.
- CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1
External memory mipmap descriptor.
- CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1
External semaphore handle descriptor.
- CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1
External semaphore signal parameters.
- CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1
External semaphore wait parameters.
- CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1
Semaphore signal node parameters.
- CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2
Semaphore signal node parameters.
- CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1
Semaphore wait node parameters.
- CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2
Semaphore wait node parameters.
- CUDA_GRAPH_INSTANTIATE_PARAMS
Graph instantiation parameters.
- CUDA_HOST_NODE_PARAMS_v1
Host node parameters.
- CUDA_HOST_NODE_PARAMS_v2
Host node parameters.
- CUDA_KERNEL_NODE_PARAMS_v1
GPU kernel node parameters.
- CUDA_KERNEL_NODE_PARAMS_v2
GPU kernel node parameters.
- CUDA_KERNEL_NODE_PARAMS_v3
GPU kernel node parameters.
- CUDA_LAUNCH_PARAMS_v1
Kernel launch parameters.
- CUDA_MEMCPY2D_v2
2D memory copy parameters
- CUDA_MEMCPY3D_BATCH_OP_v1
- CUDA_MEMCPY3D_PEER_v1
3D memory cross-context copy parameters
- CUDA_MEMCPY3D_v2
3D memory copy parameters
- CUDA_MEMCPY_BATCH3D_NODE_PARAMS_V1
- CUDA_MEMCPY_BATCH_NODE_PARAMS_V1
CUDA Batch Memcpy Node Parameters.
- CUDA_MEMCPY_NODE_PARAMS
Memcpy node parameters.
- CUDA_MEMSET_NODE_PARAMS_v1
Memset node parameters.
- CUDA_MEMSET_NODE_PARAMS_v2
Memset node parameters.
- CUDA_MEM_ALLOC_NODE_PARAMS_v1
Memory allocation node parameters.
- CUDA_MEM_ALLOC_NODE_PARAMS_v2
Memory allocation node parameters.
- CUDA_MEM_FREE_NODE_PARAMS
Memory free node parameters.
- CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1
GPU Direct v3 tokens.
- CUDA_RESOURCE_DESC_v1
CUDA Resource descriptor.
- CUDA_RESOURCE_VIEW_DESC_v1
Resource view descriptor.
- CUDA_SEMAPHORE_CREATE_DESC_v1
- CUDA_SEMAPHORE_EXPORT_DESC_v1
- CUDA_SUBGRID_SCHEDULE_NODE_PARAMS_V1
- CUDA_TEXTURE_DESC_v1
Texture descriptor.
- CU_DEV_SM_RESOURCE_GROUP_PARAMS
- CUaccessPolicyWindow_v1
Specifies an access policy for a window, a contiguous extent of memory beginning at base_ptr and ending at base_ptr + num_bytes.
- CUarrayMapInfo_v1
Specifies the CUDA array or CUDA mipmapped array memory mapping information.
- CUasyncNotificationInfo
Information passed to the user via the async notification callback.
- CUcheckpointCheckpointArgs
CUDA checkpoint optional checkpoint arguments.
- CUcheckpointCustomStorageInfo
Output from CUDA custom storage checkpoint/restore: per-GPU device pointers and a handle to complete the operation.
- CUcheckpointCustomStoragePerDeviceData
Per-GPU data for zero-copy mapped device memory used with CUDA checkpoint/restore on custom storage.
- CUcheckpointGpuPair
CUDA checkpoint GPU UUID pairs for device remapping during restore.
- CUcheckpointLockArgs
CUDA checkpoint optional lock arguments.
- CUcheckpointRestoreArgs
CUDA checkpoint optional restore arguments.
- CUcheckpointUnlockArgs
CUDA checkpoint optional unlock arguments.
- CUcliqueInfo
Fabric clique information.
- CUctxCigParam
CIG Context Create Params.
- CUctxCreateParams
Params for creating CUDA context.
- CUdevResource_st
- CUdevSmResource
- CUdevWorkqueueConfigResource
- CUdevWorkqueueResource
- CUdevprop_v1
Legacy device properties.
- CUexecAffinityParam_v1
Execution Affinity Parameters.
- CUexecAffinitySmCount_v1
Value for CU_EXEC_AFFINITY_TYPE_SM_COUNT .
- CUextent3D_v1
Struct representing width/height/depth of a CUarray in elements.
- CUgraphEdgeData
Optional annotation for edges in a CUDA graph.
- CUgraphExecUpdateResultInfo_v1
Result information returned by cuGraphExecUpdate.
- CUgraphKernelNodeRelocTarget
- CUgraphMemcpyNodeRelocTarget
- CUgraphMemsetNodeRelocTarget
- CUgraphNodeParams
Graph node parameters.
- CUgraphRelocationEntry
- CUhostCommunicationsVtable
Virtual function table for communications operations, passed to some APIs to coordinate with other CUDA processes.
- CUipcEventHandle_v1
CUDA IPC event handle.
- CUipcMemHandle_v1
CUDA IPC mem handle.
- CUlaunchAttribute
Launch attribute.
- CUlaunchConfig
CUDA extensible launch configuration.
- CUlaunchMemSyncDomainMap
Memory Synchronization Domain map.
- CUlibraryHostUniversalFunctionAndDataTable
- CUlogicalEndpointFabricHandle
Fabric handle for a logical endpoint.
- CUlogicalEndpointProp
Properties of a logical endpoint construction.
- CUmemAccessDesc_v1
Memory access descriptor.
- CUmemAllocationProp_v1
Specifies the allocation properties for a allocation.
- CUmemDecompressParams
Structure describing the parameters that compose a single decompression operation.
- CUmemFabricHandle_v1
Fabric handle - An opaque handle representing a memory allocation that can be exported to processes in same or different nodes.
- CUmemLocation_v1
Specifies a memory location.
- CUmemPoolProps_v1
Specifies the properties of allocations made from the pool.
- CUmemPoolPtrExportData_v1
Opaque data for exporting a pool allocation.
- CUmemcpy3DOperand_v1
Struct representing an operand for copy with cuMemcpy3DBatchAsync.
- CUmemcpyAttributes_v1
Attributes specific to copies within a batch.
- CUmulticastObjectProp_v1
Specifies the properties for a multicast object.
- CUoffset3D_v1
Struct representing a 3D offset.
- CUstreamBatchMemOpParams_v1::CUstreamMemOpAtomicReductionParams_st
- CUstreamBatchMemOpParams_v1::CUstreamMemOpFlushRemoteWritesParams_st
- CUstreamBatchMemOpParams_v1::CUstreamMemOpMemoryBarrierParams_st
- CUstreamBatchMemOpParams_v1::CUstreamMemOpWaitValueParams_st
- CUstreamBatchMemOpParams_v1::CUstreamMemOpWriteValueParams_st
- CUstreamCigCaptureParams
Params for capturing CUDA stream to CIG streamCigParams must be non-NULL.
- CUstreamCigParam
CIG Stream Capture Params.
- CUsubgridWorkerGridDesc
Structure defining a worker launch operation in a subgrid schedule.
- CUtensorMap
Tensor map descriptor.
- CUuuid
Unions
- CUlaunchAttributeValue
Launch attributes union; used as value field of CUlaunchAttribute .
- CUstreamBatchMemOpParams_v1
Per-operation parameters for cuStreamBatchMemOp.
Macros
-
CUDAAPI __stdcall
-
cuArray3DCreate cuArray3DCreate_v2
-
cuArray3DGetDescriptor cuArray3DGetDescriptor_v2
-
cuArrayCreate cuArrayCreate_v2
-
cuArrayGetDescriptor cuArrayGetDescriptor_v2
-
cuCtxCreate cuCtxCreate_v4
-
cuCtxDestroy cuCtxDestroy_v2
-
cuCtxPopCurrent cuCtxPopCurrent_v2
-
cuCtxPushCurrent cuCtxPushCurrent_v2
-
cuDeviceGetUuid cuDeviceGetUuid_v2
-
cuDevicePrimaryCtxRelease cuDevicePrimaryCtxRelease_v2
-
cuDevicePrimaryCtxReset cuDevicePrimaryCtxReset_v2
-
cuDevicePrimaryCtxSetFlags cuDevicePrimaryCtxSetFlags_v2
-
cuDeviceTotalMem cuDeviceTotalMem_v2
-
cuEventDestroy cuEventDestroy_v2
-
cuEventElapsedTime cuEventElapsedTime_v2
-
cuGetProcAddress cuGetProcAddress_v2
-
cuGraphAddDependencies cuGraphAddDependencies_v2
-
cuGraphAddKernelNode cuGraphAddKernelNode_v2
-
cuGraphAddNode cuGraphAddNode_v2
-
cuGraphExecKernelNodeSetParams cuGraphExecKernelNodeSetParams_v2
-
cuGraphExecUpdate cuGraphExecUpdate_v2
-
cuGraphGetEdges cuGraphGetEdges_v2
-
cuGraphInstantiate cuGraphInstantiateWithFlags
-
cuGraphKernelNodeGetParams cuGraphKernelNodeGetParams_v2
-
cuGraphKernelNodeSetParams cuGraphKernelNodeSetParams_v2
-
cuGraphNodeGetDependencies cuGraphNodeGetDependencies_v2
-
cuGraphNodeGetDependentNodes cuGraphNodeGetDependentNodes_v2
-
cuGraphRemoveDependencies cuGraphRemoveDependencies_v2
-
cuGraphicsResourceGetMappedPointer cuGraphicsResourceGetMappedPointer_v2
-
cuGraphicsResourceSetMapFlags cuGraphicsResourceSetMapFlags_v2
-
cuIpcOpenMemHandle cuIpcOpenMemHandle_v2
-
cuLinkAddData cuLinkAddData_v2
-
cuLinkAddFile cuLinkAddFile_v2
-
cuLinkCreate cuLinkCreate_v2
-
cuMemAdvise cuMemAdvise_v2
-
cuMemAlloc cuMemAlloc_v2
-
cuMemAllocHost cuMemAllocHost_v2
-
cuMemAllocPitch cuMemAllocPitch_v2
-
cuMemBatchDecompressAsync __CUDA_API_PTSZ(cuMemBatchDecompressAsync)
-
cuMemDiscardAndPrefetchBatchAsync __CUDA_API_PTSZ(cuMemDiscardAndPrefetchBatchAsync)
-
cuMemDiscardBatchAsync __CUDA_API_PTSZ(cuMemDiscardBatchAsync)
-
cuMemFree cuMemFree_v2
-
cuMemGetAddressRange cuMemGetAddressRange_v2
-
cuMemGetInfo cuMemGetInfo_v2
-
cuMemHostGetDevicePointer cuMemHostGetDevicePointer_v2
-
cuMemHostRegister cuMemHostRegister_v2
-
cuMemPrefetchAsync __CUDA_API_PTSZ(cuMemPrefetchAsync_v2)
-
cuMemPrefetchBatchAsync __CUDA_API_PTSZ(cuMemPrefetchBatchAsync)
-
cuMemcpy2D __CUDA_API_PTDS(cuMemcpy2D_v2)
-
cuMemcpy2DAsync __CUDA_API_PTSZ(cuMemcpy2DAsync_v2)
-
cuMemcpy2DUnaligned __CUDA_API_PTDS(cuMemcpy2DUnaligned_v2)
-
cuMemcpy3D __CUDA_API_PTDS(cuMemcpy3D_v2)
-
cuMemcpy3DAsync __CUDA_API_PTSZ(cuMemcpy3DAsync_v2)
-
cuMemcpy3DBatchAsync __CUDA_API_PTSZ(cuMemcpy3DBatchAsync_v2)
-
cuMemcpy3DWithAttributesAsync __CUDA_API_PTSZ(cuMemcpy3DWithAttributesAsync)
-
cuMemcpyAtoA __CUDA_API_PTDS(cuMemcpyAtoA_v2)
-
cuMemcpyAtoD __CUDA_API_PTDS(cuMemcpyAtoD_v2)
-
cuMemcpyAtoH __CUDA_API_PTDS(cuMemcpyAtoH_v2)
-
cuMemcpyAtoHAsync __CUDA_API_PTSZ(cuMemcpyAtoHAsync_v2)
-
cuMemcpyBatchAsync __CUDA_API_PTSZ(cuMemcpyBatchAsync_v2)
-
cuMemcpyDtoA __CUDA_API_PTDS(cuMemcpyDtoA_v2)
-
cuMemcpyDtoD __CUDA_API_PTDS(cuMemcpyDtoD_v2)
-
cuMemcpyDtoDAsync __CUDA_API_PTSZ(cuMemcpyDtoDAsync_v2)
-
cuMemcpyDtoH __CUDA_API_PTDS(cuMemcpyDtoH_v2)
-
cuMemcpyDtoHAsync __CUDA_API_PTSZ(cuMemcpyDtoHAsync_v2)
-
cuMemcpyHtoA __CUDA_API_PTDS(cuMemcpyHtoA_v2)
-
cuMemcpyHtoAAsync __CUDA_API_PTSZ(cuMemcpyHtoAAsync_v2)
-
cuMemcpyHtoD __CUDA_API_PTDS(cuMemcpyHtoD_v2)
-
cuMemcpyHtoDAsync __CUDA_API_PTSZ(cuMemcpyHtoDAsync_v2)
-
cuMemcpyWithAttributesAsync __CUDA_API_PTSZ(cuMemcpyWithAttributesAsync)
-
cuMemsetD16 __CUDA_API_PTDS(cuMemsetD16_v2)
-
cuMemsetD2D16 __CUDA_API_PTDS(cuMemsetD2D16_v2)
-
cuMemsetD2D32 __CUDA_API_PTDS(cuMemsetD2D32_v2)
-
cuMemsetD2D8 __CUDA_API_PTDS(cuMemsetD2D8_v2)
-
cuMemsetD32 __CUDA_API_PTDS(cuMemsetD32_v2)
-
cuMemsetD8 __CUDA_API_PTDS(cuMemsetD8_v2)
-
cuModuleGetGlobal cuModuleGetGlobal_v2
-
cuStreamBatchMemOp __CUDA_API_PTSZ(cuStreamBatchMemOp_v2)
-
cuStreamBeginCapture __CUDA_API_PTSZ(cuStreamBeginCapture_v2)
-
cuStreamBeginCaptureToCig __CUDA_API_PTSZ(cuStreamBeginCaptureToCig)
-
cuStreamDestroy cuStreamDestroy_v2
-
cuStreamEndCaptureToCig __CUDA_API_PTSZ(cuStreamEndCaptureToCig)
-
cuStreamGetCaptureInfo __CUDA_API_PTSZ(cuStreamGetCaptureInfo_v3)
-
cuStreamUpdateCaptureDependencies __CUDA_API_PTSZ(cuStreamUpdateCaptureDependencies_v2)
-
cuStreamWaitValue32 __CUDA_API_PTSZ(cuStreamWaitValue32_v2)
-
cuStreamWaitValue64 __CUDA_API_PTSZ(cuStreamWaitValue64_v2)
-
cuStreamWriteValue32 __CUDA_API_PTSZ(cuStreamWriteValue32_v2)
-
cuStreamWriteValue64 __CUDA_API_PTSZ(cuStreamWriteValue64_v2)
-
cuTexRefGetAddress cuTexRefGetAddress_v2
-
cuTexRefSetAddress cuTexRefSetAddress_v2
-
cuTexRefSetAddress2D cuTexRefSetAddress2D_v3
Enumerations
-
enum CUsemaphoreHandleType
Semaphore handle types.
Values:
-
enumerator CU_SEMAPHORE_HANDLE_TYPE_NONE
Handle is invalid or undefined.
-
enumerator CU_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD
Handle is an opaque file descriptor.
-
enumerator CU_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32
Handle is an opaque shared NT handle.
-
enumerator CU_SEMAPHORE_HANDLE_TYPE_NONE
Functions
-
CUresult cuSemaphoreCreate(CUsemaphore *semaphore_out, CUDA_SEMAPHORE_CREATE_DESC *createDesc)
Creates a semaphore.
Creates a semaphore with the specified attributes.
See also
Note
Note that this function may also return error codes from previous, asynchronous launches.
- Parameters
semaphore_out – - Returned newly created semaphore
createDesc – - Semaphore creation attributes
- Returns
CUDA_SUCCESS, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_NOT_SUPPORTED, CUDA_ERROR_INVALID_HANDLE, CUDA_ERROR_OPERATING_SYSTEM
-
CUresult cuSemaphoreDestroy(CUsemaphore semaphore)
Destroys a semaphore.
Destroys the specified semaphore.
See also
Note
Note that this function may also return error codes from previous, asynchronous launches.
- Parameters
semaphore – - Semaphore to destroy
- Returns
CUDA_SUCCESS, CUDA_ERROR_INVALID_HANDLE, CUDA_ERROR_OPERATING_SYSTEM
-
CUresult cuSemaphoreExport(CUsemaphore semaphore, CUDA_SEMAPHORE_EXPORT_DESC *desc)
Exports a semaphore.
Exports a semaphore to an external handle.
See also
Note
Note that this function may also return error codes from previous, asynchronous launches.
- Parameters
semaphore – - Semaphore to export
desc – - Export attributes
- Returns
CUDA_SUCCESS, CUDA_ERROR_INVALID_HANDLE, CUDA_ERROR_OPERATING_SYSTEM
Typedefs
-
typedef CUDA_SEMAPHORE_CREATE_DESC_v1 CUDA_SEMAPHORE_CREATE_DESC
-
typedef CUDA_SEMAPHORE_EXPORT_DESC_v1 CUDA_SEMAPHORE_EXPORT_DESC
-
typedef struct CUsemaphore_st *CUsemaphore
-
typedef uint32_t cuuint32_t
-
typedef uint64_t cuuint64_t
Variables
-
union [anonymous] [anonymous]
-
unsigned char CUdevResource_st::_internal_padding[92]
-
unsigned char CUdevResource_st::_oversize[RESOURCE_ABI_BYTES]
-
struct CUdevResource_st *CUdevResource_st::nextResource
-
CUdevSmResource CUdevResource_st::sm
Resource corresponding to CU_DEV_RESOURCE_TYPE_SM
type.
-
CUasyncNotificationType CUasyncNotificationInfo::type
The type of notification being sent.
-
CUdevWorkqueueResource CUdevResource_st::wq
Resource corresponding to CU_DEV_RESOURCE_TYPE_WORKQUEUE
type.
-
CUdevWorkqueueConfigResource CUdevResource_st::wqConfig
Resource corresponding to CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG
type.