Migrating to the _v2 Bindings#
The cuda.bindings._v2 package provides new bindings for the CUDA driver API
(driver_v2) and NVRTC (nvrtc_v2). They cover the
same C APIs as the existing driver and nvrtc
modules but follow a more Pythonic design. This guide lists what changed so that
existing code can be ported.
Overview of changes#
Errors are raised as exceptions#
Legacy functions return a tuple that starts with a result code, such as
(CUresult.CUDA_SUCCESS, value). The new functions never return a result code.
A failing call raises an exception instead. The exceptions derive from DriverError for the
driver and NvrtcError for NVRTC, and there is one subclass per error code, for
example InvalidDeviceError. The numeric status is available as e.status
(a plain int).
Return values#
A function with no outputs returns None, a function with one output returns that
value directly, and a function with several outputs returns a tuple. The order of
the outputs is the same as in the legacy API. Functions whose signature or return value changes beyond this are
noted in the tables below.
Naming#
Functions use
snake_casewith thecu/nvrtcprefix removed (cuStreamCreatebecomesstream_create). Driver functions keep the version suffix of the C symbol (mem_alloc_v2), whereas the legacy module drops it.Parameters and struct members use
snake_case. Names that would clash with a Python keyword or builtin, or with a name reserved by the generated classes, get a trailing underscore (input_,flags_).Enumeration classes and structs use
CamelCasewith theCU/nvrtcprefix removed. Structs keep their C version suffix (MemLocation_v1) and there is a single class per versioned C type instead of several aliases.Enumeration members lose their common C prefix (
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCKbecomesDeviceAttribute.MAX_THREADS_PER_BLOCK), and the old full names are not kept as aliases. Enumerations with a single member keep the part of the C name that identifies the member, because there is no second member to share a prefix with. For exampleCU_IPC_MEM_LAZY_ENABLE_PEER_ACCESSbecomesIpcMemFlags.IPC_MEM_LAZY_ENABLE_PEER_ACCESSandCU_USER_OBJECT_NO_DESTRUCTOR_SYNCbecomesUserObjectFlags.USER_OBJECT_NO_DESTRUCTOR_SYNC. The Prefix removed columns below list what was removed in each case.
Handles are plain integers#
Handle types such as CUcontext, CUstream, CUevent, CUmodule, CUdeviceptr and
nvrtcProgram are no longer classes. Functions return them as int and accept only int.
Legacy functions accepted None for a null handle. The new functions raise TypeError for None;
pass 0 instead (for example stream_synchronize(0) for the default stream).
Use int(handle) to convert a legacy handle object.
Enumerations#
Enumeration classes are int subclasses. Functions accept either the enumeration members or plain integers.
Their members expose a description of the value automatically, so the individual members
are no longer documented one by one.
Structs#
Struct classes are generated extension types that wrap a C struct. They expose their address through the .ptr
property (replacing getPtr()), and can be created from existing memory with the
from_ptr(), from_data() (which takes a NumPy array of the matching *_dtype) and from_buffer() class methods. Where a function takes a struct, the argument
is either a raw address (an int) or the struct object itself. Wrapper objects of the legacy classes cannot be
passed in their place.
Strings and constants#
get_error_stringandget_error_namereturnstr, where the legacy functions returnedbytes.The
#defineconstants that the legacy driver module exposed as module attributes (CU_MEMHOSTALLOC_PORTABLEand so on) are now members of enumerations grouped by purpose, for exampleMemHostAllocFlags.PORTABLE. Only a few ungrouped constants remain at module level, keeping their C names:CUDA_VERSION,CU_IPC_HANDLE_SIZE,CU_TENSOR_MAP_NUM_QWORDS,CU_LAUNCH_KERNEL_REQUIRED_BLOCK_DIM,CUDA_EGL_INFINITE_TIMEOUTandMAX_PLANES.
Driver#
The cuda.bindings._v2.driver module replaces cuda.bindings.driver. The deprecated driver APIs (texture references, surface references, cuLaunch* and cuParam* functions, cuCtxAttach, and so on) are also available and follow the same rules. They are listed in the Deprecated functions table below.
Functions#
Where the C symbol has a version suffix (cuCtxCreate_v2), the legacy module exposes only the unsuffixed name, while the new module keeps the suffix, so one legacy function can map to several new ones. Only changes to parameters and return values beyond the general rules above are noted. Renamed parameters are not listed.
Legacy |
New |
Notes |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns only the value ( |
|
|
Returns only the value ( |
|
|
|
|
|
|
|
|
Returns |
|
|
Returns |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters added: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters added: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters removed: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters removed: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters removed: |
|
|
|
|
|
|
|
|
|
|
|
Returns the populated |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters removed: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters removed: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters removed: |
|
|
Parameters removed: |
|
|
|
|
|
Parameters removed: |
|
|
Parameters removed: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters removed: |
|
|
Parameters removed: |
|
|
Parameters removed: |
|
|
Parameters removed: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Output |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters added: |
|
|
|
|
|
|
|
|
Parameters removed: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns the linked image as |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters removed: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters removed: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters removed: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters removed: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters added: |
|
|
|
|
|
Parameters added: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters removed: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns a 4-tuple. The dependency count is no longer returned and edge data is not included. |
|
|
Returns a 5-tuple. The dependency count is no longer returned. |
|
|
|
|
|
Returns a 2-tuple |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(none) |
|
Legacy exposes this C function as |
Deprecated functions#
These functions are deprecated in the CUDA driver API but are still available in the new module. The general rules above apply. Texture and surface references are handles, so they are int values like the other handle types.
Legacy |
New |
Notes |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Classes#
The legacy module exposes several aliases for the same class (X, X_st, X_v1). Only one legacy name per class is shown. Handle types such as CUcontext and CUstream have no class in the new module (see above). Each class is followed by its renamed members. Members that are not listed keep their name apart from the general rename to snake_case.
CUaccessPolicyWindow_v1 -> AccessPolicyWindow_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUarrayMapInfo_v1 -> ArrayMapInfo_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CUasyncNotificationInfo -> AsyncNotificationInfo
CUcheckpointCheckpointArgs -> CheckpointCheckpointArgs
Legacy member |
New member |
|---|---|
|
|
CUcheckpointGpuPair -> CheckpointGpuPair
Legacy member |
New member |
|---|---|
|
|
|
|
CUcheckpointLockArgs -> CheckpointLockArgs
Legacy member |
New member |
|---|---|
|
|
CUcheckpointRestoreArgs -> CheckpointRestoreArgs
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUcheckpointUnlockArgs -> CheckpointUnlockArgs
CUcliqueInfo -> CliqueInfo
CUctxCigParam -> CtxCigParam
Legacy member |
New member |
|---|---|
|
|
|
|
CUctxCreateParams -> CtxCreateParams
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUDA_ARRAY3D_DESCRIPTOR_v2 -> Array3dDescriptor_v2
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
CUDA_ARRAY_DESCRIPTOR_v2 -> ArrayDescriptor_v2
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 -> ArrayMemoryRequirements_v1
Legacy member |
New member |
|---|---|
|
|
CUDA_ARRAY_SPARSE_PROPERTIES_v1 -> ArraySparseProperties_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 -> BatchMemOpNodeParams_v1
Legacy member |
New member |
|---|---|
|
|
|
|
CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 -> BatchMemOpNodeParams_v2
Legacy member |
New member |
|---|---|
|
|
|
|
CUDA_CHILD_GRAPH_NODE_PARAMS -> ChildGraphNodeParams
CUDA_CONDITIONAL_NODE_PARAMS -> ConditionalNodeParams
Legacy member |
New member |
|---|---|
|
|
|
|
CUDA_EVENT_RECORD_NODE_PARAMS -> EventRecordNodeParams
Legacy member |
New member |
|---|---|
|
|
CUDA_EVENT_WAIT_NODE_PARAMS -> EventWaitNodeParams
CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 -> ExtSemSignalNodeParams_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 -> ExtSemSignalNodeParams_v2
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 -> ExtSemWaitNodeParams_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 -> ExtSemWaitNodeParams_v2
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 -> ExternalMemoryBufferDesc_v1
Legacy member |
New member |
|---|---|
|
|
|
|
CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 -> ExternalMemoryHandleDesc_v1
Legacy member |
New member |
|---|---|
|
|
|
|
CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 -> ExternalMemoryMipmappedArrayDesc_v1
Legacy member |
New member |
|---|---|
|
|
|
|
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 -> ExternalSemaphoreHandleDesc_v1
Legacy member |
New member |
|---|---|
|
|
CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 -> ExternalSemaphoreSignalParams_v1
Legacy member |
New member |
|---|---|
|
|
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 -> ExternalSemaphoreWaitParams_v1
Legacy member |
New member |
|---|---|
|
|
CUDA_GRAPH_INSTANTIATE_PARAMS -> GraphInstantiateParams
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUDA_HOST_NODE_PARAMS_v1 -> HostNodeParams_v1
Legacy member |
New member |
|---|---|
|
|
CUDA_HOST_NODE_PARAMS_v2 -> HostNodeParams_v2
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUDA_KERNEL_NODE_PARAMS -> KernelNodeParams_v3
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CUDA_KERNEL_NODE_PARAMS_v2 -> KernelNodeParams_v2
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CUDA_MEM_ALLOC_NODE_PARAMS_v1 -> MemAllocNodeParams_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUDA_MEM_ALLOC_NODE_PARAMS_v2 -> MemAllocNodeParams_v2
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUDA_MEM_FREE_NODE_PARAMS -> MemFreeNodeParams
CUDA_MEMCPY2D_v2 -> MemCpy2d_v2
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CUDA_MEMCPY3D_BATCH_OP_v1 -> MemCpy3dBatchOp_v1
Legacy member |
New member |
|---|---|
|
|
|
|
CUDA_MEMCPY3D_PEER_v1 -> MemCpy3dPeer_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CUDA_MEMCPY3D_v2 -> MemCpy3d_v2
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CUDA_MEMCPY_NODE_PARAMS -> MemCpyNodeParams
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUDA_MEMSET_NODE_PARAMS_v1 -> MemSetNodeParams_v1
Legacy member |
New member |
|---|---|
|
|
CUDA_MEMSET_NODE_PARAMS_v2 -> MemSetNodeParams_v2
Legacy member |
New member |
|---|---|
|
|
CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 -> PointerAttributeP2PTokens_v1
Legacy member |
New member |
|---|---|
|
|
|
|
CUDA_RESOURCE_DESC_v1 -> ResourceDesc_v1
Legacy member |
New member |
|---|---|
|
|
|
|
CUDA_RESOURCE_VIEW_DESC_v1 -> ResourceViewDesc_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
CUDA_TEXTURE_DESC_v1 -> TextureDesc_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CUdevResource_v1 -> DevResource_v1
Legacy member |
New member |
|---|---|
|
|
|
|
CUdevSmResource -> DevSmResource
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
CUdevWorkqueueConfigResource -> DevWorkqueueConfigResource
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUdevWorkqueueResource -> DevWorkqueueResource
CUexecAffinityParam_v1 -> ExecAffinityParam_v1
CUexecAffinitySmCount_v1 -> ExecAffinitySmCount_v1
CUextent3D_v1 -> Extent3D_v1
CUgraphEdgeData -> GraphEdgeData
CUgraphExecUpdateResultInfo_v1 -> GraphExecUpdateResultInfo_v1
Legacy member |
New member |
|---|---|
|
|
|
|
CUgraphNodeParams -> GraphNodeParams
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
CUipcEventHandle_v1 -> IpcEventHandle_v1
CUipcMemHandle_v1 -> IpcMemHandle_v1
CUlaunchAttribute -> LaunchAttribute
CUlaunchAttributeValue -> LaunchAttributeValue
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CUlaunchConfig -> LaunchConfig
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CUlaunchMemSyncDomainMap -> LaunchMemSyncDomainMap
CUlibraryHostUniversalFunctionAndDataTable -> LibraryHostUniversalFunctionAndDataTable
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
CUlogicalEndpointFabricHandle -> LogicalEndpointFabricHandle
Legacy member |
New member |
|---|---|
|
|
CUlogicalEndpointProp -> LogicalEndpointProp
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUmemAccessDesc_v1 -> MemAccessDesc_v1
Legacy member |
New member |
|---|---|
|
|
CUmemAllocationProp_v1 -> MemAllocationProp_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUmemcpy3DOperand_v1 -> MemCpy3dOperand_v1
CUmemcpyAttributes_v1 -> MemCpyAttributes_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
CUmemDecompressParams -> MemDecompressParams
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUmemFabricHandle_v1 -> MemFabricHandle_v1
Legacy member |
New member |
|---|---|
|
|
CUmemLocation_v1 -> MemLocation_v1
CUmemPoolProps_v1 -> MemPoolProps_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
CUmemPoolPtrExportData_v1 -> MemPoolPtrExportData_v1
CUmulticastObjectProp_v1 -> MulticastObjectProp_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
CUoffset3D_v1 -> Offset3D_v1
CUstreamBatchMemOpParams_v1 -> StreamBatchMemOpParams_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
CUstreamCigCaptureParams -> StreamCigCaptureParams
Legacy member |
New member |
|---|---|
|
|
CUstreamCigParam -> StreamCigParam
Legacy member |
New member |
|---|---|
|
|
|
|
CUstreamMemOpAtomicReductionParams_st -> StreamMemOpAtomicReductionParams
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
CUstreamMemOpFlushRemoteWritesParams_st -> StreamMemOpFlushRemoteWritesParams
Legacy member |
New member |
|---|---|
|
|
CUstreamMemOpMemoryBarrierParams_st -> StreamMemOpMemoryBarrierParams
Legacy member |
New member |
|---|---|
|
|
CUstreamMemOpWaitValueParams_st -> StreamMemOpWaitValueParams
Legacy member |
New member |
|---|---|
|
|
CUstreamMemOpWriteValueParams_st -> StreamMemOpWriteValueParams
Legacy member |
New member |
|---|---|
|
|
CUtensorMap -> TensorMap
CUuuid -> Uuid
CUdevprop_v1 -> DevProp_v1
Legacy member |
New member |
|---|---|
|
|
CUDA_LAUNCH_PARAMS_v1 -> LaunchParams_v1
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Enumerations#
Enumeration members lose the common C prefix shown in the Prefix removed column. For example CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK becomes DeviceAttribute.MAX_THREADS_PER_BLOCK. The old full C names are not kept as aliases. Members that changed in any other way are listed under the enumeration.
Legacy |
New |
Prefix removed |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(module constants ``CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_*``) |
|
|
(module constants ``CU_LAUNCH_PARAM_*``) |
|
|
(module constant ``CU_PARAM_TR_DEFAULT``) |
|
|
(module constants ``CU_TRSA_*``) |
|
|
(module constants ``CU_TRSF_*``) |
|
|
CUgraphConditionalNodeType -> GraphConditionalNodeType
Legacy |
New |
|---|---|
|
|
NVRTC#
The cuda.bindings._v2.nvrtc module replaces cuda.bindings.nvrtc.
Functions#
Legacy |
New |
Notes |
|---|---|---|
|
|
Returns |
|
|
|
|
|
Returns the sorted architectures as an integer array (legacy returned a |
|
|
Parameter |
|
|
|
|
|
Parameter |
|
|
|
|
|
Parameter |
|
|
|
|
|
Parameter |
|
|
|
|
|
Parameter |
|
|
|
|
|
Parameter |
|
|
|
|
|
Parameter |
|
|
|
|
|
Parameter |
|
|
|
|
|
Returns the lowered name as |
|
|
|
|
|
|
|
|
|
|
|
Returns the status as an |
|
|
|
|
|
|
|
|
Returns |
|
|
Returns the optional error message ( |
|
|
Takes the result code as an |
Classes#
nvrtcBundledHeadersInfo -> BundledHeadersInfo
Legacy member |
New member |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
nvrtcProgram (removed)
Programs are plain int handles.
Enumerations#
Members lose the prefix shown in the Prefix removed column. No members changed in any other way. NVRTC_SUCCESS becomes Result.SUCCESS and NVRTC_ERROR_OUT_OF_MEMORY becomes Result.ERROR_OUT_OF_MEMORY. The installation flags were plain module-level constants in the legacy module and are now members of the InstallHeadersFlag enumeration.
Legacy |
New |
Prefix removed |
|---|---|---|
|
|
|
|
|
|