cuda.bindings.runtime

Contents

cuda.bindings.runtime#

2026-09-24

630 min read time

Applies to Linux and Windows

Advanced Micro Devices, Inc.

Attributes#

CU_TRSA_OVERRIDE_FORMAT

CU_TRSF_READ_AS_INTEGER

CU_TRSF_NORMALIZED_COORDINATES

CU_TRSF_SRGB

cudaTextureType1D

cudaTextureType2D

cudaTextureType3D

cudaTextureTypeCubemap

cudaTextureType1DLayered

cudaTextureType2DLayered

cudaTextureTypeCubemapLayered

CU_LAUNCH_PARAM_BUFFER_POINTER

CU_LAUNCH_PARAM_BUFFER_SIZE

CU_LAUNCH_PARAM_END

CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS

cudaIpcMemLazyEnablePeerAccess

CUDA_IPC_HANDLE_SIZE

CU_IPC_HANDLE_SIZE

CU_STREAM_DEFAULT

cudaStreamDefault

CU_STREAM_NON_BLOCKING

cudaStreamNonBlocking

CU_EVENT_DEFAULT

cudaEventDefault

CU_EVENT_BLOCKING_SYNC

cudaEventBlockingSync

CU_EVENT_DISABLE_TIMING

cudaEventDisableTiming

CU_EVENT_INTERPROCESS

cudaEventInterprocess

cudaHostAllocDefault

CU_MEMHOSTALLOC_PORTABLE

cudaHostAllocPortable

CU_MEMHOSTALLOC_DEVICEMAP

cudaHostAllocMapped

CU_MEMHOSTALLOC_WRITECOMBINED

cudaHostAllocWriteCombined

CU_MEM_ATTACH_GLOBAL

cudaMemAttachGlobal

CU_MEM_ATTACH_HOST

cudaMemAttachHost

CU_MEM_ATTACH_SINGLE

cudaMemAttachSingle

cudaHostRegisterDefault

CU_MEMHOSTREGISTER_PORTABLE

cudaHostRegisterPortable

CU_MEMHOSTREGISTER_DEVICEMAP

cudaHostRegisterMapped

CU_MEMHOSTREGISTER_IOMEMORY

cudaHostRegisterIoMemory

CU_CTX_SCHED_AUTO

cudaDeviceScheduleAuto

CU_CTX_SCHED_SPIN

cudaDeviceScheduleSpin

CU_CTX_SCHED_YIELD

cudaDeviceScheduleYield

CU_CTX_BLOCKING_SYNC

CU_CTX_SCHED_BLOCKING_SYNC

cudaDeviceBlockingSync

cudaDeviceScheduleBlockingSync

CU_CTX_SCHED_MASK

cudaDeviceScheduleMask

CU_CTX_MAP_HOST

cudaDeviceMapHost

CU_CTX_LMEM_RESIZE_TO_MAX

cudaDeviceLmemResizeToMax

cudaArrayDefault

CUDA_ARRAY3D_LAYERED

cudaArrayLayered

CUDA_ARRAY3D_SURFACE_LDST

cudaArraySurfaceLoadStore

CUDA_ARRAY3D_CUBEMAP

cudaArrayCubemap

CUDA_ARRAY3D_TEXTURE_GATHER

cudaArrayTextureGather

CU_OCCUPANCY_DEFAULT

cudaOccupancyDefault

CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_PRE_LAUNCH_SYNC

cudaCooperativeLaunchMultiDeviceNoPreSync

CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_POST_LAUNCH_SYNC

cudaCooperativeLaunchMultiDeviceNoPostSync

CU_DEVICE_CPU

cudaCpuDeviceId

CU_DEVICE_INVALID

cudaInvalidDeviceId

CU_STREAM_WAIT_VALUE_GEQ

CU_STREAM_WAIT_VALUE_EQ

CU_STREAM_WAIT_VALUE_AND

CU_STREAM_WAIT_VALUE_NOR

HIP_PYTHON_CUjit_option_HALLUCINATE

HIP_PYTHON_CUjit_option_enum_HALLUCINATE

HIP_PYTHON_CUjitInputType_HALLUCINATE

HIP_PYTHON_CUjitInputType_enum_HALLUCINATE

HIP_PYTHON_CUlibraryOption_enum_HALLUCINATE

HIP_PYTHON_CUlibraryOption_HALLUCINATE

HIP_PYTHON_cudaLibraryOption_HALLUCINATE

CUuuid

cudaUUID_t

HIP_PYTHON_CUmemorytype_HALLUCINATE

HIP_PYTHON_CUmemorytype_enum_HALLUCINATE

HIP_PYTHON_cudaMemoryType_HALLUCINATE

HIP_PYTHON_CUresult_HALLUCINATE

HIP_PYTHON_cudaError_HALLUCINATE

HIP_PYTHON_cudaError_enum_HALLUCINATE

HIP_PYTHON_cudaError_t_HALLUCINATE

HIP_PYTHON_CUdevice_attribute_HALLUCINATE

HIP_PYTHON_CUdevice_attribute_enum_HALLUCINATE

HIP_PYTHON_cudaDeviceAttr_HALLUCINATE

HIP_PYTHON_CUdriverProcAddressQueryResult_HALLUCINATE

HIP_PYTHON_CUdriverProcAddressQueryResult_enum_HALLUCINATE

HIP_PYTHON_CUcomputemode_HALLUCINATE

HIP_PYTHON_CUcomputemode_enum_HALLUCINATE

HIP_PYTHON_cudaComputeMode_HALLUCINATE

HIP_PYTHON_CUflushGPUDirectRDMAWritesOptions_HALLUCINATE

HIP_PYTHON_CUflushGPUDirectRDMAWritesOptions_enum_HALLUCINATE

HIP_PYTHON_cudaFlushGPUDirectRDMAWritesOptions_HALLUCINATE

HIP_PYTHON_CUGPUDirectRDMAWritesOrdering_HALLUCINATE

HIP_PYTHON_CUGPUDirectRDMAWritesOrdering_enum_HALLUCINATE

HIP_PYTHON_cudaGPUDirectRDMAWritesOrdering_HALLUCINATE

CUdeviceptr

CUdeviceptr_v1

CUdeviceptr_v2

HIP_PYTHON_cudaChannelFormatKind_HALLUCINATE

CUarray

cudaArray_t

cudaArray_const_t

HIP_PYTHON_CUarray_format_HALLUCINATE

HIP_PYTHON_CUarray_format_enum_HALLUCINATE

CUmipmappedArray

cudaMipmappedArray_t

cudaMipmappedArray_const_t

HIP_PYTHON_cudaResourceType_HALLUCINATE

HIP_PYTHON_CUresourcetype_enum_HALLUCINATE

HIP_PYTHON_CUresourcetype_HALLUCINATE

HIP_PYTHON_CUaddress_mode_enum_HALLUCINATE

HIP_PYTHON_CUaddress_mode_HALLUCINATE

HIP_PYTHON_CUfilter_mode_enum_HALLUCINATE

HIP_PYTHON_CUfilter_mode_HALLUCINATE

CUDA_TEXTURE_DESC

CUDA_TEXTURE_DESC_v1

HIP_PYTHON_cudaResourceViewFormat_HALLUCINATE

HIP_PYTHON_CUresourceViewFormat_enum_HALLUCINATE

HIP_PYTHON_CUresourceViewFormat_HALLUCINATE

CUDA_RESOURCE_DESC

CUDA_RESOURCE_DESC_v1

CUDA_RESOURCE_VIEW_DESC

CUDA_RESOURCE_VIEW_DESC_v1

HIP_PYTHON_cudaMemcpyKind_HALLUCINATE

HIP_PYTHON_CUmemLocationType_HALLUCINATE

HIP_PYTHON_CUmemLocationType_enum_HALLUCINATE

HIP_PYTHON_cudaMemLocationType_HALLUCINATE

HIP_PYTHON_CUmemcpyFlags_HALLUCINATE

HIP_PYTHON_CUmemcpyFlags_enum_HALLUCINATE

HIP_PYTHON_cudaMemcpyFlags_HALLUCINATE

HIP_PYTHON_CUmemcpySrcAccessOrder_HALLUCINATE

HIP_PYTHON_CUmemcpySrcAccessOrder_enum_HALLUCINATE

HIP_PYTHON_cudaMemcpySrcAccessOrder_HALLUCINATE

HIP_PYTHON_CUmemcpy3DOperandType_HALLUCINATE

HIP_PYTHON_CUmemcpy3DOperandType_enum_HALLUCINATE

HIP_PYTHON_cudaMemcpy3DOperandType_HALLUCINATE

HIP_PYTHON_CUfunction_attribute_HALLUCINATE

HIP_PYTHON_CUfunction_attribute_enum_HALLUCINATE

HIP_PYTHON_CUpointer_attribute_HALLUCINATE

HIP_PYTHON_CUpointer_attribute_enum_HALLUCINATE

CUtexObject

CUtexObject_v1

cudaTextureObject_t

HIP_PYTHON_cudaTextureAddressMode_HALLUCINATE

HIP_PYTHON_cudaTextureFilterMode_HALLUCINATE

HIP_PYTHON_cudaTextureReadMode_HALLUCINATE

CUsurfObject

CUsurfObject_v1

cudaSurfaceObject_t

HIP_PYTHON_cudaSurfaceBoundaryMode_HALLUCINATE

CUcontext

HIP_PYTHON_CUdevice_P2PAttribute_HALLUCINATE

HIP_PYTHON_CUdevice_P2PAttribute_enum_HALLUCINATE

HIP_PYTHON_cudaDeviceP2PAttr_HALLUCINATE

HIP_PYTHON_cudaDriverEntryPointQueryResult_HALLUCINATE

CUstream

cudaStream_t

CUipcMemHandle

CUipcMemHandle_v1

cudaIpcMemHandle_t

CUipcEventHandle

CUipcEventHandle_v1

cudaIpcEventHandle_t

CUmodule

CUfunction

cudaFunction_t

CUlibrary

cudaLibrary_t

CUkernel

cudaKernel_t

CUmemoryPool

cudaMemPool_t

CUevent

cudaEvent_t

HIP_PYTHON_CUlimit_HALLUCINATE

HIP_PYTHON_CUlimit_enum_HALLUCINATE

HIP_PYTHON_cudaLimit_HALLUCINATE

HIP_PYTHON_CUstreamBatchMemOpType_HALLUCINATE

HIP_PYTHON_CUstreamBatchMemOpType_enum_HALLUCINATE

CUstreamBatchMemOpParams

CUstreamBatchMemOpParams_v1

HIP_PYTHON_CUmem_advise_HALLUCINATE

HIP_PYTHON_CUmem_advise_enum_HALLUCINATE

HIP_PYTHON_cudaMemoryAdvise_HALLUCINATE

HIP_PYTHON_CUmem_range_attribute_HALLUCINATE

HIP_PYTHON_CUmem_range_attribute_enum_HALLUCINATE

HIP_PYTHON_cudaMemRangeAttribute_HALLUCINATE

HIP_PYTHON_CUmemPool_attribute_HALLUCINATE

HIP_PYTHON_CUmemPool_attribute_enum_HALLUCINATE

HIP_PYTHON_cudaMemPoolAttr_HALLUCINATE

HIP_PYTHON_CUmemAccess_flags_HALLUCINATE

HIP_PYTHON_CUmemAccess_flags_enum_HALLUCINATE

HIP_PYTHON_cudaMemAccessFlags_HALLUCINATE

HIP_PYTHON_CUmemAllocationType_HALLUCINATE

HIP_PYTHON_CUmemAllocationType_enum_HALLUCINATE

HIP_PYTHON_cudaMemAllocationType_HALLUCINATE

HIP_PYTHON_CUmemAllocationHandleType_HALLUCINATE

HIP_PYTHON_CUmemAllocationHandleType_enum_HALLUCINATE

HIP_PYTHON_cudaMemAllocationHandleType_HALLUCINATE

HIP_PYTHON_cudaFuncAttribute_HALLUCINATE

HIP_PYTHON_CUfunc_cache_HALLUCINATE

HIP_PYTHON_CUfunc_cache_enum_HALLUCINATE

HIP_PYTHON_cudaFuncCache_HALLUCINATE

HIP_PYTHON_CUsharedconfig_HALLUCINATE

HIP_PYTHON_CUsharedconfig_enum_HALLUCINATE

HIP_PYTHON_cudaSharedMemConfig_HALLUCINATE

cudaLaunchParams

CUDA_LAUNCH_PARAMS

CUDA_LAUNCH_PARAMS_v1

HIP_PYTHON_CUexternalMemoryHandleType_enum_HALLUCINATE

HIP_PYTHON_CUexternalMemoryHandleType_HALLUCINATE

HIP_PYTHON_cudaExternalMemoryHandleType_HALLUCINATE

CUDA_EXTERNAL_MEMORY_HANDLE_DESC

CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1

cudaExternalMemoryHandleDesc

CUDA_EXTERNAL_MEMORY_BUFFER_DESC

CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1

cudaExternalMemoryBufferDesc

CUexternalMemory

cudaExternalMemory_t

HIP_PYTHON_CUexternalSemaphoreHandleType_enum_HALLUCINATE

HIP_PYTHON_CUexternalSemaphoreHandleType_HALLUCINATE

HIP_PYTHON_cudaExternalSemaphoreHandleType_HALLUCINATE

CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC

CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1

cudaExternalSemaphoreHandleDesc

CUexternalSemaphore

cudaExternalSemaphore_t

CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS

CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1

cudaExternalSemaphoreSignalParams

cudaExternalSemaphoreSignalParams_v1

CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS

CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1

cudaExternalSemaphoreWaitParams

cudaExternalSemaphoreWaitParams_v1

HIP_PYTHON_CUgraphicsRegisterFlags_HALLUCINATE

HIP_PYTHON_CUgraphicsRegisterFlags_enum_HALLUCINATE

HIP_PYTHON_cudaGraphicsRegisterFlags_HALLUCINATE

CUgraphicsResource_st

cudaGraphicsResource

CUgraphicsResource

cudaGraphicsResource_t

CUgraph

cudaGraph_t

CUgraphNode

cudaGraphNode_t

CUgraphExec

cudaGraphExec_t

CUuserObject

cudaUserObject_t

HIP_PYTHON_CUgraphNodeType_HALLUCINATE

HIP_PYTHON_CUgraphNodeType_enum_HALLUCINATE

HIP_PYTHON_cudaGraphNodeType_HALLUCINATE

HIP_PYTHON_CUaccessProperty_HALLUCINATE

HIP_PYTHON_CUaccessProperty_enum_HALLUCINATE

HIP_PYTHON_cudaAccessProperty_HALLUCINATE

HIP_PYTHON_CUlaunchMemSyncDomain_HALLUCINATE

HIP_PYTHON_CUlaunchMemSyncDomain_enum_HALLUCINATE

HIP_PYTHON_cudaLaunchMemSyncDomain_HALLUCINATE

HIP_PYTHON_CUsynchronizationPolicy_HALLUCINATE

HIP_PYTHON_CUsynchronizationPolicy_enum_HALLUCINATE

HIP_PYTHON_cudaSynchronizationPolicy_HALLUCINATE

HIP_PYTHON_CUlaunchAttributeID_HALLUCINATE

HIP_PYTHON_CUlaunchAttributeID_enum_HALLUCINATE

HIP_PYTHON_CUstreamAttrID_HALLUCINATE

HIP_PYTHON_CUstreamAttrID_enum_HALLUCINATE

HIP_PYTHON_cudaLaunchAttributeID_HALLUCINATE

HIP_PYTHON_cudaStreamAttrID_HALLUCINATE

HIP_PYTHON_CUgraphExecUpdateResult_HALLUCINATE

HIP_PYTHON_CUgraphExecUpdateResult_enum_HALLUCINATE

HIP_PYTHON_cudaGraphExecUpdateResult_HALLUCINATE

HIP_PYTHON_CUstreamCaptureMode_HALLUCINATE

HIP_PYTHON_CUstreamCaptureMode_enum_HALLUCINATE

HIP_PYTHON_cudaStreamCaptureMode_HALLUCINATE

HIP_PYTHON_CUstreamCaptureStatus_HALLUCINATE

HIP_PYTHON_CUstreamCaptureStatus_enum_HALLUCINATE

HIP_PYTHON_cudaStreamCaptureStatus_HALLUCINATE

HIP_PYTHON_CUstreamUpdateCaptureDependencies_flags_HALLUCINATE

HIP_PYTHON_CUstreamUpdateCaptureDependencies_flags_enum_HALLUCINATE

HIP_PYTHON_cudaStreamUpdateCaptureDependenciesFlags_HALLUCINATE

HIP_PYTHON_CUgraphMem_attribute_HALLUCINATE

HIP_PYTHON_CUgraphMem_attribute_enum_HALLUCINATE

HIP_PYTHON_cudaGraphMemAttributeType_HALLUCINATE

HIP_PYTHON_CUuserObject_flags_HALLUCINATE

HIP_PYTHON_CUuserObject_flags_enum_HALLUCINATE

HIP_PYTHON_cudaUserObjectFlags_HALLUCINATE

HIP_PYTHON_CUuserObjectRetain_flags_HALLUCINATE

HIP_PYTHON_CUuserObjectRetain_flags_enum_HALLUCINATE

HIP_PYTHON_cudaUserObjectRetainFlags_HALLUCINATE

HIP_PYTHON_CUgraphInstantiate_flags_HALLUCINATE

HIP_PYTHON_CUgraphInstantiate_flags_enum_HALLUCINATE

HIP_PYTHON_cudaGraphInstantiateFlags_HALLUCINATE

HIP_PYTHON_CUgraphDebugDot_flags_HALLUCINATE

HIP_PYTHON_CUgraphDebugDot_flags_enum_HALLUCINATE

HIP_PYTHON_cudaGraphDebugDotFlags_HALLUCINATE

HIP_PYTHON_CUgraphInstantiateResult_HALLUCINATE

HIP_PYTHON_CUgraphInstantiateResult_enum_HALLUCINATE

HIP_PYTHON_cudaGraphInstantiateResult_HALLUCINATE

CUmemGenericAllocationHandle

CUmemGenericAllocationHandle_v1

HIP_PYTHON_CUmemAllocationGranularity_flags_HALLUCINATE

HIP_PYTHON_CUmemAllocationGranularity_flags_enum_HALLUCINATE

HIP_PYTHON_CUmemHandleType_HALLUCINATE

HIP_PYTHON_CUmemHandleType_enum_HALLUCINATE

HIP_PYTHON_CUmemOperationType_HALLUCINATE

HIP_PYTHON_CUmemOperationType_enum_HALLUCINATE

HIP_PYTHON_CUarraySparseSubresourceType_HALLUCINATE

HIP_PYTHON_CUarraySparseSubresourceType_enum_HALLUCINATE

HIP_PYTHON_CUgraphDependencyType_HALLUCINATE

HIP_PYTHON_CUgraphDependencyType_enum_HALLUCINATE

HIP_PYTHON_cudaGraphDependencyType_HALLUCINATE

HIP_PYTHON_cudaGraphDependencyType_enum_HALLUCINATE

CUlaunchAttribute

cudaLaunchAttribute

cudaLaunchConfig_t

CUlaunchConfig

HIP_PYTHON_CUmemRangeHandleType_HALLUCINATE

HIP_PYTHON_CUmemRangeHandleType_enum_HALLUCINATE

HIP_PYTHON_CUmemRangeFlags_HALLUCINATE

HIP_PYTHON_CUmemRangeFlags_enum_HALLUCINATE

HIP_PYTHON_cublasDataType_t_HALLUCINATE

HIP_PYTHON_cudaDataType_HALLUCINATE

HIP_PYTHON_cudaDataType_t_HALLUCINATE

Classes#

CUjit_option

hipJitOption

CUjit_option_enum

hipJitOption

CUjitInputType

hipJitInputType

CUjitInputType_enum

hipJitInputType

CUlibraryOption_enum

(No short description)

CUlibraryOption

(No short description)

cudaLibraryOption

(No short description)

CUuuid_st

(No short description)

cudaDeviceProp

hipDeviceProp

CUmemorytype

hipMemoryType (for pointer attributes)

CUmemorytype_enum

hipMemoryType (for pointer attributes)

cudaMemoryType

hipMemoryType (for pointer attributes)

cudaPointerAttributes

Pointer attributes

CUresult

HIP error type

cudaError

HIP error type

cudaError_enum

HIP error type

cudaError_t

HIP error type

CUdevice_attribute

hipDeviceAttribute_t hipDeviceAttributeUnused number: 5

CUdevice_attribute_enum

hipDeviceAttribute_t hipDeviceAttributeUnused number: 5

cudaDeviceAttr

hipDeviceAttribute_t hipDeviceAttributeUnused number: 5

CUdriverProcAddressQueryResult

(No short description)

CUdriverProcAddressQueryResult_enum

(No short description)

CUcomputemode

(No short description)

CUcomputemode_enum

(No short description)

cudaComputeMode

(No short description)

CUflushGPUDirectRDMAWritesOptions

(No short description)

CUflushGPUDirectRDMAWritesOptions_enum

(No short description)

cudaFlushGPUDirectRDMAWritesOptions

(No short description)

CUGPUDirectRDMAWritesOrdering

(No short description)

CUGPUDirectRDMAWritesOrdering_enum

(No short description)

cudaGPUDirectRDMAWritesOrdering

(No short description)

cudaChannelFormatKind

HIP channel format kinds

cudaChannelFormatDesc

HIP channel format descriptor

CUarray_st

(No short description)

cudaArray

(No short description)

CUarray_format

HIP array format

CUarray_format_enum

HIP array format

CUDA_ARRAY_DESCRIPTOR

HIP array descriptor

CUDA_ARRAY_DESCRIPTOR_st

HIP array descriptor

CUDA_ARRAY_DESCRIPTOR_v1

HIP array descriptor

CUDA_ARRAY_DESCRIPTOR_v1_st

HIP array descriptor

CUDA_ARRAY_DESCRIPTOR_v2

HIP array descriptor

CUDA_ARRAY3D_DESCRIPTOR

HIP 3D array descriptor

CUDA_ARRAY3D_DESCRIPTOR_st

HIP 3D array descriptor

CUDA_ARRAY3D_DESCRIPTOR_v2

HIP 3D array descriptor

CUDA_MEMCPY2D

HIP 2D memory copy parameters

CUDA_MEMCPY2D_st

HIP 2D memory copy parameters

CUDA_MEMCPY2D_v1

HIP 2D memory copy parameters

CUDA_MEMCPY2D_v1_st

HIP 2D memory copy parameters

CUDA_MEMCPY2D_v2

HIP 2D memory copy parameters

CUmipmappedArray_st

HIP mipmapped array

cudaMipmappedArray

HIP mipmapped array

cudaResourceType

HIP resource types

CUresourcetype_enum

(No short description)

CUresourcetype

(No short description)

CUaddress_mode_enum

HIP texture address modes

CUaddress_mode

HIP texture address modes

CUfilter_mode_enum

HIP filter modes

CUfilter_mode

HIP filter modes

CUDA_TEXTURE_DESC_st

HIP texture descriptor

cudaResourceViewFormat

HIP texture resource view formats

CUresourceViewFormat_enum

HIP texture resource view formats

CUresourceViewFormat

HIP texture resource view formats

cudaResourceDesc

HIP resource descriptor

CUDA_RESOURCE_DESC_st

HIP resource view descriptor struct

cudaResourceViewDesc

HIP resource view descriptor

CUDA_RESOURCE_VIEW_DESC_st

Resource view descriptor

cudaMemcpyKind

(No short description)

cudaPitchedPtr

HIP pithed pointer

cudaExtent

HIP extent

cudaPos

HIP position

cudaMemcpy3DParms

HIP 3D memory copy parameters

CUDA_MEMCPY3D

HIP 3D memory copy

CUDA_MEMCPY3D_st

HIP 3D memory copy

CUDA_MEMCPY3D_v1

HIP 3D memory copy

CUDA_MEMCPY3D_v1_st

HIP 3D memory copy

CUDA_MEMCPY3D_v2

HIP 3D memory copy

CUmemLocationType

Specifies the type of location

CUmemLocationType_enum

Specifies the type of location

cudaMemLocationType

Specifies the type of location

CUmemLocation

Specifies a memory location.

CUmemLocation_st

Specifies a memory location.

CUmemLocation_v1

Specifies a memory location.

cudaMemLocation

Specifies a memory location.

CUmemcpyFlags

Flags to specify for copies within a batch. Used with hipMemcpyBatchAsync

CUmemcpyFlags_enum

Flags to specify for copies within a batch. Used with hipMemcpyBatchAsync

cudaMemcpyFlags

Flags to specify for copies within a batch. Used with hipMemcpyBatchAsync

CUmemcpySrcAccessOrder

Flags to specify order in which source pointer is accessed by Batch memcpy

CUmemcpySrcAccessOrder_enum

Flags to specify order in which source pointer is accessed by Batch memcpy

cudaMemcpySrcAccessOrder

Flags to specify order in which source pointer is accessed by Batch memcpy

CUmemcpyAttributes

Attributes for copies within a batch.

CUmemcpyAttributes_st

Attributes for copies within a batch.

CUmemcpyAttributes_v1

Attributes for copies within a batch.

cudaMemcpyAttributes

Attributes for copies within a batch.

CUmemcpy3DOperandType

Operand types for individual copies within a batch

CUmemcpy3DOperandType_enum

Operand types for individual copies within a batch

cudaMemcpy3DOperandType

Operand types for individual copies within a batch

CUoffset3D

Struct representing offset into a hipArray_t in elements.

CUoffset3D_st

Struct representing offset into a hipArray_t in elements.

CUoffset3D_v1

Struct representing offset into a hipArray_t in elements.

cudaOffset3D

Struct representing offset into a hipArray_t in elements.

CUmemcpy3DOperand

Struct representing an operand for copy with hipMemcpy3DBatchAsync.

CUmemcpy3DOperand_st

Struct representing an operand for copy with hipMemcpy3DBatchAsync.

CUmemcpy3DOperand_v1

Struct representing an operand for copy with hipMemcpy3DBatchAsync.

cudaMemcpy3DOperand

Struct representing an operand for copy with hipMemcpy3DBatchAsync.

CUDA_MEMCPY3D_BATCH_OP

HIP 3D Batch Op

CUDA_MEMCPY3D_BATCH_OP_st

HIP 3D Batch Op

CUDA_MEMCPY3D_BATCH_OP_v1

HIP 3D Batch Op

cudaMemcpy3DBatchOp

HIP 3D Batch Op

cudaMemcpy3DPeerParms

(No short description)

CUfunction_attribute

(No short description)

CUfunction_attribute_enum

(No short description)

CUpointer_attribute

(No short description)

CUpointer_attribute_enum

(No short description)

uchar1

(No short description)

uchar2

(No short description)

uchar3

(No short description)

uchar4

(No short description)

char1

(No short description)

char2

(No short description)

char3

(No short description)

char4

(No short description)

ushort1

(No short description)

ushort2

(No short description)

ushort3

(No short description)

ushort4

(No short description)

short1

(No short description)

short2

(No short description)

short3

(No short description)

short4

(No short description)

uint1

(No short description)

uint2

(No short description)

uint3

(No short description)

uint4

(No short description)

int1

(No short description)

int2

(No short description)

int3

(No short description)

int4

(No short description)

ulong1

(No short description)

ulong2

(No short description)

ulong3

(No short description)

ulong4

(No short description)

long1

(No short description)

long2

(No short description)

long3

(No short description)

long4

(No short description)

ulonglong1

(No short description)

ulonglong2

(No short description)

ulonglong3

(No short description)

ulonglong4

(No short description)

longlong1

(No short description)

longlong2

(No short description)

longlong3

(No short description)

longlong4

(No short description)

float1

(No short description)

float2

(No short description)

float3

(No short description)

float4

(No short description)

double1

(No short description)

double2

(No short description)

double3

(No short description)

double4

(No short description)

cudaTextureAddressMode

hip texture address modes

cudaTextureFilterMode

hip texture filter modes

cudaTextureReadMode

hip texture read modes

CUtexref_st

hip texture reference

textureReference

hip texture reference

cudaTextureDesc

hip texture descriptor

surfaceReference

hip surface reference

cudaSurfaceBoundaryMode

hip surface boundary modes

CUctx_st

(No short description)

CUdevice_P2PAttribute

(No short description)

CUdevice_P2PAttribute_enum

(No short description)

cudaDeviceP2PAttr

(No short description)

cudaDriverEntryPointQueryResult

(No short description)

CUstream_st

(No short description)

CUipcMemHandle_st

(No short description)

cudaIpcMemHandle_st

(No short description)

CUipcEventHandle_st

(No short description)

cudaIpcEventHandle_st

(No short description)

CUmod_st

(No short description)

CUfunc_st

(No short description)

CUlib_st

(No short description)

CUkern_st

(No short description)

CUmemPoolHandle_st

(No short description)

cudaFuncAttributes

(No short description)

CUevent_st

(No short description)

CUlimit

hipLimit

CUlimit_enum

hipLimit

cudaLimit

hipLimit

CUstreamBatchMemOpType

Operations for hipStreamBatchMemOp

CUstreamBatchMemOpType_enum

Operations for hipStreamBatchMemOp

CUstreamBatchMemOpParams_union

Union representing batch memory operation parameters for HIP streams.

CUDA_BATCH_MEM_OP_NODE_PARAMS

Structure representing node parameters for batch memory operations in HIP graphs.

CUDA_BATCH_MEM_OP_NODE_PARAMS_st

Structure representing node parameters for batch memory operations in HIP graphs.

CUDA_BATCH_MEM_OP_NODE_PARAMS_v1

Structure representing node parameters for batch memory operations in HIP graphs.

CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st

Structure representing node parameters for batch memory operations in HIP graphs.

CUDA_BATCH_MEM_OP_NODE_PARAMS_v2

Structure representing node parameters for batch memory operations in HIP graphs.

CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st

Structure representing node parameters for batch memory operations in HIP graphs.

CUmem_advise

HIP Memory Advise values

CUmem_advise_enum

HIP Memory Advise values

cudaMemoryAdvise

HIP Memory Advise values

CUmem_range_attribute

HIP range attributes

CUmem_range_attribute_enum

HIP range attributes

cudaMemRangeAttribute

HIP range attributes

CUmemPool_attribute

HIP memory pool attributes

CUmemPool_attribute_enum

HIP memory pool attributes

cudaMemPoolAttr

HIP memory pool attributes

CUmemAccess_flags

Specifies the memory protection flags for mapping

CUmemAccess_flags_enum

Specifies the memory protection flags for mapping

cudaMemAccessFlags

Specifies the memory protection flags for mapping

CUmemAccessDesc

Memory access descriptor structure is used to specify memory access

CUmemAccessDesc_st

Memory access descriptor structure is used to specify memory access

CUmemAccessDesc_v1

Memory access descriptor structure is used to specify memory access

cudaMemAccessDesc

Memory access descriptor structure is used to specify memory access

CUmemAllocationType

Defines the allocation types

CUmemAllocationType_enum

Defines the allocation types

cudaMemAllocationType

Defines the allocation types

CUmemAllocationHandleType

Flags for specifying handle types for memory pool allocations

CUmemAllocationHandleType_enum

Flags for specifying handle types for memory pool allocations

cudaMemAllocationHandleType

Flags for specifying handle types for memory pool allocations

CUmemPoolProps

Specifies the properties of allocations made from the pool.

CUmemPoolProps_st

Specifies the properties of allocations made from the pool.

CUmemPoolProps_v1

Specifies the properties of allocations made from the pool.

cudaMemPoolProps

Specifies the properties of allocations made from the pool.

CUmemPoolPtrExportData

Opaque data structure for exporting a pool allocation

CUmemPoolPtrExportData_st

Opaque data structure for exporting a pool allocation

CUmemPoolPtrExportData_v1

Opaque data structure for exporting a pool allocation

cudaMemPoolPtrExportData

Opaque data structure for exporting a pool allocation

cudaFuncAttribute

On AMD devices and some Nvidia devices, these hints and controls are ignored.

CUfunc_cache

On AMD devices and some Nvidia devices, these hints and controls are ignored.

CUfunc_cache_enum

On AMD devices and some Nvidia devices, these hints and controls are ignored.

cudaFuncCache

On AMD devices and some Nvidia devices, these hints and controls are ignored.

CUsharedconfig

On AMD devices and some Nvidia devices, these hints and controls are ignored.

CUsharedconfig_enum

On AMD devices and some Nvidia devices, these hints and controls are ignored.

cudaSharedMemConfig

On AMD devices and some Nvidia devices, these hints and controls are ignored.

CUDA_LAUNCH_PARAMS_st

struct hipFunctionLaunchParams_t

CUexternalMemoryHandleType_enum

(No short description)

CUexternalMemoryHandleType

(No short description)

cudaExternalMemoryHandleType

(No short description)

CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st

(No short description)

CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st

(No short description)

CUexternalSemaphoreHandleType_enum

(No short description)

CUexternalSemaphoreHandleType

(No short description)

cudaExternalSemaphoreHandleType

(No short description)

CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st

(No short description)

CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st

(No short description)

CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st

External semaphore wait parameters, compatible with driver type

CUgraphicsRegisterFlags

HIP Access falgs for Interop resources.

CUgraphicsRegisterFlags_enum

HIP Access falgs for Interop resources.

cudaGraphicsRegisterFlags

HIP Access falgs for Interop resources.

CUgraph_st

(No short description)

CUgraphNode_st

(No short description)

CUgraphExec_st

(No short description)

CUuserObject_st

(No short description)

CUgraphNodeType

hipGraphNodeType

CUgraphNodeType_enum

hipGraphNodeType

cudaGraphNodeType

hipGraphNodeType

CUhostFn

(No short description)

cudaHostFn_t

(No short description)

CUDA_HOST_NODE_PARAMS

(No short description)

CUDA_HOST_NODE_PARAMS_st

(No short description)

CUDA_HOST_NODE_PARAMS_v1

(No short description)

cudaHostNodeParams

(No short description)

CUDA_KERNEL_NODE_PARAMS

(No short description)

CUDA_KERNEL_NODE_PARAMS_st

(No short description)

CUDA_KERNEL_NODE_PARAMS_v1

(No short description)

cudaKernelNodeParams

(No short description)

CUDA_MEMSET_NODE_PARAMS

(No short description)

CUDA_MEMSET_NODE_PARAMS_st

(No short description)

CUDA_MEMSET_NODE_PARAMS_v1

(No short description)

cudaMemsetParams

(No short description)

CUDA_MEM_ALLOC_NODE_PARAMS

(No short description)

CUDA_MEM_ALLOC_NODE_PARAMS_st

(No short description)

CUDA_MEM_ALLOC_NODE_PARAMS_v1

(No short description)

CUDA_MEM_ALLOC_NODE_PARAMS_v1_st

(No short description)

cudaMemAllocNodeParams

(No short description)

CUaccessProperty

Specifies performance hint with hipAccessPolicyWindow

CUaccessProperty_enum

Specifies performance hint with hipAccessPolicyWindow

cudaAccessProperty

Specifies performance hint with hipAccessPolicyWindow

CUaccessPolicyWindow

Specifies access policy for a window, a contiguous extent of memory

CUaccessPolicyWindow_st

Specifies access policy for a window, a contiguous extent of memory

cudaAccessPolicyWindow

Specifies access policy for a window, a contiguous extent of memory

CUlaunchMemSyncDomainMap

Memory Synchronization Domain map

CUlaunchMemSyncDomainMap_st

Memory Synchronization Domain map

cudaLaunchMemSyncDomainMap

Memory Synchronization Domain map

cudaLaunchMemSyncDomainMap_st

Memory Synchronization Domain map

CUlaunchMemSyncDomain

Memory Synchronization Domain

CUlaunchMemSyncDomain_enum

Memory Synchronization Domain

cudaLaunchMemSyncDomain

Memory Synchronization Domain

CUsynchronizationPolicy

Stream Synchronization Policy.

CUsynchronizationPolicy_enum

Stream Synchronization Policy.

cudaSynchronizationPolicy

Stream Synchronization Policy.

CUlaunchAttributeID

Launch Attribute ID

CUlaunchAttributeID_enum

Launch Attribute ID

CUstreamAttrID

Launch Attribute ID

CUstreamAttrID_enum

Launch Attribute ID

cudaLaunchAttributeID

Launch Attribute ID

cudaStreamAttrID

Launch Attribute ID

CUlaunchAttributeValue

Launch Attribute Value

CUlaunchAttributeValue_union

Launch Attribute Value

CUstreamAttrValue

Launch Attribute Value

CUstreamAttrValue_union

Launch Attribute Value

CUstreamAttrValue_v1

Launch Attribute Value

cudaLaunchAttributeValue

Launch Attribute Value

cudaStreamAttrValue

Launch Attribute Value

CUgraphExecUpdateResult

Graph execution update result

CUgraphExecUpdateResult_enum

Graph execution update result

cudaGraphExecUpdateResult

Graph execution update result

CUstreamCaptureMode

(No short description)

CUstreamCaptureMode_enum

(No short description)

cudaStreamCaptureMode

(No short description)

CUstreamCaptureStatus

(No short description)

CUstreamCaptureStatus_enum

(No short description)

cudaStreamCaptureStatus

(No short description)

CUstreamUpdateCaptureDependencies_flags

(No short description)

CUstreamUpdateCaptureDependencies_flags_enum

(No short description)

cudaStreamUpdateCaptureDependenciesFlags

(No short description)

CUgraphMem_attribute

(No short description)

CUgraphMem_attribute_enum

(No short description)

cudaGraphMemAttributeType

(No short description)

CUuserObject_flags

(No short description)

CUuserObject_flags_enum

(No short description)

cudaUserObjectFlags

(No short description)

CUuserObjectRetain_flags

(No short description)

CUuserObjectRetain_flags_enum

(No short description)

cudaUserObjectRetainFlags

(No short description)

CUgraphInstantiate_flags

(No short description)

CUgraphInstantiate_flags_enum

(No short description)

cudaGraphInstantiateFlags

(No short description)

CUgraphDebugDot_flags

(No short description)

CUgraphDebugDot_flags_enum

(No short description)

cudaGraphDebugDotFlags

(No short description)

CUgraphInstantiateResult

hipGraphInstantiateWithParams results

CUgraphInstantiateResult_enum

hipGraphInstantiateWithParams results

cudaGraphInstantiateResult

hipGraphInstantiateWithParams results

CUDA_GRAPH_INSTANTIATE_PARAMS

Graph Instantiation parameters

CUDA_GRAPH_INSTANTIATE_PARAMS_st

Graph Instantiation parameters

cudaGraphInstantiateParams

Graph Instantiation parameters

cudaGraphInstantiateParams_st

Graph Instantiation parameters

CUmemAllocationProp

Memory allocation properties

CUmemAllocationProp_st

Memory allocation properties

CUmemAllocationProp_v1

Memory allocation properties

CUDA_EXT_SEM_SIGNAL_NODE_PARAMS

External semaphore signal node parameters

CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st

External semaphore signal node parameters

CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1

External semaphore signal node parameters

CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2

External semaphore signal node parameters

CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st

External semaphore signal node parameters

cudaExternalSemaphoreSignalNodeParams

External semaphore signal node parameters

cudaExternalSemaphoreSignalNodeParamsV2

External semaphore signal node parameters

CUDA_EXT_SEM_WAIT_NODE_PARAMS

External semaphore wait node parameters

CUDA_EXT_SEM_WAIT_NODE_PARAMS_st

External semaphore wait node parameters

CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1

External semaphore wait node parameters

CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2

External semaphore wait node parameters

CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st

External semaphore wait node parameters

cudaExternalSemaphoreWaitNodeParams

External semaphore wait node parameters

cudaExternalSemaphoreWaitNodeParamsV2

External semaphore wait node parameters

CUmemAllocationGranularity_flags

Flags for granularity

CUmemAllocationGranularity_flags_enum

Flags for granularity

CUmemHandleType

Memory handle type

CUmemHandleType_enum

Memory handle type

CUmemOperationType

Memory operation types

CUmemOperationType_enum

Memory operation types

CUarraySparseSubresourceType

Subresource types for sparse arrays

CUarraySparseSubresourceType_enum

Subresource types for sparse arrays

CUarrayMapInfo

Map info for arrays

CUarrayMapInfo_st

Map info for arrays

CUarrayMapInfo_v1

Map info for arrays

CUDA_MEMCPY_NODE_PARAMS

Memcpy node params

CUDA_MEMCPY_NODE_PARAMS_st

Memcpy node params

cudaMemcpyNodeParams

Memcpy node params

CUDA_CHILD_GRAPH_NODE_PARAMS

Child graph node params

CUDA_CHILD_GRAPH_NODE_PARAMS_st

Child graph node params

cudaChildGraphNodeParams

Child graph node params

CUDA_EVENT_WAIT_NODE_PARAMS

Event record node params

CUDA_EVENT_WAIT_NODE_PARAMS_st

Event record node params

cudaEventWaitNodeParams

Event record node params

CUDA_EVENT_RECORD_NODE_PARAMS

Event record node params

CUDA_EVENT_RECORD_NODE_PARAMS_st

Event record node params

cudaEventRecordNodeParams

Event record node params

CUDA_MEM_FREE_NODE_PARAMS

Memory free node params

CUDA_MEM_FREE_NODE_PARAMS_st

Memory free node params

cudaMemFreeNodeParams

Memory free node params

CUgraphNodeParams

Params for different graph nodes

CUgraphNodeParams_st

Params for different graph nodes

cudaGraphNodeParams

Params for different graph nodes

CUgraphDependencyType

(No short description)

CUgraphDependencyType_enum

(No short description)

cudaGraphDependencyType

(No short description)

cudaGraphDependencyType_enum

(No short description)

CUgraphEdgeData

(No short description)

CUgraphEdgeData_st

(No short description)

cudaGraphEdgeData

(No short description)

cudaGraphEdgeData_st

(No short description)

CUlaunchAttribute_st

Used to specify custom attributes for launching kernels

cudaLaunchAttribute_st

Used to specify custom attributes for launching kernels

cudaLaunchConfig_st

HIP extensible launch configuration

CUlaunchConfig_st

HIP driver extensible launch configuration

CUmemRangeHandleType

Requested handle type for address range.

CUmemRangeHandleType_enum

Requested handle type for address range.

CUmemRangeFlags

Mem Range Flags used in hipMemGetHandleForAddressRange.

CUmemRangeFlags_enum

Mem Range Flags used in hipMemGetHandleForAddressRange.

CUstreamCallback

Stream CallBack struct

cudaStreamCallback_t

Stream CallBack struct

cublasDataType_t

(No short description)

cudaDataType

(No short description)

cudaDataType_t

(No short description)

Functions#

cudaCreateChannelDesc(x, y, z, w, f)

!__LP64__

cuInit(flags)

Explicitly initializes the HIP runtime.

cuDriverGetVersion()

Returns the approximate HIP driver version.

cudaDriverGetVersion()

Returns the approximate HIP driver version.

cudaRuntimeGetVersion()

Returns the approximate HIP Runtime version.

getLocalRuntimeVersion()

Returns the approximate HIP Runtime version.

cuDeviceGet(ordinal)

Returns a handle to a compute device

cuDeviceComputeCapability(device)

Returns the compute capability of the device

cuDeviceGetName(len, device)

Returns an identifer string for the device.

cuDeviceGetUuid(device)

Returns an UUID for the device.[BETA]

cuDeviceGetUuid_v2(device)

Returns an UUID for the device.[BETA]

cuDeviceGetP2PAttribute(attr, srcDevice, dstDevice)

Returns a value for attribute of link between two devices

cudaDeviceGetP2PAttribute(attr, srcDevice, dstDevice)

Returns a value for attribute of link between two devices

cuDeviceGetPCIBusId(len, device)

Returns a PCI Bus Id string for the device, overloaded to take int device ID.

cudaDeviceGetPCIBusId(len, device)

Returns a PCI Bus Id string for the device, overloaded to take int device ID.

cuDeviceGetByPCIBusId(pciBusId)

Returns a handle to a compute device.

cudaDeviceGetByPCIBusId(pciBusId)

Returns a handle to a compute device.

cuDeviceTotalMem(device)

Returns the total amount of memory on the device.

cuDeviceTotalMem_v2(device)

Returns the total amount of memory on the device.

cudaDeviceSynchronize()

Waits on all active streams on current device

cudaThreadSynchronize()

Waits on all active streams on current device

cudaDeviceReset()

The state of current device is discarded and updated to a fresh state.

cudaThreadExit()

The state of current device is discarded and updated to a fresh state.

cudaSetDevice(deviceId)

Set default device to be used for subsequent hip API calls from this thread.

cudaSetValidDevices(len)

Set a list of devices that can be used.

cudaGetDevice()

Return the default device id for the calling host thread.

cuDeviceGetCount()

Return number of compute-capable devices.

cudaGetDeviceCount()

Return number of compute-capable devices.

cuDeviceGetAttribute(attr, deviceId)

Query for a specific device attribute.

cudaDeviceGetAttribute(attr, deviceId)

Query for a specific device attribute.

cuDeviceGetDefaultMemPool(device)

Returns the default memory pool of the specified device

cudaDeviceGetDefaultMemPool(device)

Returns the default memory pool of the specified device

cuDeviceSetMemPool(device, mem_pool)

Sets the current memory pool of a device

cudaDeviceSetMemPool(device, mem_pool)

Sets the current memory pool of a device

cuDeviceGetMemPool(device)

Gets the current memory pool for the specified device

cudaDeviceGetMemPool(device)

Gets the current memory pool for the specified device

cudaGetDeviceProperties(deviceId)

Returns device properties.

cudaDeviceGetTexture1DLinearMaxWidth(desc, device)

Gets the maximum width for 1D linear textures on the specified device

cudaDeviceSetCacheConfig(cacheConfig)

Set L1/Shared cache partition.

cudaThreadSetCacheConfig(cacheConfig)

Set L1/Shared cache partition.

cudaDeviceGetCacheConfig()

Get Cache configuration for a specific Device

cudaThreadGetCacheConfig()

Get Cache configuration for a specific Device

cuCtxGetLimit(limit)

Gets resource limits of current device

cudaDeviceGetLimit(limit)

Gets resource limits of current device

cuCtxSetLimit(limit, value)

Sets resource limits of current device.

cudaDeviceSetLimit(limit, value)

Sets resource limits of current device.

cudaDeviceGetSharedMemConfig()

Returns bank width of shared memory for current device

cudaGetDeviceFlags()

Gets the flags set for current device

cudaDeviceSetSharedMemConfig(config)

The bank width of shared memory on current device is set

cudaSetDeviceFlags(flags)

The current device behavior is changed according to the flags passed.

cudaChooseDevice(prop)

Device which matches hipDeviceProp_t is returned

cuIpcGetMemHandle(devPtr)

Gets an interprocess memory handle for an existing device memory

cudaIpcGetMemHandle(devPtr)

Gets an interprocess memory handle for an existing device memory

cuIpcOpenMemHandle(handle, flags)

Opens an interprocess memory handle exported from another process

cudaIpcOpenMemHandle(handle, flags)

Opens an interprocess memory handle exported from another process

cuIpcCloseMemHandle(devPtr)

Close memory mapped with hipIpcOpenMemHandle

cudaIpcCloseMemHandle(devPtr)

Close memory mapped with hipIpcOpenMemHandle

cuIpcGetEventHandle(event)

Gets an opaque interprocess handle for an event.

cudaIpcGetEventHandle(event)

Gets an opaque interprocess handle for an event.

cuIpcOpenEventHandle(handle)

Opens an interprocess event handles.

cudaIpcOpenEventHandle(handle)

Opens an interprocess event handles.

cudaFuncSetAttribute(func, attr, value)

Set attribute for a specific function

cudaFuncSetCacheConfig(func, config)

Set Cache configuration for a specific function

cudaFuncSetSharedMemConfig(func, config)

Set shared memory configuation for a specific function

cudaGetLastError()

Return last error returned by any HIP runtime API call and resets the stored error code to

cudaPeekAtLastError()

Return last error returned by any HIP runtime API call.

cudaGetErrorName(hip_error)

Return hip error as text string form.

cudaGetErrorString(hipError)

Return handy text string message to explain the error which occurred

cuGetErrorName(hipError)

Return hip error as text string form.

cuGetErrorString(hipError)

Return handy text string message to explain the error which occurred

cudaStreamCreate()

Creates an asynchronous stream.

cuStreamCreate(flags)

Creates an asynchronous stream with flag.

cudaStreamCreateWithFlags(flags)

Creates an asynchronous stream with flag.

cuStreamCreateWithPriority(flags, priority)

Creates an asynchronous stream with the specified priority.

cudaStreamCreateWithPriority(flags, priority)

Creates an asynchronous stream with the specified priority.

cuCtxGetStreamPriorityRange()

Returns numerical values that correspond to the least and greatest stream priority.

cudaDeviceGetStreamPriorityRange()

Returns numerical values that correspond to the least and greatest stream priority.

cuStreamDestroy(stream)

Destroys the specified stream.

cuStreamDestroy_v2(stream)

Destroys the specified stream.

cudaStreamDestroy(stream)

Destroys the specified stream.

cuStreamQuery(stream)

Returns hipSuccess if all of the operations in the specified stream have completed, or

cudaStreamQuery(stream)

Returns hipSuccess if all of the operations in the specified stream have completed, or

cuStreamSynchronize(stream)

Waits for all commands in the stream to complete.

cudaStreamSynchronize(stream)

Waits for all commands in the stream to complete.

cuStreamWaitEvent(stream, event, flags)

Makes the specified compute stream wait for the specified event

cudaStreamWaitEvent(stream, event, flags)

Makes the specified compute stream wait for the specified event

cuStreamGetFlags(stream)

Returns flags associated with this stream.

cudaStreamGetFlags(stream)

Returns flags associated with this stream.

cuStreamGetId(stream)

Queries the Id of a stream.

cudaStreamGetId(stream)

Queries the Id of a stream.

cuStreamGetPriority(stream)

Queries the priority of a stream.

cudaStreamGetPriority(stream)

Queries the priority of a stream.

cuStreamAddCallback(stream, callback, userData, flags)

Adds a callback to be called on the host after all currently enqueued items in the stream

cudaStreamAddCallback(stream, callback, userData, flags)

Adds a callback to be called on the host after all currently enqueued items in the stream

cuStreamSetAttribute(stream, attr, value)

Sets stream attribute. Updated attribute is applied to work submitted to the stream.

cudaStreamSetAttribute(stream, attr, value)

Sets stream attribute. Updated attribute is applied to work submitted to the stream.

cuStreamGetAttribute(stream, attr, value_out)

queries stream attribute.

cudaStreamGetAttribute(stream, attr, value_out)

queries stream attribute.

cuStreamCopyAttributes(dst, src)

Copies attributes from source stream to destination stream.

cudaStreamCopyAttributes(dst, src)

Copies attributes from source stream to destination stream.

cuStreamWaitValue32(stream, ptr, value, flags, mask)

Enqueues a wait command to the stream.[BETA]

cuStreamWaitValue32_v2(stream, ptr, value, flags, mask)

Enqueues a wait command to the stream.[BETA]

cuStreamWaitValue64(stream, ptr, value, flags, mask)

Enqueues a wait command to the stream.[BETA]

cuStreamWaitValue64_v2(stream, ptr, value, flags, mask)

Enqueues a wait command to the stream.[BETA]

cuStreamWriteValue32(stream, ptr, value, flags)

Enqueues a write command to the stream.[BETA]

cuStreamWriteValue32_v2(stream, ptr, value, flags)

Enqueues a write command to the stream.[BETA]

cuStreamWriteValue64(stream, ptr, value, flags)

Enqueues a write command to the stream.[BETA]

cuStreamWriteValue64_v2(stream, ptr, value, flags)

Enqueues a write command to the stream.[BETA]

cuStreamBatchMemOp(stream, count, paramArray, flags)

Enqueues an array of stream memory operations in the stream.[BETA]

cuStreamBatchMemOp_v2(stream, count, paramArray, flags)

Enqueues an array of stream memory operations in the stream.[BETA]

cuGraphAddBatchMemOpNode(hGraph, dependencies, ...)

Creates a batch memory operation node and adds it to a graph.[BETA]

cuGraphBatchMemOpNodeGetParams(hNode, nodeParams_out)

Returns a batch mem op node's parameters.[BETA]

cuGraphBatchMemOpNodeSetParams(hNode, nodeParams)

Sets the batch mem op node's parameters.[BETA]

cuGraphExecBatchMemOpNodeSetParams(hGraphExec, hNode, ...)

Sets the parameters for a batch mem op node in the given graphExec.[BETA]

cuEventCreate(flags)

Create an event with the specified flags

cudaEventCreateWithFlags(flags)

Create an event with the specified flags

cudaEventCreate()

Create an event

cuEventRecordWithFlags(event, stream, flags)

Record an event in the specified stream.

cudaEventRecordWithFlags(event, stream, flags)

Record an event in the specified stream.

cuEventRecord(event, stream)

Record an event in the specified stream.

cudaEventRecord(event, stream)

Record an event in the specified stream.

cuEventDestroy(event)

Destroy the specified event.

cuEventDestroy_v2(event)

Destroy the specified event.

cudaEventDestroy(event)

Destroy the specified event.

cuEventSynchronize(event)

Wait for an event to complete.

cudaEventSynchronize(event)

Wait for an event to complete.

cuEventElapsedTime(start, stop)

Return the elapsed time between two events.

cuEventElapsedTime_v2(start, stop)

Return the elapsed time between two events.

cudaEventElapsedTime(start, stop)

Return the elapsed time between two events.

cuEventQuery(event)

Query event status

cudaEventQuery(event)

Query event status

cuPointerSetAttribute(value, attribute, ptr)

Sets information on the specified pointer.[BETA]

cudaPointerGetAttributes(ptr)

Returns attributes for the specified pointer

cuPointerGetAttribute(data, attribute, ptr)

Returns information about the specified pointer.[BETA]

cuPointerGetAttributes(numAttributes, ptr)

Returns information about the specified pointer.[BETA]

cuImportExternalSemaphore(semHandleDesc)

Imports an external semaphore.

cudaImportExternalSemaphore(semHandleDesc)

Imports an external semaphore.

cuSignalExternalSemaphoresAsync(extSemArray, ...)

Signals a set of external semaphore objects.

cudaSignalExternalSemaphoresAsync(extSemArray, ...)

Signals a set of external semaphore objects.

cuWaitExternalSemaphoresAsync(extSemArray, ...)

Waits on a set of external semaphore objects

cudaWaitExternalSemaphoresAsync(extSemArray, ...)

Waits on a set of external semaphore objects

cuDestroyExternalSemaphore(extSem)

Destroys an external semaphore object and releases any references to the underlying

cudaDestroyExternalSemaphore(extSem)

Destroys an external semaphore object and releases any references to the underlying

cuImportExternalMemory(memHandleDesc)

Imports an external memory object.

cudaImportExternalMemory(memHandleDesc)

Imports an external memory object.

cuExternalMemoryGetMappedBuffer(extMem, bufferDesc)

Maps a buffer onto an imported memory object.

cudaExternalMemoryGetMappedBuffer(extMem, bufferDesc)

Maps a buffer onto an imported memory object.

cuDestroyExternalMemory(extMem)

Destroys an external memory object.

cudaDestroyExternalMemory(extMem)

Destroys an external memory object.

cuMemAlloc(size)

Allocate memory on the default accelerator

cuMemAlloc_v2(size)

Allocate memory on the default accelerator

cudaMalloc(size)

Allocate memory on the default accelerator

cuMemAllocHost(size)

Allocate pinned host memory [Deprecated]

cuMemAllocHost_v2(size)

Allocate pinned host memory [Deprecated]

cudaMallocHost(size, flags)

Allocates device accessible page locked (pinned) host memory

cuMemAllocManaged(size, flags)

Allocates memory that will be automatically managed by HIP.

cudaMallocManaged(size, flags)

Allocates memory that will be automatically managed by HIP.

cuMemPrefetchAsync(dev_ptr, count, device, stream)

Prefetches memory to the specified destination device using HIP.

cudaMemPrefetchAsync(dev_ptr, count, device, stream)

Prefetches memory to the specified destination device using HIP.

cuMemAdvise(dev_ptr, count, advice, device)

Advise about the usage of a given memory range to HIP.

cudaMemAdvise(dev_ptr, count, advice, device)

Advise about the usage of a given memory range to HIP.

cuMemRangeGetAttribute(data, data_size, attribute, ...)

Query an attribute of a given memory range in HIP.

cudaMemRangeGetAttribute(data, data_size, attribute, ...)

Query an attribute of a given memory range in HIP.

cuMemRangeGetAttributes(num_attributes, dev_ptr, count)

Query attributes of a given memory range in HIP.

cudaMemRangeGetAttributes(num_attributes, dev_ptr, count)

Query attributes of a given memory range in HIP.

cuStreamAttachMemAsync(stream, dev_ptr, length, flags)

Attach memory to a stream asynchronously in HIP.

cudaStreamAttachMemAsync(stream, dev_ptr, length, flags)

Attach memory to a stream asynchronously in HIP.

cuMemAllocAsync(size, stream)

Allocates memory with stream ordered semantics

cudaMallocAsync(size, stream)

Allocates memory with stream ordered semantics

cuMemFreeAsync(dev_ptr, stream)

Frees memory with stream ordered semantics

cudaFreeAsync(dev_ptr, stream)

Frees memory with stream ordered semantics

cuMemPoolTrimTo(mem_pool, min_bytes_to_hold)

Releases freed memory back to the OS

cudaMemPoolTrimTo(mem_pool, min_bytes_to_hold)

Releases freed memory back to the OS

cuMemPoolSetAttribute(mem_pool, attr, value)

Sets attributes of a memory pool

cudaMemPoolSetAttribute(mem_pool, attr, value)

Sets attributes of a memory pool

cuMemPoolGetAttribute(mem_pool, attr, value)

Gets attributes of a memory pool

cudaMemPoolGetAttribute(mem_pool, attr, value)

Gets attributes of a memory pool

cuMemPoolSetAccess(mem_pool, desc_list, count)

Controls visibility of the specified pool between devices

cudaMemPoolSetAccess(mem_pool, desc_list, count)

Controls visibility of the specified pool between devices

cuMemPoolGetAccess(mem_pool, location)

Returns the accessibility of a pool from a device

cudaMemPoolGetAccess(mem_pool, location)

Returns the accessibility of a pool from a device

cuMemPoolCreate(pool_props)

Creates a memory pool

cudaMemPoolCreate(pool_props)

Creates a memory pool

cuMemPoolDestroy(mem_pool)

Destroys the specified memory pool

cudaMemPoolDestroy(mem_pool)

Destroys the specified memory pool

cuMemAllocFromPoolAsync(size, mem_pool, stream)

Allocates memory from a specified pool with stream ordered semantics.

cudaMallocFromPoolAsync(size, mem_pool, stream)

Allocates memory from a specified pool with stream ordered semantics.

cuMemPoolExportToShareableHandle(shared_handle, ...)

Exports a memory pool to the requested handle type.

cudaMemPoolExportToShareableHandle(shared_handle, ...)

Exports a memory pool to the requested handle type.

cuMemPoolImportFromShareableHandle(shared_handle, ...)

Imports a memory pool from a shared handle.

cudaMemPoolImportFromShareableHandle(shared_handle, ...)

Imports a memory pool from a shared handle.

cuMemPoolExportPointer(dev_ptr)

Export data to share a memory pool allocation between processes.

cudaMemPoolExportPointer(dev_ptr)

Export data to share a memory pool allocation between processes.

cuMemPoolImportPointer(mem_pool, export_data)

Import a memory pool allocation from another process.

cudaMemPoolImportPointer(mem_pool, export_data)

Import a memory pool allocation from another process.

cuMemHostAlloc(size, flags)

Allocate device accessible page locked host memory

cudaHostAlloc(size, flags)

Allocate device accessible page locked host memory

cuMemHostGetDevicePointer(hstPtr, flags)

Get Device pointer from Host Pointer allocated through hipHostMalloc

cuMemHostGetDevicePointer_v2(hstPtr, flags)

Get Device pointer from Host Pointer allocated through hipHostMalloc

cudaHostGetDevicePointer(hstPtr, flags)

Get Device pointer from Host Pointer allocated through hipHostMalloc

cuMemHostGetFlags(hostPtr)

Return flags associated with host pointer

cudaHostGetFlags(hostPtr)

Return flags associated with host pointer

cuMemHostRegister(hostPtr, sizeBytes, flags)

Register host memory so it can be accessed from the current device.

cuMemHostRegister_v2(hostPtr, sizeBytes, flags)

Register host memory so it can be accessed from the current device.

cudaHostRegister(hostPtr, sizeBytes, flags)

Register host memory so it can be accessed from the current device.

cuMemHostUnregister(hostPtr)

Un-register host pointer

cudaHostUnregister(hostPtr)

Un-register host pointer

cudaMallocPitch(width, height)

Allocates at least width (in bytes) * height bytes of linear memory

cuMemAllocPitch(widthInBytes, height, elementSizeBytes)

Allocates at least width (in bytes) * height bytes of linear memory

cuMemAllocPitch_v2(widthInBytes, height, elementSizeBytes)

Allocates at least width (in bytes) * height bytes of linear memory

cuMemFree(ptr)

Free memory allocated by the HIP-Clang hip memory allocation API.

cuMemFree_v2(ptr)

Free memory allocated by the HIP-Clang hip memory allocation API.

cudaFree(ptr)

Free memory allocated by the HIP-Clang hip memory allocation API.

cuMemFreeHost(ptr)

Free memory allocated by the HIP-Clang hip host memory allocation API

cudaFreeHost(ptr)

Free memory allocated by the HIP-Clang hip host memory allocation API

cudaMemcpy(dst, src, sizeBytes, kind)

Copy data from src to dst.

cuMemcpyHtoD(dst, src, sizeBytes)

Copy data from Host to Device

cuMemcpyHtoD_v2(dst, src, sizeBytes)

Copy data from Host to Device

cuMemcpyDtoH(dst, src, sizeBytes)

Copy data from Device to Host

cuMemcpyDtoH_v2(dst, src, sizeBytes)

Copy data from Device to Host

cuMemcpyDtoD(dst, src, sizeBytes)

Copy data from Device to Device

cuMemcpyDtoD_v2(dst, src, sizeBytes)

Copy data from Device to Device

cuMemcpyAtoD(dstDevice, srcArray, srcOffset, ByteCount)

Copies from one 1D array to device memory.

cuMemcpyAtoD_v2(dstDevice, srcArray, srcOffset, ByteCount)

Copies from one 1D array to device memory.

cuMemcpyDtoA(dstArray, dstOffset, srcDevice, ByteCount)

Copies from device memory to a 1D array.

cuMemcpyDtoA_v2(dstArray, dstOffset, srcDevice, ByteCount)

Copies from device memory to a 1D array.

cuMemcpyAtoA(dstArray, dstOffset, srcArray, srcOffset, ...)

Copies from one 1D array to another.

cuMemcpyAtoA_v2(dstArray, dstOffset, srcArray, ...)

Copies from one 1D array to another.

cuMemcpyHtoDAsync(dst, src, sizeBytes, stream)

Copy data from Host to Device asynchronously

cuMemcpyHtoDAsync_v2(dst, src, sizeBytes, stream)

Copy data from Host to Device asynchronously

cuMemcpyDtoHAsync(dst, src, sizeBytes, stream)

Copy data from Device to Host asynchronously

cuMemcpyDtoHAsync_v2(dst, src, sizeBytes, stream)

Copy data from Device to Host asynchronously

cuMemcpyDtoDAsync(dst, src, sizeBytes, stream)

Copy data from Device to Device asynchronously

cuMemcpyDtoDAsync_v2(dst, src, sizeBytes, stream)

Copy data from Device to Device asynchronously

cuMemcpyAtoHAsync(dstHost, srcArray, srcOffset, ...)

Copies from one 1D array to host memory.

cuMemcpyAtoHAsync_v2(dstHost, srcArray, srcOffset, ...)

Copies from one 1D array to host memory.

cuMemcpyHtoAAsync(dstArray, dstOffset, srcHost, ...)

Copies from host memory to a 1D array.

cuMemcpyHtoAAsync_v2(dstArray, dstOffset, srcHost, ...)

Copies from host memory to a 1D array.

cuModuleGetGlobal(hmod, name)

Returns a global pointer from a module.

cuModuleGetGlobal_v2(hmod, name)

Returns a global pointer from a module.

cudaGetSymbolAddress(symbol)

Gets device pointer associated with symbol on the device.

cudaGetSymbolSize(symbol)

Gets the size of the given symbol on the device.

cuGetProcAddress(symbol, hipVersion, flags)

Gets the pointer of requested HIP driver function.

cudaMemcpyToSymbol(symbol, src, sizeBytes, offset, kind)

Copies data to the given symbol on the device.

cudaMemcpyToSymbolAsync(symbol, src, sizeBytes, ...)

Copies data to the given symbol on the device asynchronously.

cudaMemcpyFromSymbol(dst, symbol, sizeBytes, offset, kind)

Copies data from the given symbol on the device.

cudaMemcpyFromSymbolAsync(dst, symbol, sizeBytes, ...)

Copies data from the given symbol on the device asynchronously.

cudaMemcpyAsync(dst, src, sizeBytes, kind, stream)

Copies data from src to dst asynchronously.

cudaMemset(dst, value, sizeBytes)

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant

cuMemsetD8(dest, value, count)

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant

cuMemsetD8_v2(dest, value, count)

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant

cuMemsetD8Async(dest, value, count, stream)

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant

cuMemsetD16(dest, value, count)

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant

cuMemsetD16_v2(dest, value, count)

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant

cuMemsetD16Async(dest, value, count, stream)

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant

cuMemsetD32(dest, value, count)

Fills the memory area pointed to by dest with the constant integer

cuMemsetD32_v2(dest, value, count)

Fills the memory area pointed to by dest with the constant integer

cudaMemsetAsync(dst, value, sizeBytes, stream)

Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant

cuMemsetD32Async(dst, value, count, stream)

Fills the memory area pointed to by dev with the constant integer

cudaMemset2D(dst, pitch, value, width, height)

Fills the memory area pointed to by dst with the constant value.

cudaMemset2DAsync(dst, pitch, value, width, height, stream)

Fills asynchronously the memory area pointed to by dst with the constant value.

cudaMemset3D(pitchedDevPtr, value, extent)

Fills synchronously the memory area pointed to by pitchedDevPtr with the constant value.

cudaMemset3DAsync(pitchedDevPtr, value, extent, stream)

Fills asynchronously the memory area pointed to by pitchedDevPtr with the constant value.

cuMemsetD2D8(dst, dstPitch, value, width, height)

Fills 2D memory range of 'width' 8-bit values synchronously to the specified char value.

cuMemsetD2D8_v2(dst, dstPitch, value, width, height)

Fills 2D memory range of 'width' 8-bit values synchronously to the specified char value.

cuMemsetD2D8Async(dst, dstPitch, value, width, height, ...)

Fills 2D memory range of 'width' 8-bit values asynchronously to the specified char value.

cuMemsetD2D16(dst, dstPitch, value, width, height)

Fills 2D memory range of 'width' 16-bit values synchronously to the specified short

cuMemsetD2D16_v2(dst, dstPitch, value, width, height)

Fills 2D memory range of 'width' 16-bit values synchronously to the specified short

cuMemsetD2D16Async(dst, dstPitch, value, width, ...)

Fills 2D memory range of 'width' 16-bit values asynchronously to the specified short

cuMemsetD2D32(dst, dstPitch, value, width, height)

Fills 2D memory range of 'width' 32-bit values synchronously to the specified int value.

cuMemsetD2D32_v2(dst, dstPitch, value, width, height)

Fills 2D memory range of 'width' 32-bit values synchronously to the specified int value.

cuMemsetD2D32Async(dst, dstPitch, value, width, ...)

Fills 2D memory range of 'width' 32-bit values asynchronously to the specified int

cuMemGetInfo()

Query memory info.

cuMemGetInfo_v2()

Query memory info.

cudaMemGetInfo()

Query memory info.

cudaMallocArray(desc, width, height, flags)

Allocate an array on the device.

cuArrayCreate(pAllocateArray)

Create an array memory pointer on the device.

cuArrayCreate_v2(pAllocateArray)

Create an array memory pointer on the device.

cuArrayDestroy(array)

Destroy an array memory pointer on the device.

cuArray3DCreate(pAllocateArray)

Create a 3D array memory pointer on the device.

cuArray3DCreate_v2(pAllocateArray)

Create a 3D array memory pointer on the device.

cudaMalloc3D(extent)

Create a 3D memory pointer on the device.

cudaFreeArray(array)

Frees an array on the device.

cudaMalloc3DArray(desc, extent, flags)

Allocate an array on the device.

cudaArrayGetInfo(array)

Gets info about the specified array

cuArrayGetDescriptor(array)

Gets a 1D or 2D array descriptor

cuArrayGetDescriptor_v2(array)

Gets a 1D or 2D array descriptor

cuArray3DGetDescriptor(array)

Gets a 3D array descriptor

cuArray3DGetDescriptor_v2(array)

Gets a 3D array descriptor

cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind)

Copies data between host and device.

cuMemcpy2D(pCopy)

Copies memory for 2D arrays.

cuMemcpy2D_v2(pCopy)

Copies memory for 2D arrays.

cuMemcpy2DAsync(pCopy, stream)

Copies memory for 2D arrays.

cuMemcpy2DAsync_v2(pCopy, stream)

Copies memory for 2D arrays.

cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, ...)

Copies data between host and device asynchronously.

cudaMemcpy2DToArray(dst, wOffset, hOffset, src, ...)

Copies data between host and device.

cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, ...)

Copies data between host and device.

cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, ...)

Copies data between host and device.

cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind)

Copies data between host and device [Deprecated]

cudaMemcpyFromArray(dst, srcArray, wOffset, hOffset, ...)

Copies data between host and device [Deprecated]

cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, ...)

Copies data between host and device.

cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, ...)

Copies data between host and device asynchronously.

cuMemcpyAtoH(dst, srcArray, srcOffset, count)

Copies data between host and device.

cuMemcpyAtoH_v2(dst, srcArray, srcOffset, count)

Copies data between host and device.

cuMemcpyHtoA(dstArray, dstOffset, srcHost, count)

Copies data between host and device.

cuMemcpyHtoA_v2(dstArray, dstOffset, srcHost, count)

Copies data between host and device.

cudaMemcpy3D(p)

Copies data between host and device.

cudaMemcpy3DAsync(p, stream)

Copies data between host and device asynchronously.

cuMemcpy3D(pCopy)

Copies data between host and device.

cuMemcpy3D_v2(pCopy)

Copies data between host and device.

cuMemcpy3DAsync(pCopy, stream)

Copies data between host and device asynchronously.

cuMemcpy3DAsync_v2(pCopy, stream)

Copies data between host and device asynchronously.

cuMemGetAddressRange(dptr)

Get information on memory allocations.

cuMemGetAddressRange_v2(dptr)

Get information on memory allocations.

cuMemcpyBatchAsync(srcs, count, attrs, numAttrs, stream)

Perform Batch of 1D copies

cudaMemcpyBatchAsync(srcs, count, attrs, numAttrs, stream)

Perform Batch of 1D copies

cuMemcpy3DBatchAsync(numOps, opList, flags, stream)

Perform Batch of 3D copies

cudaMemcpy3DBatchAsync(numOps, opList, flags, stream)

Perform Batch of 3D copies

cudaMemcpy3DPeer(p)

Performs 3D memory copies between devices

cudaMemcpy3DPeerAsync(p, stream)

Performs 3D memory copies between devices asynchronously

cuDeviceCanAccessPeer(deviceId, peerDeviceId)

Determines if a device can access a peer device's memory.

cudaDeviceCanAccessPeer(deviceId, peerDeviceId)

Determines if a device can access a peer device's memory.

cudaDeviceEnablePeerAccess(peerDeviceId, flags)

Enables direct access to memory allocations on a peer device.

cudaDeviceDisablePeerAccess(peerDeviceId)

Disables direct access to memory allocations on a peer device.

cudaMemcpyPeer(dst, dstDeviceId, src, srcDeviceId, ...)

Copies memory between two peer accessible devices.

cudaMemcpyPeerAsync(dst, dstDeviceId, src, srcDevice, ...)

Copies memory between two peer accessible devices asynchronously.

cuCtxCreate(flags, device)

Create a context and set it as current/default context

cuCtxCreate_v2(flags, device)

Create a context and set it as current/default context

cuCtxDestroy(ctx)

Destroy a HIP context [Deprecated]

cuCtxDestroy_v2(ctx)

Destroy a HIP context [Deprecated]

cuCtxPopCurrent()

Pop the current/default context and return the popped context [Deprecated]

cuCtxPopCurrent_v2()

Pop the current/default context and return the popped context [Deprecated]

cuCtxPushCurrent(ctx)

Push the context to be set as current/ default context [Deprecated]

cuCtxPushCurrent_v2(ctx)

Push the context to be set as current/ default context [Deprecated]

cuCtxSetCurrent(ctx)

Set the passed context as current/default [Deprecated]

cuCtxGetCurrent()

Get the handle of the current/ default context [Deprecated]

cuCtxGetDevice()

Get the handle of the device associated with current/default context [Deprecated]

cuCtxGetApiVersion(ctx)

Returns the approximate HIP api version.

cuCtxGetCacheConfig()

Get Cache configuration for a specific function [Deprecated]

cuCtxSetCacheConfig(cacheConfig)

Set L1/Shared cache partition [Deprecated]

cuCtxSetSharedMemConfig(config)

Set Shared memory bank configuration [Deprecated]

cuCtxGetSharedMemConfig()

Get Shared memory bank configuration [Deprecated]

cuCtxSynchronize()

Blocks until the default context has completed all preceding requested tasks [Deprecated]

cuCtxGetFlags()

Return flags used for creating default context [Deprecated]

cuCtxEnablePeerAccess(peerCtx, flags)

Enables direct access to memory allocations in a peer context [Deprecated]

cuCtxDisablePeerAccess(peerCtx)

Disable direct access from current context's virtual address space to memory allocations

cuDevicePrimaryCtxGetState(dev)

Get the state of the primary context [Deprecated]

cuDevicePrimaryCtxRelease(dev)

Release the primary context on the GPU.

cuDevicePrimaryCtxRelease_v2(dev)

Release the primary context on the GPU.

cuDevicePrimaryCtxRetain(dev)

Retain the primary context on the GPU [Deprecated]

cuDevicePrimaryCtxReset(dev)

Resets the primary context on the GPU [Deprecated]

cuDevicePrimaryCtxReset_v2(dev)

Resets the primary context on the GPU [Deprecated]

cuDevicePrimaryCtxSetFlags(dev, flags)

Set flags for the primary context [Deprecated]

cuDevicePrimaryCtxSetFlags_v2(dev, flags)

Set flags for the primary context [Deprecated]

cuModuleLoadFatBinary(fatbin)

Loads fatbin object

cuModuleLoad(fname)

Loads code object from file into a module the currrent context.

cuModuleUnload(module)

Frees the module

cuModuleGetFunction(module, kname)

Function with kname will be extracted if present in module

cuModuleGetFunctionCount(mod)

Returns the number of functions within a module.

cuLibraryLoadData(code, jitOptionsValues, ...)

Load hip Library from inmemory object

cudaLibraryLoadData(code, jitOptionsValues, ...)

Load hip Library from inmemory object

cuLibraryLoadFromFile(fileName, jitOptionsValues, ...)

Load hip Library from file

cudaLibraryLoadFromFile(fileName, jitOptionsValues, ...)

Load hip Library from file

cuLibraryUnload(library)

Unload HIP Library

cudaLibraryUnload(library)

Unload HIP Library

cuLibraryGetKernel(library, name)

Get Kernel object from library

cudaLibraryGetKernel(library, name)

Get Kernel object from library

cuLibraryGetKernelCount(library)

Get Kernel count in library

cudaLibraryGetKernelCount(library)

Get Kernel count in library

cuLibraryEnumerateKernels(numKernels, library)

Retrieve kernel handles within a library

cudaLibraryEnumerateKernels(numKernels, library)

Retrieve kernel handles within a library

cuKernelGetLibrary(kernel)

Returns a Library Handle

cuKernelGetName(kernel)

Returns a Kernel Name

cudaFuncGetAttributes(func)

Find out attributes for a given function.

cuFuncGetAttribute(attrib, hfunc)

Find out a specific attribute for a given function.

cudaGetFuncBySymbol(symbolPtr)

Gets pointer to device entry function that matches entry function symbolPtr.

cudaGetDriverEntryPoint(symbol, flags)

Gets function pointer of a requested HIP API

cuModuleGetTexRef(hmod, name)

returns the handle of the texture reference with the name from the module.

cuModuleLoadData(image)

builds module from code object data which resides in host memory.

cuModuleLoadDataEx(image, numOptions, optionValues)

builds module from code object which resides in host memory. Image is pointer to that

cuLaunchKernel(f, gridDimX, gridDimY, gridDimZ, ...)

launches kernel f with launch parameters and shared memory on stream with arguments passed

cuLaunchCooperativeKernel(f, gridDimX, gridDimY, ...)

launches kernel f with launch parameters and shared memory on stream with arguments passed

cuLaunchCooperativeKernelMultiDevice(launchParamsList, ...)

Launches kernels on multiple devices where thread blocks can cooperate and

cudaLaunchCooperativeKernel(f, gridDim, blockDimX, ...)

Launches kernel f with launch parameters and shared memory on stream with arguments passed

cudaLaunchCooperativeKernelMultiDevice(...)

Launches kernels on multiple devices where thread blocks can cooperate and

cudaLaunchKernelExC(config, fPtr, args)

Launches a HIP kernel using a generic function pointer and the specified configuration.

cuLaunchKernelEx(config, f, params, extra)

Launches a HIP kernel using the driver API with the specified configuration.

cuMemGetHandleForAddressRange(handle, dptr, size, ...)

Returns a handle for the address range requested.

cuOccupancyMaxPotentialBlockSize(f, ...)

determine the grid and block sizes to achieves maximum occupancy for a kernel

cuOccupancyMaxPotentialBlockSizeWithFlags(f, ...)

determine the grid and block sizes to achieves maximum occupancy for a kernel

cuOccupancyMaxActiveBlocksPerMultiprocessor(f, ...)

Returns occupancy for a device function.

cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, ...)

Returns occupancy for a device function.

cudaOccupancyMaxActiveBlocksPerMultiprocessor(f, ...)

Returns occupancy for a device function.

cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, ...)

Returns occupancy for a device function.

cudaOccupancyMaxPotentialBlockSize(f, ...)

determine the grid and block sizes to achieves maximum occupancy for a kernel

cuOccupancyAvailableDynamicSMemPerBlock(f, numBlocks, ...)

Returns dynamic shared memory available per block when launching numBlocks blocks on SM.

cudaOccupancyAvailableDynamicSMemPerBlock(f, ...)

Returns dynamic shared memory available per block when launching numBlocks blocks on SM.

cuProfilerStart()

Start recording of profiling information [Deprecated]

cudaProfilerStart()

Start recording of profiling information [Deprecated]

cuProfilerStop()

Stop recording of profiling information [Deprecated]

cudaProfilerStop()

Stop recording of profiling information [Deprecated]

cudaConfigureCall(gridDim, blockDim, sharedMem, stream)

Configure a kernel launch.

cudaSetupArgument(arg, size, offset)

Set a kernel argument.

cudaLaunch(func)

Launch a kernel.

cudaLaunchKernel(function_address, numBlocks, ...)

C compliant kernel launch API

cuLaunchHostFunc(stream, fn, userData)

Enqueues a host function call in a stream.

cudaLaunchHostFunc(stream, fn, userData)

Enqueues a host function call in a stream.

cuMemcpy2DUnaligned(pCopy)

Copies memory for 2D arrays.

cuMemcpy2DUnaligned_v2(pCopy)

Copies memory for 2D arrays.

cudaCreateTextureObject(pResDesc, pTexDesc, pResViewDesc)

Creates a texture object.

cudaDestroyTextureObject(textureObject)

Destroys a texture object.

cudaGetChannelDesc(desc)

Gets the channel descriptor in an array.

cudaGetTextureObjectResourceDesc(textureObject)

Gets resource descriptor for the texture object.

cudaGetTextureObjectResourceViewDesc(textureObject)

Gets resource view descriptor for the texture object.

cudaGetTextureObjectTextureDesc(textureObject)

Gets texture descriptor for the texture object.

cuTexObjectCreate(pResDesc, pTexDesc, pResViewDesc)

Creates a texture object.

cuTexObjectDestroy(texObject)

Destroys a texture object.

cuTexObjectGetResourceDesc(texObject)

Gets resource descriptor of a texture object.

cuTexObjectGetResourceViewDesc(texObject)

Gets resource view descriptor of a texture object.

cuTexObjectGetTextureDesc(texObject)

Gets texture descriptor of a texture object.

cudaMallocMipmappedArray(desc, extent, numLevels, flags)

Allocate a mipmapped array on the device.

cudaFreeMipmappedArray(mipmappedArray)

Frees a mipmapped array on the device.

cudaGetMipmappedArrayLevel(mipmappedArray, level)

Gets a mipmap level of a HIP mipmapped array.

cuMipmappedArrayCreate(pMipmappedArrayDesc, ...)

Create a mipmapped array.

cuMipmappedArrayDestroy()

Destroy a mipmapped array.

cuMipmappedArrayGetLevel(pLevelArray, level)

Get a mipmapped array on a mipmapped level.

cudaBindTextureToMipmappedArray(tex, mipmappedArray, desc)

Binds a mipmapped array to a texture [Deprecated]

cudaGetTextureReference(symbol)

Gets the texture reference related with the symbol [Deprecated]

cuTexRefGetBorderColor(texRef)

Gets the border color used by a texture reference [Deprecated]

cuTexRefGetArray(pArray, texRef)

Gets the array bound to a texture reference [Deprecated]

cuTexRefSetAddressMode(texRef, dim, am)

Sets address mode for a texture reference [Deprecated]

cuTexRefSetArray(tex, array, flags)

Binds an array as a texture reference [Deprecated]

cuTexRefSetFilterMode(texRef, fm)

Set filter mode for a texture reference [Deprecated]

cuTexRefSetFlags(texRef, Flags)

Set flags for a texture reference [Deprecated]

cuTexRefSetFormat(texRef, fmt, NumPackedComponents)

Set format for a texture reference [Deprecated]

cudaBindTexture(tex, devPtr, desc, size)

Binds a memory area to a texture [Deprecated]

cudaBindTexture2D(tex, devPtr, desc, width, height, pitch)

Binds a 2D memory area to a texture [Deprecated]

cudaBindTextureToArray(tex, array, desc)

Binds a memory area to a texture [Deprecated]

cudaGetTextureAlignmentOffset(texref)

Get the offset of the alignment in a texture [Deprecated]

cudaUnbindTexture(tex)

Unbinds a texture [Deprecated]

cuTexRefGetAddress(texRef)

Gets the address for a texture reference [Deprecated]

cuTexRefGetAddress_v2(texRef)

Gets the address for a texture reference [Deprecated]

cuTexRefGetAddressMode(texRef, dim)

Gets the address mode for a texture reference [Deprecated]

cuTexRefGetFilterMode(texRef)

Gets filter mode for a texture reference [Deprecated]

cuTexRefGetFlags(texRef)

Gets flags for a texture reference [Deprecated]

cuTexRefGetFormat(texRef)

Gets texture format for a texture reference [Deprecated]

cuTexRefGetMaxAnisotropy(texRef)

Gets the maximum anisotropy for a texture reference [Deprecated]

cuTexRefGetMipmapFilterMode(texRef)

Gets the mipmap filter mode for a texture reference [Deprecated]

cuTexRefGetMipmapLevelBias(texRef)

Gets the mipmap level bias for a texture reference [Deprecated]

cuTexRefGetMipmapLevelClamp(texRef)

Gets the minimum and maximum mipmap level clamps for a texture reference [Deprecated]

cuTexRefGetMipmappedArray(texRef)

Gets the mipmapped array bound to a texture reference [Deprecated]

cuTexRefSetAddress(texRef, dptr, bytes)

Sets an bound address for a texture reference [Deprecated]

cuTexRefSetAddress_v2(texRef, dptr, bytes)

Sets an bound address for a texture reference [Deprecated]

cuTexRefSetAddress2D(texRef, desc, dptr, Pitch)

Set a bind an address as a 2D texture reference [Deprecated]

cuTexRefSetAddress2D_v2(texRef, desc, dptr, Pitch)

Set a bind an address as a 2D texture reference [Deprecated]

cuTexRefSetAddress2D_v3(texRef, desc, dptr, Pitch)

Set a bind an address as a 2D texture reference [Deprecated]

cuTexRefSetMaxAnisotropy(texRef, maxAniso)

Sets the maximum anisotropy for a texture reference [Deprecated]

cuTexRefSetBorderColor(texRef)

Sets border color for a texture reference [Deprecated]

cuTexRefSetMipmapFilterMode(texRef, fm)

Sets mipmap filter mode for a texture reference [Deprecated]

cuTexRefSetMipmapLevelBias(texRef, bias)

Sets mipmap level bias for a texture reference [Deprecated]

cuTexRefSetMipmapLevelClamp(texRef, ...)

Sets mipmap level clamp for a texture reference [Deprecated]

cuTexRefSetMipmappedArray(texRef, mipmappedArray, Flags)

Binds mipmapped array to a texture reference [Deprecated]

cuStreamBeginCapture(stream, mode)

Begins graph capture on a stream.

cuStreamBeginCapture_v2(stream, mode)

Begins graph capture on a stream.

cudaStreamBeginCapture(stream, mode)

Begins graph capture on a stream.

cuStreamBeginCaptureToGraph(stream, graph, ...)

Begins graph capture on a stream to an existing graph.

cudaStreamBeginCaptureToGraph(stream, graph, ...)

Begins graph capture on a stream to an existing graph.

cuStreamEndCapture(stream)

Ends capture on a stream, returning the captured graph.

cudaStreamEndCapture(stream)

Ends capture on a stream, returning the captured graph.

cuStreamGetCaptureInfo(stream)

Get capture status of a stream.

cudaStreamGetCaptureInfo(stream)

Get capture status of a stream.

cuStreamGetCaptureInfo_v2(stream, dependencies_out)

Get stream's capture state

cuStreamIsCapturing(stream)

Get stream's capture state

cudaStreamIsCapturing(stream)

Get stream's capture state

cuStreamUpdateCaptureDependencies(stream, ...)

Update the set of dependencies in a capturing stream

cudaStreamUpdateCaptureDependencies(stream, ...)

Update the set of dependencies in a capturing stream

cuThreadExchangeStreamCaptureMode()

Swaps the stream capture mode of a thread.

cudaThreadExchangeStreamCaptureMode()

Swaps the stream capture mode of a thread.

cuGraphCreate(flags)

Creates a graph

cudaGraphCreate(flags)

Creates a graph

cuGraphDestroy(graph)

Destroys a graph

cudaGraphDestroy(graph)

Destroys a graph

cuGraphAddDependencies(graph, from_, to, numDependencies)

Adds dependency edges to a graph.

cudaGraphAddDependencies(graph, from_, to, numDependencies)

Adds dependency edges to a graph.

cuGraphRemoveDependencies(graph, from_, to, ...)

Removes dependency edges from a graph.

cudaGraphRemoveDependencies(graph, from_, to, ...)

Removes dependency edges from a graph.

cuGraphGetEdges(graph)

Returns a graph's dependency edges.

cudaGraphGetEdges(graph)

Returns a graph's dependency edges.

cuGraphGetNodes(graph)

Returns a graph's nodes.

cudaGraphGetNodes(graph)

Returns a graph's nodes.

cuGraphGetRootNodes(graph)

Returns a graph's root nodes.

cudaGraphGetRootNodes(graph)

Returns a graph's root nodes.

cuGraphNodeGetDependencies(node)

Returns a node's dependencies.

cudaGraphNodeGetDependencies(node)

Returns a node's dependencies.

cuGraphNodeGetDependentNodes(node)

Returns a node's dependent nodes.

cudaGraphNodeGetDependentNodes(node)

Returns a node's dependent nodes.

cuGraphNodeGetType(node)

Returns a node's type.

cudaGraphNodeGetType(node)

Returns a node's type.

cuGraphDestroyNode(node)

Remove a node from the graph.

cudaGraphDestroyNode(node)

Remove a node from the graph.

cuGraphClone(originalGraph)

Clones a graph.

cudaGraphClone(originalGraph)

Clones a graph.

cuGraphNodeFindInClone(originalNode, clonedGraph)

Finds a cloned version of a node.

cudaGraphNodeFindInClone(originalNode, clonedGraph)

Finds a cloned version of a node.

cuGraphInstantiate(graph, bufferSize)

Creates an executable graph from a graph

cuGraphInstantiate_v2(graph, bufferSize)

Creates an executable graph from a graph

cudaGraphInstantiate(graph, bufferSize)

Creates an executable graph from a graph

cuGraphInstantiateWithFlags(graph, flags)

Creates an executable graph from a graph.

cudaGraphInstantiateWithFlags(graph, flags)

Creates an executable graph from a graph.

cuGraphInstantiateWithParams(graph, instantiateParams)

Creates an executable graph from a graph.

cudaGraphInstantiateWithParams(graph, instantiateParams)

Creates an executable graph from a graph.

cuGraphLaunch(graphExec, stream)

Launches an executable graph in the specified stream.

cudaGraphLaunch(graphExec, stream)

Launches an executable graph in the specified stream.

cuGraphUpload(graphExec, stream)

Uploads an executable graph to a stream

cudaGraphUpload(graphExec, stream)

Uploads an executable graph to a stream

cuGraphAddNode(graph, pDependencies, numDependencies, ...)

Creates a kernel execution node and adds it to a graph.

cudaGraphAddNode(graph, pDependencies, ...)

Creates a kernel execution node and adds it to a graph.

cuGraphExecGetFlags(graphExec)

Return the flags of an executable graph.

cudaGraphExecGetFlags(graphExec)

Return the flags of an executable graph.

cuGraphNodeSetParams(node, nodeParams)

Updates parameters of a graph's node.

cudaGraphNodeSetParams(node, nodeParams)

Updates parameters of a graph's node.

cuGraphExecNodeSetParams(graphExec, node, nodeParams)

Updates parameters of an executable graph's node.

cudaGraphExecNodeSetParams(graphExec, node, nodeParams)

Updates parameters of an executable graph's node.

cuGraphExecDestroy(graphExec)

Destroys an executable graph

cudaGraphExecDestroy(graphExec)

Destroys an executable graph

cuGraphExecUpdate(hGraphExec, hGraph, hErrorNode_out)

Check whether an executable graph can be updated with a graph and perform the update if *

cudaGraphExecUpdate(hGraphExec, hGraph, hErrorNode_out)

Check whether an executable graph can be updated with a graph and perform the update if *

cuGraphAddKernelNode(graph, pDependencies, ...)

Creates a kernel execution node and adds it to a graph.

cudaGraphAddKernelNode(graph, pDependencies, ...)

Creates a kernel execution node and adds it to a graph.

cuGraphKernelNodeGetParams(node)

Gets kernel node's parameters.

cudaGraphKernelNodeGetParams(node)

Gets kernel node's parameters.

cuGraphKernelNodeSetParams(node, pNodeParams)

Sets a kernel node's parameters.

cudaGraphKernelNodeSetParams(node, pNodeParams)

Sets a kernel node's parameters.

cuGraphExecKernelNodeSetParams(hGraphExec, node, ...)

Sets the parameters for a kernel node in the given graphExec.

cudaGraphExecKernelNodeSetParams(hGraphExec, node, ...)

Sets the parameters for a kernel node in the given graphExec.

cuGraphAddMemcpyNode(hGraph, dependencies, ...)

Creates a memcpy node and adds it to a graph.

cudaGraphAddMemcpyNode(graph, pDependencies, ...)

Creates a memcpy node and adds it to a graph.

cudaGraphMemcpyNodeGetParams(node)

Gets a memcpy node's parameters.

cudaGraphMemcpyNodeSetParams(node, pNodeParams)

Sets a memcpy node's parameters.

cuGraphKernelNodeSetAttribute(hNode, attr, value)

Sets a node's attribute.

cudaGraphKernelNodeSetAttribute(hNode, attr, value)

Sets a node's attribute.

cuGraphKernelNodeGetAttribute(hNode, attr, value)

Gets a node's attribute.

cudaGraphKernelNodeGetAttribute(hNode, attr, value)

Gets a node's attribute.

cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, ...)

Sets the parameters of a memcpy node in the given graphExec.

cudaGraphAddMemcpyNode1D(graph, pDependencies, ...)

Creates a 1D memcpy node and adds it to a graph.

cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind)

Sets a memcpy node's parameters to perform a 1-dimensional copy.

cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, ...)

Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional

cudaGraphAddMemcpyNodeFromSymbol(graph, pDependencies, ...)

Creates a memcpy node to copy from a symbol on the device and adds it to a graph.

cudaGraphMemcpyNodeSetParamsFromSymbol(node, dst, ...)

Sets a memcpy node's parameters to copy from a symbol on the device.

cudaGraphExecMemcpyNodeSetParamsFromSymbol(hGraphExec, ...)

Sets the parameters for a memcpy node in the given graphExec to copy from a symbol on the

cudaGraphAddMemcpyNodeToSymbol(graph, pDependencies, ...)

Creates a memcpy node to copy to a symbol on the device and adds it to a graph.

cudaGraphMemcpyNodeSetParamsToSymbol(node, symbol, ...)

Sets a memcpy node's parameters to copy to a symbol on the device.

cudaGraphExecMemcpyNodeSetParamsToSymbol(hGraphExec, ...)

Sets the parameters for a memcpy node in the given graphExec to copy to a symbol on the

cudaGraphAddMemsetNode(graph, pDependencies, ...)

Creates a memset node and adds it to a graph.

cuGraphMemsetNodeGetParams(node)

Gets a memset node's parameters.

cudaGraphMemsetNodeGetParams(node)

Gets a memset node's parameters.

cuGraphMemsetNodeSetParams(node, pNodeParams)

Sets a memset node's parameters.

cudaGraphMemsetNodeSetParams(node, pNodeParams)

Sets a memset node's parameters.

cudaGraphExecMemsetNodeSetParams(hGraphExec, node, ...)

Sets the parameters for a memset node in the given graphExec.

cuGraphAddHostNode(graph, pDependencies, ...)

Creates a host execution node and adds it to a graph.

cudaGraphAddHostNode(graph, pDependencies, ...)

Creates a host execution node and adds it to a graph.

cuGraphHostNodeGetParams(node)

Returns a host node's parameters.

cudaGraphHostNodeGetParams(node)

Returns a host node's parameters.

cuGraphHostNodeSetParams(node, pNodeParams)

Sets a host node's parameters.

cudaGraphHostNodeSetParams(node, pNodeParams)

Sets a host node's parameters.

cuGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams)

Sets the parameters for a host node in the given graphExec.

cudaGraphExecHostNodeSetParams(hGraphExec, node, ...)

Sets the parameters for a host node in the given graphExec.

cuGraphAddChildGraphNode(graph, pDependencies, ...)

Creates a child graph node and adds it to a graph.

cudaGraphAddChildGraphNode(graph, pDependencies, ...)

Creates a child graph node and adds it to a graph.

cuGraphChildGraphNodeGetGraph(node)

Gets a handle to the embedded graph of a child graph node.

cudaGraphChildGraphNodeGetGraph(node)

Gets a handle to the embedded graph of a child graph node.

cuGraphExecChildGraphNodeSetParams(hGraphExec, node, ...)

Updates node parameters in the child graph node in the given graphExec.

cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, ...)

Updates node parameters in the child graph node in the given graphExec.

cuGraphAddEmptyNode(graph, pDependencies, numDependencies)

Creates an empty node and adds it to a graph.

cudaGraphAddEmptyNode(graph, pDependencies, ...)

Creates an empty node and adds it to a graph.

cuGraphAddEventRecordNode(graph, pDependencies, ...)

Creates an event record node and adds it to a graph.

cudaGraphAddEventRecordNode(graph, pDependencies, ...)

Creates an event record node and adds it to a graph.

cuGraphEventRecordNodeGetEvent(node)

Returns the event associated with an event record node.

cudaGraphEventRecordNodeGetEvent(node)

Returns the event associated with an event record node.

cuGraphEventRecordNodeSetEvent(node, event)

Sets an event record node's event.

cudaGraphEventRecordNodeSetEvent(node, event)

Sets an event record node's event.

cuGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, ...)

Sets the event for an event record node in the given graphExec.

cudaGraphExecEventRecordNodeSetEvent(hGraphExec, ...)

Sets the event for an event record node in the given graphExec.

cuGraphAddEventWaitNode(graph, pDependencies, ...)

Creates an event wait node and adds it to a graph.

cudaGraphAddEventWaitNode(graph, pDependencies, ...)

Creates an event wait node and adds it to a graph.

cuGraphEventWaitNodeGetEvent(node)

Returns the event associated with an event wait node.

cudaGraphEventWaitNodeGetEvent(node)

Returns the event associated with an event wait node.

cuGraphEventWaitNodeSetEvent(node, event)

Sets an event wait node's event.

cudaGraphEventWaitNodeSetEvent(node, event)

Sets an event wait node's event.

cuGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event)

Sets the event for an event record node in the given graphExec.

cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, ...)

Sets the event for an event record node in the given graphExec.

cuGraphAddMemAllocNode(graph, pDependencies, ...)

Creates a memory allocation node and adds it to a graph

cudaGraphAddMemAllocNode(graph, pDependencies, ...)

Creates a memory allocation node and adds it to a graph

cuGraphMemAllocNodeGetParams(node)

Returns parameters for memory allocation node

cudaGraphMemAllocNodeGetParams(node)

Returns parameters for memory allocation node

cudaGraphAddMemFreeNode(graph, pDependencies, ...)

Creates a memory free node and adds it to a graph

cuGraphMemFreeNodeGetParams(node, dev_ptr)

Returns parameters for memory free node

cudaGraphMemFreeNodeGetParams(node, dev_ptr)

Returns parameters for memory free node

cuDeviceGetGraphMemAttribute(device, attr, value)

Get the mem attribute for graphs.

cudaDeviceGetGraphMemAttribute(device, attr, value)

Get the mem attribute for graphs.

cuDeviceSetGraphMemAttribute(device, attr, value)

Set the mem attribute for graphs.

cudaDeviceSetGraphMemAttribute(device, attr, value)

Set the mem attribute for graphs.

cuDeviceGraphMemTrim(device)

Free unused memory reserved for graphs on a specific device and return it back to the OS.

cudaDeviceGraphMemTrim(device)

Free unused memory reserved for graphs on a specific device and return it back to the OS.

cuUserObjectCreate(ptr, destroy, initialRefcount, flags)

Create an instance of userObject to manage lifetime of a resource.

cudaUserObjectCreate(ptr, destroy, initialRefcount, flags)

Create an instance of userObject to manage lifetime of a resource.

cuUserObjectRelease(object, count)

Release number of references to resource.

cudaUserObjectRelease(object, count)

Release number of references to resource.

cuUserObjectRetain(object, count)

Retain number of references to resource.

cudaUserObjectRetain(object, count)

Retain number of references to resource.

cuGraphRetainUserObject(graph, object, count, flags)

Retain user object for graphs.

cudaGraphRetainUserObject(graph, object, count, flags)

Retain user object for graphs.

cuGraphReleaseUserObject(graph, object, count)

Release user object from graphs.

cudaGraphReleaseUserObject(graph, object, count)

Release user object from graphs.

cuGraphDebugDotPrint(graph, path, flags)

Write a DOT file describing graph structure.

cudaGraphDebugDotPrint(graph, path, flags)

Write a DOT file describing graph structure.

cuGraphKernelNodeCopyAttributes(hSrc)

Copies attributes from source node to destination node.

cudaGraphKernelNodeCopyAttributes(hSrc)

Copies attributes from source node to destination node.

cuGraphNodeSetEnabled(hGraphExec, hNode, isEnabled)

Enables or disables the specified node in the given graphExec

cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled)

Enables or disables the specified node in the given graphExec

cuGraphNodeGetEnabled(hGraphExec, hNode)

Query whether a node in the given graphExec is enabled

cudaGraphNodeGetEnabled(hGraphExec, hNode)

Query whether a node in the given graphExec is enabled

cuGraphAddExternalSemaphoresWaitNode(graph, ...)

Creates a external semaphor wait node and adds it to a graph.

cudaGraphAddExternalSemaphoresWaitNode(graph, ...)

Creates a external semaphor wait node and adds it to a graph.

cuGraphAddExternalSemaphoresSignalNode(graph, ...)

Creates a external semaphor signal node and adds it to a graph.

cudaGraphAddExternalSemaphoresSignalNode(graph, ...)

Creates a external semaphor signal node and adds it to a graph.

cuGraphExternalSemaphoresSignalNodeSetParams(hNode, ...)

Updates node parameters in the external semaphore signal node.

cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, ...)

Updates node parameters in the external semaphore signal node.

cuGraphExternalSemaphoresWaitNodeSetParams(hNode, ...)

Updates node parameters in the external semaphore wait node.

cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, ...)

Updates node parameters in the external semaphore wait node.

cuGraphExternalSemaphoresSignalNodeGetParams(hNode)

Returns external semaphore signal node params.

cudaGraphExternalSemaphoresSignalNodeGetParams(hNode)

Returns external semaphore signal node params.

cuGraphExternalSemaphoresWaitNodeGetParams(hNode)

Returns external semaphore wait node params.

cudaGraphExternalSemaphoresWaitNodeGetParams(hNode)

Returns external semaphore wait node params.

cuGraphExecExternalSemaphoresSignalNodeSetParams(...)

Updates node parameters in the external semaphore signal node in the given graphExec.

cudaGraphExecExternalSemaphoresSignalNodeSetParams(...)

Updates node parameters in the external semaphore signal node in the given graphExec.

cuGraphExecExternalSemaphoresWaitNodeSetParams(...)

Updates node parameters in the external semaphore wait node in the given graphExec.

cudaGraphExecExternalSemaphoresWaitNodeSetParams(...)

Updates node parameters in the external semaphore wait node in the given graphExec.

cuGraphMemcpyNodeGetParams(hNode)

Gets a memcpy node's parameters.

cuGraphMemcpyNodeSetParams(hNode)

Sets a memcpy node's parameters.

cuGraphAddMemsetNode(hGraph, dependencies, ...)

Creates a memset node and adds it to a graph.

cuGraphAddMemFreeNode(hGraph, dependencies, ...)

Creates a memory free node and adds it to a graph

cuGraphExecMemcpyNodeSetParams(hGraphExec, hNode, ...)

Sets the parameters for a memcpy node in the given graphExec.

cuGraphExecMemsetNodeSetParams(hGraphExec, hNode, ...)

Sets the parameters for a memset node in the given graphExec.

cuMemAddressFree(devPtr, size)

Frees an address range reservation made via hipMemAddressReserve

cuMemAddressReserve(size, alignment, addr, flags)

Reserves an address range

cuMemCreate(size, prop, flags)

Creates a memory handle for the allocation described by the properties and given size

cuMemExportToShareableHandle(shareableHandle, handle, ...)

Exports an allocation to a requested shareable handle type.

cuMemGetAccess(location, ptr)

Get the access flags set for the given location and ptr.

cuMemGetAllocationGranularity(prop, option)

Calculates either the minimal or recommended granularity.

cuMemGetAllocationPropertiesFromHandle(handle)

Retrieve the property structure of the given handle.

cuMemImportFromShareableHandle(osHandle, shHandleType)

Imports an allocation from a requested shareable handle type.

cuMemMap(ptr, size, offset, handle, flags)

Maps an allocation handle to a reserved virtual address range.

cuMemMapArrayAsync(mapInfoList, count, stream)

Maps or unmaps subregions of sparse HIP arrays and sparse HIP mipmapped arrays.

cuMemRelease(handle)

Release a memory handle representing a memory allocation which was previously allocated

cuMemRetainAllocationHandle(addr)

Returns the allocation handle of the backing memory allocation given the address.

cuMemSetAccess(ptr, size, desc, count)

Set the access flags for each location specified in desc for the given virtual address

cuMemUnmap(ptr, size)

Unmap memory allocation of a given address range.

cuGraphicsMapResources(count, resources, stream)

Maps a graphics resource for access.

cudaGraphicsMapResources(count, resources, stream)

Maps a graphics resource for access.

cuGraphicsSubResourceGetMappedArray(resource, ...)

Get an array through which to access a subresource of a mapped graphics resource.

cudaGraphicsSubResourceGetMappedArray(resource, ...)

Get an array through which to access a subresource of a mapped graphics resource.

cuGraphicsResourceGetMappedPointer(resource)

Gets device accessible address of a graphics resource.

cuGraphicsResourceGetMappedPointer_v2(resource)

Gets device accessible address of a graphics resource.

cudaGraphicsResourceGetMappedPointer(resource)

Gets device accessible address of a graphics resource.

cuGraphicsUnmapResources(count, resources, stream)

Unmaps graphics resources.

cudaGraphicsUnmapResources(count, resources, stream)

Unmaps graphics resources.

cuGraphicsUnregisterResource(resource)

Unregisters a graphics resource.

cudaGraphicsUnregisterResource(resource)

Unregisters a graphics resource.

cudaCreateSurfaceObject(pResDesc)

Create a surface object.

cudaDestroySurfaceObject(surfaceObject)

Destroy a surface object.

Module Contents#

cuda.bindings.runtime.CU_TRSA_OVERRIDE_FORMAT: Any#
cuda.bindings.runtime.CU_TRSF_READ_AS_INTEGER: Any#
cuda.bindings.runtime.CU_TRSF_NORMALIZED_COORDINATES: Any#
cuda.bindings.runtime.CU_TRSF_SRGB: Any#
cuda.bindings.runtime.cudaTextureType1D: Any#
cuda.bindings.runtime.cudaTextureType2D: Any#
cuda.bindings.runtime.cudaTextureType3D: Any#
cuda.bindings.runtime.cudaTextureTypeCubemap: Any#
cuda.bindings.runtime.cudaTextureType1DLayered: Any#
cuda.bindings.runtime.cudaTextureType2DLayered: Any#
cuda.bindings.runtime.cudaTextureTypeCubemapLayered: Any#
cuda.bindings.runtime.CU_LAUNCH_PARAM_BUFFER_POINTER: Any#
cuda.bindings.runtime.CU_LAUNCH_PARAM_BUFFER_SIZE: Any#
cuda.bindings.runtime.CU_LAUNCH_PARAM_END: Any#
cuda.bindings.runtime.CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS: Any#
cuda.bindings.runtime.cudaIpcMemLazyEnablePeerAccess: Any#
cuda.bindings.runtime.CUDA_IPC_HANDLE_SIZE: Any#
cuda.bindings.runtime.CU_IPC_HANDLE_SIZE: Any#
cuda.bindings.runtime.CU_STREAM_DEFAULT: Any#
cuda.bindings.runtime.cudaStreamDefault: Any#
cuda.bindings.runtime.CU_STREAM_NON_BLOCKING: Any#
cuda.bindings.runtime.cudaStreamNonBlocking: Any#
cuda.bindings.runtime.CU_EVENT_DEFAULT: Any#
cuda.bindings.runtime.cudaEventDefault: Any#
cuda.bindings.runtime.CU_EVENT_BLOCKING_SYNC: Any#
cuda.bindings.runtime.cudaEventBlockingSync: Any#
cuda.bindings.runtime.CU_EVENT_DISABLE_TIMING: Any#
cuda.bindings.runtime.cudaEventDisableTiming: Any#
cuda.bindings.runtime.CU_EVENT_INTERPROCESS: Any#
cuda.bindings.runtime.cudaEventInterprocess: Any#
cuda.bindings.runtime.cudaHostAllocDefault: Any#
cuda.bindings.runtime.CU_MEMHOSTALLOC_PORTABLE: Any#
cuda.bindings.runtime.cudaHostAllocPortable: Any#
cuda.bindings.runtime.CU_MEMHOSTALLOC_DEVICEMAP: Any#
cuda.bindings.runtime.cudaHostAllocMapped: Any#
cuda.bindings.runtime.CU_MEMHOSTALLOC_WRITECOMBINED: Any#
cuda.bindings.runtime.cudaHostAllocWriteCombined: Any#
cuda.bindings.runtime.CU_MEM_ATTACH_GLOBAL: Any#
cuda.bindings.runtime.cudaMemAttachGlobal: Any#
cuda.bindings.runtime.CU_MEM_ATTACH_HOST: Any#
cuda.bindings.runtime.cudaMemAttachHost: Any#
cuda.bindings.runtime.CU_MEM_ATTACH_SINGLE: Any#
cuda.bindings.runtime.cudaMemAttachSingle: Any#
cuda.bindings.runtime.cudaHostRegisterDefault: Any#
cuda.bindings.runtime.CU_MEMHOSTREGISTER_PORTABLE: Any#
cuda.bindings.runtime.cudaHostRegisterPortable: Any#
cuda.bindings.runtime.CU_MEMHOSTREGISTER_DEVICEMAP: Any#
cuda.bindings.runtime.cudaHostRegisterMapped: Any#
cuda.bindings.runtime.CU_MEMHOSTREGISTER_IOMEMORY: Any#
cuda.bindings.runtime.cudaHostRegisterIoMemory: Any#
cuda.bindings.runtime.CU_CTX_SCHED_AUTO: Any#
cuda.bindings.runtime.cudaDeviceScheduleAuto: Any#
cuda.bindings.runtime.CU_CTX_SCHED_SPIN: Any#
cuda.bindings.runtime.cudaDeviceScheduleSpin: Any#
cuda.bindings.runtime.CU_CTX_SCHED_YIELD: Any#
cuda.bindings.runtime.cudaDeviceScheduleYield: Any#
cuda.bindings.runtime.CU_CTX_BLOCKING_SYNC: Any#
cuda.bindings.runtime.CU_CTX_SCHED_BLOCKING_SYNC: Any#
cuda.bindings.runtime.cudaDeviceBlockingSync: Any#
cuda.bindings.runtime.cudaDeviceScheduleBlockingSync: Any#
cuda.bindings.runtime.CU_CTX_SCHED_MASK: Any#
cuda.bindings.runtime.cudaDeviceScheduleMask: Any#
cuda.bindings.runtime.CU_CTX_MAP_HOST: Any#
cuda.bindings.runtime.cudaDeviceMapHost: Any#
cuda.bindings.runtime.CU_CTX_LMEM_RESIZE_TO_MAX: Any#
cuda.bindings.runtime.cudaDeviceLmemResizeToMax: Any#
cuda.bindings.runtime.cudaArrayDefault: Any#
cuda.bindings.runtime.CUDA_ARRAY3D_LAYERED: Any#
cuda.bindings.runtime.cudaArrayLayered: Any#
cuda.bindings.runtime.CUDA_ARRAY3D_SURFACE_LDST: Any#
cuda.bindings.runtime.cudaArraySurfaceLoadStore: Any#
cuda.bindings.runtime.CUDA_ARRAY3D_CUBEMAP: Any#
cuda.bindings.runtime.cudaArrayCubemap: Any#
cuda.bindings.runtime.CUDA_ARRAY3D_TEXTURE_GATHER: Any#
cuda.bindings.runtime.cudaArrayTextureGather: Any#
cuda.bindings.runtime.CU_OCCUPANCY_DEFAULT: Any#
cuda.bindings.runtime.cudaOccupancyDefault: Any#
cuda.bindings.runtime.CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_PRE_LAUNCH_SYNC: Any#
cuda.bindings.runtime.cudaCooperativeLaunchMultiDeviceNoPreSync: Any#
cuda.bindings.runtime.CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_POST_LAUNCH_SYNC: Any#
cuda.bindings.runtime.cudaCooperativeLaunchMultiDeviceNoPostSync: Any#
cuda.bindings.runtime.CU_DEVICE_CPU: Any#
cuda.bindings.runtime.cudaCpuDeviceId: Any#
cuda.bindings.runtime.CU_DEVICE_INVALID: Any#
cuda.bindings.runtime.cudaInvalidDeviceId: Any#
cuda.bindings.runtime.CU_STREAM_WAIT_VALUE_GEQ: Any#
cuda.bindings.runtime.CU_STREAM_WAIT_VALUE_EQ: Any#
cuda.bindings.runtime.CU_STREAM_WAIT_VALUE_AND: Any#
cuda.bindings.runtime.CU_STREAM_WAIT_VALUE_NOR: Any#
cuda.bindings.runtime.HIP_PYTHON_CUjit_option_HALLUCINATE: Any#
class cuda.bindings.runtime.CUjit_option#

Bases: enum.IntEnum

hipJitOption

hipJitOptionMaxRegisters: int#
CU_JIT_MAX_REGISTERS: int#
cudaJitMaxRegisters: int#
hipJitOptionThreadsPerBlock: int#
CU_JIT_THREADS_PER_BLOCK: int#
cudaJitThreadsPerBlock: int#
hipJitOptionWallTime: int#
CU_JIT_WALL_TIME: int#
cudaJitWallTime: int#
hipJitOptionInfoLogBuffer: int#
CU_JIT_INFO_LOG_BUFFER: int#
cudaJitInfoLogBuffer: int#
hipJitOptionInfoLogBufferSizeBytes: int#
CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES: int#
cudaJitInfoLogBufferSizeBytes: int#
hipJitOptionErrorLogBuffer: int#
CU_JIT_ERROR_LOG_BUFFER: int#
cudaJitErrorLogBuffer: int#
hipJitOptionErrorLogBufferSizeBytes: int#
CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES: int#
cudaJitErrorLogBufferSizeBytes: int#
hipJitOptionOptimizationLevel: int#
CU_JIT_OPTIMIZATION_LEVEL: int#
cudaJitOptimizationLevel: int#
hipJitOptionTargetFromContext: int#
CU_JIT_TARGET_FROM_CUCONTEXT: int#
hipJitOptionTarget: int#
CU_JIT_TARGET: int#
hipJitOptionFallbackStrategy: int#
CU_JIT_FALLBACK_STRATEGY: int#
cudaJitFallbackStrategy: int#
hipJitOptionGenerateDebugInfo: int#
CU_JIT_GENERATE_DEBUG_INFO: int#
cudaJitGenerateDebugInfo: int#
hipJitOptionLogVerbose: int#
CU_JIT_LOG_VERBOSE: int#
cudaJitLogVerbose: int#
hipJitOptionGenerateLineInfo: int#
CU_JIT_GENERATE_LINE_INFO: int#
cudaJitGenerateLineInfo: int#
hipJitOptionCacheMode: int#
CU_JIT_CACHE_MODE: int#
cudaJitCacheMode: int#
hipJitOptionSm3xOpt: int#
CU_JIT_NEW_SM3X_OPT: int#
hipJitOptionFastCompile: int#
CU_JIT_FAST_COMPILE: int#
hipJitOptionGlobalSymbolNames: int#
CU_JIT_GLOBAL_SYMBOL_NAMES: int#
hipJitOptionGlobalSymbolAddresses: int#
CU_JIT_GLOBAL_SYMBOL_ADDRESSES: int#
hipJitOptionGlobalSymbolCount: int#
CU_JIT_GLOBAL_SYMBOL_COUNT: int#
hipJitOptionLto: int#
CU_JIT_LTO: int#
hipJitOptionFtz: int#
CU_JIT_FTZ: int#
hipJitOptionPrecDiv: int#
CU_JIT_PREC_DIV: int#
hipJitOptionPrecSqrt: int#
CU_JIT_PREC_SQRT: int#
hipJitOptionFma: int#
CU_JIT_FMA: int#
hipJitOptionPositionIndependentCode: int#
CU_JIT_POSITION_INDEPENDENT_CODE: int#
cudaJitPositionIndependentCode: int#
hipJitOptionMinCTAPerSM: int#
CU_JIT_MIN_CTA_PER_SM: int#
cudaJitMinCtaPerSm: int#
hipJitOptionMaxThreadsPerBlock: int#
CU_JIT_MAX_THREADS_PER_BLOCK: int#
cudaJitMaxThreadsPerBlock: int#
hipJitOptionOverrideDirectiveValues: int#
CU_JIT_OVERRIDE_DIRECTIVE_VALUES: int#
cudaJitOverrideDirectiveValues: int#
hipJitOptionNumOptions: int#
CU_JIT_NUM_OPTIONS: int#
hipJitOptionIRtoISAOptExt: int#
hipJitOptionIRtoISAOptCountExt: int#
cuda.bindings.runtime.HIP_PYTHON_CUjit_option_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUjit_option_enum#

Bases: enum.IntEnum

hipJitOption

hipJitOptionMaxRegisters: int#
CU_JIT_MAX_REGISTERS: int#
cudaJitMaxRegisters: int#
hipJitOptionThreadsPerBlock: int#
CU_JIT_THREADS_PER_BLOCK: int#
cudaJitThreadsPerBlock: int#
hipJitOptionWallTime: int#
CU_JIT_WALL_TIME: int#
cudaJitWallTime: int#
hipJitOptionInfoLogBuffer: int#
CU_JIT_INFO_LOG_BUFFER: int#
cudaJitInfoLogBuffer: int#
hipJitOptionInfoLogBufferSizeBytes: int#
CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES: int#
cudaJitInfoLogBufferSizeBytes: int#
hipJitOptionErrorLogBuffer: int#
CU_JIT_ERROR_LOG_BUFFER: int#
cudaJitErrorLogBuffer: int#
hipJitOptionErrorLogBufferSizeBytes: int#
CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES: int#
cudaJitErrorLogBufferSizeBytes: int#
hipJitOptionOptimizationLevel: int#
CU_JIT_OPTIMIZATION_LEVEL: int#
cudaJitOptimizationLevel: int#
hipJitOptionTargetFromContext: int#
CU_JIT_TARGET_FROM_CUCONTEXT: int#
hipJitOptionTarget: int#
CU_JIT_TARGET: int#
hipJitOptionFallbackStrategy: int#
CU_JIT_FALLBACK_STRATEGY: int#
cudaJitFallbackStrategy: int#
hipJitOptionGenerateDebugInfo: int#
CU_JIT_GENERATE_DEBUG_INFO: int#
cudaJitGenerateDebugInfo: int#
hipJitOptionLogVerbose: int#
CU_JIT_LOG_VERBOSE: int#
cudaJitLogVerbose: int#
hipJitOptionGenerateLineInfo: int#
CU_JIT_GENERATE_LINE_INFO: int#
cudaJitGenerateLineInfo: int#
hipJitOptionCacheMode: int#
CU_JIT_CACHE_MODE: int#
cudaJitCacheMode: int#
hipJitOptionSm3xOpt: int#
CU_JIT_NEW_SM3X_OPT: int#
hipJitOptionFastCompile: int#
CU_JIT_FAST_COMPILE: int#
hipJitOptionGlobalSymbolNames: int#
CU_JIT_GLOBAL_SYMBOL_NAMES: int#
hipJitOptionGlobalSymbolAddresses: int#
CU_JIT_GLOBAL_SYMBOL_ADDRESSES: int#
hipJitOptionGlobalSymbolCount: int#
CU_JIT_GLOBAL_SYMBOL_COUNT: int#
hipJitOptionLto: int#
CU_JIT_LTO: int#
hipJitOptionFtz: int#
CU_JIT_FTZ: int#
hipJitOptionPrecDiv: int#
CU_JIT_PREC_DIV: int#
hipJitOptionPrecSqrt: int#
CU_JIT_PREC_SQRT: int#
hipJitOptionFma: int#
CU_JIT_FMA: int#
hipJitOptionPositionIndependentCode: int#
CU_JIT_POSITION_INDEPENDENT_CODE: int#
cudaJitPositionIndependentCode: int#
hipJitOptionMinCTAPerSM: int#
CU_JIT_MIN_CTA_PER_SM: int#
cudaJitMinCtaPerSm: int#
hipJitOptionMaxThreadsPerBlock: int#
CU_JIT_MAX_THREADS_PER_BLOCK: int#
cudaJitMaxThreadsPerBlock: int#
hipJitOptionOverrideDirectiveValues: int#
CU_JIT_OVERRIDE_DIRECTIVE_VALUES: int#
cudaJitOverrideDirectiveValues: int#
hipJitOptionNumOptions: int#
CU_JIT_NUM_OPTIONS: int#
hipJitOptionIRtoISAOptExt: int#
hipJitOptionIRtoISAOptCountExt: int#
cuda.bindings.runtime.HIP_PYTHON_CUjitInputType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUjitInputType#

Bases: enum.IntEnum

hipJitInputType

hipJitInputCubin: int#
CU_JIT_INPUT_CUBIN: int#
hipJitInputPtx: int#
CU_JIT_INPUT_PTX: int#
hipJitInputFatBinary: int#
CU_JIT_INPUT_FATBINARY: int#
hipJitInputObject: int#
CU_JIT_INPUT_OBJECT: int#
hipJitInputLibrary: int#
CU_JIT_INPUT_LIBRARY: int#
hipJitInputNvvm: int#
CU_JIT_INPUT_NVVM: int#
hipJitNumLegacyInputTypes: int#
CU_JIT_NUM_INPUT_TYPES: int#
hipJitInputLLVMBitcode: int#
hipJitInputLLVMBundledBitcode: int#
hipJitInputLLVMArchivesOfBundledBitcode: int#
hipJitInputSpirv: int#
hipJitNumInputTypes: int#
cuda.bindings.runtime.HIP_PYTHON_CUjitInputType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUjitInputType_enum#

Bases: enum.IntEnum

hipJitInputType

hipJitInputCubin: int#
CU_JIT_INPUT_CUBIN: int#
hipJitInputPtx: int#
CU_JIT_INPUT_PTX: int#
hipJitInputFatBinary: int#
CU_JIT_INPUT_FATBINARY: int#
hipJitInputObject: int#
CU_JIT_INPUT_OBJECT: int#
hipJitInputLibrary: int#
CU_JIT_INPUT_LIBRARY: int#
hipJitInputNvvm: int#
CU_JIT_INPUT_NVVM: int#
hipJitNumLegacyInputTypes: int#
CU_JIT_NUM_INPUT_TYPES: int#
hipJitInputLLVMBitcode: int#
hipJitInputLLVMBundledBitcode: int#
hipJitInputLLVMArchivesOfBundledBitcode: int#
hipJitInputSpirv: int#
hipJitNumInputTypes: int#
cuda.bindings.runtime.HIP_PYTHON_CUlibraryOption_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUlibraryOption_enum#

Bases: enum.IntEnum

(No short description)

hipLibraryHostUniversalFunctionAndDataTable: int#
CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE: int#
cudaLibraryHostUniversalFunctionAndDataTable: int#
hipLibraryBinaryIsPreserved: int#
CU_LIBRARY_BINARY_IS_PRESERVED: int#
cudaLibraryBinaryIsPreserved: int#
cuda.bindings.runtime.HIP_PYTHON_CUlibraryOption_HALLUCINATE: Any#
class cuda.bindings.runtime.CUlibraryOption#

Bases: enum.IntEnum

(No short description)

hipLibraryHostUniversalFunctionAndDataTable: int#
CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE: int#
cudaLibraryHostUniversalFunctionAndDataTable: int#
hipLibraryBinaryIsPreserved: int#
CU_LIBRARY_BINARY_IS_PRESERVED: int#
cudaLibraryBinaryIsPreserved: int#
cuda.bindings.runtime.HIP_PYTHON_cudaLibraryOption_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaLibraryOption#

Bases: enum.IntEnum

(No short description)

hipLibraryHostUniversalFunctionAndDataTable: int#
CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE: int#
cudaLibraryHostUniversalFunctionAndDataTable: int#
hipLibraryBinaryIsPreserved: int#
CU_LIBRARY_BINARY_IS_PRESERVED: int#
cudaLibraryBinaryIsPreserved: int#
class cuda.bindings.runtime.CUuuid_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipUUID_t

(No short description)

bytes: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUuuid: Any#
cuda.bindings.runtime.cudaUUID_t: Any#
class cuda.bindings.runtime.cudaDeviceProp(*args, **kwargs)#

Bases: rocm.bindings.hip.hipDeviceProp_t

hipDeviceProp

name: Any#
uuid: Any#
luid: Any#
luidDeviceNodeMask: Any#
totalGlobalMem: Any#
sharedMemPerBlock: Any#
regsPerBlock: Any#
warpSize: Any#
memPitch: Any#
maxThreadsPerBlock: Any#
maxThreadsDim: Any#
maxGridSize: Any#
clockRate: Any#
totalConstMem: Any#
major: Any#
minor: Any#
textureAlignment: Any#
texturePitchAlignment: Any#
deviceOverlap: Any#
multiProcessorCount: Any#
kernelExecTimeoutEnabled: Any#
integrated: Any#
canMapHostMemory: Any#
computeMode: Any#
maxTexture1D: Any#
maxTexture1DMipmap: Any#
maxTexture1DLinear: Any#
maxTexture2D: Any#
maxTexture2DMipmap: Any#
maxTexture2DLinear: Any#
maxTexture2DGather: Any#
maxTexture3D: Any#
maxTexture3DAlt: Any#
maxTextureCubemap: Any#
maxTexture1DLayered: Any#
maxTexture2DLayered: Any#
maxTextureCubemapLayered: Any#
maxSurface1D: Any#
maxSurface2D: Any#
maxSurface3D: Any#
maxSurface1DLayered: Any#
maxSurface2DLayered: Any#
maxSurfaceCubemap: Any#
maxSurfaceCubemapLayered: Any#
surfaceAlignment: Any#
concurrentKernels: Any#
ECCEnabled: Any#
pciBusID: Any#
pciDeviceID: Any#
pciDomainID: Any#
tccDriver: Any#
asyncEngineCount: Any#
unifiedAddressing: Any#
memoryClockRate: Any#
memoryBusWidth: Any#
l2CacheSize: Any#
persistingL2CacheMaxSize: Any#
maxThreadsPerMultiProcessor: Any#
streamPrioritiesSupported: Any#
globalL1CacheSupported: Any#
localL1CacheSupported: Any#
sharedMemPerMultiprocessor: Any#
regsPerMultiprocessor: Any#
managedMemory: Any#
isMultiGpuBoard: Any#
multiGpuBoardGroupID: Any#
hostNativeAtomicSupported: Any#
singleToDoublePrecisionPerfRatio: Any#
pageableMemoryAccess: Any#
concurrentManagedAccess: Any#
computePreemptionSupported: Any#
canUseHostPointerForRegisteredMem: Any#
cooperativeLaunch: Any#
cooperativeMultiDeviceLaunch: Any#
sharedMemPerBlockOptin: Any#
pageableMemoryAccessUsesHostPageTables: Any#
directManagedMemAccessFromHost: Any#
maxBlocksPerMultiProcessor: Any#
accessPolicyMaxWindowSize: Any#
reservedSharedMemPerBlock: Any#
hostRegisterSupported: Any#
sparseHipArraySupported: Any#
hostRegisterReadOnlySupported: Any#
timelineSemaphoreInteropSupported: Any#
memoryPoolsSupported: Any#
gpuDirectRDMASupported: Any#
gpuDirectRDMAFlushWritesOptions: Any#
gpuDirectRDMAWritesOrdering: Any#
memoryPoolSupportedHandleTypes: Any#
deferredMappingHipArraySupported: Any#
ipcEventSupported: Any#
clusterLaunch: Any#
unifiedFunctionPointers: Any#
reserved: Any#
hipReserved: Any#
gcnArchName: Any#
maxSharedMemoryPerMultiProcessor: Any#
clockInstructionRate: Any#
arch: Any#
hdpMemFlushCntl: Any#
hdpRegFlushCntl: Any#
cooperativeMultiDeviceUnmatchedFunc: Any#
cooperativeMultiDeviceUnmatchedGridDim: Any#
cooperativeMultiDeviceUnmatchedBlockDim: Any#
cooperativeMultiDeviceUnmatchedSharedMem: Any#
isLargeBar: Any#
asicRevision: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_CUmemorytype_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemorytype#

Bases: enum.IntEnum

hipMemoryType (for pointer attributes)

Note:

hipMemoryType enum values are combination of cudaMemoryType and cuMemoryType and AMD specific enum values.

hipMemoryTypeUnregistered: int#
cudaMemoryTypeUnregistered: int#
hipMemoryTypeHost: int#
CU_MEMORYTYPE_HOST: int#
cudaMemoryTypeHost: int#
hipMemoryTypeDevice: int#
CU_MEMORYTYPE_DEVICE: int#
cudaMemoryTypeDevice: int#
hipMemoryTypeManaged: int#
cudaMemoryTypeManaged: int#
hipMemoryTypeArray: int#
CU_MEMORYTYPE_ARRAY: int#
hipMemoryTypeUnified: int#
CU_MEMORYTYPE_UNIFIED: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemorytype_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemorytype_enum#

Bases: enum.IntEnum

hipMemoryType (for pointer attributes)

Note:

hipMemoryType enum values are combination of cudaMemoryType and cuMemoryType and AMD specific enum values.

hipMemoryTypeUnregistered: int#
cudaMemoryTypeUnregistered: int#
hipMemoryTypeHost: int#
CU_MEMORYTYPE_HOST: int#
cudaMemoryTypeHost: int#
hipMemoryTypeDevice: int#
CU_MEMORYTYPE_DEVICE: int#
cudaMemoryTypeDevice: int#
hipMemoryTypeManaged: int#
cudaMemoryTypeManaged: int#
hipMemoryTypeArray: int#
CU_MEMORYTYPE_ARRAY: int#
hipMemoryTypeUnified: int#
CU_MEMORYTYPE_UNIFIED: int#
cuda.bindings.runtime.HIP_PYTHON_cudaMemoryType_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaMemoryType#

Bases: enum.IntEnum

hipMemoryType (for pointer attributes)

Note:

hipMemoryType enum values are combination of cudaMemoryType and cuMemoryType and AMD specific enum values.

hipMemoryTypeUnregistered: int#
cudaMemoryTypeUnregistered: int#
hipMemoryTypeHost: int#
CU_MEMORYTYPE_HOST: int#
cudaMemoryTypeHost: int#
hipMemoryTypeDevice: int#
CU_MEMORYTYPE_DEVICE: int#
cudaMemoryTypeDevice: int#
hipMemoryTypeManaged: int#
cudaMemoryTypeManaged: int#
hipMemoryTypeArray: int#
CU_MEMORYTYPE_ARRAY: int#
hipMemoryTypeUnified: int#
CU_MEMORYTYPE_UNIFIED: int#
class cuda.bindings.runtime.cudaPointerAttributes(*args, **kwargs)#

Bases: rocm.bindings.hip.hipPointerAttribute_t

Pointer attributes

type: Any#
device: Any#
devicePointer: Any#
hostPointer: Any#
isManaged: Any#
allocationFlags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_CUresult_HALLUCINATE: Any#
class cuda.bindings.runtime.CUresult#

Bases: enum.IntEnum

HIP error type

hipSuccess: int#
CUDA_SUCCESS: int#
cudaSuccess: int#
hipErrorInvalidValue: int#
CUDA_ERROR_INVALID_VALUE: int#
cudaErrorInvalidValue: int#
hipErrorOutOfMemory: int#
CUDA_ERROR_OUT_OF_MEMORY: int#
cudaErrorMemoryAllocation: int#
hipErrorMemoryAllocation: int#
hipErrorNotInitialized: int#
CUDA_ERROR_NOT_INITIALIZED: int#
cudaErrorInitializationError: int#
hipErrorInitializationError: int#
hipErrorDeinitialized: int#
CUDA_ERROR_DEINITIALIZED: int#
cudaErrorCudartUnloading: int#
hipErrorProfilerDisabled: int#
CUDA_ERROR_PROFILER_DISABLED: int#
cudaErrorProfilerDisabled: int#
hipErrorProfilerNotInitialized: int#
CUDA_ERROR_PROFILER_NOT_INITIALIZED: int#
cudaErrorProfilerNotInitialized: int#
hipErrorProfilerAlreadyStarted: int#
CUDA_ERROR_PROFILER_ALREADY_STARTED: int#
cudaErrorProfilerAlreadyStarted: int#
hipErrorProfilerAlreadyStopped: int#
CUDA_ERROR_PROFILER_ALREADY_STOPPED: int#
cudaErrorProfilerAlreadyStopped: int#
hipErrorInvalidConfiguration: int#
cudaErrorInvalidConfiguration: int#
hipErrorInvalidPitchValue: int#
cudaErrorInvalidPitchValue: int#
hipErrorInvalidSymbol: int#
cudaErrorInvalidSymbol: int#
hipErrorInvalidDevicePointer: int#
cudaErrorInvalidDevicePointer: int#
hipErrorInvalidMemcpyDirection: int#
cudaErrorInvalidMemcpyDirection: int#
hipErrorInsufficientDriver: int#
cudaErrorInsufficientDriver: int#
hipErrorMissingConfiguration: int#
cudaErrorMissingConfiguration: int#
hipErrorPriorLaunchFailure: int#
cudaErrorPriorLaunchFailure: int#
hipErrorInvalidDeviceFunction: int#
cudaErrorInvalidDeviceFunction: int#
hipErrorNoDevice: int#
CUDA_ERROR_NO_DEVICE: int#
cudaErrorNoDevice: int#
hipErrorInvalidDevice: int#
CUDA_ERROR_INVALID_DEVICE: int#
cudaErrorInvalidDevice: int#
hipErrorInvalidImage: int#
CUDA_ERROR_INVALID_IMAGE: int#
cudaErrorInvalidKernelImage: int#
hipErrorInvalidContext: int#
CUDA_ERROR_INVALID_CONTEXT: int#
cudaErrorDeviceUninitialized: int#
hipErrorContextAlreadyCurrent: int#
CUDA_ERROR_CONTEXT_ALREADY_CURRENT: int#
hipErrorMapFailed: int#
CUDA_ERROR_MAP_FAILED: int#
cudaErrorMapBufferObjectFailed: int#
hipErrorMapBufferObjectFailed: int#
hipErrorUnmapFailed: int#
CUDA_ERROR_UNMAP_FAILED: int#
cudaErrorUnmapBufferObjectFailed: int#
hipErrorArrayIsMapped: int#
CUDA_ERROR_ARRAY_IS_MAPPED: int#
cudaErrorArrayIsMapped: int#
hipErrorAlreadyMapped: int#
CUDA_ERROR_ALREADY_MAPPED: int#
cudaErrorAlreadyMapped: int#
hipErrorNoBinaryForGpu: int#
CUDA_ERROR_NO_BINARY_FOR_GPU: int#
cudaErrorNoKernelImageForDevice: int#
hipErrorAlreadyAcquired: int#
CUDA_ERROR_ALREADY_ACQUIRED: int#
cudaErrorAlreadyAcquired: int#
hipErrorNotMapped: int#
CUDA_ERROR_NOT_MAPPED: int#
cudaErrorNotMapped: int#
hipErrorNotMappedAsArray: int#
CUDA_ERROR_NOT_MAPPED_AS_ARRAY: int#
cudaErrorNotMappedAsArray: int#
hipErrorNotMappedAsPointer: int#
CUDA_ERROR_NOT_MAPPED_AS_POINTER: int#
cudaErrorNotMappedAsPointer: int#
hipErrorECCNotCorrectable: int#
CUDA_ERROR_ECC_UNCORRECTABLE: int#
cudaErrorECCUncorrectable: int#
hipErrorUnsupportedLimit: int#
CUDA_ERROR_UNSUPPORTED_LIMIT: int#
cudaErrorUnsupportedLimit: int#
hipErrorContextAlreadyInUse: int#
CUDA_ERROR_CONTEXT_ALREADY_IN_USE: int#
cudaErrorDeviceAlreadyInUse: int#
hipErrorPeerAccessUnsupported: int#
CUDA_ERROR_PEER_ACCESS_UNSUPPORTED: int#
cudaErrorPeerAccessUnsupported: int#
hipErrorInvalidKernelFile: int#
CUDA_ERROR_INVALID_PTX: int#
cudaErrorInvalidPtx: int#
hipErrorInvalidGraphicsContext: int#
CUDA_ERROR_INVALID_GRAPHICS_CONTEXT: int#
cudaErrorInvalidGraphicsContext: int#
hipErrorInvalidSource: int#
CUDA_ERROR_INVALID_SOURCE: int#
cudaErrorInvalidSource: int#
hipErrorFileNotFound: int#
CUDA_ERROR_FILE_NOT_FOUND: int#
cudaErrorFileNotFound: int#
hipErrorSharedObjectSymbolNotFound: int#
CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND: int#
cudaErrorSharedObjectSymbolNotFound: int#
hipErrorSharedObjectInitFailed: int#
CUDA_ERROR_SHARED_OBJECT_INIT_FAILED: int#
cudaErrorSharedObjectInitFailed: int#
hipErrorOperatingSystem: int#
CUDA_ERROR_OPERATING_SYSTEM: int#
cudaErrorOperatingSystem: int#
hipErrorInvalidHandle: int#
CUDA_ERROR_INVALID_HANDLE: int#
cudaErrorInvalidResourceHandle: int#
hipErrorInvalidResourceHandle: int#
hipErrorIllegalState: int#
CUDA_ERROR_ILLEGAL_STATE: int#
cudaErrorIllegalState: int#
hipErrorNotFound: int#
CUDA_ERROR_NOT_FOUND: int#
cudaErrorSymbolNotFound: int#
hipErrorNotReady: int#
CUDA_ERROR_NOT_READY: int#
cudaErrorNotReady: int#
hipErrorIllegalAddress: int#
CUDA_ERROR_ILLEGAL_ADDRESS: int#
cudaErrorIllegalAddress: int#
hipErrorLaunchOutOfResources: int#
CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES: int#
cudaErrorLaunchOutOfResources: int#
hipErrorLaunchTimeOut: int#
CUDA_ERROR_LAUNCH_TIMEOUT: int#
cudaErrorLaunchTimeout: int#
hipErrorPeerAccessAlreadyEnabled: int#
CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED: int#
cudaErrorPeerAccessAlreadyEnabled: int#
hipErrorPeerAccessNotEnabled: int#
CUDA_ERROR_PEER_ACCESS_NOT_ENABLED: int#
cudaErrorPeerAccessNotEnabled: int#
hipErrorSetOnActiveProcess: int#
CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE: int#
cudaErrorSetOnActiveProcess: int#
hipErrorContextIsDestroyed: int#
CUDA_ERROR_CONTEXT_IS_DESTROYED: int#
cudaErrorContextIsDestroyed: int#
hipErrorAssert: int#
CUDA_ERROR_ASSERT: int#
cudaErrorAssert: int#
hipErrorHostMemoryAlreadyRegistered: int#
CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED: int#
cudaErrorHostMemoryAlreadyRegistered: int#
hipErrorHostMemoryNotRegistered: int#
CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED: int#
cudaErrorHostMemoryNotRegistered: int#
hipErrorLaunchFailure: int#
CUDA_ERROR_LAUNCH_FAILED: int#
cudaErrorLaunchFailure: int#
hipErrorCooperativeLaunchTooLarge: int#
CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE: int#
cudaErrorCooperativeLaunchTooLarge: int#
hipErrorNotSupported: int#
CUDA_ERROR_NOT_SUPPORTED: int#
cudaErrorNotSupported: int#
hipErrorStreamCaptureUnsupported: int#
CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED: int#
cudaErrorStreamCaptureUnsupported: int#
hipErrorStreamCaptureInvalidated: int#
CUDA_ERROR_STREAM_CAPTURE_INVALIDATED: int#
cudaErrorStreamCaptureInvalidated: int#
hipErrorStreamCaptureMerge: int#
CUDA_ERROR_STREAM_CAPTURE_MERGE: int#
cudaErrorStreamCaptureMerge: int#
hipErrorStreamCaptureUnmatched: int#
CUDA_ERROR_STREAM_CAPTURE_UNMATCHED: int#
cudaErrorStreamCaptureUnmatched: int#
hipErrorStreamCaptureUnjoined: int#
CUDA_ERROR_STREAM_CAPTURE_UNJOINED: int#
cudaErrorStreamCaptureUnjoined: int#
hipErrorStreamCaptureIsolation: int#
CUDA_ERROR_STREAM_CAPTURE_ISOLATION: int#
cudaErrorStreamCaptureIsolation: int#
hipErrorStreamCaptureImplicit: int#
CUDA_ERROR_STREAM_CAPTURE_IMPLICIT: int#
cudaErrorStreamCaptureImplicit: int#
hipErrorCapturedEvent: int#
CUDA_ERROR_CAPTURED_EVENT: int#
cudaErrorCapturedEvent: int#
hipErrorStreamCaptureWrongThread: int#
CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD: int#
cudaErrorStreamCaptureWrongThread: int#
hipErrorGraphExecUpdateFailure: int#
CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE: int#
cudaErrorGraphExecUpdateFailure: int#
hipErrorInvalidChannelDescriptor: int#
cudaErrorInvalidChannelDescriptor: int#
hipErrorInvalidTexture: int#
cudaErrorInvalidTexture: int#
hipErrorInvalidResourceType: int#
hipErrorInvalidResourceConfiguration: int#
hipErrorStreamDetached: int#
hipErrorUnknown: int#
CUDA_ERROR_UNKNOWN: int#
cudaErrorUnknown: int#
hipErrorRuntimeMemory: int#
hipErrorRuntimeOther: int#
hipErrorInvalidClusterSize: int#
hipErrorTbd: int#
cuda.bindings.runtime.HIP_PYTHON_cudaError_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaError#

Bases: enum.IntEnum

HIP error type

hipSuccess: int#
CUDA_SUCCESS: int#
cudaSuccess: int#
hipErrorInvalidValue: int#
CUDA_ERROR_INVALID_VALUE: int#
cudaErrorInvalidValue: int#
hipErrorOutOfMemory: int#
CUDA_ERROR_OUT_OF_MEMORY: int#
cudaErrorMemoryAllocation: int#
hipErrorMemoryAllocation: int#
hipErrorNotInitialized: int#
CUDA_ERROR_NOT_INITIALIZED: int#
cudaErrorInitializationError: int#
hipErrorInitializationError: int#
hipErrorDeinitialized: int#
CUDA_ERROR_DEINITIALIZED: int#
cudaErrorCudartUnloading: int#
hipErrorProfilerDisabled: int#
CUDA_ERROR_PROFILER_DISABLED: int#
cudaErrorProfilerDisabled: int#
hipErrorProfilerNotInitialized: int#
CUDA_ERROR_PROFILER_NOT_INITIALIZED: int#
cudaErrorProfilerNotInitialized: int#
hipErrorProfilerAlreadyStarted: int#
CUDA_ERROR_PROFILER_ALREADY_STARTED: int#
cudaErrorProfilerAlreadyStarted: int#
hipErrorProfilerAlreadyStopped: int#
CUDA_ERROR_PROFILER_ALREADY_STOPPED: int#
cudaErrorProfilerAlreadyStopped: int#
hipErrorInvalidConfiguration: int#
cudaErrorInvalidConfiguration: int#
hipErrorInvalidPitchValue: int#
cudaErrorInvalidPitchValue: int#
hipErrorInvalidSymbol: int#
cudaErrorInvalidSymbol: int#
hipErrorInvalidDevicePointer: int#
cudaErrorInvalidDevicePointer: int#
hipErrorInvalidMemcpyDirection: int#
cudaErrorInvalidMemcpyDirection: int#
hipErrorInsufficientDriver: int#
cudaErrorInsufficientDriver: int#
hipErrorMissingConfiguration: int#
cudaErrorMissingConfiguration: int#
hipErrorPriorLaunchFailure: int#
cudaErrorPriorLaunchFailure: int#
hipErrorInvalidDeviceFunction: int#
cudaErrorInvalidDeviceFunction: int#
hipErrorNoDevice: int#
CUDA_ERROR_NO_DEVICE: int#
cudaErrorNoDevice: int#
hipErrorInvalidDevice: int#
CUDA_ERROR_INVALID_DEVICE: int#
cudaErrorInvalidDevice: int#
hipErrorInvalidImage: int#
CUDA_ERROR_INVALID_IMAGE: int#
cudaErrorInvalidKernelImage: int#
hipErrorInvalidContext: int#
CUDA_ERROR_INVALID_CONTEXT: int#
cudaErrorDeviceUninitialized: int#
hipErrorContextAlreadyCurrent: int#
CUDA_ERROR_CONTEXT_ALREADY_CURRENT: int#
hipErrorMapFailed: int#
CUDA_ERROR_MAP_FAILED: int#
cudaErrorMapBufferObjectFailed: int#
hipErrorMapBufferObjectFailed: int#
hipErrorUnmapFailed: int#
CUDA_ERROR_UNMAP_FAILED: int#
cudaErrorUnmapBufferObjectFailed: int#
hipErrorArrayIsMapped: int#
CUDA_ERROR_ARRAY_IS_MAPPED: int#
cudaErrorArrayIsMapped: int#
hipErrorAlreadyMapped: int#
CUDA_ERROR_ALREADY_MAPPED: int#
cudaErrorAlreadyMapped: int#
hipErrorNoBinaryForGpu: int#
CUDA_ERROR_NO_BINARY_FOR_GPU: int#
cudaErrorNoKernelImageForDevice: int#
hipErrorAlreadyAcquired: int#
CUDA_ERROR_ALREADY_ACQUIRED: int#
cudaErrorAlreadyAcquired: int#
hipErrorNotMapped: int#
CUDA_ERROR_NOT_MAPPED: int#
cudaErrorNotMapped: int#
hipErrorNotMappedAsArray: int#
CUDA_ERROR_NOT_MAPPED_AS_ARRAY: int#
cudaErrorNotMappedAsArray: int#
hipErrorNotMappedAsPointer: int#
CUDA_ERROR_NOT_MAPPED_AS_POINTER: int#
cudaErrorNotMappedAsPointer: int#
hipErrorECCNotCorrectable: int#
CUDA_ERROR_ECC_UNCORRECTABLE: int#
cudaErrorECCUncorrectable: int#
hipErrorUnsupportedLimit: int#
CUDA_ERROR_UNSUPPORTED_LIMIT: int#
cudaErrorUnsupportedLimit: int#
hipErrorContextAlreadyInUse: int#
CUDA_ERROR_CONTEXT_ALREADY_IN_USE: int#
cudaErrorDeviceAlreadyInUse: int#
hipErrorPeerAccessUnsupported: int#
CUDA_ERROR_PEER_ACCESS_UNSUPPORTED: int#
cudaErrorPeerAccessUnsupported: int#
hipErrorInvalidKernelFile: int#
CUDA_ERROR_INVALID_PTX: int#
cudaErrorInvalidPtx: int#
hipErrorInvalidGraphicsContext: int#
CUDA_ERROR_INVALID_GRAPHICS_CONTEXT: int#
cudaErrorInvalidGraphicsContext: int#
hipErrorInvalidSource: int#
CUDA_ERROR_INVALID_SOURCE: int#
cudaErrorInvalidSource: int#
hipErrorFileNotFound: int#
CUDA_ERROR_FILE_NOT_FOUND: int#
cudaErrorFileNotFound: int#
hipErrorSharedObjectSymbolNotFound: int#
CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND: int#
cudaErrorSharedObjectSymbolNotFound: int#
hipErrorSharedObjectInitFailed: int#
CUDA_ERROR_SHARED_OBJECT_INIT_FAILED: int#
cudaErrorSharedObjectInitFailed: int#
hipErrorOperatingSystem: int#
CUDA_ERROR_OPERATING_SYSTEM: int#
cudaErrorOperatingSystem: int#
hipErrorInvalidHandle: int#
CUDA_ERROR_INVALID_HANDLE: int#
cudaErrorInvalidResourceHandle: int#
hipErrorInvalidResourceHandle: int#
hipErrorIllegalState: int#
CUDA_ERROR_ILLEGAL_STATE: int#
cudaErrorIllegalState: int#
hipErrorNotFound: int#
CUDA_ERROR_NOT_FOUND: int#
cudaErrorSymbolNotFound: int#
hipErrorNotReady: int#
CUDA_ERROR_NOT_READY: int#
cudaErrorNotReady: int#
hipErrorIllegalAddress: int#
CUDA_ERROR_ILLEGAL_ADDRESS: int#
cudaErrorIllegalAddress: int#
hipErrorLaunchOutOfResources: int#
CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES: int#
cudaErrorLaunchOutOfResources: int#
hipErrorLaunchTimeOut: int#
CUDA_ERROR_LAUNCH_TIMEOUT: int#
cudaErrorLaunchTimeout: int#
hipErrorPeerAccessAlreadyEnabled: int#
CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED: int#
cudaErrorPeerAccessAlreadyEnabled: int#
hipErrorPeerAccessNotEnabled: int#
CUDA_ERROR_PEER_ACCESS_NOT_ENABLED: int#
cudaErrorPeerAccessNotEnabled: int#
hipErrorSetOnActiveProcess: int#
CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE: int#
cudaErrorSetOnActiveProcess: int#
hipErrorContextIsDestroyed: int#
CUDA_ERROR_CONTEXT_IS_DESTROYED: int#
cudaErrorContextIsDestroyed: int#
hipErrorAssert: int#
CUDA_ERROR_ASSERT: int#
cudaErrorAssert: int#
hipErrorHostMemoryAlreadyRegistered: int#
CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED: int#
cudaErrorHostMemoryAlreadyRegistered: int#
hipErrorHostMemoryNotRegistered: int#
CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED: int#
cudaErrorHostMemoryNotRegistered: int#
hipErrorLaunchFailure: int#
CUDA_ERROR_LAUNCH_FAILED: int#
cudaErrorLaunchFailure: int#
hipErrorCooperativeLaunchTooLarge: int#
CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE: int#
cudaErrorCooperativeLaunchTooLarge: int#
hipErrorNotSupported: int#
CUDA_ERROR_NOT_SUPPORTED: int#
cudaErrorNotSupported: int#
hipErrorStreamCaptureUnsupported: int#
CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED: int#
cudaErrorStreamCaptureUnsupported: int#
hipErrorStreamCaptureInvalidated: int#
CUDA_ERROR_STREAM_CAPTURE_INVALIDATED: int#
cudaErrorStreamCaptureInvalidated: int#
hipErrorStreamCaptureMerge: int#
CUDA_ERROR_STREAM_CAPTURE_MERGE: int#
cudaErrorStreamCaptureMerge: int#
hipErrorStreamCaptureUnmatched: int#
CUDA_ERROR_STREAM_CAPTURE_UNMATCHED: int#
cudaErrorStreamCaptureUnmatched: int#
hipErrorStreamCaptureUnjoined: int#
CUDA_ERROR_STREAM_CAPTURE_UNJOINED: int#
cudaErrorStreamCaptureUnjoined: int#
hipErrorStreamCaptureIsolation: int#
CUDA_ERROR_STREAM_CAPTURE_ISOLATION: int#
cudaErrorStreamCaptureIsolation: int#
hipErrorStreamCaptureImplicit: int#
CUDA_ERROR_STREAM_CAPTURE_IMPLICIT: int#
cudaErrorStreamCaptureImplicit: int#
hipErrorCapturedEvent: int#
CUDA_ERROR_CAPTURED_EVENT: int#
cudaErrorCapturedEvent: int#
hipErrorStreamCaptureWrongThread: int#
CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD: int#
cudaErrorStreamCaptureWrongThread: int#
hipErrorGraphExecUpdateFailure: int#
CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE: int#
cudaErrorGraphExecUpdateFailure: int#
hipErrorInvalidChannelDescriptor: int#
cudaErrorInvalidChannelDescriptor: int#
hipErrorInvalidTexture: int#
cudaErrorInvalidTexture: int#
hipErrorInvalidResourceType: int#
hipErrorInvalidResourceConfiguration: int#
hipErrorStreamDetached: int#
hipErrorUnknown: int#
CUDA_ERROR_UNKNOWN: int#
cudaErrorUnknown: int#
hipErrorRuntimeMemory: int#
hipErrorRuntimeOther: int#
hipErrorInvalidClusterSize: int#
hipErrorTbd: int#
cuda.bindings.runtime.HIP_PYTHON_cudaError_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaError_enum#

Bases: enum.IntEnum

HIP error type

hipSuccess: int#
CUDA_SUCCESS: int#
cudaSuccess: int#
hipErrorInvalidValue: int#
CUDA_ERROR_INVALID_VALUE: int#
cudaErrorInvalidValue: int#
hipErrorOutOfMemory: int#
CUDA_ERROR_OUT_OF_MEMORY: int#
cudaErrorMemoryAllocation: int#
hipErrorMemoryAllocation: int#
hipErrorNotInitialized: int#
CUDA_ERROR_NOT_INITIALIZED: int#
cudaErrorInitializationError: int#
hipErrorInitializationError: int#
hipErrorDeinitialized: int#
CUDA_ERROR_DEINITIALIZED: int#
cudaErrorCudartUnloading: int#
hipErrorProfilerDisabled: int#
CUDA_ERROR_PROFILER_DISABLED: int#
cudaErrorProfilerDisabled: int#
hipErrorProfilerNotInitialized: int#
CUDA_ERROR_PROFILER_NOT_INITIALIZED: int#
cudaErrorProfilerNotInitialized: int#
hipErrorProfilerAlreadyStarted: int#
CUDA_ERROR_PROFILER_ALREADY_STARTED: int#
cudaErrorProfilerAlreadyStarted: int#
hipErrorProfilerAlreadyStopped: int#
CUDA_ERROR_PROFILER_ALREADY_STOPPED: int#
cudaErrorProfilerAlreadyStopped: int#
hipErrorInvalidConfiguration: int#
cudaErrorInvalidConfiguration: int#
hipErrorInvalidPitchValue: int#
cudaErrorInvalidPitchValue: int#
hipErrorInvalidSymbol: int#
cudaErrorInvalidSymbol: int#
hipErrorInvalidDevicePointer: int#
cudaErrorInvalidDevicePointer: int#
hipErrorInvalidMemcpyDirection: int#
cudaErrorInvalidMemcpyDirection: int#
hipErrorInsufficientDriver: int#
cudaErrorInsufficientDriver: int#
hipErrorMissingConfiguration: int#
cudaErrorMissingConfiguration: int#
hipErrorPriorLaunchFailure: int#
cudaErrorPriorLaunchFailure: int#
hipErrorInvalidDeviceFunction: int#
cudaErrorInvalidDeviceFunction: int#
hipErrorNoDevice: int#
CUDA_ERROR_NO_DEVICE: int#
cudaErrorNoDevice: int#
hipErrorInvalidDevice: int#
CUDA_ERROR_INVALID_DEVICE: int#
cudaErrorInvalidDevice: int#
hipErrorInvalidImage: int#
CUDA_ERROR_INVALID_IMAGE: int#
cudaErrorInvalidKernelImage: int#
hipErrorInvalidContext: int#
CUDA_ERROR_INVALID_CONTEXT: int#
cudaErrorDeviceUninitialized: int#
hipErrorContextAlreadyCurrent: int#
CUDA_ERROR_CONTEXT_ALREADY_CURRENT: int#
hipErrorMapFailed: int#
CUDA_ERROR_MAP_FAILED: int#
cudaErrorMapBufferObjectFailed: int#
hipErrorMapBufferObjectFailed: int#
hipErrorUnmapFailed: int#
CUDA_ERROR_UNMAP_FAILED: int#
cudaErrorUnmapBufferObjectFailed: int#
hipErrorArrayIsMapped: int#
CUDA_ERROR_ARRAY_IS_MAPPED: int#
cudaErrorArrayIsMapped: int#
hipErrorAlreadyMapped: int#
CUDA_ERROR_ALREADY_MAPPED: int#
cudaErrorAlreadyMapped: int#
hipErrorNoBinaryForGpu: int#
CUDA_ERROR_NO_BINARY_FOR_GPU: int#
cudaErrorNoKernelImageForDevice: int#
hipErrorAlreadyAcquired: int#
CUDA_ERROR_ALREADY_ACQUIRED: int#
cudaErrorAlreadyAcquired: int#
hipErrorNotMapped: int#
CUDA_ERROR_NOT_MAPPED: int#
cudaErrorNotMapped: int#
hipErrorNotMappedAsArray: int#
CUDA_ERROR_NOT_MAPPED_AS_ARRAY: int#
cudaErrorNotMappedAsArray: int#
hipErrorNotMappedAsPointer: int#
CUDA_ERROR_NOT_MAPPED_AS_POINTER: int#
cudaErrorNotMappedAsPointer: int#
hipErrorECCNotCorrectable: int#
CUDA_ERROR_ECC_UNCORRECTABLE: int#
cudaErrorECCUncorrectable: int#
hipErrorUnsupportedLimit: int#
CUDA_ERROR_UNSUPPORTED_LIMIT: int#
cudaErrorUnsupportedLimit: int#
hipErrorContextAlreadyInUse: int#
CUDA_ERROR_CONTEXT_ALREADY_IN_USE: int#
cudaErrorDeviceAlreadyInUse: int#
hipErrorPeerAccessUnsupported: int#
CUDA_ERROR_PEER_ACCESS_UNSUPPORTED: int#
cudaErrorPeerAccessUnsupported: int#
hipErrorInvalidKernelFile: int#
CUDA_ERROR_INVALID_PTX: int#
cudaErrorInvalidPtx: int#
hipErrorInvalidGraphicsContext: int#
CUDA_ERROR_INVALID_GRAPHICS_CONTEXT: int#
cudaErrorInvalidGraphicsContext: int#
hipErrorInvalidSource: int#
CUDA_ERROR_INVALID_SOURCE: int#
cudaErrorInvalidSource: int#
hipErrorFileNotFound: int#
CUDA_ERROR_FILE_NOT_FOUND: int#
cudaErrorFileNotFound: int#
hipErrorSharedObjectSymbolNotFound: int#
CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND: int#
cudaErrorSharedObjectSymbolNotFound: int#
hipErrorSharedObjectInitFailed: int#
CUDA_ERROR_SHARED_OBJECT_INIT_FAILED: int#
cudaErrorSharedObjectInitFailed: int#
hipErrorOperatingSystem: int#
CUDA_ERROR_OPERATING_SYSTEM: int#
cudaErrorOperatingSystem: int#
hipErrorInvalidHandle: int#
CUDA_ERROR_INVALID_HANDLE: int#
cudaErrorInvalidResourceHandle: int#
hipErrorInvalidResourceHandle: int#
hipErrorIllegalState: int#
CUDA_ERROR_ILLEGAL_STATE: int#
cudaErrorIllegalState: int#
hipErrorNotFound: int#
CUDA_ERROR_NOT_FOUND: int#
cudaErrorSymbolNotFound: int#
hipErrorNotReady: int#
CUDA_ERROR_NOT_READY: int#
cudaErrorNotReady: int#
hipErrorIllegalAddress: int#
CUDA_ERROR_ILLEGAL_ADDRESS: int#
cudaErrorIllegalAddress: int#
hipErrorLaunchOutOfResources: int#
CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES: int#
cudaErrorLaunchOutOfResources: int#
hipErrorLaunchTimeOut: int#
CUDA_ERROR_LAUNCH_TIMEOUT: int#
cudaErrorLaunchTimeout: int#
hipErrorPeerAccessAlreadyEnabled: int#
CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED: int#
cudaErrorPeerAccessAlreadyEnabled: int#
hipErrorPeerAccessNotEnabled: int#
CUDA_ERROR_PEER_ACCESS_NOT_ENABLED: int#
cudaErrorPeerAccessNotEnabled: int#
hipErrorSetOnActiveProcess: int#
CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE: int#
cudaErrorSetOnActiveProcess: int#
hipErrorContextIsDestroyed: int#
CUDA_ERROR_CONTEXT_IS_DESTROYED: int#
cudaErrorContextIsDestroyed: int#
hipErrorAssert: int#
CUDA_ERROR_ASSERT: int#
cudaErrorAssert: int#
hipErrorHostMemoryAlreadyRegistered: int#
CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED: int#
cudaErrorHostMemoryAlreadyRegistered: int#
hipErrorHostMemoryNotRegistered: int#
CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED: int#
cudaErrorHostMemoryNotRegistered: int#
hipErrorLaunchFailure: int#
CUDA_ERROR_LAUNCH_FAILED: int#
cudaErrorLaunchFailure: int#
hipErrorCooperativeLaunchTooLarge: int#
CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE: int#
cudaErrorCooperativeLaunchTooLarge: int#
hipErrorNotSupported: int#
CUDA_ERROR_NOT_SUPPORTED: int#
cudaErrorNotSupported: int#
hipErrorStreamCaptureUnsupported: int#
CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED: int#
cudaErrorStreamCaptureUnsupported: int#
hipErrorStreamCaptureInvalidated: int#
CUDA_ERROR_STREAM_CAPTURE_INVALIDATED: int#
cudaErrorStreamCaptureInvalidated: int#
hipErrorStreamCaptureMerge: int#
CUDA_ERROR_STREAM_CAPTURE_MERGE: int#
cudaErrorStreamCaptureMerge: int#
hipErrorStreamCaptureUnmatched: int#
CUDA_ERROR_STREAM_CAPTURE_UNMATCHED: int#
cudaErrorStreamCaptureUnmatched: int#
hipErrorStreamCaptureUnjoined: int#
CUDA_ERROR_STREAM_CAPTURE_UNJOINED: int#
cudaErrorStreamCaptureUnjoined: int#
hipErrorStreamCaptureIsolation: int#
CUDA_ERROR_STREAM_CAPTURE_ISOLATION: int#
cudaErrorStreamCaptureIsolation: int#
hipErrorStreamCaptureImplicit: int#
CUDA_ERROR_STREAM_CAPTURE_IMPLICIT: int#
cudaErrorStreamCaptureImplicit: int#
hipErrorCapturedEvent: int#
CUDA_ERROR_CAPTURED_EVENT: int#
cudaErrorCapturedEvent: int#
hipErrorStreamCaptureWrongThread: int#
CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD: int#
cudaErrorStreamCaptureWrongThread: int#
hipErrorGraphExecUpdateFailure: int#
CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE: int#
cudaErrorGraphExecUpdateFailure: int#
hipErrorInvalidChannelDescriptor: int#
cudaErrorInvalidChannelDescriptor: int#
hipErrorInvalidTexture: int#
cudaErrorInvalidTexture: int#
hipErrorInvalidResourceType: int#
hipErrorInvalidResourceConfiguration: int#
hipErrorStreamDetached: int#
hipErrorUnknown: int#
CUDA_ERROR_UNKNOWN: int#
cudaErrorUnknown: int#
hipErrorRuntimeMemory: int#
hipErrorRuntimeOther: int#
hipErrorInvalidClusterSize: int#
hipErrorTbd: int#
cuda.bindings.runtime.HIP_PYTHON_cudaError_t_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaError_t#

Bases: enum.IntEnum

HIP error type

hipSuccess: int#
CUDA_SUCCESS: int#
cudaSuccess: int#
hipErrorInvalidValue: int#
CUDA_ERROR_INVALID_VALUE: int#
cudaErrorInvalidValue: int#
hipErrorOutOfMemory: int#
CUDA_ERROR_OUT_OF_MEMORY: int#
cudaErrorMemoryAllocation: int#
hipErrorMemoryAllocation: int#
hipErrorNotInitialized: int#
CUDA_ERROR_NOT_INITIALIZED: int#
cudaErrorInitializationError: int#
hipErrorInitializationError: int#
hipErrorDeinitialized: int#
CUDA_ERROR_DEINITIALIZED: int#
cudaErrorCudartUnloading: int#
hipErrorProfilerDisabled: int#
CUDA_ERROR_PROFILER_DISABLED: int#
cudaErrorProfilerDisabled: int#
hipErrorProfilerNotInitialized: int#
CUDA_ERROR_PROFILER_NOT_INITIALIZED: int#
cudaErrorProfilerNotInitialized: int#
hipErrorProfilerAlreadyStarted: int#
CUDA_ERROR_PROFILER_ALREADY_STARTED: int#
cudaErrorProfilerAlreadyStarted: int#
hipErrorProfilerAlreadyStopped: int#
CUDA_ERROR_PROFILER_ALREADY_STOPPED: int#
cudaErrorProfilerAlreadyStopped: int#
hipErrorInvalidConfiguration: int#
cudaErrorInvalidConfiguration: int#
hipErrorInvalidPitchValue: int#
cudaErrorInvalidPitchValue: int#
hipErrorInvalidSymbol: int#
cudaErrorInvalidSymbol: int#
hipErrorInvalidDevicePointer: int#
cudaErrorInvalidDevicePointer: int#
hipErrorInvalidMemcpyDirection: int#
cudaErrorInvalidMemcpyDirection: int#
hipErrorInsufficientDriver: int#
cudaErrorInsufficientDriver: int#
hipErrorMissingConfiguration: int#
cudaErrorMissingConfiguration: int#
hipErrorPriorLaunchFailure: int#
cudaErrorPriorLaunchFailure: int#
hipErrorInvalidDeviceFunction: int#
cudaErrorInvalidDeviceFunction: int#
hipErrorNoDevice: int#
CUDA_ERROR_NO_DEVICE: int#
cudaErrorNoDevice: int#
hipErrorInvalidDevice: int#
CUDA_ERROR_INVALID_DEVICE: int#
cudaErrorInvalidDevice: int#
hipErrorInvalidImage: int#
CUDA_ERROR_INVALID_IMAGE: int#
cudaErrorInvalidKernelImage: int#
hipErrorInvalidContext: int#
CUDA_ERROR_INVALID_CONTEXT: int#
cudaErrorDeviceUninitialized: int#
hipErrorContextAlreadyCurrent: int#
CUDA_ERROR_CONTEXT_ALREADY_CURRENT: int#
hipErrorMapFailed: int#
CUDA_ERROR_MAP_FAILED: int#
cudaErrorMapBufferObjectFailed: int#
hipErrorMapBufferObjectFailed: int#
hipErrorUnmapFailed: int#
CUDA_ERROR_UNMAP_FAILED: int#
cudaErrorUnmapBufferObjectFailed: int#
hipErrorArrayIsMapped: int#
CUDA_ERROR_ARRAY_IS_MAPPED: int#
cudaErrorArrayIsMapped: int#
hipErrorAlreadyMapped: int#
CUDA_ERROR_ALREADY_MAPPED: int#
cudaErrorAlreadyMapped: int#
hipErrorNoBinaryForGpu: int#
CUDA_ERROR_NO_BINARY_FOR_GPU: int#
cudaErrorNoKernelImageForDevice: int#
hipErrorAlreadyAcquired: int#
CUDA_ERROR_ALREADY_ACQUIRED: int#
cudaErrorAlreadyAcquired: int#
hipErrorNotMapped: int#
CUDA_ERROR_NOT_MAPPED: int#
cudaErrorNotMapped: int#
hipErrorNotMappedAsArray: int#
CUDA_ERROR_NOT_MAPPED_AS_ARRAY: int#
cudaErrorNotMappedAsArray: int#
hipErrorNotMappedAsPointer: int#
CUDA_ERROR_NOT_MAPPED_AS_POINTER: int#
cudaErrorNotMappedAsPointer: int#
hipErrorECCNotCorrectable: int#
CUDA_ERROR_ECC_UNCORRECTABLE: int#
cudaErrorECCUncorrectable: int#
hipErrorUnsupportedLimit: int#
CUDA_ERROR_UNSUPPORTED_LIMIT: int#
cudaErrorUnsupportedLimit: int#
hipErrorContextAlreadyInUse: int#
CUDA_ERROR_CONTEXT_ALREADY_IN_USE: int#
cudaErrorDeviceAlreadyInUse: int#
hipErrorPeerAccessUnsupported: int#
CUDA_ERROR_PEER_ACCESS_UNSUPPORTED: int#
cudaErrorPeerAccessUnsupported: int#
hipErrorInvalidKernelFile: int#
CUDA_ERROR_INVALID_PTX: int#
cudaErrorInvalidPtx: int#
hipErrorInvalidGraphicsContext: int#
CUDA_ERROR_INVALID_GRAPHICS_CONTEXT: int#
cudaErrorInvalidGraphicsContext: int#
hipErrorInvalidSource: int#
CUDA_ERROR_INVALID_SOURCE: int#
cudaErrorInvalidSource: int#
hipErrorFileNotFound: int#
CUDA_ERROR_FILE_NOT_FOUND: int#
cudaErrorFileNotFound: int#
hipErrorSharedObjectSymbolNotFound: int#
CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND: int#
cudaErrorSharedObjectSymbolNotFound: int#
hipErrorSharedObjectInitFailed: int#
CUDA_ERROR_SHARED_OBJECT_INIT_FAILED: int#
cudaErrorSharedObjectInitFailed: int#
hipErrorOperatingSystem: int#
CUDA_ERROR_OPERATING_SYSTEM: int#
cudaErrorOperatingSystem: int#
hipErrorInvalidHandle: int#
CUDA_ERROR_INVALID_HANDLE: int#
cudaErrorInvalidResourceHandle: int#
hipErrorInvalidResourceHandle: int#
hipErrorIllegalState: int#
CUDA_ERROR_ILLEGAL_STATE: int#
cudaErrorIllegalState: int#
hipErrorNotFound: int#
CUDA_ERROR_NOT_FOUND: int#
cudaErrorSymbolNotFound: int#
hipErrorNotReady: int#
CUDA_ERROR_NOT_READY: int#
cudaErrorNotReady: int#
hipErrorIllegalAddress: int#
CUDA_ERROR_ILLEGAL_ADDRESS: int#
cudaErrorIllegalAddress: int#
hipErrorLaunchOutOfResources: int#
CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES: int#
cudaErrorLaunchOutOfResources: int#
hipErrorLaunchTimeOut: int#
CUDA_ERROR_LAUNCH_TIMEOUT: int#
cudaErrorLaunchTimeout: int#
hipErrorPeerAccessAlreadyEnabled: int#
CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED: int#
cudaErrorPeerAccessAlreadyEnabled: int#
hipErrorPeerAccessNotEnabled: int#
CUDA_ERROR_PEER_ACCESS_NOT_ENABLED: int#
cudaErrorPeerAccessNotEnabled: int#
hipErrorSetOnActiveProcess: int#
CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE: int#
cudaErrorSetOnActiveProcess: int#
hipErrorContextIsDestroyed: int#
CUDA_ERROR_CONTEXT_IS_DESTROYED: int#
cudaErrorContextIsDestroyed: int#
hipErrorAssert: int#
CUDA_ERROR_ASSERT: int#
cudaErrorAssert: int#
hipErrorHostMemoryAlreadyRegistered: int#
CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED: int#
cudaErrorHostMemoryAlreadyRegistered: int#
hipErrorHostMemoryNotRegistered: int#
CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED: int#
cudaErrorHostMemoryNotRegistered: int#
hipErrorLaunchFailure: int#
CUDA_ERROR_LAUNCH_FAILED: int#
cudaErrorLaunchFailure: int#
hipErrorCooperativeLaunchTooLarge: int#
CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE: int#
cudaErrorCooperativeLaunchTooLarge: int#
hipErrorNotSupported: int#
CUDA_ERROR_NOT_SUPPORTED: int#
cudaErrorNotSupported: int#
hipErrorStreamCaptureUnsupported: int#
CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED: int#
cudaErrorStreamCaptureUnsupported: int#
hipErrorStreamCaptureInvalidated: int#
CUDA_ERROR_STREAM_CAPTURE_INVALIDATED: int#
cudaErrorStreamCaptureInvalidated: int#
hipErrorStreamCaptureMerge: int#
CUDA_ERROR_STREAM_CAPTURE_MERGE: int#
cudaErrorStreamCaptureMerge: int#
hipErrorStreamCaptureUnmatched: int#
CUDA_ERROR_STREAM_CAPTURE_UNMATCHED: int#
cudaErrorStreamCaptureUnmatched: int#
hipErrorStreamCaptureUnjoined: int#
CUDA_ERROR_STREAM_CAPTURE_UNJOINED: int#
cudaErrorStreamCaptureUnjoined: int#
hipErrorStreamCaptureIsolation: int#
CUDA_ERROR_STREAM_CAPTURE_ISOLATION: int#
cudaErrorStreamCaptureIsolation: int#
hipErrorStreamCaptureImplicit: int#
CUDA_ERROR_STREAM_CAPTURE_IMPLICIT: int#
cudaErrorStreamCaptureImplicit: int#
hipErrorCapturedEvent: int#
CUDA_ERROR_CAPTURED_EVENT: int#
cudaErrorCapturedEvent: int#
hipErrorStreamCaptureWrongThread: int#
CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD: int#
cudaErrorStreamCaptureWrongThread: int#
hipErrorGraphExecUpdateFailure: int#
CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE: int#
cudaErrorGraphExecUpdateFailure: int#
hipErrorInvalidChannelDescriptor: int#
cudaErrorInvalidChannelDescriptor: int#
hipErrorInvalidTexture: int#
cudaErrorInvalidTexture: int#
hipErrorInvalidResourceType: int#
hipErrorInvalidResourceConfiguration: int#
hipErrorStreamDetached: int#
hipErrorUnknown: int#
CUDA_ERROR_UNKNOWN: int#
cudaErrorUnknown: int#
hipErrorRuntimeMemory: int#
hipErrorRuntimeOther: int#
hipErrorInvalidClusterSize: int#
hipErrorTbd: int#
cuda.bindings.runtime.HIP_PYTHON_CUdevice_attribute_HALLUCINATE: Any#
class cuda.bindings.runtime.CUdevice_attribute#

Bases: enum.IntEnum

hipDeviceAttribute_t hipDeviceAttributeUnused number: 5

hipDeviceAttribute_t hipDeviceAttributeUnused number: 5

hipDeviceAttributeCudaCompatibleBegin: int#
hipDeviceAttributeEccEnabled: int#
CU_DEVICE_ATTRIBUTE_ECC_ENABLED: int#
cudaDevAttrEccEnabled: int#
hipDeviceAttributeAccessPolicyMaxWindowSize: int#
hipDeviceAttributeAsyncEngineCount: int#
CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT: int#
CU_DEVICE_ATTRIBUTE_GPU_OVERLAP: int#
cudaDevAttrAsyncEngineCount: int#
cudaDevAttrGpuOverlap: int#
hipDeviceAttributeCanMapHostMemory: int#
CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY: int#
cudaDevAttrCanMapHostMemory: int#
hipDeviceAttributeCanUseHostPointerForRegisteredMem: int#
CU_DEVICE_ATTRIBUTE_CAN_USE_HOST_POINTER_FOR_REGISTERED_MEM: int#
cudaDevAttrCanUseHostPointerForRegisteredMem: int#
hipDeviceAttributeClockRate: int#
CU_DEVICE_ATTRIBUTE_CLOCK_RATE: int#
cudaDevAttrClockRate: int#
hipDeviceAttributeComputeMode: int#
CU_DEVICE_ATTRIBUTE_COMPUTE_MODE: int#
cudaDevAttrComputeMode: int#
hipDeviceAttributeComputePreemptionSupported: int#
CU_DEVICE_ATTRIBUTE_COMPUTE_PREEMPTION_SUPPORTED: int#
cudaDevAttrComputePreemptionSupported: int#
hipDeviceAttributeConcurrentKernels: int#
CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS: int#
cudaDevAttrConcurrentKernels: int#
hipDeviceAttributeConcurrentManagedAccess: int#
CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS: int#
cudaDevAttrConcurrentManagedAccess: int#
hipDeviceAttributeCooperativeLaunch: int#
CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH: int#
cudaDevAttrCooperativeLaunch: int#
hipDeviceAttributeCooperativeMultiDeviceLaunch: int#
CU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH: int#
cudaDevAttrCooperativeMultiDeviceLaunch: int#
cudaDevAttrReserved96: int#
hipDeviceAttributeDeviceOverlap: int#
hipDeviceAttributeDirectManagedMemAccessFromHost: int#
CU_DEVICE_ATTRIBUTE_DIRECT_MANAGED_MEM_ACCESS_FROM_HOST: int#
cudaDevAttrDirectManagedMemAccessFromHost: int#
hipDeviceAttributeGlobalL1CacheSupported: int#
CU_DEVICE_ATTRIBUTE_GLOBAL_L1_CACHE_SUPPORTED: int#
cudaDevAttrGlobalL1CacheSupported: int#
hipDeviceAttributeHostNativeAtomicSupported: int#
CU_DEVICE_ATTRIBUTE_HOST_NATIVE_ATOMIC_SUPPORTED: int#
cudaDevAttrHostNativeAtomicSupported: int#
hipDeviceAttributeIntegrated: int#
CU_DEVICE_ATTRIBUTE_INTEGRATED: int#
cudaDevAttrIntegrated: int#
hipDeviceAttributeIsMultiGpuBoard: int#
CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD: int#
cudaDevAttrIsMultiGpuBoard: int#
hipDeviceAttributeKernelExecTimeout: int#
CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT: int#
cudaDevAttrKernelExecTimeout: int#
hipDeviceAttributeL2CacheSize: int#
CU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE: int#
cudaDevAttrL2CacheSize: int#
hipDeviceAttributeLocalL1CacheSupported: int#
CU_DEVICE_ATTRIBUTE_LOCAL_L1_CACHE_SUPPORTED: int#
cudaDevAttrLocalL1CacheSupported: int#
hipDeviceAttributeLuid: int#
hipDeviceAttributeLuidDeviceNodeMask: int#
hipDeviceAttributeComputeCapabilityMajor: int#
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR: int#
cudaDevAttrComputeCapabilityMajor: int#
hipDeviceAttributeManagedMemory: int#
CU_DEVICE_ATTRIBUTE_MANAGED_MEMORY: int#
cudaDevAttrManagedMemory: int#
hipDeviceAttributeMaxBlocksPerMultiProcessor: int#
hipDeviceAttributeMaxBlockDimX: int#
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X: int#
cudaDevAttrMaxBlockDimX: int#
hipDeviceAttributeMaxBlockDimY: int#
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y: int#
cudaDevAttrMaxBlockDimY: int#
hipDeviceAttributeMaxBlockDimZ: int#
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z: int#
cudaDevAttrMaxBlockDimZ: int#
hipDeviceAttributeMaxGridDimX: int#
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X: int#
cudaDevAttrMaxGridDimX: int#
hipDeviceAttributeMaxGridDimY: int#
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y: int#
cudaDevAttrMaxGridDimY: int#
hipDeviceAttributeMaxGridDimZ: int#
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z: int#
cudaDevAttrMaxGridDimZ: int#
hipDeviceAttributeMaxSurface1D: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_WIDTH: int#
cudaDevAttrMaxSurface1DWidth: int#
hipDeviceAttributeMaxSurface1DLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_WIDTH: int#
cudaDevAttrMaxSurface1DLayeredWidth: int#
hipDeviceAttributeMaxSurface2D: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_WIDTH: int#
cudaDevAttrMaxSurface2DHeight: int#
cudaDevAttrMaxSurface2DWidth: int#
hipDeviceAttributeMaxSurface2DLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_WIDTH: int#
cudaDevAttrMaxSurface2DLayeredHeight: int#
cudaDevAttrMaxSurface2DLayeredWidth: int#
hipDeviceAttributeMaxSurface3D: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_DEPTH: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_WIDTH: int#
cudaDevAttrMaxSurface3DDepth: int#
cudaDevAttrMaxSurface3DHeight: int#
cudaDevAttrMaxSurface3DWidth: int#
hipDeviceAttributeMaxSurfaceCubemap: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_WIDTH: int#
cudaDevAttrMaxSurfaceCubemapWidth: int#
hipDeviceAttributeMaxSurfaceCubemapLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_WIDTH: int#
cudaDevAttrMaxSurfaceCubemapLayeredWidth: int#
hipDeviceAttributeMaxTexture1DWidth: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH: int#
cudaDevAttrMaxTexture1DWidth: int#
hipDeviceAttributeMaxTexture1DLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_WIDTH: int#
cudaDevAttrMaxTexture1DLayeredWidth: int#
hipDeviceAttributeMaxTexture1DLinear: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LINEAR_WIDTH: int#
cudaDevAttrMaxTexture1DLinearWidth: int#
hipDeviceAttributeMaxTexture1DMipmap: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_MIPMAPPED_WIDTH: int#
cudaDevAttrMaxTexture1DMipmappedWidth: int#
hipDeviceAttributeMaxTexture2DWidth: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH: int#
cudaDevAttrMaxTexture2DWidth: int#
hipDeviceAttributeMaxTexture2DHeight: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT: int#
cudaDevAttrMaxTexture2DHeight: int#
hipDeviceAttributeMaxTexture2DGather: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_WIDTH: int#
cudaDevAttrMaxTexture2DGatherHeight: int#
cudaDevAttrMaxTexture2DGatherWidth: int#
hipDeviceAttributeMaxTexture2DLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH: int#
cudaDevAttrMaxTexture2DLayeredHeight: int#
cudaDevAttrMaxTexture2DLayeredWidth: int#
hipDeviceAttributeMaxTexture2DLinear: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH: int#
cudaDevAttrMaxTexture2DLinearHeight: int#
cudaDevAttrMaxTexture2DLinearPitch: int#
cudaDevAttrMaxTexture2DLinearWidth: int#
hipDeviceAttributeMaxTexture2DMipmap: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_WIDTH: int#
cudaDevAttrMaxTexture2DMipmappedHeight: int#
cudaDevAttrMaxTexture2DMipmappedWidth: int#
hipDeviceAttributeMaxTexture3DWidth: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH: int#
cudaDevAttrMaxTexture3DWidth: int#
hipDeviceAttributeMaxTexture3DHeight: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT: int#
cudaDevAttrMaxTexture3DHeight: int#
hipDeviceAttributeMaxTexture3DDepth: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH: int#
cudaDevAttrMaxTexture3DDepth: int#
hipDeviceAttributeMaxTexture3DAlt: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH_ALTERNATE: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT_ALTERNATE: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH_ALTERNATE: int#
cudaDevAttrMaxTexture3DDepthAlt: int#
cudaDevAttrMaxTexture3DHeightAlt: int#
cudaDevAttrMaxTexture3DWidthAlt: int#
hipDeviceAttributeMaxTextureCubemap: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_WIDTH: int#
cudaDevAttrMaxTextureCubemapWidth: int#
hipDeviceAttributeMaxTextureCubemapLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_WIDTH: int#
cudaDevAttrMaxTextureCubemapLayeredWidth: int#
hipDeviceAttributeMaxThreadsDim: int#
hipDeviceAttributeMaxThreadsPerBlock: int#
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK: int#
cudaDevAttrMaxThreadsPerBlock: int#
hipDeviceAttributeMaxThreadsPerMultiProcessor: int#
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR: int#
cudaDevAttrMaxThreadsPerMultiProcessor: int#
hipDeviceAttributeMaxPitch: int#
CU_DEVICE_ATTRIBUTE_MAX_PITCH: int#
cudaDevAttrMaxPitch: int#
hipDeviceAttributeMemoryBusWidth: int#
CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH: int#
cudaDevAttrGlobalMemoryBusWidth: int#
hipDeviceAttributeMemoryClockRate: int#
CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE: int#
cudaDevAttrMemoryClockRate: int#
hipDeviceAttributeComputeCapabilityMinor: int#
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR: int#
cudaDevAttrComputeCapabilityMinor: int#
hipDeviceAttributeMultiGpuBoardGroupID: int#
cudaDevAttrMultiGpuBoardGroupID: int#
hipDeviceAttributeMultiprocessorCount: int#
CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT: int#
cudaDevAttrMultiProcessorCount: int#
hipDeviceAttributeUnused1: int#
hipDeviceAttributePageableMemoryAccess: int#
CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS: int#
cudaDevAttrPageableMemoryAccess: int#
hipDeviceAttributePageableMemoryAccessUsesHostPageTables: int#
CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES: int#
cudaDevAttrPageableMemoryAccessUsesHostPageTables: int#
hipDeviceAttributePciBusId: int#
CU_DEVICE_ATTRIBUTE_PCI_BUS_ID: int#
cudaDevAttrPciBusId: int#
hipDeviceAttributePciDeviceId: int#
CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID: int#
cudaDevAttrPciDeviceId: int#
hipDeviceAttributePciDomainId: int#
CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID: int#
cudaDevAttrPciDomainId: int#
hipDeviceAttributePciDomainID: int#
hipDeviceAttributePersistingL2CacheMaxSize: int#
hipDeviceAttributeMaxRegistersPerBlock: int#
CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK: int#
CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK: int#
cudaDevAttrMaxRegistersPerBlock: int#
hipDeviceAttributeMaxRegistersPerMultiprocessor: int#
CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR: int#
cudaDevAttrMaxRegistersPerMultiprocessor: int#
hipDeviceAttributeReservedSharedMemPerBlock: int#
hipDeviceAttributeMaxSharedMemoryPerBlock: int#
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK: int#
CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK: int#
cudaDevAttrMaxSharedMemoryPerBlock: int#
hipDeviceAttributeSharedMemPerBlockOptin: int#
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN: int#
cudaDevAttrMaxSharedMemoryPerBlockOptin: int#
hipDeviceAttributeSharedMemPerMultiprocessor: int#
hipDeviceAttributeSingleToDoublePrecisionPerfRatio: int#
CU_DEVICE_ATTRIBUTE_SINGLE_TO_DOUBLE_PRECISION_PERF_RATIO: int#
cudaDevAttrSingleToDoublePrecisionPerfRatio: int#
hipDeviceAttributeStreamPrioritiesSupported: int#
CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED: int#
cudaDevAttrStreamPrioritiesSupported: int#
hipDeviceAttributeSurfaceAlignment: int#
CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT: int#
cudaDevAttrSurfaceAlignment: int#
hipDeviceAttributeTccDriver: int#
CU_DEVICE_ATTRIBUTE_TCC_DRIVER: int#
cudaDevAttrTccDriver: int#
hipDeviceAttributeTextureAlignment: int#
CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT: int#
cudaDevAttrTextureAlignment: int#
hipDeviceAttributeTexturePitchAlignment: int#
CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT: int#
cudaDevAttrTexturePitchAlignment: int#
hipDeviceAttributeTotalConstantMemory: int#
CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY: int#
cudaDevAttrTotalConstantMemory: int#
hipDeviceAttributeTotalGlobalMem: int#
hipDeviceAttributeUnifiedAddressing: int#
CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING: int#
cudaDevAttrUnifiedAddressing: int#
hipDeviceAttributeUnused2: int#
hipDeviceAttributeWarpSize: int#
CU_DEVICE_ATTRIBUTE_WARP_SIZE: int#
cudaDevAttrWarpSize: int#
hipDeviceAttributeMemoryPoolsSupported: int#
CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED: int#
cudaDevAttrMemoryPoolsSupported: int#
hipDeviceAttributeVirtualMemoryManagementSupported: int#
CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED: int#
hipDeviceAttributeHostRegisterSupported: int#
CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED: int#
cudaDevAttrHostRegisterSupported: int#
hipDeviceAttributeMemoryPoolSupportedHandleTypes: int#
hipDeviceAttributeHostNumaId: int#
CU_DEVICE_ATTRIBUTE_HOST_NUMA_ID: int#
cudaDevAttrHostNumaId: int#
hipDeviceAttributeDmaBufSupported: int#
CU_DEVICE_ATTRIBUTE_DMA_BUF_SUPPORTED: int#
hipDeviceAttributeGPUDirectRDMAWithHipVMMSupported: int#
hipDeviceAttributeHandleTypeFabricSupported: int#
CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_FABRIC_SUPPORTED: int#
hipDeviceAttributeCudaCompatibleEnd: int#
hipDeviceAttributeAmdSpecificBegin: int#
hipDeviceAttributeClockInstructionRate: int#
hipDeviceAttributeUnused3: int#
hipDeviceAttributeMaxSharedMemoryPerMultiprocessor: int#
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR: int#
cudaDevAttrMaxSharedMemoryPerMultiprocessor: int#
hipDeviceAttributeUnused4: int#
hipDeviceAttributeUnused5: int#
hipDeviceAttributeHdpMemFlushCntl: int#
hipDeviceAttributeHdpRegFlushCntl: int#
hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc: int#
hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim: int#
hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim: int#
hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem: int#
hipDeviceAttributeIsLargeBar: int#
hipDeviceAttributeAsicRevision: int#
hipDeviceAttributeCanUseStreamWaitValue: int#
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR: int#
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR_V1: int#
cudaDevAttrReserved94: int#
hipDeviceAttributeImageSupport: int#
hipDeviceAttributePhysicalMultiProcessorCount: int#
hipDeviceAttributeFineGrainSupport: int#
hipDeviceAttributeWallClockRate: int#
hipDeviceAttributeNumberOfXccs: int#
hipDeviceAttributeMaxAvailableVgprsPerThread: int#
hipDeviceAttributePciChipId: int#
hipDeviceAttributeExpertSchedMode: int#
hipDeviceAttributeMaxDynDataPrefetchRegions: int#
hipDeviceAttributeAmdSpecificEnd: int#
hipDeviceAttributeVendorSpecificBegin: int#
cuda.bindings.runtime.HIP_PYTHON_CUdevice_attribute_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUdevice_attribute_enum#

Bases: enum.IntEnum

hipDeviceAttribute_t hipDeviceAttributeUnused number: 5

hipDeviceAttribute_t hipDeviceAttributeUnused number: 5

hipDeviceAttributeCudaCompatibleBegin: int#
hipDeviceAttributeEccEnabled: int#
CU_DEVICE_ATTRIBUTE_ECC_ENABLED: int#
cudaDevAttrEccEnabled: int#
hipDeviceAttributeAccessPolicyMaxWindowSize: int#
hipDeviceAttributeAsyncEngineCount: int#
CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT: int#
CU_DEVICE_ATTRIBUTE_GPU_OVERLAP: int#
cudaDevAttrAsyncEngineCount: int#
cudaDevAttrGpuOverlap: int#
hipDeviceAttributeCanMapHostMemory: int#
CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY: int#
cudaDevAttrCanMapHostMemory: int#
hipDeviceAttributeCanUseHostPointerForRegisteredMem: int#
CU_DEVICE_ATTRIBUTE_CAN_USE_HOST_POINTER_FOR_REGISTERED_MEM: int#
cudaDevAttrCanUseHostPointerForRegisteredMem: int#
hipDeviceAttributeClockRate: int#
CU_DEVICE_ATTRIBUTE_CLOCK_RATE: int#
cudaDevAttrClockRate: int#
hipDeviceAttributeComputeMode: int#
CU_DEVICE_ATTRIBUTE_COMPUTE_MODE: int#
cudaDevAttrComputeMode: int#
hipDeviceAttributeComputePreemptionSupported: int#
CU_DEVICE_ATTRIBUTE_COMPUTE_PREEMPTION_SUPPORTED: int#
cudaDevAttrComputePreemptionSupported: int#
hipDeviceAttributeConcurrentKernels: int#
CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS: int#
cudaDevAttrConcurrentKernels: int#
hipDeviceAttributeConcurrentManagedAccess: int#
CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS: int#
cudaDevAttrConcurrentManagedAccess: int#
hipDeviceAttributeCooperativeLaunch: int#
CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH: int#
cudaDevAttrCooperativeLaunch: int#
hipDeviceAttributeCooperativeMultiDeviceLaunch: int#
CU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH: int#
cudaDevAttrCooperativeMultiDeviceLaunch: int#
cudaDevAttrReserved96: int#
hipDeviceAttributeDeviceOverlap: int#
hipDeviceAttributeDirectManagedMemAccessFromHost: int#
CU_DEVICE_ATTRIBUTE_DIRECT_MANAGED_MEM_ACCESS_FROM_HOST: int#
cudaDevAttrDirectManagedMemAccessFromHost: int#
hipDeviceAttributeGlobalL1CacheSupported: int#
CU_DEVICE_ATTRIBUTE_GLOBAL_L1_CACHE_SUPPORTED: int#
cudaDevAttrGlobalL1CacheSupported: int#
hipDeviceAttributeHostNativeAtomicSupported: int#
CU_DEVICE_ATTRIBUTE_HOST_NATIVE_ATOMIC_SUPPORTED: int#
cudaDevAttrHostNativeAtomicSupported: int#
hipDeviceAttributeIntegrated: int#
CU_DEVICE_ATTRIBUTE_INTEGRATED: int#
cudaDevAttrIntegrated: int#
hipDeviceAttributeIsMultiGpuBoard: int#
CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD: int#
cudaDevAttrIsMultiGpuBoard: int#
hipDeviceAttributeKernelExecTimeout: int#
CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT: int#
cudaDevAttrKernelExecTimeout: int#
hipDeviceAttributeL2CacheSize: int#
CU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE: int#
cudaDevAttrL2CacheSize: int#
hipDeviceAttributeLocalL1CacheSupported: int#
CU_DEVICE_ATTRIBUTE_LOCAL_L1_CACHE_SUPPORTED: int#
cudaDevAttrLocalL1CacheSupported: int#
hipDeviceAttributeLuid: int#
hipDeviceAttributeLuidDeviceNodeMask: int#
hipDeviceAttributeComputeCapabilityMajor: int#
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR: int#
cudaDevAttrComputeCapabilityMajor: int#
hipDeviceAttributeManagedMemory: int#
CU_DEVICE_ATTRIBUTE_MANAGED_MEMORY: int#
cudaDevAttrManagedMemory: int#
hipDeviceAttributeMaxBlocksPerMultiProcessor: int#
hipDeviceAttributeMaxBlockDimX: int#
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X: int#
cudaDevAttrMaxBlockDimX: int#
hipDeviceAttributeMaxBlockDimY: int#
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y: int#
cudaDevAttrMaxBlockDimY: int#
hipDeviceAttributeMaxBlockDimZ: int#
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z: int#
cudaDevAttrMaxBlockDimZ: int#
hipDeviceAttributeMaxGridDimX: int#
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X: int#
cudaDevAttrMaxGridDimX: int#
hipDeviceAttributeMaxGridDimY: int#
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y: int#
cudaDevAttrMaxGridDimY: int#
hipDeviceAttributeMaxGridDimZ: int#
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z: int#
cudaDevAttrMaxGridDimZ: int#
hipDeviceAttributeMaxSurface1D: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_WIDTH: int#
cudaDevAttrMaxSurface1DWidth: int#
hipDeviceAttributeMaxSurface1DLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_WIDTH: int#
cudaDevAttrMaxSurface1DLayeredWidth: int#
hipDeviceAttributeMaxSurface2D: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_WIDTH: int#
cudaDevAttrMaxSurface2DHeight: int#
cudaDevAttrMaxSurface2DWidth: int#
hipDeviceAttributeMaxSurface2DLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_WIDTH: int#
cudaDevAttrMaxSurface2DLayeredHeight: int#
cudaDevAttrMaxSurface2DLayeredWidth: int#
hipDeviceAttributeMaxSurface3D: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_DEPTH: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_WIDTH: int#
cudaDevAttrMaxSurface3DDepth: int#
cudaDevAttrMaxSurface3DHeight: int#
cudaDevAttrMaxSurface3DWidth: int#
hipDeviceAttributeMaxSurfaceCubemap: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_WIDTH: int#
cudaDevAttrMaxSurfaceCubemapWidth: int#
hipDeviceAttributeMaxSurfaceCubemapLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_WIDTH: int#
cudaDevAttrMaxSurfaceCubemapLayeredWidth: int#
hipDeviceAttributeMaxTexture1DWidth: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH: int#
cudaDevAttrMaxTexture1DWidth: int#
hipDeviceAttributeMaxTexture1DLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_WIDTH: int#
cudaDevAttrMaxTexture1DLayeredWidth: int#
hipDeviceAttributeMaxTexture1DLinear: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LINEAR_WIDTH: int#
cudaDevAttrMaxTexture1DLinearWidth: int#
hipDeviceAttributeMaxTexture1DMipmap: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_MIPMAPPED_WIDTH: int#
cudaDevAttrMaxTexture1DMipmappedWidth: int#
hipDeviceAttributeMaxTexture2DWidth: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH: int#
cudaDevAttrMaxTexture2DWidth: int#
hipDeviceAttributeMaxTexture2DHeight: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT: int#
cudaDevAttrMaxTexture2DHeight: int#
hipDeviceAttributeMaxTexture2DGather: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_WIDTH: int#
cudaDevAttrMaxTexture2DGatherHeight: int#
cudaDevAttrMaxTexture2DGatherWidth: int#
hipDeviceAttributeMaxTexture2DLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH: int#
cudaDevAttrMaxTexture2DLayeredHeight: int#
cudaDevAttrMaxTexture2DLayeredWidth: int#
hipDeviceAttributeMaxTexture2DLinear: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH: int#
cudaDevAttrMaxTexture2DLinearHeight: int#
cudaDevAttrMaxTexture2DLinearPitch: int#
cudaDevAttrMaxTexture2DLinearWidth: int#
hipDeviceAttributeMaxTexture2DMipmap: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_WIDTH: int#
cudaDevAttrMaxTexture2DMipmappedHeight: int#
cudaDevAttrMaxTexture2DMipmappedWidth: int#
hipDeviceAttributeMaxTexture3DWidth: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH: int#
cudaDevAttrMaxTexture3DWidth: int#
hipDeviceAttributeMaxTexture3DHeight: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT: int#
cudaDevAttrMaxTexture3DHeight: int#
hipDeviceAttributeMaxTexture3DDepth: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH: int#
cudaDevAttrMaxTexture3DDepth: int#
hipDeviceAttributeMaxTexture3DAlt: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH_ALTERNATE: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT_ALTERNATE: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH_ALTERNATE: int#
cudaDevAttrMaxTexture3DDepthAlt: int#
cudaDevAttrMaxTexture3DHeightAlt: int#
cudaDevAttrMaxTexture3DWidthAlt: int#
hipDeviceAttributeMaxTextureCubemap: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_WIDTH: int#
cudaDevAttrMaxTextureCubemapWidth: int#
hipDeviceAttributeMaxTextureCubemapLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_WIDTH: int#
cudaDevAttrMaxTextureCubemapLayeredWidth: int#
hipDeviceAttributeMaxThreadsDim: int#
hipDeviceAttributeMaxThreadsPerBlock: int#
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK: int#
cudaDevAttrMaxThreadsPerBlock: int#
hipDeviceAttributeMaxThreadsPerMultiProcessor: int#
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR: int#
cudaDevAttrMaxThreadsPerMultiProcessor: int#
hipDeviceAttributeMaxPitch: int#
CU_DEVICE_ATTRIBUTE_MAX_PITCH: int#
cudaDevAttrMaxPitch: int#
hipDeviceAttributeMemoryBusWidth: int#
CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH: int#
cudaDevAttrGlobalMemoryBusWidth: int#
hipDeviceAttributeMemoryClockRate: int#
CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE: int#
cudaDevAttrMemoryClockRate: int#
hipDeviceAttributeComputeCapabilityMinor: int#
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR: int#
cudaDevAttrComputeCapabilityMinor: int#
hipDeviceAttributeMultiGpuBoardGroupID: int#
cudaDevAttrMultiGpuBoardGroupID: int#
hipDeviceAttributeMultiprocessorCount: int#
CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT: int#
cudaDevAttrMultiProcessorCount: int#
hipDeviceAttributeUnused1: int#
hipDeviceAttributePageableMemoryAccess: int#
CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS: int#
cudaDevAttrPageableMemoryAccess: int#
hipDeviceAttributePageableMemoryAccessUsesHostPageTables: int#
CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES: int#
cudaDevAttrPageableMemoryAccessUsesHostPageTables: int#
hipDeviceAttributePciBusId: int#
CU_DEVICE_ATTRIBUTE_PCI_BUS_ID: int#
cudaDevAttrPciBusId: int#
hipDeviceAttributePciDeviceId: int#
CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID: int#
cudaDevAttrPciDeviceId: int#
hipDeviceAttributePciDomainId: int#
CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID: int#
cudaDevAttrPciDomainId: int#
hipDeviceAttributePciDomainID: int#
hipDeviceAttributePersistingL2CacheMaxSize: int#
hipDeviceAttributeMaxRegistersPerBlock: int#
CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK: int#
CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK: int#
cudaDevAttrMaxRegistersPerBlock: int#
hipDeviceAttributeMaxRegistersPerMultiprocessor: int#
CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR: int#
cudaDevAttrMaxRegistersPerMultiprocessor: int#
hipDeviceAttributeReservedSharedMemPerBlock: int#
hipDeviceAttributeMaxSharedMemoryPerBlock: int#
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK: int#
CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK: int#
cudaDevAttrMaxSharedMemoryPerBlock: int#
hipDeviceAttributeSharedMemPerBlockOptin: int#
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN: int#
cudaDevAttrMaxSharedMemoryPerBlockOptin: int#
hipDeviceAttributeSharedMemPerMultiprocessor: int#
hipDeviceAttributeSingleToDoublePrecisionPerfRatio: int#
CU_DEVICE_ATTRIBUTE_SINGLE_TO_DOUBLE_PRECISION_PERF_RATIO: int#
cudaDevAttrSingleToDoublePrecisionPerfRatio: int#
hipDeviceAttributeStreamPrioritiesSupported: int#
CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED: int#
cudaDevAttrStreamPrioritiesSupported: int#
hipDeviceAttributeSurfaceAlignment: int#
CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT: int#
cudaDevAttrSurfaceAlignment: int#
hipDeviceAttributeTccDriver: int#
CU_DEVICE_ATTRIBUTE_TCC_DRIVER: int#
cudaDevAttrTccDriver: int#
hipDeviceAttributeTextureAlignment: int#
CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT: int#
cudaDevAttrTextureAlignment: int#
hipDeviceAttributeTexturePitchAlignment: int#
CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT: int#
cudaDevAttrTexturePitchAlignment: int#
hipDeviceAttributeTotalConstantMemory: int#
CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY: int#
cudaDevAttrTotalConstantMemory: int#
hipDeviceAttributeTotalGlobalMem: int#
hipDeviceAttributeUnifiedAddressing: int#
CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING: int#
cudaDevAttrUnifiedAddressing: int#
hipDeviceAttributeUnused2: int#
hipDeviceAttributeWarpSize: int#
CU_DEVICE_ATTRIBUTE_WARP_SIZE: int#
cudaDevAttrWarpSize: int#
hipDeviceAttributeMemoryPoolsSupported: int#
CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED: int#
cudaDevAttrMemoryPoolsSupported: int#
hipDeviceAttributeVirtualMemoryManagementSupported: int#
CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED: int#
hipDeviceAttributeHostRegisterSupported: int#
CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED: int#
cudaDevAttrHostRegisterSupported: int#
hipDeviceAttributeMemoryPoolSupportedHandleTypes: int#
hipDeviceAttributeHostNumaId: int#
CU_DEVICE_ATTRIBUTE_HOST_NUMA_ID: int#
cudaDevAttrHostNumaId: int#
hipDeviceAttributeDmaBufSupported: int#
CU_DEVICE_ATTRIBUTE_DMA_BUF_SUPPORTED: int#
hipDeviceAttributeGPUDirectRDMAWithHipVMMSupported: int#
hipDeviceAttributeHandleTypeFabricSupported: int#
CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_FABRIC_SUPPORTED: int#
hipDeviceAttributeCudaCompatibleEnd: int#
hipDeviceAttributeAmdSpecificBegin: int#
hipDeviceAttributeClockInstructionRate: int#
hipDeviceAttributeUnused3: int#
hipDeviceAttributeMaxSharedMemoryPerMultiprocessor: int#
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR: int#
cudaDevAttrMaxSharedMemoryPerMultiprocessor: int#
hipDeviceAttributeUnused4: int#
hipDeviceAttributeUnused5: int#
hipDeviceAttributeHdpMemFlushCntl: int#
hipDeviceAttributeHdpRegFlushCntl: int#
hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc: int#
hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim: int#
hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim: int#
hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem: int#
hipDeviceAttributeIsLargeBar: int#
hipDeviceAttributeAsicRevision: int#
hipDeviceAttributeCanUseStreamWaitValue: int#
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR: int#
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR_V1: int#
cudaDevAttrReserved94: int#
hipDeviceAttributeImageSupport: int#
hipDeviceAttributePhysicalMultiProcessorCount: int#
hipDeviceAttributeFineGrainSupport: int#
hipDeviceAttributeWallClockRate: int#
hipDeviceAttributeNumberOfXccs: int#
hipDeviceAttributeMaxAvailableVgprsPerThread: int#
hipDeviceAttributePciChipId: int#
hipDeviceAttributeExpertSchedMode: int#
hipDeviceAttributeMaxDynDataPrefetchRegions: int#
hipDeviceAttributeAmdSpecificEnd: int#
hipDeviceAttributeVendorSpecificBegin: int#
cuda.bindings.runtime.HIP_PYTHON_cudaDeviceAttr_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaDeviceAttr#

Bases: enum.IntEnum

hipDeviceAttribute_t hipDeviceAttributeUnused number: 5

hipDeviceAttribute_t hipDeviceAttributeUnused number: 5

hipDeviceAttributeCudaCompatibleBegin: int#
hipDeviceAttributeEccEnabled: int#
CU_DEVICE_ATTRIBUTE_ECC_ENABLED: int#
cudaDevAttrEccEnabled: int#
hipDeviceAttributeAccessPolicyMaxWindowSize: int#
hipDeviceAttributeAsyncEngineCount: int#
CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT: int#
CU_DEVICE_ATTRIBUTE_GPU_OVERLAP: int#
cudaDevAttrAsyncEngineCount: int#
cudaDevAttrGpuOverlap: int#
hipDeviceAttributeCanMapHostMemory: int#
CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY: int#
cudaDevAttrCanMapHostMemory: int#
hipDeviceAttributeCanUseHostPointerForRegisteredMem: int#
CU_DEVICE_ATTRIBUTE_CAN_USE_HOST_POINTER_FOR_REGISTERED_MEM: int#
cudaDevAttrCanUseHostPointerForRegisteredMem: int#
hipDeviceAttributeClockRate: int#
CU_DEVICE_ATTRIBUTE_CLOCK_RATE: int#
cudaDevAttrClockRate: int#
hipDeviceAttributeComputeMode: int#
CU_DEVICE_ATTRIBUTE_COMPUTE_MODE: int#
cudaDevAttrComputeMode: int#
hipDeviceAttributeComputePreemptionSupported: int#
CU_DEVICE_ATTRIBUTE_COMPUTE_PREEMPTION_SUPPORTED: int#
cudaDevAttrComputePreemptionSupported: int#
hipDeviceAttributeConcurrentKernels: int#
CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS: int#
cudaDevAttrConcurrentKernels: int#
hipDeviceAttributeConcurrentManagedAccess: int#
CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS: int#
cudaDevAttrConcurrentManagedAccess: int#
hipDeviceAttributeCooperativeLaunch: int#
CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH: int#
cudaDevAttrCooperativeLaunch: int#
hipDeviceAttributeCooperativeMultiDeviceLaunch: int#
CU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH: int#
cudaDevAttrCooperativeMultiDeviceLaunch: int#
cudaDevAttrReserved96: int#
hipDeviceAttributeDeviceOverlap: int#
hipDeviceAttributeDirectManagedMemAccessFromHost: int#
CU_DEVICE_ATTRIBUTE_DIRECT_MANAGED_MEM_ACCESS_FROM_HOST: int#
cudaDevAttrDirectManagedMemAccessFromHost: int#
hipDeviceAttributeGlobalL1CacheSupported: int#
CU_DEVICE_ATTRIBUTE_GLOBAL_L1_CACHE_SUPPORTED: int#
cudaDevAttrGlobalL1CacheSupported: int#
hipDeviceAttributeHostNativeAtomicSupported: int#
CU_DEVICE_ATTRIBUTE_HOST_NATIVE_ATOMIC_SUPPORTED: int#
cudaDevAttrHostNativeAtomicSupported: int#
hipDeviceAttributeIntegrated: int#
CU_DEVICE_ATTRIBUTE_INTEGRATED: int#
cudaDevAttrIntegrated: int#
hipDeviceAttributeIsMultiGpuBoard: int#
CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD: int#
cudaDevAttrIsMultiGpuBoard: int#
hipDeviceAttributeKernelExecTimeout: int#
CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT: int#
cudaDevAttrKernelExecTimeout: int#
hipDeviceAttributeL2CacheSize: int#
CU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE: int#
cudaDevAttrL2CacheSize: int#
hipDeviceAttributeLocalL1CacheSupported: int#
CU_DEVICE_ATTRIBUTE_LOCAL_L1_CACHE_SUPPORTED: int#
cudaDevAttrLocalL1CacheSupported: int#
hipDeviceAttributeLuid: int#
hipDeviceAttributeLuidDeviceNodeMask: int#
hipDeviceAttributeComputeCapabilityMajor: int#
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR: int#
cudaDevAttrComputeCapabilityMajor: int#
hipDeviceAttributeManagedMemory: int#
CU_DEVICE_ATTRIBUTE_MANAGED_MEMORY: int#
cudaDevAttrManagedMemory: int#
hipDeviceAttributeMaxBlocksPerMultiProcessor: int#
hipDeviceAttributeMaxBlockDimX: int#
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X: int#
cudaDevAttrMaxBlockDimX: int#
hipDeviceAttributeMaxBlockDimY: int#
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y: int#
cudaDevAttrMaxBlockDimY: int#
hipDeviceAttributeMaxBlockDimZ: int#
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z: int#
cudaDevAttrMaxBlockDimZ: int#
hipDeviceAttributeMaxGridDimX: int#
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X: int#
cudaDevAttrMaxGridDimX: int#
hipDeviceAttributeMaxGridDimY: int#
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y: int#
cudaDevAttrMaxGridDimY: int#
hipDeviceAttributeMaxGridDimZ: int#
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z: int#
cudaDevAttrMaxGridDimZ: int#
hipDeviceAttributeMaxSurface1D: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_WIDTH: int#
cudaDevAttrMaxSurface1DWidth: int#
hipDeviceAttributeMaxSurface1DLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_WIDTH: int#
cudaDevAttrMaxSurface1DLayeredWidth: int#
hipDeviceAttributeMaxSurface2D: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_WIDTH: int#
cudaDevAttrMaxSurface2DHeight: int#
cudaDevAttrMaxSurface2DWidth: int#
hipDeviceAttributeMaxSurface2DLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_WIDTH: int#
cudaDevAttrMaxSurface2DLayeredHeight: int#
cudaDevAttrMaxSurface2DLayeredWidth: int#
hipDeviceAttributeMaxSurface3D: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_DEPTH: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_WIDTH: int#
cudaDevAttrMaxSurface3DDepth: int#
cudaDevAttrMaxSurface3DHeight: int#
cudaDevAttrMaxSurface3DWidth: int#
hipDeviceAttributeMaxSurfaceCubemap: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_WIDTH: int#
cudaDevAttrMaxSurfaceCubemapWidth: int#
hipDeviceAttributeMaxSurfaceCubemapLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_WIDTH: int#
cudaDevAttrMaxSurfaceCubemapLayeredWidth: int#
hipDeviceAttributeMaxTexture1DWidth: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH: int#
cudaDevAttrMaxTexture1DWidth: int#
hipDeviceAttributeMaxTexture1DLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_WIDTH: int#
cudaDevAttrMaxTexture1DLayeredWidth: int#
hipDeviceAttributeMaxTexture1DLinear: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LINEAR_WIDTH: int#
cudaDevAttrMaxTexture1DLinearWidth: int#
hipDeviceAttributeMaxTexture1DMipmap: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_MIPMAPPED_WIDTH: int#
cudaDevAttrMaxTexture1DMipmappedWidth: int#
hipDeviceAttributeMaxTexture2DWidth: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH: int#
cudaDevAttrMaxTexture2DWidth: int#
hipDeviceAttributeMaxTexture2DHeight: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT: int#
cudaDevAttrMaxTexture2DHeight: int#
hipDeviceAttributeMaxTexture2DGather: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_WIDTH: int#
cudaDevAttrMaxTexture2DGatherHeight: int#
cudaDevAttrMaxTexture2DGatherWidth: int#
hipDeviceAttributeMaxTexture2DLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH: int#
cudaDevAttrMaxTexture2DLayeredHeight: int#
cudaDevAttrMaxTexture2DLayeredWidth: int#
hipDeviceAttributeMaxTexture2DLinear: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH: int#
cudaDevAttrMaxTexture2DLinearHeight: int#
cudaDevAttrMaxTexture2DLinearPitch: int#
cudaDevAttrMaxTexture2DLinearWidth: int#
hipDeviceAttributeMaxTexture2DMipmap: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_HEIGHT: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_WIDTH: int#
cudaDevAttrMaxTexture2DMipmappedHeight: int#
cudaDevAttrMaxTexture2DMipmappedWidth: int#
hipDeviceAttributeMaxTexture3DWidth: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH: int#
cudaDevAttrMaxTexture3DWidth: int#
hipDeviceAttributeMaxTexture3DHeight: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT: int#
cudaDevAttrMaxTexture3DHeight: int#
hipDeviceAttributeMaxTexture3DDepth: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH: int#
cudaDevAttrMaxTexture3DDepth: int#
hipDeviceAttributeMaxTexture3DAlt: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH_ALTERNATE: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT_ALTERNATE: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH_ALTERNATE: int#
cudaDevAttrMaxTexture3DDepthAlt: int#
cudaDevAttrMaxTexture3DHeightAlt: int#
cudaDevAttrMaxTexture3DWidthAlt: int#
hipDeviceAttributeMaxTextureCubemap: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_WIDTH: int#
cudaDevAttrMaxTextureCubemapWidth: int#
hipDeviceAttributeMaxTextureCubemapLayered: int#
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_WIDTH: int#
cudaDevAttrMaxTextureCubemapLayeredWidth: int#
hipDeviceAttributeMaxThreadsDim: int#
hipDeviceAttributeMaxThreadsPerBlock: int#
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK: int#
cudaDevAttrMaxThreadsPerBlock: int#
hipDeviceAttributeMaxThreadsPerMultiProcessor: int#
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR: int#
cudaDevAttrMaxThreadsPerMultiProcessor: int#
hipDeviceAttributeMaxPitch: int#
CU_DEVICE_ATTRIBUTE_MAX_PITCH: int#
cudaDevAttrMaxPitch: int#
hipDeviceAttributeMemoryBusWidth: int#
CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH: int#
cudaDevAttrGlobalMemoryBusWidth: int#
hipDeviceAttributeMemoryClockRate: int#
CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE: int#
cudaDevAttrMemoryClockRate: int#
hipDeviceAttributeComputeCapabilityMinor: int#
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR: int#
cudaDevAttrComputeCapabilityMinor: int#
hipDeviceAttributeMultiGpuBoardGroupID: int#
cudaDevAttrMultiGpuBoardGroupID: int#
hipDeviceAttributeMultiprocessorCount: int#
CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT: int#
cudaDevAttrMultiProcessorCount: int#
hipDeviceAttributeUnused1: int#
hipDeviceAttributePageableMemoryAccess: int#
CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS: int#
cudaDevAttrPageableMemoryAccess: int#
hipDeviceAttributePageableMemoryAccessUsesHostPageTables: int#
CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES: int#
cudaDevAttrPageableMemoryAccessUsesHostPageTables: int#
hipDeviceAttributePciBusId: int#
CU_DEVICE_ATTRIBUTE_PCI_BUS_ID: int#
cudaDevAttrPciBusId: int#
hipDeviceAttributePciDeviceId: int#
CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID: int#
cudaDevAttrPciDeviceId: int#
hipDeviceAttributePciDomainId: int#
CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID: int#
cudaDevAttrPciDomainId: int#
hipDeviceAttributePciDomainID: int#
hipDeviceAttributePersistingL2CacheMaxSize: int#
hipDeviceAttributeMaxRegistersPerBlock: int#
CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK: int#
CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK: int#
cudaDevAttrMaxRegistersPerBlock: int#
hipDeviceAttributeMaxRegistersPerMultiprocessor: int#
CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR: int#
cudaDevAttrMaxRegistersPerMultiprocessor: int#
hipDeviceAttributeReservedSharedMemPerBlock: int#
hipDeviceAttributeMaxSharedMemoryPerBlock: int#
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK: int#
CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK: int#
cudaDevAttrMaxSharedMemoryPerBlock: int#
hipDeviceAttributeSharedMemPerBlockOptin: int#
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN: int#
cudaDevAttrMaxSharedMemoryPerBlockOptin: int#
hipDeviceAttributeSharedMemPerMultiprocessor: int#
hipDeviceAttributeSingleToDoublePrecisionPerfRatio: int#
CU_DEVICE_ATTRIBUTE_SINGLE_TO_DOUBLE_PRECISION_PERF_RATIO: int#
cudaDevAttrSingleToDoublePrecisionPerfRatio: int#
hipDeviceAttributeStreamPrioritiesSupported: int#
CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED: int#
cudaDevAttrStreamPrioritiesSupported: int#
hipDeviceAttributeSurfaceAlignment: int#
CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT: int#
cudaDevAttrSurfaceAlignment: int#
hipDeviceAttributeTccDriver: int#
CU_DEVICE_ATTRIBUTE_TCC_DRIVER: int#
cudaDevAttrTccDriver: int#
hipDeviceAttributeTextureAlignment: int#
CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT: int#
cudaDevAttrTextureAlignment: int#
hipDeviceAttributeTexturePitchAlignment: int#
CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT: int#
cudaDevAttrTexturePitchAlignment: int#
hipDeviceAttributeTotalConstantMemory: int#
CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY: int#
cudaDevAttrTotalConstantMemory: int#
hipDeviceAttributeTotalGlobalMem: int#
hipDeviceAttributeUnifiedAddressing: int#
CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING: int#
cudaDevAttrUnifiedAddressing: int#
hipDeviceAttributeUnused2: int#
hipDeviceAttributeWarpSize: int#
CU_DEVICE_ATTRIBUTE_WARP_SIZE: int#
cudaDevAttrWarpSize: int#
hipDeviceAttributeMemoryPoolsSupported: int#
CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED: int#
cudaDevAttrMemoryPoolsSupported: int#
hipDeviceAttributeVirtualMemoryManagementSupported: int#
CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED: int#
hipDeviceAttributeHostRegisterSupported: int#
CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED: int#
cudaDevAttrHostRegisterSupported: int#
hipDeviceAttributeMemoryPoolSupportedHandleTypes: int#
hipDeviceAttributeHostNumaId: int#
CU_DEVICE_ATTRIBUTE_HOST_NUMA_ID: int#
cudaDevAttrHostNumaId: int#
hipDeviceAttributeDmaBufSupported: int#
CU_DEVICE_ATTRIBUTE_DMA_BUF_SUPPORTED: int#
hipDeviceAttributeGPUDirectRDMAWithHipVMMSupported: int#
hipDeviceAttributeHandleTypeFabricSupported: int#
CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_FABRIC_SUPPORTED: int#
hipDeviceAttributeCudaCompatibleEnd: int#
hipDeviceAttributeAmdSpecificBegin: int#
hipDeviceAttributeClockInstructionRate: int#
hipDeviceAttributeUnused3: int#
hipDeviceAttributeMaxSharedMemoryPerMultiprocessor: int#
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR: int#
cudaDevAttrMaxSharedMemoryPerMultiprocessor: int#
hipDeviceAttributeUnused4: int#
hipDeviceAttributeUnused5: int#
hipDeviceAttributeHdpMemFlushCntl: int#
hipDeviceAttributeHdpRegFlushCntl: int#
hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc: int#
hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim: int#
hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim: int#
hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem: int#
hipDeviceAttributeIsLargeBar: int#
hipDeviceAttributeAsicRevision: int#
hipDeviceAttributeCanUseStreamWaitValue: int#
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR: int#
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR_V1: int#
cudaDevAttrReserved94: int#
hipDeviceAttributeImageSupport: int#
hipDeviceAttributePhysicalMultiProcessorCount: int#
hipDeviceAttributeFineGrainSupport: int#
hipDeviceAttributeWallClockRate: int#
hipDeviceAttributeNumberOfXccs: int#
hipDeviceAttributeMaxAvailableVgprsPerThread: int#
hipDeviceAttributePciChipId: int#
hipDeviceAttributeExpertSchedMode: int#
hipDeviceAttributeMaxDynDataPrefetchRegions: int#
hipDeviceAttributeAmdSpecificEnd: int#
hipDeviceAttributeVendorSpecificBegin: int#
cuda.bindings.runtime.HIP_PYTHON_CUdriverProcAddressQueryResult_HALLUCINATE: Any#
class cuda.bindings.runtime.CUdriverProcAddressQueryResult#

Bases: enum.IntEnum

(No short description)

HIP_GET_PROC_ADDRESS_SUCCESS: int#
CU_GET_PROC_ADDRESS_SUCCESS: int#
HIP_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND: int#
CU_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND: int#
HIP_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT: int#
CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT: int#
cuda.bindings.runtime.HIP_PYTHON_CUdriverProcAddressQueryResult_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUdriverProcAddressQueryResult_enum#

Bases: enum.IntEnum

(No short description)

HIP_GET_PROC_ADDRESS_SUCCESS: int#
CU_GET_PROC_ADDRESS_SUCCESS: int#
HIP_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND: int#
CU_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND: int#
HIP_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT: int#
CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT: int#
cuda.bindings.runtime.HIP_PYTHON_CUcomputemode_HALLUCINATE: Any#
class cuda.bindings.runtime.CUcomputemode#

Bases: enum.IntEnum

(No short description)

hipComputeModeDefault: int#
CU_COMPUTEMODE_DEFAULT: int#
cudaComputeModeDefault: int#
hipComputeModeExclusive: int#
CU_COMPUTEMODE_EXCLUSIVE: int#
cudaComputeModeExclusive: int#
hipComputeModeProhibited: int#
CU_COMPUTEMODE_PROHIBITED: int#
cudaComputeModeProhibited: int#
hipComputeModeExclusiveProcess: int#
CU_COMPUTEMODE_EXCLUSIVE_PROCESS: int#
cudaComputeModeExclusiveProcess: int#
cuda.bindings.runtime.HIP_PYTHON_CUcomputemode_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUcomputemode_enum#

Bases: enum.IntEnum

(No short description)

hipComputeModeDefault: int#
CU_COMPUTEMODE_DEFAULT: int#
cudaComputeModeDefault: int#
hipComputeModeExclusive: int#
CU_COMPUTEMODE_EXCLUSIVE: int#
cudaComputeModeExclusive: int#
hipComputeModeProhibited: int#
CU_COMPUTEMODE_PROHIBITED: int#
cudaComputeModeProhibited: int#
hipComputeModeExclusiveProcess: int#
CU_COMPUTEMODE_EXCLUSIVE_PROCESS: int#
cudaComputeModeExclusiveProcess: int#
cuda.bindings.runtime.HIP_PYTHON_cudaComputeMode_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaComputeMode#

Bases: enum.IntEnum

(No short description)

hipComputeModeDefault: int#
CU_COMPUTEMODE_DEFAULT: int#
cudaComputeModeDefault: int#
hipComputeModeExclusive: int#
CU_COMPUTEMODE_EXCLUSIVE: int#
cudaComputeModeExclusive: int#
hipComputeModeProhibited: int#
CU_COMPUTEMODE_PROHIBITED: int#
cudaComputeModeProhibited: int#
hipComputeModeExclusiveProcess: int#
CU_COMPUTEMODE_EXCLUSIVE_PROCESS: int#
cudaComputeModeExclusiveProcess: int#
cuda.bindings.runtime.HIP_PYTHON_CUflushGPUDirectRDMAWritesOptions_HALLUCINATE: Any#
class cuda.bindings.runtime.CUflushGPUDirectRDMAWritesOptions#

Bases: enum.IntEnum

(No short description)

hipFlushGPUDirectRDMAWritesOptionHost: int#
CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_HOST: int#
cudaFlushGPUDirectRDMAWritesOptionHost: int#
hipFlushGPUDirectRDMAWritesOptionMemOps: int#
CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_MEMOPS: int#
cudaFlushGPUDirectRDMAWritesOptionMemOps: int#
cuda.bindings.runtime.HIP_PYTHON_CUflushGPUDirectRDMAWritesOptions_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUflushGPUDirectRDMAWritesOptions_enum#

Bases: enum.IntEnum

(No short description)

hipFlushGPUDirectRDMAWritesOptionHost: int#
CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_HOST: int#
cudaFlushGPUDirectRDMAWritesOptionHost: int#
hipFlushGPUDirectRDMAWritesOptionMemOps: int#
CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_MEMOPS: int#
cudaFlushGPUDirectRDMAWritesOptionMemOps: int#
cuda.bindings.runtime.HIP_PYTHON_cudaFlushGPUDirectRDMAWritesOptions_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaFlushGPUDirectRDMAWritesOptions#

Bases: enum.IntEnum

(No short description)

hipFlushGPUDirectRDMAWritesOptionHost: int#
CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_HOST: int#
cudaFlushGPUDirectRDMAWritesOptionHost: int#
hipFlushGPUDirectRDMAWritesOptionMemOps: int#
CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_MEMOPS: int#
cudaFlushGPUDirectRDMAWritesOptionMemOps: int#
cuda.bindings.runtime.HIP_PYTHON_CUGPUDirectRDMAWritesOrdering_HALLUCINATE: Any#
class cuda.bindings.runtime.CUGPUDirectRDMAWritesOrdering#

Bases: enum.IntEnum

(No short description)

hipGPUDirectRDMAWritesOrderingNone: int#
CU_GPU_DIRECT_RDMA_WRITES_ORDERING_NONE: int#
cudaGPUDirectRDMAWritesOrderingNone: int#
hipGPUDirectRDMAWritesOrderingOwner: int#
CU_GPU_DIRECT_RDMA_WRITES_ORDERING_OWNER: int#
cudaGPUDirectRDMAWritesOrderingOwner: int#
hipGPUDirectRDMAWritesOrderingAllDevices: int#
CU_GPU_DIRECT_RDMA_WRITES_ORDERING_ALL_DEVICES: int#
cudaGPUDirectRDMAWritesOrderingAllDevices: int#
cuda.bindings.runtime.HIP_PYTHON_CUGPUDirectRDMAWritesOrdering_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUGPUDirectRDMAWritesOrdering_enum#

Bases: enum.IntEnum

(No short description)

hipGPUDirectRDMAWritesOrderingNone: int#
CU_GPU_DIRECT_RDMA_WRITES_ORDERING_NONE: int#
cudaGPUDirectRDMAWritesOrderingNone: int#
hipGPUDirectRDMAWritesOrderingOwner: int#
CU_GPU_DIRECT_RDMA_WRITES_ORDERING_OWNER: int#
cudaGPUDirectRDMAWritesOrderingOwner: int#
hipGPUDirectRDMAWritesOrderingAllDevices: int#
CU_GPU_DIRECT_RDMA_WRITES_ORDERING_ALL_DEVICES: int#
cudaGPUDirectRDMAWritesOrderingAllDevices: int#
cuda.bindings.runtime.HIP_PYTHON_cudaGPUDirectRDMAWritesOrdering_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaGPUDirectRDMAWritesOrdering#

Bases: enum.IntEnum

(No short description)

hipGPUDirectRDMAWritesOrderingNone: int#
CU_GPU_DIRECT_RDMA_WRITES_ORDERING_NONE: int#
cudaGPUDirectRDMAWritesOrderingNone: int#
hipGPUDirectRDMAWritesOrderingOwner: int#
CU_GPU_DIRECT_RDMA_WRITES_ORDERING_OWNER: int#
cudaGPUDirectRDMAWritesOrderingOwner: int#
hipGPUDirectRDMAWritesOrderingAllDevices: int#
CU_GPU_DIRECT_RDMA_WRITES_ORDERING_ALL_DEVICES: int#
cudaGPUDirectRDMAWritesOrderingAllDevices: int#
cuda.bindings.runtime.CUdeviceptr: Any#
cuda.bindings.runtime.CUdeviceptr_v1: Any#
cuda.bindings.runtime.CUdeviceptr_v2: Any#
cuda.bindings.runtime.HIP_PYTHON_cudaChannelFormatKind_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaChannelFormatKind#

Bases: enum.IntEnum

HIP channel format kinds

hipChannelFormatKindSigned: int#
cudaChannelFormatKindSigned: int#
hipChannelFormatKindUnsigned: int#
cudaChannelFormatKindUnsigned: int#
hipChannelFormatKindFloat: int#
cudaChannelFormatKindFloat: int#
hipChannelFormatKindNone: int#
cudaChannelFormatKindNone: int#
class cuda.bindings.runtime.cudaChannelFormatDesc(*args, **kwargs)#

Bases: rocm.bindings.hip.hipChannelFormatDesc

HIP channel format descriptor

x: Any#
y: Any#
z: Any#
w: Any#
f: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUarray_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipArray

(No short description)

class cuda.bindings.runtime.cudaArray(*args, **kwargs)#

Bases: rocm.bindings.hip.hipArray

(No short description)

cuda.bindings.runtime.CUarray: Any#
cuda.bindings.runtime.cudaArray_t: Any#
cuda.bindings.runtime.cudaArray_const_t: Any#
cuda.bindings.runtime.HIP_PYTHON_CUarray_format_HALLUCINATE: Any#
class cuda.bindings.runtime.CUarray_format#

Bases: enum.IntEnum

HIP array format

HIP_AD_FORMAT_UNSIGNED_INT8: int#
CU_AD_FORMAT_UNSIGNED_INT8: int#
HIP_AD_FORMAT_UNSIGNED_INT16: int#
CU_AD_FORMAT_UNSIGNED_INT16: int#
HIP_AD_FORMAT_UNSIGNED_INT32: int#
CU_AD_FORMAT_UNSIGNED_INT32: int#
HIP_AD_FORMAT_SIGNED_INT8: int#
CU_AD_FORMAT_SIGNED_INT8: int#
HIP_AD_FORMAT_SIGNED_INT16: int#
CU_AD_FORMAT_SIGNED_INT16: int#
HIP_AD_FORMAT_SIGNED_INT32: int#
CU_AD_FORMAT_SIGNED_INT32: int#
HIP_AD_FORMAT_HALF: int#
CU_AD_FORMAT_HALF: int#
HIP_AD_FORMAT_FLOAT: int#
CU_AD_FORMAT_FLOAT: int#
cuda.bindings.runtime.HIP_PYTHON_CUarray_format_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUarray_format_enum#

Bases: enum.IntEnum

HIP array format

HIP_AD_FORMAT_UNSIGNED_INT8: int#
CU_AD_FORMAT_UNSIGNED_INT8: int#
HIP_AD_FORMAT_UNSIGNED_INT16: int#
CU_AD_FORMAT_UNSIGNED_INT16: int#
HIP_AD_FORMAT_UNSIGNED_INT32: int#
CU_AD_FORMAT_UNSIGNED_INT32: int#
HIP_AD_FORMAT_SIGNED_INT8: int#
CU_AD_FORMAT_SIGNED_INT8: int#
HIP_AD_FORMAT_SIGNED_INT16: int#
CU_AD_FORMAT_SIGNED_INT16: int#
HIP_AD_FORMAT_SIGNED_INT32: int#
CU_AD_FORMAT_SIGNED_INT32: int#
HIP_AD_FORMAT_HALF: int#
CU_AD_FORMAT_HALF: int#
HIP_AD_FORMAT_FLOAT: int#
CU_AD_FORMAT_FLOAT: int#
class cuda.bindings.runtime.CUDA_ARRAY_DESCRIPTOR(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_ARRAY_DESCRIPTOR

HIP array descriptor

Width: Any#
Height: Any#
Format: Any#
NumChannels: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_ARRAY_DESCRIPTOR_st(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_ARRAY_DESCRIPTOR

HIP array descriptor

Width: Any#
Height: Any#
Format: Any#
NumChannels: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_ARRAY_DESCRIPTOR_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_ARRAY_DESCRIPTOR

HIP array descriptor

Width: Any#
Height: Any#
Format: Any#
NumChannels: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_ARRAY_DESCRIPTOR_v1_st(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_ARRAY_DESCRIPTOR

HIP array descriptor

Width: Any#
Height: Any#
Format: Any#
NumChannels: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_ARRAY_DESCRIPTOR_v2(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_ARRAY_DESCRIPTOR

HIP array descriptor

Width: Any#
Height: Any#
Format: Any#
NumChannels: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_ARRAY3D_DESCRIPTOR(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_ARRAY3D_DESCRIPTOR

HIP 3D array descriptor

Width: Any#
Height: Any#
Depth: Any#
Format: Any#
NumChannels: Any#
Flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_ARRAY3D_DESCRIPTOR_st(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_ARRAY3D_DESCRIPTOR

HIP 3D array descriptor

Width: Any#
Height: Any#
Depth: Any#
Format: Any#
NumChannels: Any#
Flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_ARRAY3D_DESCRIPTOR_v2(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_ARRAY3D_DESCRIPTOR

HIP 3D array descriptor

Width: Any#
Height: Any#
Depth: Any#
Format: Any#
NumChannels: Any#
Flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY2D(*args, **kwargs)#

Bases: rocm.bindings.hip.hip_Memcpy2D

HIP 2D memory copy parameters

srcXInBytes: Any#
srcY: Any#
srcMemoryType: Any#
srcHost: Any#
srcDevice: Any#
srcArray: Any#
srcPitch: Any#
dstXInBytes: Any#
dstY: Any#
dstMemoryType: Any#
dstHost: Any#
dstDevice: Any#
dstArray: Any#
dstPitch: Any#
WidthInBytes: Any#
Height: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY2D_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hip_Memcpy2D

HIP 2D memory copy parameters

srcXInBytes: Any#
srcY: Any#
srcMemoryType: Any#
srcHost: Any#
srcDevice: Any#
srcArray: Any#
srcPitch: Any#
dstXInBytes: Any#
dstY: Any#
dstMemoryType: Any#
dstHost: Any#
dstDevice: Any#
dstArray: Any#
dstPitch: Any#
WidthInBytes: Any#
Height: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY2D_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hip_Memcpy2D

HIP 2D memory copy parameters

srcXInBytes: Any#
srcY: Any#
srcMemoryType: Any#
srcHost: Any#
srcDevice: Any#
srcArray: Any#
srcPitch: Any#
dstXInBytes: Any#
dstY: Any#
dstMemoryType: Any#
dstHost: Any#
dstDevice: Any#
dstArray: Any#
dstPitch: Any#
WidthInBytes: Any#
Height: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY2D_v1_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hip_Memcpy2D

HIP 2D memory copy parameters

srcXInBytes: Any#
srcY: Any#
srcMemoryType: Any#
srcHost: Any#
srcDevice: Any#
srcArray: Any#
srcPitch: Any#
dstXInBytes: Any#
dstY: Any#
dstMemoryType: Any#
dstHost: Any#
dstDevice: Any#
dstArray: Any#
dstPitch: Any#
WidthInBytes: Any#
Height: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY2D_v2(*args, **kwargs)#

Bases: rocm.bindings.hip.hip_Memcpy2D

HIP 2D memory copy parameters

srcXInBytes: Any#
srcY: Any#
srcMemoryType: Any#
srcHost: Any#
srcDevice: Any#
srcArray: Any#
srcPitch: Any#
dstXInBytes: Any#
dstY: Any#
dstMemoryType: Any#
dstHost: Any#
dstDevice: Any#
dstArray: Any#
dstPitch: Any#
WidthInBytes: Any#
Height: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmipmappedArray_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMipmappedArray

HIP mipmapped array

data: Any#
desc: Any#
type: Any#
width: Any#
height: Any#
depth: Any#
min_mipmap_level: Any#
max_mipmap_level: Any#
flags: Any#
format: Any#
num_channels: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMipmappedArray(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMipmappedArray

HIP mipmapped array

data: Any#
desc: Any#
type: Any#
width: Any#
height: Any#
depth: Any#
min_mipmap_level: Any#
max_mipmap_level: Any#
flags: Any#
format: Any#
num_channels: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUmipmappedArray: Any#
cuda.bindings.runtime.cudaMipmappedArray_t: Any#
cuda.bindings.runtime.cudaMipmappedArray_const_t: Any#
cuda.bindings.runtime.HIP_PYTHON_cudaResourceType_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaResourceType#

Bases: enum.IntEnum

HIP resource types

hipResourceTypeArray: int#
cudaResourceTypeArray: int#
hipResourceTypeMipmappedArray: int#
cudaResourceTypeMipmappedArray: int#
hipResourceTypeLinear: int#
cudaResourceTypeLinear: int#
hipResourceTypePitch2D: int#
cudaResourceTypePitch2D: int#
cuda.bindings.runtime.HIP_PYTHON_CUresourcetype_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUresourcetype_enum#

Bases: enum.IntEnum

(No short description)

HIP_RESOURCE_TYPE_ARRAY: int#
CU_RESOURCE_TYPE_ARRAY: int#
HIP_RESOURCE_TYPE_MIPMAPPED_ARRAY: int#
CU_RESOURCE_TYPE_MIPMAPPED_ARRAY: int#
HIP_RESOURCE_TYPE_LINEAR: int#
CU_RESOURCE_TYPE_LINEAR: int#
HIP_RESOURCE_TYPE_PITCH2D: int#
CU_RESOURCE_TYPE_PITCH2D: int#
cuda.bindings.runtime.HIP_PYTHON_CUresourcetype_HALLUCINATE: Any#
class cuda.bindings.runtime.CUresourcetype#

Bases: enum.IntEnum

(No short description)

HIP_RESOURCE_TYPE_ARRAY: int#
CU_RESOURCE_TYPE_ARRAY: int#
HIP_RESOURCE_TYPE_MIPMAPPED_ARRAY: int#
CU_RESOURCE_TYPE_MIPMAPPED_ARRAY: int#
HIP_RESOURCE_TYPE_LINEAR: int#
CU_RESOURCE_TYPE_LINEAR: int#
HIP_RESOURCE_TYPE_PITCH2D: int#
CU_RESOURCE_TYPE_PITCH2D: int#
cuda.bindings.runtime.HIP_PYTHON_CUaddress_mode_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUaddress_mode_enum#

Bases: enum.IntEnum

HIP texture address modes

HIP_TR_ADDRESS_MODE_WRAP: int#
CU_TR_ADDRESS_MODE_WRAP: int#
HIP_TR_ADDRESS_MODE_CLAMP: int#
CU_TR_ADDRESS_MODE_CLAMP: int#
HIP_TR_ADDRESS_MODE_MIRROR: int#
CU_TR_ADDRESS_MODE_MIRROR: int#
HIP_TR_ADDRESS_MODE_BORDER: int#
CU_TR_ADDRESS_MODE_BORDER: int#
cuda.bindings.runtime.HIP_PYTHON_CUaddress_mode_HALLUCINATE: Any#
class cuda.bindings.runtime.CUaddress_mode#

Bases: enum.IntEnum

HIP texture address modes

HIP_TR_ADDRESS_MODE_WRAP: int#
CU_TR_ADDRESS_MODE_WRAP: int#
HIP_TR_ADDRESS_MODE_CLAMP: int#
CU_TR_ADDRESS_MODE_CLAMP: int#
HIP_TR_ADDRESS_MODE_MIRROR: int#
CU_TR_ADDRESS_MODE_MIRROR: int#
HIP_TR_ADDRESS_MODE_BORDER: int#
CU_TR_ADDRESS_MODE_BORDER: int#
cuda.bindings.runtime.HIP_PYTHON_CUfilter_mode_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUfilter_mode_enum#

Bases: enum.IntEnum

HIP filter modes

HIP_TR_FILTER_MODE_POINT: int#
CU_TR_FILTER_MODE_POINT: int#
HIP_TR_FILTER_MODE_LINEAR: int#
CU_TR_FILTER_MODE_LINEAR: int#
cuda.bindings.runtime.HIP_PYTHON_CUfilter_mode_HALLUCINATE: Any#
class cuda.bindings.runtime.CUfilter_mode#

Bases: enum.IntEnum

HIP filter modes

HIP_TR_FILTER_MODE_POINT: int#
CU_TR_FILTER_MODE_POINT: int#
HIP_TR_FILTER_MODE_LINEAR: int#
CU_TR_FILTER_MODE_LINEAR: int#
class cuda.bindings.runtime.CUDA_TEXTURE_DESC_st(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_TEXTURE_DESC_st

HIP texture descriptor

filterMode: Any#
flags: Any#
maxAnisotropy: Any#
mipmapFilterMode: Any#
mipmapLevelBias: Any#
minMipmapLevelClamp: Any#
maxMipmapLevelClamp: Any#
borderColor: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUDA_TEXTURE_DESC: Any#
cuda.bindings.runtime.CUDA_TEXTURE_DESC_v1: Any#
cuda.bindings.runtime.HIP_PYTHON_cudaResourceViewFormat_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaResourceViewFormat#

Bases: enum.IntEnum

HIP texture resource view formats

hipResViewFormatNone: int#
cudaResViewFormatNone: int#
hipResViewFormatUnsignedChar1: int#
cudaResViewFormatUnsignedChar1: int#
hipResViewFormatUnsignedChar2: int#
cudaResViewFormatUnsignedChar2: int#
hipResViewFormatUnsignedChar4: int#
cudaResViewFormatUnsignedChar4: int#
hipResViewFormatSignedChar1: int#
cudaResViewFormatSignedChar1: int#
hipResViewFormatSignedChar2: int#
cudaResViewFormatSignedChar2: int#
hipResViewFormatSignedChar4: int#
cudaResViewFormatSignedChar4: int#
hipResViewFormatUnsignedShort1: int#
cudaResViewFormatUnsignedShort1: int#
hipResViewFormatUnsignedShort2: int#
cudaResViewFormatUnsignedShort2: int#
hipResViewFormatUnsignedShort4: int#
cudaResViewFormatUnsignedShort4: int#
hipResViewFormatSignedShort1: int#
cudaResViewFormatSignedShort1: int#
hipResViewFormatSignedShort2: int#
cudaResViewFormatSignedShort2: int#
hipResViewFormatSignedShort4: int#
cudaResViewFormatSignedShort4: int#
hipResViewFormatUnsignedInt1: int#
cudaResViewFormatUnsignedInt1: int#
hipResViewFormatUnsignedInt2: int#
cudaResViewFormatUnsignedInt2: int#
hipResViewFormatUnsignedInt4: int#
cudaResViewFormatUnsignedInt4: int#
hipResViewFormatSignedInt1: int#
cudaResViewFormatSignedInt1: int#
hipResViewFormatSignedInt2: int#
cudaResViewFormatSignedInt2: int#
hipResViewFormatSignedInt4: int#
cudaResViewFormatSignedInt4: int#
hipResViewFormatHalf1: int#
cudaResViewFormatHalf1: int#
hipResViewFormatHalf2: int#
cudaResViewFormatHalf2: int#
hipResViewFormatHalf4: int#
cudaResViewFormatHalf4: int#
hipResViewFormatFloat1: int#
cudaResViewFormatFloat1: int#
hipResViewFormatFloat2: int#
cudaResViewFormatFloat2: int#
hipResViewFormatFloat4: int#
cudaResViewFormatFloat4: int#
hipResViewFormatUnsignedBlockCompressed1: int#
cudaResViewFormatUnsignedBlockCompressed1: int#
hipResViewFormatUnsignedBlockCompressed2: int#
cudaResViewFormatUnsignedBlockCompressed2: int#
hipResViewFormatUnsignedBlockCompressed3: int#
cudaResViewFormatUnsignedBlockCompressed3: int#
hipResViewFormatUnsignedBlockCompressed4: int#
cudaResViewFormatUnsignedBlockCompressed4: int#
hipResViewFormatSignedBlockCompressed4: int#
cudaResViewFormatSignedBlockCompressed4: int#
hipResViewFormatUnsignedBlockCompressed5: int#
cudaResViewFormatUnsignedBlockCompressed5: int#
hipResViewFormatSignedBlockCompressed5: int#
cudaResViewFormatSignedBlockCompressed5: int#
hipResViewFormatUnsignedBlockCompressed6H: int#
cudaResViewFormatUnsignedBlockCompressed6H: int#
hipResViewFormatSignedBlockCompressed6H: int#
cudaResViewFormatSignedBlockCompressed6H: int#
hipResViewFormatUnsignedBlockCompressed7: int#
cudaResViewFormatUnsignedBlockCompressed7: int#
cuda.bindings.runtime.HIP_PYTHON_CUresourceViewFormat_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUresourceViewFormat_enum#

Bases: enum.IntEnum

HIP texture resource view formats

HIP_RES_VIEW_FORMAT_NONE: int#
CU_RES_VIEW_FORMAT_NONE: int#
HIP_RES_VIEW_FORMAT_UINT_1X8: int#
CU_RES_VIEW_FORMAT_UINT_1X8: int#
HIP_RES_VIEW_FORMAT_UINT_2X8: int#
CU_RES_VIEW_FORMAT_UINT_2X8: int#
HIP_RES_VIEW_FORMAT_UINT_4X8: int#
CU_RES_VIEW_FORMAT_UINT_4X8: int#
HIP_RES_VIEW_FORMAT_SINT_1X8: int#
CU_RES_VIEW_FORMAT_SINT_1X8: int#
HIP_RES_VIEW_FORMAT_SINT_2X8: int#
CU_RES_VIEW_FORMAT_SINT_2X8: int#
HIP_RES_VIEW_FORMAT_SINT_4X8: int#
CU_RES_VIEW_FORMAT_SINT_4X8: int#
HIP_RES_VIEW_FORMAT_UINT_1X16: int#
CU_RES_VIEW_FORMAT_UINT_1X16: int#
HIP_RES_VIEW_FORMAT_UINT_2X16: int#
CU_RES_VIEW_FORMAT_UINT_2X16: int#
HIP_RES_VIEW_FORMAT_UINT_4X16: int#
CU_RES_VIEW_FORMAT_UINT_4X16: int#
HIP_RES_VIEW_FORMAT_SINT_1X16: int#
CU_RES_VIEW_FORMAT_SINT_1X16: int#
HIP_RES_VIEW_FORMAT_SINT_2X16: int#
CU_RES_VIEW_FORMAT_SINT_2X16: int#
HIP_RES_VIEW_FORMAT_SINT_4X16: int#
CU_RES_VIEW_FORMAT_SINT_4X16: int#
HIP_RES_VIEW_FORMAT_UINT_1X32: int#
CU_RES_VIEW_FORMAT_UINT_1X32: int#
HIP_RES_VIEW_FORMAT_UINT_2X32: int#
CU_RES_VIEW_FORMAT_UINT_2X32: int#
HIP_RES_VIEW_FORMAT_UINT_4X32: int#
CU_RES_VIEW_FORMAT_UINT_4X32: int#
HIP_RES_VIEW_FORMAT_SINT_1X32: int#
CU_RES_VIEW_FORMAT_SINT_1X32: int#
HIP_RES_VIEW_FORMAT_SINT_2X32: int#
CU_RES_VIEW_FORMAT_SINT_2X32: int#
HIP_RES_VIEW_FORMAT_SINT_4X32: int#
CU_RES_VIEW_FORMAT_SINT_4X32: int#
HIP_RES_VIEW_FORMAT_FLOAT_1X16: int#
CU_RES_VIEW_FORMAT_FLOAT_1X16: int#
HIP_RES_VIEW_FORMAT_FLOAT_2X16: int#
CU_RES_VIEW_FORMAT_FLOAT_2X16: int#
HIP_RES_VIEW_FORMAT_FLOAT_4X16: int#
CU_RES_VIEW_FORMAT_FLOAT_4X16: int#
HIP_RES_VIEW_FORMAT_FLOAT_1X32: int#
CU_RES_VIEW_FORMAT_FLOAT_1X32: int#
HIP_RES_VIEW_FORMAT_FLOAT_2X32: int#
CU_RES_VIEW_FORMAT_FLOAT_2X32: int#
HIP_RES_VIEW_FORMAT_FLOAT_4X32: int#
CU_RES_VIEW_FORMAT_FLOAT_4X32: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC1: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC1: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC2: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC2: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC3: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC3: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC4: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC4: int#
HIP_RES_VIEW_FORMAT_SIGNED_BC4: int#
CU_RES_VIEW_FORMAT_SIGNED_BC4: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC5: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC5: int#
HIP_RES_VIEW_FORMAT_SIGNED_BC5: int#
CU_RES_VIEW_FORMAT_SIGNED_BC5: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC6H: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC6H: int#
HIP_RES_VIEW_FORMAT_SIGNED_BC6H: int#
CU_RES_VIEW_FORMAT_SIGNED_BC6H: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC7: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC7: int#
cuda.bindings.runtime.HIP_PYTHON_CUresourceViewFormat_HALLUCINATE: Any#
class cuda.bindings.runtime.CUresourceViewFormat#

Bases: enum.IntEnum

HIP texture resource view formats

HIP_RES_VIEW_FORMAT_NONE: int#
CU_RES_VIEW_FORMAT_NONE: int#
HIP_RES_VIEW_FORMAT_UINT_1X8: int#
CU_RES_VIEW_FORMAT_UINT_1X8: int#
HIP_RES_VIEW_FORMAT_UINT_2X8: int#
CU_RES_VIEW_FORMAT_UINT_2X8: int#
HIP_RES_VIEW_FORMAT_UINT_4X8: int#
CU_RES_VIEW_FORMAT_UINT_4X8: int#
HIP_RES_VIEW_FORMAT_SINT_1X8: int#
CU_RES_VIEW_FORMAT_SINT_1X8: int#
HIP_RES_VIEW_FORMAT_SINT_2X8: int#
CU_RES_VIEW_FORMAT_SINT_2X8: int#
HIP_RES_VIEW_FORMAT_SINT_4X8: int#
CU_RES_VIEW_FORMAT_SINT_4X8: int#
HIP_RES_VIEW_FORMAT_UINT_1X16: int#
CU_RES_VIEW_FORMAT_UINT_1X16: int#
HIP_RES_VIEW_FORMAT_UINT_2X16: int#
CU_RES_VIEW_FORMAT_UINT_2X16: int#
HIP_RES_VIEW_FORMAT_UINT_4X16: int#
CU_RES_VIEW_FORMAT_UINT_4X16: int#
HIP_RES_VIEW_FORMAT_SINT_1X16: int#
CU_RES_VIEW_FORMAT_SINT_1X16: int#
HIP_RES_VIEW_FORMAT_SINT_2X16: int#
CU_RES_VIEW_FORMAT_SINT_2X16: int#
HIP_RES_VIEW_FORMAT_SINT_4X16: int#
CU_RES_VIEW_FORMAT_SINT_4X16: int#
HIP_RES_VIEW_FORMAT_UINT_1X32: int#
CU_RES_VIEW_FORMAT_UINT_1X32: int#
HIP_RES_VIEW_FORMAT_UINT_2X32: int#
CU_RES_VIEW_FORMAT_UINT_2X32: int#
HIP_RES_VIEW_FORMAT_UINT_4X32: int#
CU_RES_VIEW_FORMAT_UINT_4X32: int#
HIP_RES_VIEW_FORMAT_SINT_1X32: int#
CU_RES_VIEW_FORMAT_SINT_1X32: int#
HIP_RES_VIEW_FORMAT_SINT_2X32: int#
CU_RES_VIEW_FORMAT_SINT_2X32: int#
HIP_RES_VIEW_FORMAT_SINT_4X32: int#
CU_RES_VIEW_FORMAT_SINT_4X32: int#
HIP_RES_VIEW_FORMAT_FLOAT_1X16: int#
CU_RES_VIEW_FORMAT_FLOAT_1X16: int#
HIP_RES_VIEW_FORMAT_FLOAT_2X16: int#
CU_RES_VIEW_FORMAT_FLOAT_2X16: int#
HIP_RES_VIEW_FORMAT_FLOAT_4X16: int#
CU_RES_VIEW_FORMAT_FLOAT_4X16: int#
HIP_RES_VIEW_FORMAT_FLOAT_1X32: int#
CU_RES_VIEW_FORMAT_FLOAT_1X32: int#
HIP_RES_VIEW_FORMAT_FLOAT_2X32: int#
CU_RES_VIEW_FORMAT_FLOAT_2X32: int#
HIP_RES_VIEW_FORMAT_FLOAT_4X32: int#
CU_RES_VIEW_FORMAT_FLOAT_4X32: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC1: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC1: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC2: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC2: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC3: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC3: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC4: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC4: int#
HIP_RES_VIEW_FORMAT_SIGNED_BC4: int#
CU_RES_VIEW_FORMAT_SIGNED_BC4: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC5: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC5: int#
HIP_RES_VIEW_FORMAT_SIGNED_BC5: int#
CU_RES_VIEW_FORMAT_SIGNED_BC5: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC6H: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC6H: int#
HIP_RES_VIEW_FORMAT_SIGNED_BC6H: int#
CU_RES_VIEW_FORMAT_SIGNED_BC6H: int#
HIP_RES_VIEW_FORMAT_UNSIGNED_BC7: int#
CU_RES_VIEW_FORMAT_UNSIGNED_BC7: int#
class cuda.bindings.runtime.cudaResourceDesc(*args, **kwargs)#

Bases: rocm.bindings.hip.hipResourceDesc

HIP resource descriptor

resType: Any#
res: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_RESOURCE_DESC_st(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_RESOURCE_DESC_st

HIP resource view descriptor struct

resType: Any#
res: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUDA_RESOURCE_DESC: Any#
cuda.bindings.runtime.CUDA_RESOURCE_DESC_v1: Any#
class cuda.bindings.runtime.cudaResourceViewDesc(*args, **kwargs)#

Bases: rocm.bindings.hip.hipResourceViewDesc

HIP resource view descriptor

format: Any#
width: Any#
height: Any#
depth: Any#
firstMipmapLevel: Any#
lastMipmapLevel: Any#
firstLayer: Any#
lastLayer: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_RESOURCE_VIEW_DESC_st(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_RESOURCE_VIEW_DESC_st

Resource view descriptor

format: Any#
width: Any#
height: Any#
depth: Any#
firstMipmapLevel: Any#
lastMipmapLevel: Any#
firstLayer: Any#
lastLayer: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUDA_RESOURCE_VIEW_DESC: Any#
cuda.bindings.runtime.CUDA_RESOURCE_VIEW_DESC_v1: Any#
cuda.bindings.runtime.HIP_PYTHON_cudaMemcpyKind_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaMemcpyKind#

Bases: enum.IntEnum

(No short description)

hipMemcpyHostToHost: int#
cudaMemcpyHostToHost: int#
hipMemcpyHostToDevice: int#
cudaMemcpyHostToDevice: int#
hipMemcpyDeviceToHost: int#
cudaMemcpyDeviceToHost: int#
hipMemcpyDeviceToDevice: int#
cudaMemcpyDeviceToDevice: int#
hipMemcpyDefault: int#
cudaMemcpyDefault: int#
hipMemcpyDeviceToDeviceNoCU: int#
class cuda.bindings.runtime.cudaPitchedPtr(*args, **kwargs)#

Bases: rocm.bindings.hip.hipPitchedPtr

HIP pithed pointer

ptr: Any#
pitch: Any#
xsize: Any#
ysize: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaExtent(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExtent

HIP extent

width: Any#
height: Any#
depth: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaPos(*args, **kwargs)#

Bases: rocm.bindings.hip.hipPos

HIP position

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMemcpy3DParms(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpy3DParms

HIP 3D memory copy parameters

srcArray: Any#
srcPos: Any#
srcPtr: Any#
dstArray: Any#
dstPos: Any#
dstPtr: Any#
extent: Any#
kind: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY3D(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_MEMCPY3D

HIP 3D memory copy

srcXInBytes: Any#
srcY: Any#
srcZ: Any#
srcLOD: Any#
srcMemoryType: Any#
srcHost: Any#
srcDevice: Any#
srcArray: Any#
srcPitch: Any#
srcHeight: Any#
dstXInBytes: Any#
dstY: Any#
dstZ: Any#
dstLOD: Any#
dstMemoryType: Any#
dstHost: Any#
dstDevice: Any#
dstArray: Any#
dstPitch: Any#
dstHeight: Any#
WidthInBytes: Any#
Height: Any#
Depth: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY3D_st(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_MEMCPY3D

HIP 3D memory copy

srcXInBytes: Any#
srcY: Any#
srcZ: Any#
srcLOD: Any#
srcMemoryType: Any#
srcHost: Any#
srcDevice: Any#
srcArray: Any#
srcPitch: Any#
srcHeight: Any#
dstXInBytes: Any#
dstY: Any#
dstZ: Any#
dstLOD: Any#
dstMemoryType: Any#
dstHost: Any#
dstDevice: Any#
dstArray: Any#
dstPitch: Any#
dstHeight: Any#
WidthInBytes: Any#
Height: Any#
Depth: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY3D_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_MEMCPY3D

HIP 3D memory copy

srcXInBytes: Any#
srcY: Any#
srcZ: Any#
srcLOD: Any#
srcMemoryType: Any#
srcHost: Any#
srcDevice: Any#
srcArray: Any#
srcPitch: Any#
srcHeight: Any#
dstXInBytes: Any#
dstY: Any#
dstZ: Any#
dstLOD: Any#
dstMemoryType: Any#
dstHost: Any#
dstDevice: Any#
dstArray: Any#
dstPitch: Any#
dstHeight: Any#
WidthInBytes: Any#
Height: Any#
Depth: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY3D_v1_st(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_MEMCPY3D

HIP 3D memory copy

srcXInBytes: Any#
srcY: Any#
srcZ: Any#
srcLOD: Any#
srcMemoryType: Any#
srcHost: Any#
srcDevice: Any#
srcArray: Any#
srcPitch: Any#
srcHeight: Any#
dstXInBytes: Any#
dstY: Any#
dstZ: Any#
dstLOD: Any#
dstMemoryType: Any#
dstHost: Any#
dstDevice: Any#
dstArray: Any#
dstPitch: Any#
dstHeight: Any#
WidthInBytes: Any#
Height: Any#
Depth: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY3D_v2(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_MEMCPY3D

HIP 3D memory copy

srcXInBytes: Any#
srcY: Any#
srcZ: Any#
srcLOD: Any#
srcMemoryType: Any#
srcHost: Any#
srcDevice: Any#
srcArray: Any#
srcPitch: Any#
srcHeight: Any#
dstXInBytes: Any#
dstY: Any#
dstZ: Any#
dstLOD: Any#
dstMemoryType: Any#
dstHost: Any#
dstDevice: Any#
dstArray: Any#
dstPitch: Any#
dstHeight: Any#
WidthInBytes: Any#
Height: Any#
Depth: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_CUmemLocationType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemLocationType#

Bases: enum.IntEnum

Specifies the type of location

hipMemLocationTypeInvalid: int#
CU_MEM_LOCATION_TYPE_INVALID: int#
cudaMemLocationTypeInvalid: int#
hipMemLocationTypeNone: int#
CU_MEM_LOCATION_TYPE_NONE: int#
cudaMemLocationTypeNone: int#
hipMemLocationTypeDevice: int#
CU_MEM_LOCATION_TYPE_DEVICE: int#
cudaMemLocationTypeDevice: int#
hipMemLocationTypeHost: int#
CU_MEM_LOCATION_TYPE_HOST: int#
cudaMemLocationTypeHost: int#
hipMemLocationTypeHostNuma: int#
CU_MEM_LOCATION_TYPE_HOST_NUMA: int#
cudaMemLocationTypeHostNuma: int#
hipMemLocationTypeHostNumaCurrent: int#
CU_MEM_LOCATION_TYPE_HOST_NUMA_CURRENT: int#
cudaMemLocationTypeHostNumaCurrent: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemLocationType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemLocationType_enum#

Bases: enum.IntEnum

Specifies the type of location

hipMemLocationTypeInvalid: int#
CU_MEM_LOCATION_TYPE_INVALID: int#
cudaMemLocationTypeInvalid: int#
hipMemLocationTypeNone: int#
CU_MEM_LOCATION_TYPE_NONE: int#
cudaMemLocationTypeNone: int#
hipMemLocationTypeDevice: int#
CU_MEM_LOCATION_TYPE_DEVICE: int#
cudaMemLocationTypeDevice: int#
hipMemLocationTypeHost: int#
CU_MEM_LOCATION_TYPE_HOST: int#
cudaMemLocationTypeHost: int#
hipMemLocationTypeHostNuma: int#
CU_MEM_LOCATION_TYPE_HOST_NUMA: int#
cudaMemLocationTypeHostNuma: int#
hipMemLocationTypeHostNumaCurrent: int#
CU_MEM_LOCATION_TYPE_HOST_NUMA_CURRENT: int#
cudaMemLocationTypeHostNumaCurrent: int#
cuda.bindings.runtime.HIP_PYTHON_cudaMemLocationType_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaMemLocationType#

Bases: enum.IntEnum

Specifies the type of location

hipMemLocationTypeInvalid: int#
CU_MEM_LOCATION_TYPE_INVALID: int#
cudaMemLocationTypeInvalid: int#
hipMemLocationTypeNone: int#
CU_MEM_LOCATION_TYPE_NONE: int#
cudaMemLocationTypeNone: int#
hipMemLocationTypeDevice: int#
CU_MEM_LOCATION_TYPE_DEVICE: int#
cudaMemLocationTypeDevice: int#
hipMemLocationTypeHost: int#
CU_MEM_LOCATION_TYPE_HOST: int#
cudaMemLocationTypeHost: int#
hipMemLocationTypeHostNuma: int#
CU_MEM_LOCATION_TYPE_HOST_NUMA: int#
cudaMemLocationTypeHostNuma: int#
hipMemLocationTypeHostNumaCurrent: int#
CU_MEM_LOCATION_TYPE_HOST_NUMA_CURRENT: int#
cudaMemLocationTypeHostNumaCurrent: int#
class cuda.bindings.runtime.CUmemLocation(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemLocation

Specifies a memory location.

To specify a gpu, set type = hipMemLocationTypeDevice and set id = the gpu’s device ID

type: Any#
id: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemLocation_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemLocation

Specifies a memory location.

To specify a gpu, set type = hipMemLocationTypeDevice and set id = the gpu’s device ID

type: Any#
id: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemLocation_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemLocation

Specifies a memory location.

To specify a gpu, set type = hipMemLocationTypeDevice and set id = the gpu’s device ID

type: Any#
id: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMemLocation(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemLocation

Specifies a memory location.

To specify a gpu, set type = hipMemLocationTypeDevice and set id = the gpu’s device ID

type: Any#
id: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_CUmemcpyFlags_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemcpyFlags#

Bases: enum.IntEnum

Flags to specify for copies within a batch. Used with hipMemcpyBatchAsync

hipMemcpyFlagDefault: int#
CU_MEMCPY_FLAG_DEFAULT: int#
cudaMemcpyFlagDefault: int#
hipMemcpyFlagPreferOverlapWithCompute: int#
CU_MEMCPY_FLAG_PREFER_OVERLAP_WITH_COMPUTE: int#
cudaMemcpyFlagPreferOverlapWithCompute: int#
hipMemcpyFlagExtPreferCE: int#
hipMemcpyFlagExtOpSwap: int#
hipMemcpyFlagExtOpIndirectSrc: int#
hipMemcpyFlagExtOpIndirectDst: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemcpyFlags_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemcpyFlags_enum#

Bases: enum.IntEnum

Flags to specify for copies within a batch. Used with hipMemcpyBatchAsync

hipMemcpyFlagDefault: int#
CU_MEMCPY_FLAG_DEFAULT: int#
cudaMemcpyFlagDefault: int#
hipMemcpyFlagPreferOverlapWithCompute: int#
CU_MEMCPY_FLAG_PREFER_OVERLAP_WITH_COMPUTE: int#
cudaMemcpyFlagPreferOverlapWithCompute: int#
hipMemcpyFlagExtPreferCE: int#
hipMemcpyFlagExtOpSwap: int#
hipMemcpyFlagExtOpIndirectSrc: int#
hipMemcpyFlagExtOpIndirectDst: int#
cuda.bindings.runtime.HIP_PYTHON_cudaMemcpyFlags_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaMemcpyFlags#

Bases: enum.IntEnum

Flags to specify for copies within a batch. Used with hipMemcpyBatchAsync

hipMemcpyFlagDefault: int#
CU_MEMCPY_FLAG_DEFAULT: int#
cudaMemcpyFlagDefault: int#
hipMemcpyFlagPreferOverlapWithCompute: int#
CU_MEMCPY_FLAG_PREFER_OVERLAP_WITH_COMPUTE: int#
cudaMemcpyFlagPreferOverlapWithCompute: int#
hipMemcpyFlagExtPreferCE: int#
hipMemcpyFlagExtOpSwap: int#
hipMemcpyFlagExtOpIndirectSrc: int#
hipMemcpyFlagExtOpIndirectDst: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemcpySrcAccessOrder_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemcpySrcAccessOrder#

Bases: enum.IntEnum

Flags to specify order in which source pointer is accessed by Batch memcpy

hipMemcpySrcAccessOrderInvalid: int#
CU_MEMCPY_SRC_ACCESS_ORDER_INVALID: int#
cudaMemcpySrcAccessOrderInvalid: int#
hipMemcpySrcAccessOrderStream: int#
CU_MEMCPY_SRC_ACCESS_ORDER_STREAM: int#
cudaMemcpySrcAccessOrderStream: int#
hipMemcpySrcAccessOrderDuringApiCall: int#
CU_MEMCPY_SRC_ACCESS_ORDER_DURING_API_CALL: int#
cudaMemcpySrcAccessOrderDuringApiCall: int#
hipMemcpySrcAccessOrderAny: int#
CU_MEMCPY_SRC_ACCESS_ORDER_ANY: int#
cudaMemcpySrcAccessOrderAny: int#
hipMemcpySrcAccessOrderMax: int#
CU_MEMCPY_SRC_ACCESS_ORDER_MAX: int#
cudaMemcpySrcAccessOrderMax: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemcpySrcAccessOrder_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemcpySrcAccessOrder_enum#

Bases: enum.IntEnum

Flags to specify order in which source pointer is accessed by Batch memcpy

hipMemcpySrcAccessOrderInvalid: int#
CU_MEMCPY_SRC_ACCESS_ORDER_INVALID: int#
cudaMemcpySrcAccessOrderInvalid: int#
hipMemcpySrcAccessOrderStream: int#
CU_MEMCPY_SRC_ACCESS_ORDER_STREAM: int#
cudaMemcpySrcAccessOrderStream: int#
hipMemcpySrcAccessOrderDuringApiCall: int#
CU_MEMCPY_SRC_ACCESS_ORDER_DURING_API_CALL: int#
cudaMemcpySrcAccessOrderDuringApiCall: int#
hipMemcpySrcAccessOrderAny: int#
CU_MEMCPY_SRC_ACCESS_ORDER_ANY: int#
cudaMemcpySrcAccessOrderAny: int#
hipMemcpySrcAccessOrderMax: int#
CU_MEMCPY_SRC_ACCESS_ORDER_MAX: int#
cudaMemcpySrcAccessOrderMax: int#
cuda.bindings.runtime.HIP_PYTHON_cudaMemcpySrcAccessOrder_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaMemcpySrcAccessOrder#

Bases: enum.IntEnum

Flags to specify order in which source pointer is accessed by Batch memcpy

hipMemcpySrcAccessOrderInvalid: int#
CU_MEMCPY_SRC_ACCESS_ORDER_INVALID: int#
cudaMemcpySrcAccessOrderInvalid: int#
hipMemcpySrcAccessOrderStream: int#
CU_MEMCPY_SRC_ACCESS_ORDER_STREAM: int#
cudaMemcpySrcAccessOrderStream: int#
hipMemcpySrcAccessOrderDuringApiCall: int#
CU_MEMCPY_SRC_ACCESS_ORDER_DURING_API_CALL: int#
cudaMemcpySrcAccessOrderDuringApiCall: int#
hipMemcpySrcAccessOrderAny: int#
CU_MEMCPY_SRC_ACCESS_ORDER_ANY: int#
cudaMemcpySrcAccessOrderAny: int#
hipMemcpySrcAccessOrderMax: int#
CU_MEMCPY_SRC_ACCESS_ORDER_MAX: int#
cudaMemcpySrcAccessOrderMax: int#
class cuda.bindings.runtime.CUmemcpyAttributes(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpyAttributes

Attributes for copies within a batch.

srcAccessOrder: Any#
srcLocHint: Any#
dstLocHint: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemcpyAttributes_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpyAttributes

Attributes for copies within a batch.

srcAccessOrder: Any#
srcLocHint: Any#
dstLocHint: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemcpyAttributes_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpyAttributes

Attributes for copies within a batch.

srcAccessOrder: Any#
srcLocHint: Any#
dstLocHint: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMemcpyAttributes(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpyAttributes

Attributes for copies within a batch.

srcAccessOrder: Any#
srcLocHint: Any#
dstLocHint: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_CUmemcpy3DOperandType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemcpy3DOperandType#

Bases: enum.IntEnum

Operand types for individual copies within a batch

hipMemcpyOperandTypePointer: int#
CU_MEMCPY_OPERAND_TYPE_POINTER: int#
cudaMemcpyOperandTypePointer: int#
hipMemcpyOperandTypeArray: int#
CU_MEMCPY_OPERAND_TYPE_ARRAY: int#
cudaMemcpyOperandTypeArray: int#
hipMemcpyOperandTypeMax: int#
CU_MEMCPY_OPERAND_TYPE_MAX: int#
cudaMemcpyOperandTypeMax: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemcpy3DOperandType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemcpy3DOperandType_enum#

Bases: enum.IntEnum

Operand types for individual copies within a batch

hipMemcpyOperandTypePointer: int#
CU_MEMCPY_OPERAND_TYPE_POINTER: int#
cudaMemcpyOperandTypePointer: int#
hipMemcpyOperandTypeArray: int#
CU_MEMCPY_OPERAND_TYPE_ARRAY: int#
cudaMemcpyOperandTypeArray: int#
hipMemcpyOperandTypeMax: int#
CU_MEMCPY_OPERAND_TYPE_MAX: int#
cudaMemcpyOperandTypeMax: int#
cuda.bindings.runtime.HIP_PYTHON_cudaMemcpy3DOperandType_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaMemcpy3DOperandType#

Bases: enum.IntEnum

Operand types for individual copies within a batch

hipMemcpyOperandTypePointer: int#
CU_MEMCPY_OPERAND_TYPE_POINTER: int#
cudaMemcpyOperandTypePointer: int#
hipMemcpyOperandTypeArray: int#
CU_MEMCPY_OPERAND_TYPE_ARRAY: int#
cudaMemcpyOperandTypeArray: int#
hipMemcpyOperandTypeMax: int#
CU_MEMCPY_OPERAND_TYPE_MAX: int#
cudaMemcpyOperandTypeMax: int#
class cuda.bindings.runtime.CUoffset3D(*args, **kwargs)#

Bases: rocm.bindings.hip.hipOffset3D

Struct representing offset into a hipArray_t in elements.

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUoffset3D_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipOffset3D

Struct representing offset into a hipArray_t in elements.

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUoffset3D_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipOffset3D

Struct representing offset into a hipArray_t in elements.

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaOffset3D(*args, **kwargs)#

Bases: rocm.bindings.hip.hipOffset3D

Struct representing offset into a hipArray_t in elements.

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemcpy3DOperand(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpy3DOperand

Struct representing an operand for copy with hipMemcpy3DBatchAsync.

type: Any#
op: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemcpy3DOperand_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpy3DOperand

Struct representing an operand for copy with hipMemcpy3DBatchAsync.

type: Any#
op: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemcpy3DOperand_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpy3DOperand

Struct representing an operand for copy with hipMemcpy3DBatchAsync.

type: Any#
op: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMemcpy3DOperand(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpy3DOperand

Struct representing an operand for copy with hipMemcpy3DBatchAsync.

type: Any#
op: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY3D_BATCH_OP(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpy3DBatchOp

HIP 3D Batch Op

src: Any#
dst: Any#
extent: Any#
srcAccessOrder: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY3D_BATCH_OP_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpy3DBatchOp

HIP 3D Batch Op

src: Any#
dst: Any#
extent: Any#
srcAccessOrder: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY3D_BATCH_OP_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpy3DBatchOp

HIP 3D Batch Op

src: Any#
dst: Any#
extent: Any#
srcAccessOrder: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMemcpy3DBatchOp(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpy3DBatchOp

HIP 3D Batch Op

src: Any#
dst: Any#
extent: Any#
srcAccessOrder: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMemcpy3DPeerParms(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpy3DPeerParms

(No short description)

srcArray: Any#
srcPos: Any#
srcPtr: Any#
srcDevice: Any#
dstArray: Any#
dstPos: Any#
dstPtr: Any#
dstDevice: Any#
extent: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_CUfunction_attribute_HALLUCINATE: Any#
class cuda.bindings.runtime.CUfunction_attribute#

Bases: enum.IntEnum

(No short description)

HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK: int#
CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK: int#
HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES: int#
CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES: int#
HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES: int#
CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES: int#
HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES: int#
CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES: int#
HIP_FUNC_ATTRIBUTE_NUM_REGS: int#
CU_FUNC_ATTRIBUTE_NUM_REGS: int#
HIP_FUNC_ATTRIBUTE_PTX_VERSION: int#
CU_FUNC_ATTRIBUTE_PTX_VERSION: int#
HIP_FUNC_ATTRIBUTE_BINARY_VERSION: int#
CU_FUNC_ATTRIBUTE_BINARY_VERSION: int#
HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA: int#
CU_FUNC_ATTRIBUTE_CACHE_MODE_CA: int#
HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES: int#
CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES: int#
HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT: int#
CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT: int#
HIP_FUNC_ATTRIBUTE_CLUSTER_DIM_MUST_BE_SET: int#
HIP_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_WIDTH: int#
HIP_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_HEIGHT: int#
HIP_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_DEPTH: int#
HIP_FUNC_ATTRIBUTE_NON_PORTABLE_CLUSTER_SIZE_ALLOWED: int#
HIP_FUNC_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE: int#
HIP_FUNC_ATTRIBUTE_MAX: int#
CU_FUNC_ATTRIBUTE_MAX: int#
cuda.bindings.runtime.HIP_PYTHON_CUfunction_attribute_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUfunction_attribute_enum#

Bases: enum.IntEnum

(No short description)

HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK: int#
CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK: int#
HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES: int#
CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES: int#
HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES: int#
CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES: int#
HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES: int#
CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES: int#
HIP_FUNC_ATTRIBUTE_NUM_REGS: int#
CU_FUNC_ATTRIBUTE_NUM_REGS: int#
HIP_FUNC_ATTRIBUTE_PTX_VERSION: int#
CU_FUNC_ATTRIBUTE_PTX_VERSION: int#
HIP_FUNC_ATTRIBUTE_BINARY_VERSION: int#
CU_FUNC_ATTRIBUTE_BINARY_VERSION: int#
HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA: int#
CU_FUNC_ATTRIBUTE_CACHE_MODE_CA: int#
HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES: int#
CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES: int#
HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT: int#
CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT: int#
HIP_FUNC_ATTRIBUTE_CLUSTER_DIM_MUST_BE_SET: int#
HIP_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_WIDTH: int#
HIP_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_HEIGHT: int#
HIP_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_DEPTH: int#
HIP_FUNC_ATTRIBUTE_NON_PORTABLE_CLUSTER_SIZE_ALLOWED: int#
HIP_FUNC_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE: int#
HIP_FUNC_ATTRIBUTE_MAX: int#
CU_FUNC_ATTRIBUTE_MAX: int#
cuda.bindings.runtime.HIP_PYTHON_CUpointer_attribute_HALLUCINATE: Any#
class cuda.bindings.runtime.CUpointer_attribute#

Bases: enum.IntEnum

(No short description)

HIP_POINTER_ATTRIBUTE_CONTEXT: int#
CU_POINTER_ATTRIBUTE_CONTEXT: int#
HIP_POINTER_ATTRIBUTE_MEMORY_TYPE: int#
CU_POINTER_ATTRIBUTE_MEMORY_TYPE: int#
HIP_POINTER_ATTRIBUTE_DEVICE_POINTER: int#
CU_POINTER_ATTRIBUTE_DEVICE_POINTER: int#
HIP_POINTER_ATTRIBUTE_HOST_POINTER: int#
CU_POINTER_ATTRIBUTE_HOST_POINTER: int#
HIP_POINTER_ATTRIBUTE_P2P_TOKENS: int#
CU_POINTER_ATTRIBUTE_P2P_TOKENS: int#
HIP_POINTER_ATTRIBUTE_SYNC_MEMOPS: int#
CU_POINTER_ATTRIBUTE_SYNC_MEMOPS: int#
HIP_POINTER_ATTRIBUTE_BUFFER_ID: int#
CU_POINTER_ATTRIBUTE_BUFFER_ID: int#
HIP_POINTER_ATTRIBUTE_IS_MANAGED: int#
CU_POINTER_ATTRIBUTE_IS_MANAGED: int#
HIP_POINTER_ATTRIBUTE_DEVICE_ORDINAL: int#
CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL: int#
HIP_POINTER_ATTRIBUTE_IS_LEGACY_HIP_IPC_CAPABLE: int#
CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE: int#
HIP_POINTER_ATTRIBUTE_RANGE_START_ADDR: int#
CU_POINTER_ATTRIBUTE_RANGE_START_ADDR: int#
HIP_POINTER_ATTRIBUTE_RANGE_SIZE: int#
CU_POINTER_ATTRIBUTE_RANGE_SIZE: int#
HIP_POINTER_ATTRIBUTE_MAPPED: int#
CU_POINTER_ATTRIBUTE_MAPPED: int#
HIP_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES: int#
CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES: int#
HIP_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE: int#
CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE: int#
HIP_POINTER_ATTRIBUTE_ACCESS_FLAGS: int#
CU_POINTER_ATTRIBUTE_ACCESS_FLAGS: int#
HIP_POINTER_ATTRIBUTE_MEMPOOL_HANDLE: int#
CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE: int#
cuda.bindings.runtime.HIP_PYTHON_CUpointer_attribute_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUpointer_attribute_enum#

Bases: enum.IntEnum

(No short description)

HIP_POINTER_ATTRIBUTE_CONTEXT: int#
CU_POINTER_ATTRIBUTE_CONTEXT: int#
HIP_POINTER_ATTRIBUTE_MEMORY_TYPE: int#
CU_POINTER_ATTRIBUTE_MEMORY_TYPE: int#
HIP_POINTER_ATTRIBUTE_DEVICE_POINTER: int#
CU_POINTER_ATTRIBUTE_DEVICE_POINTER: int#
HIP_POINTER_ATTRIBUTE_HOST_POINTER: int#
CU_POINTER_ATTRIBUTE_HOST_POINTER: int#
HIP_POINTER_ATTRIBUTE_P2P_TOKENS: int#
CU_POINTER_ATTRIBUTE_P2P_TOKENS: int#
HIP_POINTER_ATTRIBUTE_SYNC_MEMOPS: int#
CU_POINTER_ATTRIBUTE_SYNC_MEMOPS: int#
HIP_POINTER_ATTRIBUTE_BUFFER_ID: int#
CU_POINTER_ATTRIBUTE_BUFFER_ID: int#
HIP_POINTER_ATTRIBUTE_IS_MANAGED: int#
CU_POINTER_ATTRIBUTE_IS_MANAGED: int#
HIP_POINTER_ATTRIBUTE_DEVICE_ORDINAL: int#
CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL: int#
HIP_POINTER_ATTRIBUTE_IS_LEGACY_HIP_IPC_CAPABLE: int#
CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE: int#
HIP_POINTER_ATTRIBUTE_RANGE_START_ADDR: int#
CU_POINTER_ATTRIBUTE_RANGE_START_ADDR: int#
HIP_POINTER_ATTRIBUTE_RANGE_SIZE: int#
CU_POINTER_ATTRIBUTE_RANGE_SIZE: int#
HIP_POINTER_ATTRIBUTE_MAPPED: int#
CU_POINTER_ATTRIBUTE_MAPPED: int#
HIP_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES: int#
CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES: int#
HIP_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE: int#
CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE: int#
HIP_POINTER_ATTRIBUTE_ACCESS_FLAGS: int#
CU_POINTER_ATTRIBUTE_ACCESS_FLAGS: int#
HIP_POINTER_ATTRIBUTE_MEMPOOL_HANDLE: int#
CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE: int#
class cuda.bindings.runtime.uchar1(*args, **kwargs)#

Bases: rocm.bindings.hip.uchar1

(No short description)

x: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.uchar2(*args, **kwargs)#

Bases: rocm.bindings.hip.uchar2

(No short description)

x: Any#
y: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.uchar3(*args, **kwargs)#

Bases: rocm.bindings.hip.uchar3

(No short description)

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.uchar4(*args, **kwargs)#

Bases: rocm.bindings.hip.uchar4

(No short description)

x: Any#
y: Any#
z: Any#
w: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.char1(*args, **kwargs)#

Bases: rocm.bindings.hip.char1

(No short description)

x: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.char2(*args, **kwargs)#

Bases: rocm.bindings.hip.char2

(No short description)

x: Any#
y: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.char3(*args, **kwargs)#

Bases: rocm.bindings.hip.char3

(No short description)

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.char4(*args, **kwargs)#

Bases: rocm.bindings.hip.char4

(No short description)

x: Any#
y: Any#
z: Any#
w: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.ushort1(*args, **kwargs)#

Bases: rocm.bindings.hip.ushort1

(No short description)

x: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.ushort2(*args, **kwargs)#

Bases: rocm.bindings.hip.ushort2

(No short description)

x: Any#
y: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.ushort3(*args, **kwargs)#

Bases: rocm.bindings.hip.ushort3

(No short description)

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.ushort4(*args, **kwargs)#

Bases: rocm.bindings.hip.ushort4

(No short description)

x: Any#
y: Any#
z: Any#
w: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.short1(*args, **kwargs)#

Bases: rocm.bindings.hip.short1

(No short description)

x: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.short2(*args, **kwargs)#

Bases: rocm.bindings.hip.short2

(No short description)

x: Any#
y: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.short3(*args, **kwargs)#

Bases: rocm.bindings.hip.short3

(No short description)

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.short4(*args, **kwargs)#

Bases: rocm.bindings.hip.short4

(No short description)

x: Any#
y: Any#
z: Any#
w: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.uint1(*args, **kwargs)#

Bases: rocm.bindings.hip.uint1

(No short description)

x: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.uint2(*args, **kwargs)#

Bases: rocm.bindings.hip.uint2

(No short description)

x: Any#
y: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.uint3(*args, **kwargs)#

Bases: rocm.bindings.hip.uint3

(No short description)

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.uint4(*args, **kwargs)#

Bases: rocm.bindings.hip.uint4

(No short description)

x: Any#
y: Any#
z: Any#
w: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.int1(*args, **kwargs)#

Bases: rocm.bindings.hip.int1

(No short description)

x: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.int2(*args, **kwargs)#

Bases: rocm.bindings.hip.int2

(No short description)

x: Any#
y: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.int3(*args, **kwargs)#

Bases: rocm.bindings.hip.int3

(No short description)

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.int4(*args, **kwargs)#

Bases: rocm.bindings.hip.int4

(No short description)

x: Any#
y: Any#
z: Any#
w: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.ulong1(*args, **kwargs)#

Bases: rocm.bindings.hip.ulong1

(No short description)

x: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.ulong2(*args, **kwargs)#

Bases: rocm.bindings.hip.ulong2

(No short description)

x: Any#
y: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.ulong3(*args, **kwargs)#

Bases: rocm.bindings.hip.ulong3

(No short description)

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.ulong4(*args, **kwargs)#

Bases: rocm.bindings.hip.ulong4

(No short description)

x: Any#
y: Any#
z: Any#
w: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.long1(*args, **kwargs)#

Bases: rocm.bindings.hip.long1

(No short description)

x: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.long2(*args, **kwargs)#

Bases: rocm.bindings.hip.long2

(No short description)

x: Any#
y: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.long3(*args, **kwargs)#

Bases: rocm.bindings.hip.long3

(No short description)

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.long4(*args, **kwargs)#

Bases: rocm.bindings.hip.long4

(No short description)

x: Any#
y: Any#
z: Any#
w: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.ulonglong1(*args, **kwargs)#

Bases: rocm.bindings.hip.ulonglong1

(No short description)

x: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.ulonglong2(*args, **kwargs)#

Bases: rocm.bindings.hip.ulonglong2

(No short description)

x: Any#
y: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.ulonglong3(*args, **kwargs)#

Bases: rocm.bindings.hip.ulonglong3

(No short description)

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.ulonglong4(*args, **kwargs)#

Bases: rocm.bindings.hip.ulonglong4

(No short description)

x: Any#
y: Any#
z: Any#
w: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.longlong1(*args, **kwargs)#

Bases: rocm.bindings.hip.longlong1

(No short description)

x: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.longlong2(*args, **kwargs)#

Bases: rocm.bindings.hip.longlong2

(No short description)

x: Any#
y: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.longlong3(*args, **kwargs)#

Bases: rocm.bindings.hip.longlong3

(No short description)

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.longlong4(*args, **kwargs)#

Bases: rocm.bindings.hip.longlong4

(No short description)

x: Any#
y: Any#
z: Any#
w: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.float1(*args, **kwargs)#

Bases: rocm.bindings.hip.float1

(No short description)

x: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.float2(*args, **kwargs)#

Bases: rocm.bindings.hip.float2

(No short description)

x: Any#
y: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.float3(*args, **kwargs)#

Bases: rocm.bindings.hip.float3

(No short description)

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.float4(*args, **kwargs)#

Bases: rocm.bindings.hip.float4

(No short description)

x: Any#
y: Any#
z: Any#
w: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.double1(*args, **kwargs)#

Bases: rocm.bindings.hip.double1

(No short description)

x: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.double2(*args, **kwargs)#

Bases: rocm.bindings.hip.double2

(No short description)

x: Any#
y: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.double3(*args, **kwargs)#

Bases: rocm.bindings.hip.double3

(No short description)

x: Any#
y: Any#
z: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.double4(*args, **kwargs)#

Bases: rocm.bindings.hip.double4

(No short description)

x: Any#
y: Any#
z: Any#
w: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.cudaCreateChannelDesc(x, y, z, w, f)#

!__LP64__

Args:
x (int):

(undocumented)

y (int):

(undocumented)

z (int):

(undocumented)

w (int):

(undocumented)

f (hipChannelFormatKind):

(undocumented)

Returns:

A tuple of size 2 that contains (in that order):

C signature

struct hipChannelFormatDesc hipCreateChannelDesc(int x, int y, int z, int w, enum hipChannelFormatKind f)
cuda.bindings.runtime.CUtexObject: Any#
cuda.bindings.runtime.CUtexObject_v1: Any#
cuda.bindings.runtime.cudaTextureObject_t: Any#
cuda.bindings.runtime.HIP_PYTHON_cudaTextureAddressMode_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaTextureAddressMode#

Bases: enum.IntEnum

hip texture address modes

hipAddressModeWrap: int#
cudaAddressModeWrap: int#
hipAddressModeClamp: int#
cudaAddressModeClamp: int#
hipAddressModeMirror: int#
cudaAddressModeMirror: int#
hipAddressModeBorder: int#
cudaAddressModeBorder: int#
cuda.bindings.runtime.HIP_PYTHON_cudaTextureFilterMode_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaTextureFilterMode#

Bases: enum.IntEnum

hip texture filter modes

hipFilterModePoint: int#
cudaFilterModePoint: int#
hipFilterModeLinear: int#
cudaFilterModeLinear: int#
cuda.bindings.runtime.HIP_PYTHON_cudaTextureReadMode_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaTextureReadMode#

Bases: enum.IntEnum

hip texture read modes

hipReadModeElementType: int#
cudaReadModeElementType: int#
hipReadModeNormalizedFloat: int#
cudaReadModeNormalizedFloat: int#
class cuda.bindings.runtime.CUtexref_st(*args, **kwargs)#

Bases: rocm.bindings.hip.textureReference

hip texture reference

normalized: Any#
readMode: Any#
filterMode: Any#
channelDesc: Any#
sRGB: Any#
maxAnisotropy: Any#
mipmapFilterMode: Any#
mipmapLevelBias: Any#
minMipmapLevelClamp: Any#
maxMipmapLevelClamp: Any#
textureObject: Any#
numChannels: Any#
format: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.textureReference(*args, **kwargs)#

Bases: rocm.bindings.hip.textureReference

hip texture reference

normalized: Any#
readMode: Any#
filterMode: Any#
channelDesc: Any#
sRGB: Any#
maxAnisotropy: Any#
mipmapFilterMode: Any#
mipmapLevelBias: Any#
minMipmapLevelClamp: Any#
maxMipmapLevelClamp: Any#
textureObject: Any#
numChannels: Any#
format: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaTextureDesc(*args, **kwargs)#

Bases: rocm.bindings.hip.hipTextureDesc

hip texture descriptor

filterMode: Any#
readMode: Any#
sRGB: Any#
borderColor: Any#
normalizedCoords: Any#
maxAnisotropy: Any#
mipmapFilterMode: Any#
mipmapLevelBias: Any#
minMipmapLevelClamp: Any#
maxMipmapLevelClamp: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUsurfObject: Any#
cuda.bindings.runtime.CUsurfObject_v1: Any#
cuda.bindings.runtime.cudaSurfaceObject_t: Any#
class cuda.bindings.runtime.surfaceReference(*args, **kwargs)#

Bases: rocm.bindings.hip.surfaceReference

hip surface reference

surfaceObject: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_cudaSurfaceBoundaryMode_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaSurfaceBoundaryMode#

Bases: enum.IntEnum

hip surface boundary modes

hipBoundaryModeZero: int#
cudaBoundaryModeZero: int#
hipBoundaryModeTrap: int#
cudaBoundaryModeTrap: int#
hipBoundaryModeClamp: int#
cudaBoundaryModeClamp: int#
class cuda.bindings.runtime.CUctx_st(*args, **kwargs)#

Bases: rocm.bindings.hip.ihipCtx_t

(No short description)

cuda.bindings.runtime.CUcontext: Any#
cuda.bindings.runtime.HIP_PYTHON_CUdevice_P2PAttribute_HALLUCINATE: Any#
class cuda.bindings.runtime.CUdevice_P2PAttribute#

Bases: enum.IntEnum

(No short description)

hipDevP2PAttrPerformanceRank: int#
CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK: int#
cudaDevP2PAttrPerformanceRank: int#
hipDevP2PAttrAccessSupported: int#
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED: int#
cudaDevP2PAttrAccessSupported: int#
hipDevP2PAttrNativeAtomicSupported: int#
CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED: int#
cudaDevP2PAttrNativeAtomicSupported: int#
hipDevP2PAttrHipArrayAccessSupported: int#
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED: int#
CU_DEVICE_P2P_ATTRIBUTE_ARRAY_ACCESS_ACCESS_SUPPORTED: int#
CU_DEVICE_P2P_ATTRIBUTE_CUDA_ARRAY_ACCESS_SUPPORTED: int#
cudaDevP2PAttrCudaArrayAccessSupported: int#
cuda.bindings.runtime.HIP_PYTHON_CUdevice_P2PAttribute_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUdevice_P2PAttribute_enum#

Bases: enum.IntEnum

(No short description)

hipDevP2PAttrPerformanceRank: int#
CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK: int#
cudaDevP2PAttrPerformanceRank: int#
hipDevP2PAttrAccessSupported: int#
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED: int#
cudaDevP2PAttrAccessSupported: int#
hipDevP2PAttrNativeAtomicSupported: int#
CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED: int#
cudaDevP2PAttrNativeAtomicSupported: int#
hipDevP2PAttrHipArrayAccessSupported: int#
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED: int#
CU_DEVICE_P2P_ATTRIBUTE_ARRAY_ACCESS_ACCESS_SUPPORTED: int#
CU_DEVICE_P2P_ATTRIBUTE_CUDA_ARRAY_ACCESS_SUPPORTED: int#
cudaDevP2PAttrCudaArrayAccessSupported: int#
cuda.bindings.runtime.HIP_PYTHON_cudaDeviceP2PAttr_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaDeviceP2PAttr#

Bases: enum.IntEnum

(No short description)

hipDevP2PAttrPerformanceRank: int#
CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK: int#
cudaDevP2PAttrPerformanceRank: int#
hipDevP2PAttrAccessSupported: int#
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED: int#
cudaDevP2PAttrAccessSupported: int#
hipDevP2PAttrNativeAtomicSupported: int#
CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED: int#
cudaDevP2PAttrNativeAtomicSupported: int#
hipDevP2PAttrHipArrayAccessSupported: int#
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED: int#
CU_DEVICE_P2P_ATTRIBUTE_ARRAY_ACCESS_ACCESS_SUPPORTED: int#
CU_DEVICE_P2P_ATTRIBUTE_CUDA_ARRAY_ACCESS_SUPPORTED: int#
cudaDevP2PAttrCudaArrayAccessSupported: int#
cuda.bindings.runtime.HIP_PYTHON_cudaDriverEntryPointQueryResult_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaDriverEntryPointQueryResult#

Bases: enum.IntEnum

(No short description)

hipDriverEntryPointSuccess: int#
cudaDriverEntryPointSuccess: int#
hipDriverEntryPointSymbolNotFound: int#
cudaDriverEntryPointSymbolNotFound: int#
hipDriverEntryPointVersionNotSufficent: int#
cudaDriverEntryPointVersionNotSufficent: int#
class cuda.bindings.runtime.CUstream_st(*args, **kwargs)#

Bases: rocm.bindings.hip.ihipStream_t

(No short description)

cuda.bindings.runtime.CUstream: Any#
cuda.bindings.runtime.cudaStream_t: Any#
class cuda.bindings.runtime.CUipcMemHandle_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipIpcMemHandle_st

(No short description)

reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaIpcMemHandle_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipIpcMemHandle_st

(No short description)

reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUipcMemHandle: Any#
cuda.bindings.runtime.CUipcMemHandle_v1: Any#
cuda.bindings.runtime.cudaIpcMemHandle_t: Any#
class cuda.bindings.runtime.CUipcEventHandle_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipIpcEventHandle_st

(No short description)

reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaIpcEventHandle_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipIpcEventHandle_st

(No short description)

reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUipcEventHandle: Any#
cuda.bindings.runtime.CUipcEventHandle_v1: Any#
cuda.bindings.runtime.cudaIpcEventHandle_t: Any#
class cuda.bindings.runtime.CUmod_st(*args, **kwargs)#

Bases: rocm.bindings.hip.ihipModule_t

(No short description)

cuda.bindings.runtime.CUmodule: Any#
class cuda.bindings.runtime.CUfunc_st(*args, **kwargs)#

Bases: rocm.bindings.hip.ihipModuleSymbol_t

(No short description)

cuda.bindings.runtime.CUfunction: Any#
cuda.bindings.runtime.cudaFunction_t: Any#
class cuda.bindings.runtime.CUlib_st(*args, **kwargs)#

Bases: rocm.bindings.hip.ihipLibrary_t

(No short description)

cuda.bindings.runtime.CUlibrary: Any#
cuda.bindings.runtime.cudaLibrary_t: Any#
class cuda.bindings.runtime.CUkern_st(*args, **kwargs)#

Bases: rocm.bindings.hip.ihipKernel_t

(No short description)

cuda.bindings.runtime.CUkernel: Any#
cuda.bindings.runtime.cudaKernel_t: Any#
class cuda.bindings.runtime.CUmemPoolHandle_st(*args, **kwargs)#

Bases: rocm.bindings.hip.ihipMemPoolHandle_t

(No short description)

cuda.bindings.runtime.CUmemoryPool: Any#
cuda.bindings.runtime.cudaMemPool_t: Any#
class cuda.bindings.runtime.cudaFuncAttributes(*args, **kwargs)#

Bases: rocm.bindings.hip.hipFuncAttributes

(No short description)

binaryVersion: Any#
cacheModeCA: Any#
constSizeBytes: Any#
localSizeBytes: Any#
maxDynamicSharedSizeBytes: Any#
maxThreadsPerBlock: Any#
numRegs: Any#
preferredShmemCarveout: Any#
ptxVersion: Any#
sharedSizeBytes: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUevent_st(*args, **kwargs)#

Bases: rocm.bindings.hip.ihipEvent_t

(No short description)

cuda.bindings.runtime.CUevent: Any#
cuda.bindings.runtime.cudaEvent_t: Any#
cuda.bindings.runtime.HIP_PYTHON_CUlimit_HALLUCINATE: Any#
class cuda.bindings.runtime.CUlimit#

Bases: enum.IntEnum

hipLimit

Note:

In HIP device limit-related APIs, any input limit value other than those defined in the enum is treated as “UnsupportedLimit” by default.

hipLimitStackSize: int#
CU_LIMIT_STACK_SIZE: int#
cudaLimitStackSize: int#
hipLimitPrintfFifoSize: int#
CU_LIMIT_PRINTF_FIFO_SIZE: int#
cudaLimitPrintfFifoSize: int#
hipLimitMallocHeapSize: int#
CU_LIMIT_MALLOC_HEAP_SIZE: int#
cudaLimitMallocHeapSize: int#
hipExtLimitScratchMin: int#
hipExtLimitScratchMax: int#
hipExtLimitScratchCurrent: int#
hipLimitRange: int#
cuda.bindings.runtime.HIP_PYTHON_CUlimit_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUlimit_enum#

Bases: enum.IntEnum

hipLimit

Note:

In HIP device limit-related APIs, any input limit value other than those defined in the enum is treated as “UnsupportedLimit” by default.

hipLimitStackSize: int#
CU_LIMIT_STACK_SIZE: int#
cudaLimitStackSize: int#
hipLimitPrintfFifoSize: int#
CU_LIMIT_PRINTF_FIFO_SIZE: int#
cudaLimitPrintfFifoSize: int#
hipLimitMallocHeapSize: int#
CU_LIMIT_MALLOC_HEAP_SIZE: int#
cudaLimitMallocHeapSize: int#
hipExtLimitScratchMin: int#
hipExtLimitScratchMax: int#
hipExtLimitScratchCurrent: int#
hipLimitRange: int#
cuda.bindings.runtime.HIP_PYTHON_cudaLimit_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaLimit#

Bases: enum.IntEnum

hipLimit

Note:

In HIP device limit-related APIs, any input limit value other than those defined in the enum is treated as “UnsupportedLimit” by default.

hipLimitStackSize: int#
CU_LIMIT_STACK_SIZE: int#
cudaLimitStackSize: int#
hipLimitPrintfFifoSize: int#
CU_LIMIT_PRINTF_FIFO_SIZE: int#
cudaLimitPrintfFifoSize: int#
hipLimitMallocHeapSize: int#
CU_LIMIT_MALLOC_HEAP_SIZE: int#
cudaLimitMallocHeapSize: int#
hipExtLimitScratchMin: int#
hipExtLimitScratchMax: int#
hipExtLimitScratchCurrent: int#
hipLimitRange: int#
cuda.bindings.runtime.HIP_PYTHON_CUstreamBatchMemOpType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUstreamBatchMemOpType#

Bases: enum.IntEnum

Operations for hipStreamBatchMemOp

hipStreamMemOpWaitValue32: int#
CU_STREAM_MEM_OP_WAIT_VALUE_32: int#
hipStreamMemOpWriteValue32: int#
CU_STREAM_MEM_OP_WRITE_VALUE_32: int#
hipStreamMemOpWaitValue64: int#
CU_STREAM_MEM_OP_WAIT_VALUE_64: int#
hipStreamMemOpWriteValue64: int#
CU_STREAM_MEM_OP_WRITE_VALUE_64: int#
hipStreamMemOpBarrier: int#
CU_STREAM_MEM_OP_BARRIER: int#
hipStreamMemOpFlushRemoteWrites: int#
CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES: int#
cuda.bindings.runtime.HIP_PYTHON_CUstreamBatchMemOpType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUstreamBatchMemOpType_enum#

Bases: enum.IntEnum

Operations for hipStreamBatchMemOp

hipStreamMemOpWaitValue32: int#
CU_STREAM_MEM_OP_WAIT_VALUE_32: int#
hipStreamMemOpWriteValue32: int#
CU_STREAM_MEM_OP_WRITE_VALUE_32: int#
hipStreamMemOpWaitValue64: int#
CU_STREAM_MEM_OP_WAIT_VALUE_64: int#
hipStreamMemOpWriteValue64: int#
CU_STREAM_MEM_OP_WRITE_VALUE_64: int#
hipStreamMemOpBarrier: int#
CU_STREAM_MEM_OP_BARRIER: int#
hipStreamMemOpFlushRemoteWrites: int#
CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES: int#
class cuda.bindings.runtime.CUstreamBatchMemOpParams_union(*args, **kwargs)#

Bases: rocm.bindings.hip.hipStreamBatchMemOpParams_union

Union representing batch memory operation parameters for HIP streams.

hipStreamBatchMemOpParams is used to specify the parameters for batch memory operations in a HIP stream. This union supports various operations including waiting for a specific value, writing a value, and different flags for wait conditions.

The union includes fields for different types of operations defined in the enum hipStreamBatchMemOpType: - hipStreamMemOpWaitValue32: Wait for a 32-bit value. - hipStreamMemOpWriteValue32: Write a 32-bit value. - hipStreamMemOpWaitValue64: Wait for a 64-bit value. - hipStreamMemOpWriteValue64: Write a 64-bit value.

Each operation type includes an address, the value to wait for or write, flags, and an optional alias that is not relevant on AMD GPUs. Flags can be used to specify different wait conditions such as equality, bitwise AND, greater than or equal, and bitwise NOR.

Example usage:

hipStreamBatchMemOpParams myArray[2];
myArray[0].operation = hipStreamMemOpWaitValue32;
myArray[0].waitValue.address = waitAddr1;
myArray[0].waitValue.value = 0x1;
myArray[0].waitValue.flags = CU_STREAM_WAIT_VALUE_EQ;

myArray[1].operation = hipStreamMemOpWriteValue32;
myArray[1].writeValue.address = writeAddr1;
myArray[1].writeValue.value = 0x1;
myArray[1].writeValue.flags = 0x0;

result = hipStreamBatchMemOp(stream, 2, myArray, 0);
operation: Any#
waitValue: Any#
writeValue: Any#
flushRemoteWrites: Any#
memoryBarrier: Any#
pad: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUstreamBatchMemOpParams: Any#
cuda.bindings.runtime.CUstreamBatchMemOpParams_v1: Any#
class cuda.bindings.runtime.CUDA_BATCH_MEM_OP_NODE_PARAMS(*args, **kwargs)#

Bases: rocm.bindings.hip.hipBatchMemOpNodeParams

Structure representing node parameters for batch memory operations in HIP graphs.

hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.

The structure includes the following fields: - ctx: The HIP context to use for the operations. - count: The number of operations in the paramArray. - paramArray: A pointer to an array of hipStreamBatchMemOpParams. - flags: Flags to control the node.

Example usage:

hipBatchMemOpNodeParams nodeParams;
nodeParams.ctx = context;
nodeParams.count = ARRAY_SIZE;
nodeParams.paramArray = myArray;
nodeParams.flags = 0;

Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams,
hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams
ctx: Any#
count: Any#
paramArray: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_BATCH_MEM_OP_NODE_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipBatchMemOpNodeParams

Structure representing node parameters for batch memory operations in HIP graphs.

hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.

The structure includes the following fields: - ctx: The HIP context to use for the operations. - count: The number of operations in the paramArray. - paramArray: A pointer to an array of hipStreamBatchMemOpParams. - flags: Flags to control the node.

Example usage:

hipBatchMemOpNodeParams nodeParams;
nodeParams.ctx = context;
nodeParams.count = ARRAY_SIZE;
nodeParams.paramArray = myArray;
nodeParams.flags = 0;

Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams,
hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams
ctx: Any#
count: Any#
paramArray: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_BATCH_MEM_OP_NODE_PARAMS_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipBatchMemOpNodeParams

Structure representing node parameters for batch memory operations in HIP graphs.

hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.

The structure includes the following fields: - ctx: The HIP context to use for the operations. - count: The number of operations in the paramArray. - paramArray: A pointer to an array of hipStreamBatchMemOpParams. - flags: Flags to control the node.

Example usage:

hipBatchMemOpNodeParams nodeParams;
nodeParams.ctx = context;
nodeParams.count = ARRAY_SIZE;
nodeParams.paramArray = myArray;
nodeParams.flags = 0;

Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams,
hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams
ctx: Any#
count: Any#
paramArray: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipBatchMemOpNodeParams

Structure representing node parameters for batch memory operations in HIP graphs.

hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.

The structure includes the following fields: - ctx: The HIP context to use for the operations. - count: The number of operations in the paramArray. - paramArray: A pointer to an array of hipStreamBatchMemOpParams. - flags: Flags to control the node.

Example usage:

hipBatchMemOpNodeParams nodeParams;
nodeParams.ctx = context;
nodeParams.count = ARRAY_SIZE;
nodeParams.paramArray = myArray;
nodeParams.flags = 0;

Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams,
hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams
ctx: Any#
count: Any#
paramArray: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_BATCH_MEM_OP_NODE_PARAMS_v2(*args, **kwargs)#

Bases: rocm.bindings.hip.hipBatchMemOpNodeParams

Structure representing node parameters for batch memory operations in HIP graphs.

hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.

The structure includes the following fields: - ctx: The HIP context to use for the operations. - count: The number of operations in the paramArray. - paramArray: A pointer to an array of hipStreamBatchMemOpParams. - flags: Flags to control the node.

Example usage:

hipBatchMemOpNodeParams nodeParams;
nodeParams.ctx = context;
nodeParams.count = ARRAY_SIZE;
nodeParams.paramArray = myArray;
nodeParams.flags = 0;

Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams,
hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams
ctx: Any#
count: Any#
paramArray: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipBatchMemOpNodeParams

Structure representing node parameters for batch memory operations in HIP graphs.

hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.

The structure includes the following fields: - ctx: The HIP context to use for the operations. - count: The number of operations in the paramArray. - paramArray: A pointer to an array of hipStreamBatchMemOpParams. - flags: Flags to control the node.

Example usage:

hipBatchMemOpNodeParams nodeParams;
nodeParams.ctx = context;
nodeParams.count = ARRAY_SIZE;
nodeParams.paramArray = myArray;
nodeParams.flags = 0;

Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams,
hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams
ctx: Any#
count: Any#
paramArray: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_CUmem_advise_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmem_advise#

Bases: enum.IntEnum

HIP Memory Advise values

Note:

This memory advise enumeration is used on Linux, not Windows.

hipMemAdviseSetReadMostly: int#
CU_MEM_ADVISE_SET_READ_MOSTLY: int#
cudaMemAdviseSetReadMostly: int#
hipMemAdviseUnsetReadMostly: int#
CU_MEM_ADVISE_UNSET_READ_MOSTLY: int#
cudaMemAdviseUnsetReadMostly: int#
hipMemAdviseSetPreferredLocation: int#
CU_MEM_ADVISE_SET_PREFERRED_LOCATION: int#
cudaMemAdviseSetPreferredLocation: int#
hipMemAdviseUnsetPreferredLocation: int#
CU_MEM_ADVISE_UNSET_PREFERRED_LOCATION: int#
cudaMemAdviseUnsetPreferredLocation: int#
hipMemAdviseSetAccessedBy: int#
CU_MEM_ADVISE_SET_ACCESSED_BY: int#
cudaMemAdviseSetAccessedBy: int#
hipMemAdviseUnsetAccessedBy: int#
CU_MEM_ADVISE_UNSET_ACCESSED_BY: int#
cudaMemAdviseUnsetAccessedBy: int#
hipMemAdviseSetCoarseGrain: int#
hipMemAdviseUnsetCoarseGrain: int#
cuda.bindings.runtime.HIP_PYTHON_CUmem_advise_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmem_advise_enum#

Bases: enum.IntEnum

HIP Memory Advise values

Note:

This memory advise enumeration is used on Linux, not Windows.

hipMemAdviseSetReadMostly: int#
CU_MEM_ADVISE_SET_READ_MOSTLY: int#
cudaMemAdviseSetReadMostly: int#
hipMemAdviseUnsetReadMostly: int#
CU_MEM_ADVISE_UNSET_READ_MOSTLY: int#
cudaMemAdviseUnsetReadMostly: int#
hipMemAdviseSetPreferredLocation: int#
CU_MEM_ADVISE_SET_PREFERRED_LOCATION: int#
cudaMemAdviseSetPreferredLocation: int#
hipMemAdviseUnsetPreferredLocation: int#
CU_MEM_ADVISE_UNSET_PREFERRED_LOCATION: int#
cudaMemAdviseUnsetPreferredLocation: int#
hipMemAdviseSetAccessedBy: int#
CU_MEM_ADVISE_SET_ACCESSED_BY: int#
cudaMemAdviseSetAccessedBy: int#
hipMemAdviseUnsetAccessedBy: int#
CU_MEM_ADVISE_UNSET_ACCESSED_BY: int#
cudaMemAdviseUnsetAccessedBy: int#
hipMemAdviseSetCoarseGrain: int#
hipMemAdviseUnsetCoarseGrain: int#
cuda.bindings.runtime.HIP_PYTHON_cudaMemoryAdvise_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaMemoryAdvise#

Bases: enum.IntEnum

HIP Memory Advise values

Note:

This memory advise enumeration is used on Linux, not Windows.

hipMemAdviseSetReadMostly: int#
CU_MEM_ADVISE_SET_READ_MOSTLY: int#
cudaMemAdviseSetReadMostly: int#
hipMemAdviseUnsetReadMostly: int#
CU_MEM_ADVISE_UNSET_READ_MOSTLY: int#
cudaMemAdviseUnsetReadMostly: int#
hipMemAdviseSetPreferredLocation: int#
CU_MEM_ADVISE_SET_PREFERRED_LOCATION: int#
cudaMemAdviseSetPreferredLocation: int#
hipMemAdviseUnsetPreferredLocation: int#
CU_MEM_ADVISE_UNSET_PREFERRED_LOCATION: int#
cudaMemAdviseUnsetPreferredLocation: int#
hipMemAdviseSetAccessedBy: int#
CU_MEM_ADVISE_SET_ACCESSED_BY: int#
cudaMemAdviseSetAccessedBy: int#
hipMemAdviseUnsetAccessedBy: int#
CU_MEM_ADVISE_UNSET_ACCESSED_BY: int#
cudaMemAdviseUnsetAccessedBy: int#
hipMemAdviseSetCoarseGrain: int#
hipMemAdviseUnsetCoarseGrain: int#
cuda.bindings.runtime.HIP_PYTHON_CUmem_range_attribute_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmem_range_attribute#

Bases: enum.IntEnum

HIP range attributes

hipMemRangeAttributeReadMostly: int#
CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY: int#
cudaMemRangeAttributeReadMostly: int#
hipMemRangeAttributePreferredLocation: int#
CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION: int#
cudaMemRangeAttributePreferredLocation: int#
hipMemRangeAttributeAccessedBy: int#
CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY: int#
cudaMemRangeAttributeAccessedBy: int#
hipMemRangeAttributeLastPrefetchLocation: int#
CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION: int#
cudaMemRangeAttributeLastPrefetchLocation: int#
hipMemRangeAttributeCoherencyMode: int#
cuda.bindings.runtime.HIP_PYTHON_CUmem_range_attribute_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmem_range_attribute_enum#

Bases: enum.IntEnum

HIP range attributes

hipMemRangeAttributeReadMostly: int#
CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY: int#
cudaMemRangeAttributeReadMostly: int#
hipMemRangeAttributePreferredLocation: int#
CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION: int#
cudaMemRangeAttributePreferredLocation: int#
hipMemRangeAttributeAccessedBy: int#
CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY: int#
cudaMemRangeAttributeAccessedBy: int#
hipMemRangeAttributeLastPrefetchLocation: int#
CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION: int#
cudaMemRangeAttributeLastPrefetchLocation: int#
hipMemRangeAttributeCoherencyMode: int#
cuda.bindings.runtime.HIP_PYTHON_cudaMemRangeAttribute_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaMemRangeAttribute#

Bases: enum.IntEnum

HIP range attributes

hipMemRangeAttributeReadMostly: int#
CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY: int#
cudaMemRangeAttributeReadMostly: int#
hipMemRangeAttributePreferredLocation: int#
CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION: int#
cudaMemRangeAttributePreferredLocation: int#
hipMemRangeAttributeAccessedBy: int#
CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY: int#
cudaMemRangeAttributeAccessedBy: int#
hipMemRangeAttributeLastPrefetchLocation: int#
CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION: int#
cudaMemRangeAttributeLastPrefetchLocation: int#
hipMemRangeAttributeCoherencyMode: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemPool_attribute_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemPool_attribute#

Bases: enum.IntEnum

HIP memory pool attributes

hipMemPoolReuseFollowEventDependencies: int#
CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES: int#
cudaMemPoolReuseFollowEventDependencies: int#
hipMemPoolReuseAllowOpportunistic: int#
CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC: int#
cudaMemPoolReuseAllowOpportunistic: int#
hipMemPoolReuseAllowInternalDependencies: int#
CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES: int#
cudaMemPoolReuseAllowInternalDependencies: int#
hipMemPoolAttrReleaseThreshold: int#
CU_MEMPOOL_ATTR_RELEASE_THRESHOLD: int#
cudaMemPoolAttrReleaseThreshold: int#
hipMemPoolAttrReservedMemCurrent: int#
CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT: int#
cudaMemPoolAttrReservedMemCurrent: int#
hipMemPoolAttrReservedMemHigh: int#
CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH: int#
cudaMemPoolAttrReservedMemHigh: int#
hipMemPoolAttrUsedMemCurrent: int#
CU_MEMPOOL_ATTR_USED_MEM_CURRENT: int#
cudaMemPoolAttrUsedMemCurrent: int#
hipMemPoolAttrUsedMemHigh: int#
CU_MEMPOOL_ATTR_USED_MEM_HIGH: int#
cudaMemPoolAttrUsedMemHigh: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemPool_attribute_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemPool_attribute_enum#

Bases: enum.IntEnum

HIP memory pool attributes

hipMemPoolReuseFollowEventDependencies: int#
CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES: int#
cudaMemPoolReuseFollowEventDependencies: int#
hipMemPoolReuseAllowOpportunistic: int#
CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC: int#
cudaMemPoolReuseAllowOpportunistic: int#
hipMemPoolReuseAllowInternalDependencies: int#
CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES: int#
cudaMemPoolReuseAllowInternalDependencies: int#
hipMemPoolAttrReleaseThreshold: int#
CU_MEMPOOL_ATTR_RELEASE_THRESHOLD: int#
cudaMemPoolAttrReleaseThreshold: int#
hipMemPoolAttrReservedMemCurrent: int#
CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT: int#
cudaMemPoolAttrReservedMemCurrent: int#
hipMemPoolAttrReservedMemHigh: int#
CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH: int#
cudaMemPoolAttrReservedMemHigh: int#
hipMemPoolAttrUsedMemCurrent: int#
CU_MEMPOOL_ATTR_USED_MEM_CURRENT: int#
cudaMemPoolAttrUsedMemCurrent: int#
hipMemPoolAttrUsedMemHigh: int#
CU_MEMPOOL_ATTR_USED_MEM_HIGH: int#
cudaMemPoolAttrUsedMemHigh: int#
cuda.bindings.runtime.HIP_PYTHON_cudaMemPoolAttr_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaMemPoolAttr#

Bases: enum.IntEnum

HIP memory pool attributes

hipMemPoolReuseFollowEventDependencies: int#
CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES: int#
cudaMemPoolReuseFollowEventDependencies: int#
hipMemPoolReuseAllowOpportunistic: int#
CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC: int#
cudaMemPoolReuseAllowOpportunistic: int#
hipMemPoolReuseAllowInternalDependencies: int#
CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES: int#
cudaMemPoolReuseAllowInternalDependencies: int#
hipMemPoolAttrReleaseThreshold: int#
CU_MEMPOOL_ATTR_RELEASE_THRESHOLD: int#
cudaMemPoolAttrReleaseThreshold: int#
hipMemPoolAttrReservedMemCurrent: int#
CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT: int#
cudaMemPoolAttrReservedMemCurrent: int#
hipMemPoolAttrReservedMemHigh: int#
CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH: int#
cudaMemPoolAttrReservedMemHigh: int#
hipMemPoolAttrUsedMemCurrent: int#
CU_MEMPOOL_ATTR_USED_MEM_CURRENT: int#
cudaMemPoolAttrUsedMemCurrent: int#
hipMemPoolAttrUsedMemHigh: int#
CU_MEMPOOL_ATTR_USED_MEM_HIGH: int#
cudaMemPoolAttrUsedMemHigh: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemAccess_flags_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemAccess_flags#

Bases: enum.IntEnum

Specifies the memory protection flags for mapping

hipMemAccessFlagsProtNone: int#
CU_MEM_ACCESS_FLAGS_PROT_NONE: int#
cudaMemAccessFlagsProtNone: int#
hipMemAccessFlagsProtRead: int#
CU_MEM_ACCESS_FLAGS_PROT_READ: int#
cudaMemAccessFlagsProtRead: int#
hipMemAccessFlagsProtReadWrite: int#
CU_MEM_ACCESS_FLAGS_PROT_READWRITE: int#
cudaMemAccessFlagsProtReadWrite: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemAccess_flags_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemAccess_flags_enum#

Bases: enum.IntEnum

Specifies the memory protection flags for mapping

hipMemAccessFlagsProtNone: int#
CU_MEM_ACCESS_FLAGS_PROT_NONE: int#
cudaMemAccessFlagsProtNone: int#
hipMemAccessFlagsProtRead: int#
CU_MEM_ACCESS_FLAGS_PROT_READ: int#
cudaMemAccessFlagsProtRead: int#
hipMemAccessFlagsProtReadWrite: int#
CU_MEM_ACCESS_FLAGS_PROT_READWRITE: int#
cudaMemAccessFlagsProtReadWrite: int#
cuda.bindings.runtime.HIP_PYTHON_cudaMemAccessFlags_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaMemAccessFlags#

Bases: enum.IntEnum

Specifies the memory protection flags for mapping

hipMemAccessFlagsProtNone: int#
CU_MEM_ACCESS_FLAGS_PROT_NONE: int#
cudaMemAccessFlagsProtNone: int#
hipMemAccessFlagsProtRead: int#
CU_MEM_ACCESS_FLAGS_PROT_READ: int#
cudaMemAccessFlagsProtRead: int#
hipMemAccessFlagsProtReadWrite: int#
CU_MEM_ACCESS_FLAGS_PROT_READWRITE: int#
cudaMemAccessFlagsProtReadWrite: int#
class cuda.bindings.runtime.CUmemAccessDesc(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemAccessDesc

Memory access descriptor structure is used to specify memory access permissions for a virtual memory region in Virtual Memory Management API.

This structure changes read, and write permissions for specific memory regions.

location: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemAccessDesc_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemAccessDesc

Memory access descriptor structure is used to specify memory access permissions for a virtual memory region in Virtual Memory Management API.

This structure changes read, and write permissions for specific memory regions.

location: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemAccessDesc_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemAccessDesc

Memory access descriptor structure is used to specify memory access permissions for a virtual memory region in Virtual Memory Management API.

This structure changes read, and write permissions for specific memory regions.

location: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMemAccessDesc(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemAccessDesc

Memory access descriptor structure is used to specify memory access permissions for a virtual memory region in Virtual Memory Management API.

This structure changes read, and write permissions for specific memory regions.

location: Any#
flags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_CUmemAllocationType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemAllocationType#

Bases: enum.IntEnum

Defines the allocation types

hipMemAllocationTypeInvalid: int#
CU_MEM_ALLOCATION_TYPE_INVALID: int#
cudaMemAllocationTypeInvalid: int#
hipMemAllocationTypePinned: int#
CU_MEM_ALLOCATION_TYPE_PINNED: int#
cudaMemAllocationTypePinned: int#
hipMemAllocationTypeManaged: int#
hipMemAllocationTypeUncached: int#
hipMemAllocationTypeMax: int#
CU_MEM_ALLOCATION_TYPE_MAX: int#
cudaMemAllocationTypeMax: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemAllocationType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemAllocationType_enum#

Bases: enum.IntEnum

Defines the allocation types

hipMemAllocationTypeInvalid: int#
CU_MEM_ALLOCATION_TYPE_INVALID: int#
cudaMemAllocationTypeInvalid: int#
hipMemAllocationTypePinned: int#
CU_MEM_ALLOCATION_TYPE_PINNED: int#
cudaMemAllocationTypePinned: int#
hipMemAllocationTypeManaged: int#
hipMemAllocationTypeUncached: int#
hipMemAllocationTypeMax: int#
CU_MEM_ALLOCATION_TYPE_MAX: int#
cudaMemAllocationTypeMax: int#
cuda.bindings.runtime.HIP_PYTHON_cudaMemAllocationType_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaMemAllocationType#

Bases: enum.IntEnum

Defines the allocation types

hipMemAllocationTypeInvalid: int#
CU_MEM_ALLOCATION_TYPE_INVALID: int#
cudaMemAllocationTypeInvalid: int#
hipMemAllocationTypePinned: int#
CU_MEM_ALLOCATION_TYPE_PINNED: int#
cudaMemAllocationTypePinned: int#
hipMemAllocationTypeManaged: int#
hipMemAllocationTypeUncached: int#
hipMemAllocationTypeMax: int#
CU_MEM_ALLOCATION_TYPE_MAX: int#
cudaMemAllocationTypeMax: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemAllocationHandleType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemAllocationHandleType#

Bases: enum.IntEnum

Flags for specifying handle types for memory pool allocations

hipMemHandleTypeNone: int#
CU_MEM_HANDLE_TYPE_NONE: int#
cudaMemHandleTypeNone: int#
hipMemHandleTypePosixFileDescriptor: int#
CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR: int#
cudaMemHandleTypePosixFileDescriptor: int#
hipMemHandleTypeWin32: int#
CU_MEM_HANDLE_TYPE_WIN32: int#
cudaMemHandleTypeWin32: int#
hipMemHandleTypeWin32Kmt: int#
CU_MEM_HANDLE_TYPE_WIN32_KMT: int#
cudaMemHandleTypeWin32Kmt: int#
hipMemHandleTypeFabric: int#
CU_MEM_HANDLE_TYPE_FABRIC: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemAllocationHandleType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemAllocationHandleType_enum#

Bases: enum.IntEnum

Flags for specifying handle types for memory pool allocations

hipMemHandleTypeNone: int#
CU_MEM_HANDLE_TYPE_NONE: int#
cudaMemHandleTypeNone: int#
hipMemHandleTypePosixFileDescriptor: int#
CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR: int#
cudaMemHandleTypePosixFileDescriptor: int#
hipMemHandleTypeWin32: int#
CU_MEM_HANDLE_TYPE_WIN32: int#
cudaMemHandleTypeWin32: int#
hipMemHandleTypeWin32Kmt: int#
CU_MEM_HANDLE_TYPE_WIN32_KMT: int#
cudaMemHandleTypeWin32Kmt: int#
hipMemHandleTypeFabric: int#
CU_MEM_HANDLE_TYPE_FABRIC: int#
cuda.bindings.runtime.HIP_PYTHON_cudaMemAllocationHandleType_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaMemAllocationHandleType#

Bases: enum.IntEnum

Flags for specifying handle types for memory pool allocations

hipMemHandleTypeNone: int#
CU_MEM_HANDLE_TYPE_NONE: int#
cudaMemHandleTypeNone: int#
hipMemHandleTypePosixFileDescriptor: int#
CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR: int#
cudaMemHandleTypePosixFileDescriptor: int#
hipMemHandleTypeWin32: int#
CU_MEM_HANDLE_TYPE_WIN32: int#
cudaMemHandleTypeWin32: int#
hipMemHandleTypeWin32Kmt: int#
CU_MEM_HANDLE_TYPE_WIN32_KMT: int#
cudaMemHandleTypeWin32Kmt: int#
hipMemHandleTypeFabric: int#
CU_MEM_HANDLE_TYPE_FABRIC: int#
class cuda.bindings.runtime.CUmemPoolProps(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemPoolProps

Specifies the properties of allocations made from the pool.

allocType: Any#
handleTypes: Any#
location: Any#
win32SecurityAttributes: Any#
maxSize: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemPoolProps_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemPoolProps

Specifies the properties of allocations made from the pool.

allocType: Any#
handleTypes: Any#
location: Any#
win32SecurityAttributes: Any#
maxSize: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemPoolProps_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemPoolProps

Specifies the properties of allocations made from the pool.

allocType: Any#
handleTypes: Any#
location: Any#
win32SecurityAttributes: Any#
maxSize: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMemPoolProps(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemPoolProps

Specifies the properties of allocations made from the pool.

allocType: Any#
handleTypes: Any#
location: Any#
win32SecurityAttributes: Any#
maxSize: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemPoolPtrExportData(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemPoolPtrExportData

Opaque data structure for exporting a pool allocation

reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemPoolPtrExportData_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemPoolPtrExportData

Opaque data structure for exporting a pool allocation

reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemPoolPtrExportData_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemPoolPtrExportData

Opaque data structure for exporting a pool allocation

reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMemPoolPtrExportData(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemPoolPtrExportData

Opaque data structure for exporting a pool allocation

reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_cudaFuncAttribute_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaFuncAttribute#

Bases: enum.IntEnum

On AMD devices and some Nvidia devices, these hints and controls are ignored.

Warning:

hipFuncAttributeMaxDynamicSharedMemorySize: int#
cudaFuncAttributeMaxDynamicSharedMemorySize: int#
hipFuncAttributePreferredSharedMemoryCarveout: int#
cudaFuncAttributePreferredSharedMemoryCarveout: int#
hipFuncAttributeClusterDimMustBeSet: int#
hipFuncAttributeRequiredClusterWidth: int#
hipFuncAttributeRequiredClusterHeight: int#
hipFuncAttributeRequiredClusterDepth: int#
hipFuncAttributeNonPortableClusterSizeAllowed: int#
hipFuncAttributeClusterSchedulingPolicyPreference: int#
hipFuncAttributeMax: int#
cudaFuncAttributeMax: int#
cuda.bindings.runtime.HIP_PYTHON_CUfunc_cache_HALLUCINATE: Any#
class cuda.bindings.runtime.CUfunc_cache#

Bases: enum.IntEnum

On AMD devices and some Nvidia devices, these hints and controls are ignored.

Warning:

hipFuncCachePreferNone: int#
CU_FUNC_CACHE_PREFER_NONE: int#
cudaFuncCachePreferNone: int#
hipFuncCachePreferShared: int#
CU_FUNC_CACHE_PREFER_SHARED: int#
cudaFuncCachePreferShared: int#
hipFuncCachePreferL1: int#
CU_FUNC_CACHE_PREFER_L1: int#
cudaFuncCachePreferL1: int#
hipFuncCachePreferEqual: int#
CU_FUNC_CACHE_PREFER_EQUAL: int#
cudaFuncCachePreferEqual: int#
cuda.bindings.runtime.HIP_PYTHON_CUfunc_cache_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUfunc_cache_enum#

Bases: enum.IntEnum

On AMD devices and some Nvidia devices, these hints and controls are ignored.

Warning:

hipFuncCachePreferNone: int#
CU_FUNC_CACHE_PREFER_NONE: int#
cudaFuncCachePreferNone: int#
hipFuncCachePreferShared: int#
CU_FUNC_CACHE_PREFER_SHARED: int#
cudaFuncCachePreferShared: int#
hipFuncCachePreferL1: int#
CU_FUNC_CACHE_PREFER_L1: int#
cudaFuncCachePreferL1: int#
hipFuncCachePreferEqual: int#
CU_FUNC_CACHE_PREFER_EQUAL: int#
cudaFuncCachePreferEqual: int#
cuda.bindings.runtime.HIP_PYTHON_cudaFuncCache_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaFuncCache#

Bases: enum.IntEnum

On AMD devices and some Nvidia devices, these hints and controls are ignored.

Warning:

hipFuncCachePreferNone: int#
CU_FUNC_CACHE_PREFER_NONE: int#
cudaFuncCachePreferNone: int#
hipFuncCachePreferShared: int#
CU_FUNC_CACHE_PREFER_SHARED: int#
cudaFuncCachePreferShared: int#
hipFuncCachePreferL1: int#
CU_FUNC_CACHE_PREFER_L1: int#
cudaFuncCachePreferL1: int#
hipFuncCachePreferEqual: int#
CU_FUNC_CACHE_PREFER_EQUAL: int#
cudaFuncCachePreferEqual: int#
cuda.bindings.runtime.HIP_PYTHON_CUsharedconfig_HALLUCINATE: Any#
class cuda.bindings.runtime.CUsharedconfig#

Bases: enum.IntEnum

On AMD devices and some Nvidia devices, these hints and controls are ignored.

Warning:

hipSharedMemBankSizeDefault: int#
CU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE: int#
cudaSharedMemBankSizeDefault: int#
hipSharedMemBankSizeFourByte: int#
CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE: int#
cudaSharedMemBankSizeFourByte: int#
hipSharedMemBankSizeEightByte: int#
CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE: int#
cudaSharedMemBankSizeEightByte: int#
cuda.bindings.runtime.HIP_PYTHON_CUsharedconfig_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUsharedconfig_enum#

Bases: enum.IntEnum

On AMD devices and some Nvidia devices, these hints and controls are ignored.

Warning:

hipSharedMemBankSizeDefault: int#
CU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE: int#
cudaSharedMemBankSizeDefault: int#
hipSharedMemBankSizeFourByte: int#
CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE: int#
cudaSharedMemBankSizeFourByte: int#
hipSharedMemBankSizeEightByte: int#
CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE: int#
cudaSharedMemBankSizeEightByte: int#
cuda.bindings.runtime.HIP_PYTHON_cudaSharedMemConfig_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaSharedMemConfig#

Bases: enum.IntEnum

On AMD devices and some Nvidia devices, these hints and controls are ignored.

Warning:

hipSharedMemBankSizeDefault: int#
CU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE: int#
cudaSharedMemBankSizeDefault: int#
hipSharedMemBankSizeFourByte: int#
CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE: int#
cudaSharedMemBankSizeFourByte: int#
hipSharedMemBankSizeEightByte: int#
CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE: int#
cudaSharedMemBankSizeEightByte: int#
cuda.bindings.runtime.cudaLaunchParams: Any#
class cuda.bindings.runtime.CUDA_LAUNCH_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipFunctionLaunchParams_t

struct hipFunctionLaunchParams_t

function: Any#
gridDimX: Any#
gridDimY: Any#
gridDimZ: Any#
blockDimX: Any#
blockDimY: Any#
blockDimZ: Any#
sharedMemBytes: Any#
hStream: Any#
kernelParams: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUDA_LAUNCH_PARAMS: Any#
cuda.bindings.runtime.CUDA_LAUNCH_PARAMS_v1: Any#
cuda.bindings.runtime.HIP_PYTHON_CUexternalMemoryHandleType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUexternalMemoryHandleType_enum#

Bases: enum.IntEnum

(No short description)

hipExternalMemoryHandleTypeOpaqueFd: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD: int#
cudaExternalMemoryHandleTypeOpaqueFd: int#
hipExternalMemoryHandleTypeOpaqueWin32: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32: int#
cudaExternalMemoryHandleTypeOpaqueWin32: int#
hipExternalMemoryHandleTypeOpaqueWin32Kmt: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT: int#
cudaExternalMemoryHandleTypeOpaqueWin32Kmt: int#
hipExternalMemoryHandleTypeD3D12Heap: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP: int#
cudaExternalMemoryHandleTypeD3D12Heap: int#
hipExternalMemoryHandleTypeD3D12Resource: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE: int#
cudaExternalMemoryHandleTypeD3D12Resource: int#
hipExternalMemoryHandleTypeD3D11Resource: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE: int#
cudaExternalMemoryHandleTypeD3D11Resource: int#
hipExternalMemoryHandleTypeD3D11ResourceKmt: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE_KMT: int#
cudaExternalMemoryHandleTypeD3D11ResourceKmt: int#
hipExternalMemoryHandleTypeNvSciBuf: int#
cuda.bindings.runtime.HIP_PYTHON_CUexternalMemoryHandleType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUexternalMemoryHandleType#

Bases: enum.IntEnum

(No short description)

hipExternalMemoryHandleTypeOpaqueFd: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD: int#
cudaExternalMemoryHandleTypeOpaqueFd: int#
hipExternalMemoryHandleTypeOpaqueWin32: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32: int#
cudaExternalMemoryHandleTypeOpaqueWin32: int#
hipExternalMemoryHandleTypeOpaqueWin32Kmt: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT: int#
cudaExternalMemoryHandleTypeOpaqueWin32Kmt: int#
hipExternalMemoryHandleTypeD3D12Heap: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP: int#
cudaExternalMemoryHandleTypeD3D12Heap: int#
hipExternalMemoryHandleTypeD3D12Resource: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE: int#
cudaExternalMemoryHandleTypeD3D12Resource: int#
hipExternalMemoryHandleTypeD3D11Resource: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE: int#
cudaExternalMemoryHandleTypeD3D11Resource: int#
hipExternalMemoryHandleTypeD3D11ResourceKmt: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE_KMT: int#
cudaExternalMemoryHandleTypeD3D11ResourceKmt: int#
hipExternalMemoryHandleTypeNvSciBuf: int#
cuda.bindings.runtime.HIP_PYTHON_cudaExternalMemoryHandleType_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaExternalMemoryHandleType#

Bases: enum.IntEnum

(No short description)

hipExternalMemoryHandleTypeOpaqueFd: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD: int#
cudaExternalMemoryHandleTypeOpaqueFd: int#
hipExternalMemoryHandleTypeOpaqueWin32: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32: int#
cudaExternalMemoryHandleTypeOpaqueWin32: int#
hipExternalMemoryHandleTypeOpaqueWin32Kmt: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT: int#
cudaExternalMemoryHandleTypeOpaqueWin32Kmt: int#
hipExternalMemoryHandleTypeD3D12Heap: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP: int#
cudaExternalMemoryHandleTypeD3D12Heap: int#
hipExternalMemoryHandleTypeD3D12Resource: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE: int#
cudaExternalMemoryHandleTypeD3D12Resource: int#
hipExternalMemoryHandleTypeD3D11Resource: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE: int#
cudaExternalMemoryHandleTypeD3D11Resource: int#
hipExternalMemoryHandleTypeD3D11ResourceKmt: int#
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE_KMT: int#
cudaExternalMemoryHandleTypeD3D11ResourceKmt: int#
hipExternalMemoryHandleTypeNvSciBuf: int#
class cuda.bindings.runtime.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalMemoryHandleDesc_st

(No short description)

type: Any#
handle: Any#
size: Any#
flags: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUDA_EXTERNAL_MEMORY_HANDLE_DESC: Any#
cuda.bindings.runtime.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1: Any#
cuda.bindings.runtime.cudaExternalMemoryHandleDesc: Any#
class cuda.bindings.runtime.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalMemoryBufferDesc_st

(No short description)

offset: Any#
size: Any#
flags: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUDA_EXTERNAL_MEMORY_BUFFER_DESC: Any#
cuda.bindings.runtime.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1: Any#
cuda.bindings.runtime.cudaExternalMemoryBufferDesc: Any#
cuda.bindings.runtime.CUexternalMemory: Any#
cuda.bindings.runtime.cudaExternalMemory_t: Any#
cuda.bindings.runtime.HIP_PYTHON_CUexternalSemaphoreHandleType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUexternalSemaphoreHandleType_enum#

Bases: enum.IntEnum

(No short description)

hipExternalSemaphoreHandleTypeOpaqueFd: int#
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD: int#
cudaExternalSemaphoreHandleTypeOpaqueFd: int#
hipExternalSemaphoreHandleTypeOpaqueWin32: int#
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32: int#
cudaExternalSemaphoreHandleTypeOpaqueWin32: int#
hipExternalSemaphoreHandleTypeOpaqueWin32Kmt: int#
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT: int#
cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt: int#
hipExternalSemaphoreHandleTypeD3D12Fence: int#
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE: int#
cudaExternalSemaphoreHandleTypeD3D12Fence: int#
hipExternalSemaphoreHandleTypeD3D11Fence: int#
hipExternalSemaphoreHandleTypeNvSciSync: int#
hipExternalSemaphoreHandleTypeKeyedMutex: int#
hipExternalSemaphoreHandleTypeKeyedMutexKmt: int#
hipExternalSemaphoreHandleTypeTimelineSemaphoreFd: int#
hipExternalSemaphoreHandleTypeTimelineSemaphoreWin32: int#
cuda.bindings.runtime.HIP_PYTHON_CUexternalSemaphoreHandleType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUexternalSemaphoreHandleType#

Bases: enum.IntEnum

(No short description)

hipExternalSemaphoreHandleTypeOpaqueFd: int#
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD: int#
cudaExternalSemaphoreHandleTypeOpaqueFd: int#
hipExternalSemaphoreHandleTypeOpaqueWin32: int#
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32: int#
cudaExternalSemaphoreHandleTypeOpaqueWin32: int#
hipExternalSemaphoreHandleTypeOpaqueWin32Kmt: int#
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT: int#
cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt: int#
hipExternalSemaphoreHandleTypeD3D12Fence: int#
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE: int#
cudaExternalSemaphoreHandleTypeD3D12Fence: int#
hipExternalSemaphoreHandleTypeD3D11Fence: int#
hipExternalSemaphoreHandleTypeNvSciSync: int#
hipExternalSemaphoreHandleTypeKeyedMutex: int#
hipExternalSemaphoreHandleTypeKeyedMutexKmt: int#
hipExternalSemaphoreHandleTypeTimelineSemaphoreFd: int#
hipExternalSemaphoreHandleTypeTimelineSemaphoreWin32: int#
cuda.bindings.runtime.HIP_PYTHON_cudaExternalSemaphoreHandleType_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaExternalSemaphoreHandleType#

Bases: enum.IntEnum

(No short description)

hipExternalSemaphoreHandleTypeOpaqueFd: int#
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD: int#
cudaExternalSemaphoreHandleTypeOpaqueFd: int#
hipExternalSemaphoreHandleTypeOpaqueWin32: int#
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32: int#
cudaExternalSemaphoreHandleTypeOpaqueWin32: int#
hipExternalSemaphoreHandleTypeOpaqueWin32Kmt: int#
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT: int#
cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt: int#
hipExternalSemaphoreHandleTypeD3D12Fence: int#
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE: int#
cudaExternalSemaphoreHandleTypeD3D12Fence: int#
hipExternalSemaphoreHandleTypeD3D11Fence: int#
hipExternalSemaphoreHandleTypeNvSciSync: int#
hipExternalSemaphoreHandleTypeKeyedMutex: int#
hipExternalSemaphoreHandleTypeKeyedMutexKmt: int#
hipExternalSemaphoreHandleTypeTimelineSemaphoreFd: int#
hipExternalSemaphoreHandleTypeTimelineSemaphoreWin32: int#
class cuda.bindings.runtime.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreHandleDesc_st

(No short description)

type: Any#
handle: Any#
flags: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC: Any#
cuda.bindings.runtime.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1: Any#
cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc: Any#
cuda.bindings.runtime.CUexternalSemaphore: Any#
cuda.bindings.runtime.cudaExternalSemaphore_t: Any#
class cuda.bindings.runtime.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreSignalParams_st

(No short description)

params: Any#
flags: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS: Any#
cuda.bindings.runtime.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1: Any#
cuda.bindings.runtime.cudaExternalSemaphoreSignalParams: Any#
cuda.bindings.runtime.cudaExternalSemaphoreSignalParams_v1: Any#
class cuda.bindings.runtime.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreWaitParams_st

External semaphore wait parameters, compatible with driver type

params: Any#
flags: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS: Any#
cuda.bindings.runtime.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1: Any#
cuda.bindings.runtime.cudaExternalSemaphoreWaitParams: Any#
cuda.bindings.runtime.cudaExternalSemaphoreWaitParams_v1: Any#
cuda.bindings.runtime.HIP_PYTHON_CUgraphicsRegisterFlags_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphicsRegisterFlags#

Bases: enum.IntEnum

HIP Access falgs for Interop resources.

hipGraphicsRegisterFlagsNone: int#
CU_GRAPHICS_REGISTER_FLAGS_NONE: int#
cudaGraphicsRegisterFlagsNone: int#
hipGraphicsRegisterFlagsReadOnly: int#
CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY: int#
cudaGraphicsRegisterFlagsReadOnly: int#
hipGraphicsRegisterFlagsWriteDiscard: int#
CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD: int#
cudaGraphicsRegisterFlagsWriteDiscard: int#
hipGraphicsRegisterFlagsSurfaceLoadStore: int#
CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST: int#
cudaGraphicsRegisterFlagsSurfaceLoadStore: int#
hipGraphicsRegisterFlagsTextureGather: int#
CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER: int#
cudaGraphicsRegisterFlagsTextureGather: int#
cuda.bindings.runtime.HIP_PYTHON_CUgraphicsRegisterFlags_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphicsRegisterFlags_enum#

Bases: enum.IntEnum

HIP Access falgs for Interop resources.

hipGraphicsRegisterFlagsNone: int#
CU_GRAPHICS_REGISTER_FLAGS_NONE: int#
cudaGraphicsRegisterFlagsNone: int#
hipGraphicsRegisterFlagsReadOnly: int#
CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY: int#
cudaGraphicsRegisterFlagsReadOnly: int#
hipGraphicsRegisterFlagsWriteDiscard: int#
CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD: int#
cudaGraphicsRegisterFlagsWriteDiscard: int#
hipGraphicsRegisterFlagsSurfaceLoadStore: int#
CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST: int#
cudaGraphicsRegisterFlagsSurfaceLoadStore: int#
hipGraphicsRegisterFlagsTextureGather: int#
CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER: int#
cudaGraphicsRegisterFlagsTextureGather: int#
cuda.bindings.runtime.HIP_PYTHON_cudaGraphicsRegisterFlags_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaGraphicsRegisterFlags#

Bases: enum.IntEnum

HIP Access falgs for Interop resources.

hipGraphicsRegisterFlagsNone: int#
CU_GRAPHICS_REGISTER_FLAGS_NONE: int#
cudaGraphicsRegisterFlagsNone: int#
hipGraphicsRegisterFlagsReadOnly: int#
CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY: int#
cudaGraphicsRegisterFlagsReadOnly: int#
hipGraphicsRegisterFlagsWriteDiscard: int#
CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD: int#
cudaGraphicsRegisterFlagsWriteDiscard: int#
hipGraphicsRegisterFlagsSurfaceLoadStore: int#
CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST: int#
cudaGraphicsRegisterFlagsSurfaceLoadStore: int#
hipGraphicsRegisterFlagsTextureGather: int#
CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER: int#
cudaGraphicsRegisterFlagsTextureGather: int#
cuda.bindings.runtime.CUgraphicsResource_st: Any#
cuda.bindings.runtime.cudaGraphicsResource: Any#
cuda.bindings.runtime.CUgraphicsResource: Any#
cuda.bindings.runtime.cudaGraphicsResource_t: Any#
class cuda.bindings.runtime.CUgraph_st(*args, **kwargs)#

Bases: rocm.bindings.hip.ihipGraph

(No short description)

cuda.bindings.runtime.CUgraph: Any#
cuda.bindings.runtime.cudaGraph_t: Any#
class cuda.bindings.runtime.CUgraphNode_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipGraphNode

(No short description)

cuda.bindings.runtime.CUgraphNode: Any#
cuda.bindings.runtime.cudaGraphNode_t: Any#
class cuda.bindings.runtime.CUgraphExec_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipGraphExec

(No short description)

cuda.bindings.runtime.CUgraphExec: Any#
cuda.bindings.runtime.cudaGraphExec_t: Any#
class cuda.bindings.runtime.CUuserObject_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipUserObject

(No short description)

cuda.bindings.runtime.CUuserObject: Any#
cuda.bindings.runtime.cudaUserObject_t: Any#
cuda.bindings.runtime.HIP_PYTHON_CUgraphNodeType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphNodeType#

Bases: enum.IntEnum

hipGraphNodeType

hipGraphNodeTypeKernel: int#
CU_GRAPH_NODE_TYPE_KERNEL: int#
cudaGraphNodeTypeKernel: int#
hipGraphNodeTypeMemcpy: int#
CU_GRAPH_NODE_TYPE_MEMCPY: int#
cudaGraphNodeTypeMemcpy: int#
hipGraphNodeTypeMemset: int#
CU_GRAPH_NODE_TYPE_MEMSET: int#
cudaGraphNodeTypeMemset: int#
hipGraphNodeTypeHost: int#
CU_GRAPH_NODE_TYPE_HOST: int#
cudaGraphNodeTypeHost: int#
hipGraphNodeTypeGraph: int#
CU_GRAPH_NODE_TYPE_GRAPH: int#
cudaGraphNodeTypeGraph: int#
hipGraphNodeTypeEmpty: int#
CU_GRAPH_NODE_TYPE_EMPTY: int#
cudaGraphNodeTypeEmpty: int#
hipGraphNodeTypeWaitEvent: int#
CU_GRAPH_NODE_TYPE_WAIT_EVENT: int#
cudaGraphNodeTypeWaitEvent: int#
hipGraphNodeTypeEventRecord: int#
CU_GRAPH_NODE_TYPE_EVENT_RECORD: int#
cudaGraphNodeTypeEventRecord: int#
hipGraphNodeTypeExtSemaphoreSignal: int#
CU_GRAPH_NODE_TYPE_EXT_SEMAS_SIGNAL: int#
cudaGraphNodeTypeExtSemaphoreSignal: int#
hipGraphNodeTypeExtSemaphoreWait: int#
CU_GRAPH_NODE_TYPE_EXT_SEMAS_WAIT: int#
cudaGraphNodeTypeExtSemaphoreWait: int#
hipGraphNodeTypeMemAlloc: int#
CU_GRAPH_NODE_TYPE_MEM_ALLOC: int#
cudaGraphNodeTypeMemAlloc: int#
hipGraphNodeTypeMemFree: int#
CU_GRAPH_NODE_TYPE_MEM_FREE: int#
cudaGraphNodeTypeMemFree: int#
hipGraphNodeTypeMemcpyFromSymbol: int#
hipGraphNodeTypeMemcpyToSymbol: int#
hipGraphNodeTypeBatchMemOp: int#
CU_GRAPH_NODE_TYPE_BATCH_MEM_OP: int#
hipGraphNodeTypeCount: int#
CU_GRAPH_NODE_TYPE_COUNT: int#
cudaGraphNodeTypeCount: int#
cuda.bindings.runtime.HIP_PYTHON_CUgraphNodeType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphNodeType_enum#

Bases: enum.IntEnum

hipGraphNodeType

hipGraphNodeTypeKernel: int#
CU_GRAPH_NODE_TYPE_KERNEL: int#
cudaGraphNodeTypeKernel: int#
hipGraphNodeTypeMemcpy: int#
CU_GRAPH_NODE_TYPE_MEMCPY: int#
cudaGraphNodeTypeMemcpy: int#
hipGraphNodeTypeMemset: int#
CU_GRAPH_NODE_TYPE_MEMSET: int#
cudaGraphNodeTypeMemset: int#
hipGraphNodeTypeHost: int#
CU_GRAPH_NODE_TYPE_HOST: int#
cudaGraphNodeTypeHost: int#
hipGraphNodeTypeGraph: int#
CU_GRAPH_NODE_TYPE_GRAPH: int#
cudaGraphNodeTypeGraph: int#
hipGraphNodeTypeEmpty: int#
CU_GRAPH_NODE_TYPE_EMPTY: int#
cudaGraphNodeTypeEmpty: int#
hipGraphNodeTypeWaitEvent: int#
CU_GRAPH_NODE_TYPE_WAIT_EVENT: int#
cudaGraphNodeTypeWaitEvent: int#
hipGraphNodeTypeEventRecord: int#
CU_GRAPH_NODE_TYPE_EVENT_RECORD: int#
cudaGraphNodeTypeEventRecord: int#
hipGraphNodeTypeExtSemaphoreSignal: int#
CU_GRAPH_NODE_TYPE_EXT_SEMAS_SIGNAL: int#
cudaGraphNodeTypeExtSemaphoreSignal: int#
hipGraphNodeTypeExtSemaphoreWait: int#
CU_GRAPH_NODE_TYPE_EXT_SEMAS_WAIT: int#
cudaGraphNodeTypeExtSemaphoreWait: int#
hipGraphNodeTypeMemAlloc: int#
CU_GRAPH_NODE_TYPE_MEM_ALLOC: int#
cudaGraphNodeTypeMemAlloc: int#
hipGraphNodeTypeMemFree: int#
CU_GRAPH_NODE_TYPE_MEM_FREE: int#
cudaGraphNodeTypeMemFree: int#
hipGraphNodeTypeMemcpyFromSymbol: int#
hipGraphNodeTypeMemcpyToSymbol: int#
hipGraphNodeTypeBatchMemOp: int#
CU_GRAPH_NODE_TYPE_BATCH_MEM_OP: int#
hipGraphNodeTypeCount: int#
CU_GRAPH_NODE_TYPE_COUNT: int#
cudaGraphNodeTypeCount: int#
cuda.bindings.runtime.HIP_PYTHON_cudaGraphNodeType_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaGraphNodeType#

Bases: enum.IntEnum

hipGraphNodeType

hipGraphNodeTypeKernel: int#
CU_GRAPH_NODE_TYPE_KERNEL: int#
cudaGraphNodeTypeKernel: int#
hipGraphNodeTypeMemcpy: int#
CU_GRAPH_NODE_TYPE_MEMCPY: int#
cudaGraphNodeTypeMemcpy: int#
hipGraphNodeTypeMemset: int#
CU_GRAPH_NODE_TYPE_MEMSET: int#
cudaGraphNodeTypeMemset: int#
hipGraphNodeTypeHost: int#
CU_GRAPH_NODE_TYPE_HOST: int#
cudaGraphNodeTypeHost: int#
hipGraphNodeTypeGraph: int#
CU_GRAPH_NODE_TYPE_GRAPH: int#
cudaGraphNodeTypeGraph: int#
hipGraphNodeTypeEmpty: int#
CU_GRAPH_NODE_TYPE_EMPTY: int#
cudaGraphNodeTypeEmpty: int#
hipGraphNodeTypeWaitEvent: int#
CU_GRAPH_NODE_TYPE_WAIT_EVENT: int#
cudaGraphNodeTypeWaitEvent: int#
hipGraphNodeTypeEventRecord: int#
CU_GRAPH_NODE_TYPE_EVENT_RECORD: int#
cudaGraphNodeTypeEventRecord: int#
hipGraphNodeTypeExtSemaphoreSignal: int#
CU_GRAPH_NODE_TYPE_EXT_SEMAS_SIGNAL: int#
cudaGraphNodeTypeExtSemaphoreSignal: int#
hipGraphNodeTypeExtSemaphoreWait: int#
CU_GRAPH_NODE_TYPE_EXT_SEMAS_WAIT: int#
cudaGraphNodeTypeExtSemaphoreWait: int#
hipGraphNodeTypeMemAlloc: int#
CU_GRAPH_NODE_TYPE_MEM_ALLOC: int#
cudaGraphNodeTypeMemAlloc: int#
hipGraphNodeTypeMemFree: int#
CU_GRAPH_NODE_TYPE_MEM_FREE: int#
cudaGraphNodeTypeMemFree: int#
hipGraphNodeTypeMemcpyFromSymbol: int#
hipGraphNodeTypeMemcpyToSymbol: int#
hipGraphNodeTypeBatchMemOp: int#
CU_GRAPH_NODE_TYPE_BATCH_MEM_OP: int#
hipGraphNodeTypeCount: int#
CU_GRAPH_NODE_TYPE_COUNT: int#
cudaGraphNodeTypeCount: int#
class cuda.bindings.runtime.CUhostFn(*args, **kwargs)#

Bases: rocm.bindings.hip.hipHostFn_t

(No short description)

class cuda.bindings.runtime.cudaHostFn_t(*args, **kwargs)#

Bases: rocm.bindings.hip.hipHostFn_t

(No short description)

class cuda.bindings.runtime.CUDA_HOST_NODE_PARAMS(*args, **kwargs)#

Bases: rocm.bindings.hip.hipHostNodeParams

(No short description)

fn: Any#
userData: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_HOST_NODE_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipHostNodeParams

(No short description)

fn: Any#
userData: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_HOST_NODE_PARAMS_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipHostNodeParams

(No short description)

fn: Any#
userData: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaHostNodeParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipHostNodeParams

(No short description)

fn: Any#
userData: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_KERNEL_NODE_PARAMS(*args, **kwargs)#

Bases: rocm.bindings.hip.hipKernelNodeParams

(No short description)

blockDim: Any#
extra: Any#
func: Any#
gridDim: Any#
kernelParams: Any#
sharedMemBytes: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_KERNEL_NODE_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipKernelNodeParams

(No short description)

blockDim: Any#
extra: Any#
func: Any#
gridDim: Any#
kernelParams: Any#
sharedMemBytes: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_KERNEL_NODE_PARAMS_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipKernelNodeParams

(No short description)

blockDim: Any#
extra: Any#
func: Any#
gridDim: Any#
kernelParams: Any#
sharedMemBytes: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaKernelNodeParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipKernelNodeParams

(No short description)

blockDim: Any#
extra: Any#
func: Any#
gridDim: Any#
kernelParams: Any#
sharedMemBytes: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMSET_NODE_PARAMS(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemsetParams

(No short description)

dst: Any#
elementSize: Any#
height: Any#
pitch: Any#
value: Any#
width: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMSET_NODE_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemsetParams

(No short description)

dst: Any#
elementSize: Any#
height: Any#
pitch: Any#
value: Any#
width: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMSET_NODE_PARAMS_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemsetParams

(No short description)

dst: Any#
elementSize: Any#
height: Any#
pitch: Any#
value: Any#
width: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMemsetParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemsetParams

(No short description)

dst: Any#
elementSize: Any#
height: Any#
pitch: Any#
value: Any#
width: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEM_ALLOC_NODE_PARAMS(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemAllocNodeParams

(No short description)

poolProps: Any#
accessDescs: Any#
accessDescCount: Any#
bytesize: Any#
dptr: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEM_ALLOC_NODE_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemAllocNodeParams

(No short description)

poolProps: Any#
accessDescs: Any#
accessDescCount: Any#
bytesize: Any#
dptr: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEM_ALLOC_NODE_PARAMS_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemAllocNodeParams

(No short description)

poolProps: Any#
accessDescs: Any#
accessDescCount: Any#
bytesize: Any#
dptr: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEM_ALLOC_NODE_PARAMS_v1_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemAllocNodeParams

(No short description)

poolProps: Any#
accessDescs: Any#
accessDescCount: Any#
bytesize: Any#
dptr: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMemAllocNodeParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemAllocNodeParams

(No short description)

poolProps: Any#
accessDescs: Any#
accessDescCount: Any#
bytesize: Any#
dptr: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_CUaccessProperty_HALLUCINATE: Any#
class cuda.bindings.runtime.CUaccessProperty#

Bases: enum.IntEnum

Specifies performance hint with hipAccessPolicyWindow

hipAccessPropertyNormal: int#
CU_ACCESS_PROPERTY_NORMAL: int#
cudaAccessPropertyNormal: int#
hipAccessPropertyStreaming: int#
CU_ACCESS_PROPERTY_STREAMING: int#
cudaAccessPropertyStreaming: int#
hipAccessPropertyPersisting: int#
CU_ACCESS_PROPERTY_PERSISTING: int#
cudaAccessPropertyPersisting: int#
cuda.bindings.runtime.HIP_PYTHON_CUaccessProperty_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUaccessProperty_enum#

Bases: enum.IntEnum

Specifies performance hint with hipAccessPolicyWindow

hipAccessPropertyNormal: int#
CU_ACCESS_PROPERTY_NORMAL: int#
cudaAccessPropertyNormal: int#
hipAccessPropertyStreaming: int#
CU_ACCESS_PROPERTY_STREAMING: int#
cudaAccessPropertyStreaming: int#
hipAccessPropertyPersisting: int#
CU_ACCESS_PROPERTY_PERSISTING: int#
cudaAccessPropertyPersisting: int#
cuda.bindings.runtime.HIP_PYTHON_cudaAccessProperty_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaAccessProperty#

Bases: enum.IntEnum

Specifies performance hint with hipAccessPolicyWindow

hipAccessPropertyNormal: int#
CU_ACCESS_PROPERTY_NORMAL: int#
cudaAccessPropertyNormal: int#
hipAccessPropertyStreaming: int#
CU_ACCESS_PROPERTY_STREAMING: int#
cudaAccessPropertyStreaming: int#
hipAccessPropertyPersisting: int#
CU_ACCESS_PROPERTY_PERSISTING: int#
cudaAccessPropertyPersisting: int#
class cuda.bindings.runtime.CUaccessPolicyWindow(*args, **kwargs)#

Bases: rocm.bindings.hip.hipAccessPolicyWindow

Specifies access policy for a window, a contiguous extent of memory beginning at base_ptr and ending at base_ptr + num_bytes.

base_ptr: Any#
hitProp: Any#
hitRatio: Any#
missProp: Any#
num_bytes: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUaccessPolicyWindow_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipAccessPolicyWindow

Specifies access policy for a window, a contiguous extent of memory beginning at base_ptr and ending at base_ptr + num_bytes.

base_ptr: Any#
hitProp: Any#
hitRatio: Any#
missProp: Any#
num_bytes: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaAccessPolicyWindow(*args, **kwargs)#

Bases: rocm.bindings.hip.hipAccessPolicyWindow

Specifies access policy for a window, a contiguous extent of memory beginning at base_ptr and ending at base_ptr + num_bytes.

base_ptr: Any#
hitProp: Any#
hitRatio: Any#
missProp: Any#
num_bytes: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUlaunchMemSyncDomainMap(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchMemSyncDomainMap

Memory Synchronization Domain map

default_: Any#
remote: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUlaunchMemSyncDomainMap_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchMemSyncDomainMap

Memory Synchronization Domain map

default_: Any#
remote: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaLaunchMemSyncDomainMap(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchMemSyncDomainMap

Memory Synchronization Domain map

default_: Any#
remote: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaLaunchMemSyncDomainMap_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchMemSyncDomainMap

Memory Synchronization Domain map

default_: Any#
remote: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_CUlaunchMemSyncDomain_HALLUCINATE: Any#
class cuda.bindings.runtime.CUlaunchMemSyncDomain#

Bases: enum.IntEnum

Memory Synchronization Domain

hipLaunchMemSyncDomainDefault: int#
CU_LAUNCH_MEM_SYNC_DOMAIN_DEFAULT: int#
cudaLaunchMemSyncDomainDefault: int#
hipLaunchMemSyncDomainRemote: int#
CU_LAUNCH_MEM_SYNC_DOMAIN_REMOTE: int#
cudaLaunchMemSyncDomainRemote: int#
cuda.bindings.runtime.HIP_PYTHON_CUlaunchMemSyncDomain_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUlaunchMemSyncDomain_enum#

Bases: enum.IntEnum

Memory Synchronization Domain

hipLaunchMemSyncDomainDefault: int#
CU_LAUNCH_MEM_SYNC_DOMAIN_DEFAULT: int#
cudaLaunchMemSyncDomainDefault: int#
hipLaunchMemSyncDomainRemote: int#
CU_LAUNCH_MEM_SYNC_DOMAIN_REMOTE: int#
cudaLaunchMemSyncDomainRemote: int#
cuda.bindings.runtime.HIP_PYTHON_cudaLaunchMemSyncDomain_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaLaunchMemSyncDomain#

Bases: enum.IntEnum

Memory Synchronization Domain

hipLaunchMemSyncDomainDefault: int#
CU_LAUNCH_MEM_SYNC_DOMAIN_DEFAULT: int#
cudaLaunchMemSyncDomainDefault: int#
hipLaunchMemSyncDomainRemote: int#
CU_LAUNCH_MEM_SYNC_DOMAIN_REMOTE: int#
cudaLaunchMemSyncDomainRemote: int#
cuda.bindings.runtime.HIP_PYTHON_CUsynchronizationPolicy_HALLUCINATE: Any#
class cuda.bindings.runtime.CUsynchronizationPolicy#

Bases: enum.IntEnum

Stream Synchronization Policy.

Can be set with hipStreamSetAttribute

hipSyncPolicyAuto: int#
CU_SYNC_POLICY_AUTO: int#
cudaSyncPolicyAuto: int#
hipSyncPolicySpin: int#
CU_SYNC_POLICY_SPIN: int#
cudaSyncPolicySpin: int#
hipSyncPolicyYield: int#
CU_SYNC_POLICY_YIELD: int#
cudaSyncPolicyYield: int#
hipSyncPolicyBlockingSync: int#
CU_SYNC_POLICY_BLOCKING_SYNC: int#
cudaSyncPolicyBlockingSync: int#
cuda.bindings.runtime.HIP_PYTHON_CUsynchronizationPolicy_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUsynchronizationPolicy_enum#

Bases: enum.IntEnum

Stream Synchronization Policy.

Can be set with hipStreamSetAttribute

hipSyncPolicyAuto: int#
CU_SYNC_POLICY_AUTO: int#
cudaSyncPolicyAuto: int#
hipSyncPolicySpin: int#
CU_SYNC_POLICY_SPIN: int#
cudaSyncPolicySpin: int#
hipSyncPolicyYield: int#
CU_SYNC_POLICY_YIELD: int#
cudaSyncPolicyYield: int#
hipSyncPolicyBlockingSync: int#
CU_SYNC_POLICY_BLOCKING_SYNC: int#
cudaSyncPolicyBlockingSync: int#
cuda.bindings.runtime.HIP_PYTHON_cudaSynchronizationPolicy_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaSynchronizationPolicy#

Bases: enum.IntEnum

Stream Synchronization Policy.

Can be set with hipStreamSetAttribute

hipSyncPolicyAuto: int#
CU_SYNC_POLICY_AUTO: int#
cudaSyncPolicyAuto: int#
hipSyncPolicySpin: int#
CU_SYNC_POLICY_SPIN: int#
cudaSyncPolicySpin: int#
hipSyncPolicyYield: int#
CU_SYNC_POLICY_YIELD: int#
cudaSyncPolicyYield: int#
hipSyncPolicyBlockingSync: int#
CU_SYNC_POLICY_BLOCKING_SYNC: int#
cudaSyncPolicyBlockingSync: int#
cuda.bindings.runtime.HIP_PYTHON_CUlaunchAttributeID_HALLUCINATE: Any#
class cuda.bindings.runtime.CUlaunchAttributeID#

Bases: enum.IntEnum

Launch Attribute ID

hipLaunchAttributeIgnore: int#
hipLaunchAttributeAccessPolicyWindow: int#
CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW: int#
CU_STREAM_ATTRIBUTE_ACCESS_POLICY_WINDOW: int#
cudaLaunchAttributeAccessPolicyWindow: int#
cudaStreamAttributeAccessPolicyWindow: int#
hipLaunchAttributeCooperative: int#
CU_LAUNCH_ATTRIBUTE_COOPERATIVE: int#
cudaLaunchAttributeCooperative: int#
hipLaunchAttributeSynchronizationPolicy: int#
CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY: int#
CU_STREAM_ATTRIBUTE_SYNCHRONIZATION_POLICY: int#
cudaLaunchAttributeSynchronizationPolicy: int#
cudaStreamAttributeSynchronizationPolicy: int#
hipLaunchAttributeClusterDimension: int#
hipLaunchAttributeClusterSchedulingPolicyPreference: int#
hipLaunchAttributePriority: int#
CU_LAUNCH_ATTRIBUTE_PRIORITY: int#
CU_STREAM_ATTRIBUTE_PRIORITY: int#
cudaLaunchAttributePriority: int#
cudaStreamAttributePriority: int#
hipLaunchAttributeMemSyncDomainMap: int#
CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP: int#
CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP: int#
cudaLaunchAttributeMemSyncDomainMap: int#
cudaStreamAttributeMemSyncDomainMap: int#
hipLaunchAttributeMemSyncDomain: int#
CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN: int#
CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN: int#
cudaLaunchAttributeMemSyncDomain: int#
cudaStreamAttributeMemSyncDomain: int#
hipLaunchAttributeExtDynDataPrefetch: int#
hipLaunchAttributeMax: int#
CU_LAUNCH_ATTRIBUTE_MAX: int#
cuda.bindings.runtime.HIP_PYTHON_CUlaunchAttributeID_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUlaunchAttributeID_enum#

Bases: enum.IntEnum

Launch Attribute ID

hipLaunchAttributeIgnore: int#
hipLaunchAttributeAccessPolicyWindow: int#
CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW: int#
CU_STREAM_ATTRIBUTE_ACCESS_POLICY_WINDOW: int#
cudaLaunchAttributeAccessPolicyWindow: int#
cudaStreamAttributeAccessPolicyWindow: int#
hipLaunchAttributeCooperative: int#
CU_LAUNCH_ATTRIBUTE_COOPERATIVE: int#
cudaLaunchAttributeCooperative: int#
hipLaunchAttributeSynchronizationPolicy: int#
CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY: int#
CU_STREAM_ATTRIBUTE_SYNCHRONIZATION_POLICY: int#
cudaLaunchAttributeSynchronizationPolicy: int#
cudaStreamAttributeSynchronizationPolicy: int#
hipLaunchAttributeClusterDimension: int#
hipLaunchAttributeClusterSchedulingPolicyPreference: int#
hipLaunchAttributePriority: int#
CU_LAUNCH_ATTRIBUTE_PRIORITY: int#
CU_STREAM_ATTRIBUTE_PRIORITY: int#
cudaLaunchAttributePriority: int#
cudaStreamAttributePriority: int#
hipLaunchAttributeMemSyncDomainMap: int#
CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP: int#
CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP: int#
cudaLaunchAttributeMemSyncDomainMap: int#
cudaStreamAttributeMemSyncDomainMap: int#
hipLaunchAttributeMemSyncDomain: int#
CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN: int#
CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN: int#
cudaLaunchAttributeMemSyncDomain: int#
cudaStreamAttributeMemSyncDomain: int#
hipLaunchAttributeExtDynDataPrefetch: int#
hipLaunchAttributeMax: int#
CU_LAUNCH_ATTRIBUTE_MAX: int#
cuda.bindings.runtime.HIP_PYTHON_CUstreamAttrID_HALLUCINATE: Any#
class cuda.bindings.runtime.CUstreamAttrID#

Bases: enum.IntEnum

Launch Attribute ID

hipLaunchAttributeIgnore: int#
hipLaunchAttributeAccessPolicyWindow: int#
CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW: int#
CU_STREAM_ATTRIBUTE_ACCESS_POLICY_WINDOW: int#
cudaLaunchAttributeAccessPolicyWindow: int#
cudaStreamAttributeAccessPolicyWindow: int#
hipLaunchAttributeCooperative: int#
CU_LAUNCH_ATTRIBUTE_COOPERATIVE: int#
cudaLaunchAttributeCooperative: int#
hipLaunchAttributeSynchronizationPolicy: int#
CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY: int#
CU_STREAM_ATTRIBUTE_SYNCHRONIZATION_POLICY: int#
cudaLaunchAttributeSynchronizationPolicy: int#
cudaStreamAttributeSynchronizationPolicy: int#
hipLaunchAttributeClusterDimension: int#
hipLaunchAttributeClusterSchedulingPolicyPreference: int#
hipLaunchAttributePriority: int#
CU_LAUNCH_ATTRIBUTE_PRIORITY: int#
CU_STREAM_ATTRIBUTE_PRIORITY: int#
cudaLaunchAttributePriority: int#
cudaStreamAttributePriority: int#
hipLaunchAttributeMemSyncDomainMap: int#
CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP: int#
CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP: int#
cudaLaunchAttributeMemSyncDomainMap: int#
cudaStreamAttributeMemSyncDomainMap: int#
hipLaunchAttributeMemSyncDomain: int#
CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN: int#
CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN: int#
cudaLaunchAttributeMemSyncDomain: int#
cudaStreamAttributeMemSyncDomain: int#
hipLaunchAttributeExtDynDataPrefetch: int#
hipLaunchAttributeMax: int#
CU_LAUNCH_ATTRIBUTE_MAX: int#
cuda.bindings.runtime.HIP_PYTHON_CUstreamAttrID_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUstreamAttrID_enum#

Bases: enum.IntEnum

Launch Attribute ID

hipLaunchAttributeIgnore: int#
hipLaunchAttributeAccessPolicyWindow: int#
CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW: int#
CU_STREAM_ATTRIBUTE_ACCESS_POLICY_WINDOW: int#
cudaLaunchAttributeAccessPolicyWindow: int#
cudaStreamAttributeAccessPolicyWindow: int#
hipLaunchAttributeCooperative: int#
CU_LAUNCH_ATTRIBUTE_COOPERATIVE: int#
cudaLaunchAttributeCooperative: int#
hipLaunchAttributeSynchronizationPolicy: int#
CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY: int#
CU_STREAM_ATTRIBUTE_SYNCHRONIZATION_POLICY: int#
cudaLaunchAttributeSynchronizationPolicy: int#
cudaStreamAttributeSynchronizationPolicy: int#
hipLaunchAttributeClusterDimension: int#
hipLaunchAttributeClusterSchedulingPolicyPreference: int#
hipLaunchAttributePriority: int#
CU_LAUNCH_ATTRIBUTE_PRIORITY: int#
CU_STREAM_ATTRIBUTE_PRIORITY: int#
cudaLaunchAttributePriority: int#
cudaStreamAttributePriority: int#
hipLaunchAttributeMemSyncDomainMap: int#
CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP: int#
CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP: int#
cudaLaunchAttributeMemSyncDomainMap: int#
cudaStreamAttributeMemSyncDomainMap: int#
hipLaunchAttributeMemSyncDomain: int#
CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN: int#
CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN: int#
cudaLaunchAttributeMemSyncDomain: int#
cudaStreamAttributeMemSyncDomain: int#
hipLaunchAttributeExtDynDataPrefetch: int#
hipLaunchAttributeMax: int#
CU_LAUNCH_ATTRIBUTE_MAX: int#
cuda.bindings.runtime.HIP_PYTHON_cudaLaunchAttributeID_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaLaunchAttributeID#

Bases: enum.IntEnum

Launch Attribute ID

hipLaunchAttributeIgnore: int#
hipLaunchAttributeAccessPolicyWindow: int#
CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW: int#
CU_STREAM_ATTRIBUTE_ACCESS_POLICY_WINDOW: int#
cudaLaunchAttributeAccessPolicyWindow: int#
cudaStreamAttributeAccessPolicyWindow: int#
hipLaunchAttributeCooperative: int#
CU_LAUNCH_ATTRIBUTE_COOPERATIVE: int#
cudaLaunchAttributeCooperative: int#
hipLaunchAttributeSynchronizationPolicy: int#
CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY: int#
CU_STREAM_ATTRIBUTE_SYNCHRONIZATION_POLICY: int#
cudaLaunchAttributeSynchronizationPolicy: int#
cudaStreamAttributeSynchronizationPolicy: int#
hipLaunchAttributeClusterDimension: int#
hipLaunchAttributeClusterSchedulingPolicyPreference: int#
hipLaunchAttributePriority: int#
CU_LAUNCH_ATTRIBUTE_PRIORITY: int#
CU_STREAM_ATTRIBUTE_PRIORITY: int#
cudaLaunchAttributePriority: int#
cudaStreamAttributePriority: int#
hipLaunchAttributeMemSyncDomainMap: int#
CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP: int#
CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP: int#
cudaLaunchAttributeMemSyncDomainMap: int#
cudaStreamAttributeMemSyncDomainMap: int#
hipLaunchAttributeMemSyncDomain: int#
CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN: int#
CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN: int#
cudaLaunchAttributeMemSyncDomain: int#
cudaStreamAttributeMemSyncDomain: int#
hipLaunchAttributeExtDynDataPrefetch: int#
hipLaunchAttributeMax: int#
CU_LAUNCH_ATTRIBUTE_MAX: int#
cuda.bindings.runtime.HIP_PYTHON_cudaStreamAttrID_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaStreamAttrID#

Bases: enum.IntEnum

Launch Attribute ID

hipLaunchAttributeIgnore: int#
hipLaunchAttributeAccessPolicyWindow: int#
CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW: int#
CU_STREAM_ATTRIBUTE_ACCESS_POLICY_WINDOW: int#
cudaLaunchAttributeAccessPolicyWindow: int#
cudaStreamAttributeAccessPolicyWindow: int#
hipLaunchAttributeCooperative: int#
CU_LAUNCH_ATTRIBUTE_COOPERATIVE: int#
cudaLaunchAttributeCooperative: int#
hipLaunchAttributeSynchronizationPolicy: int#
CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY: int#
CU_STREAM_ATTRIBUTE_SYNCHRONIZATION_POLICY: int#
cudaLaunchAttributeSynchronizationPolicy: int#
cudaStreamAttributeSynchronizationPolicy: int#
hipLaunchAttributeClusterDimension: int#
hipLaunchAttributeClusterSchedulingPolicyPreference: int#
hipLaunchAttributePriority: int#
CU_LAUNCH_ATTRIBUTE_PRIORITY: int#
CU_STREAM_ATTRIBUTE_PRIORITY: int#
cudaLaunchAttributePriority: int#
cudaStreamAttributePriority: int#
hipLaunchAttributeMemSyncDomainMap: int#
CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP: int#
CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP: int#
cudaLaunchAttributeMemSyncDomainMap: int#
cudaStreamAttributeMemSyncDomainMap: int#
hipLaunchAttributeMemSyncDomain: int#
CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN: int#
CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN: int#
cudaLaunchAttributeMemSyncDomain: int#
cudaStreamAttributeMemSyncDomain: int#
hipLaunchAttributeExtDynDataPrefetch: int#
hipLaunchAttributeMax: int#
CU_LAUNCH_ATTRIBUTE_MAX: int#
class cuda.bindings.runtime.CUlaunchAttributeValue(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchAttributeValue

Launch Attribute Value

pad: Any#
accessPolicyWindow: Any#
cooperative: Any#
priority: Any#
syncPolicy: Any#
memSyncDomainMap: Any#
memSyncDomain: Any#
clusterDim: Any#
clusterSchedulingPolicyPreference: Any#
dynDataPrefetch: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUlaunchAttributeValue_union(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchAttributeValue

Launch Attribute Value

pad: Any#
accessPolicyWindow: Any#
cooperative: Any#
priority: Any#
syncPolicy: Any#
memSyncDomainMap: Any#
memSyncDomain: Any#
clusterDim: Any#
clusterSchedulingPolicyPreference: Any#
dynDataPrefetch: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUstreamAttrValue(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchAttributeValue

Launch Attribute Value

pad: Any#
accessPolicyWindow: Any#
cooperative: Any#
priority: Any#
syncPolicy: Any#
memSyncDomainMap: Any#
memSyncDomain: Any#
clusterDim: Any#
clusterSchedulingPolicyPreference: Any#
dynDataPrefetch: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUstreamAttrValue_union(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchAttributeValue

Launch Attribute Value

pad: Any#
accessPolicyWindow: Any#
cooperative: Any#
priority: Any#
syncPolicy: Any#
memSyncDomainMap: Any#
memSyncDomain: Any#
clusterDim: Any#
clusterSchedulingPolicyPreference: Any#
dynDataPrefetch: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUstreamAttrValue_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchAttributeValue

Launch Attribute Value

pad: Any#
accessPolicyWindow: Any#
cooperative: Any#
priority: Any#
syncPolicy: Any#
memSyncDomainMap: Any#
memSyncDomain: Any#
clusterDim: Any#
clusterSchedulingPolicyPreference: Any#
dynDataPrefetch: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaLaunchAttributeValue(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchAttributeValue

Launch Attribute Value

pad: Any#
accessPolicyWindow: Any#
cooperative: Any#
priority: Any#
syncPolicy: Any#
memSyncDomainMap: Any#
memSyncDomain: Any#
clusterDim: Any#
clusterSchedulingPolicyPreference: Any#
dynDataPrefetch: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaStreamAttrValue(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchAttributeValue

Launch Attribute Value

pad: Any#
accessPolicyWindow: Any#
cooperative: Any#
priority: Any#
syncPolicy: Any#
memSyncDomainMap: Any#
memSyncDomain: Any#
clusterDim: Any#
clusterSchedulingPolicyPreference: Any#
dynDataPrefetch: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_CUgraphExecUpdateResult_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphExecUpdateResult#

Bases: enum.IntEnum

Graph execution update result

hipGraphExecUpdateSuccess: int#
CU_GRAPH_EXEC_UPDATE_SUCCESS: int#
cudaGraphExecUpdateSuccess: int#
hipGraphExecUpdateError: int#
CU_GRAPH_EXEC_UPDATE_ERROR: int#
cudaGraphExecUpdateError: int#
hipGraphExecUpdateErrorTopologyChanged: int#
CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED: int#
cudaGraphExecUpdateErrorTopologyChanged: int#
hipGraphExecUpdateErrorNodeTypeChanged: int#
CU_GRAPH_EXEC_UPDATE_ERROR_NODE_TYPE_CHANGED: int#
cudaGraphExecUpdateErrorNodeTypeChanged: int#
hipGraphExecUpdateErrorFunctionChanged: int#
CU_GRAPH_EXEC_UPDATE_ERROR_FUNCTION_CHANGED: int#
cudaGraphExecUpdateErrorFunctionChanged: int#
hipGraphExecUpdateErrorParametersChanged: int#
CU_GRAPH_EXEC_UPDATE_ERROR_PARAMETERS_CHANGED: int#
cudaGraphExecUpdateErrorParametersChanged: int#
hipGraphExecUpdateErrorNotSupported: int#
CU_GRAPH_EXEC_UPDATE_ERROR_NOT_SUPPORTED: int#
cudaGraphExecUpdateErrorNotSupported: int#
hipGraphExecUpdateErrorUnsupportedFunctionChange: int#
CU_GRAPH_EXEC_UPDATE_ERROR_UNSUPPORTED_FUNCTION_CHANGE: int#
cudaGraphExecUpdateErrorUnsupportedFunctionChange: int#
cuda.bindings.runtime.HIP_PYTHON_CUgraphExecUpdateResult_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphExecUpdateResult_enum#

Bases: enum.IntEnum

Graph execution update result

hipGraphExecUpdateSuccess: int#
CU_GRAPH_EXEC_UPDATE_SUCCESS: int#
cudaGraphExecUpdateSuccess: int#
hipGraphExecUpdateError: int#
CU_GRAPH_EXEC_UPDATE_ERROR: int#
cudaGraphExecUpdateError: int#
hipGraphExecUpdateErrorTopologyChanged: int#
CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED: int#
cudaGraphExecUpdateErrorTopologyChanged: int#
hipGraphExecUpdateErrorNodeTypeChanged: int#
CU_GRAPH_EXEC_UPDATE_ERROR_NODE_TYPE_CHANGED: int#
cudaGraphExecUpdateErrorNodeTypeChanged: int#
hipGraphExecUpdateErrorFunctionChanged: int#
CU_GRAPH_EXEC_UPDATE_ERROR_FUNCTION_CHANGED: int#
cudaGraphExecUpdateErrorFunctionChanged: int#
hipGraphExecUpdateErrorParametersChanged: int#
CU_GRAPH_EXEC_UPDATE_ERROR_PARAMETERS_CHANGED: int#
cudaGraphExecUpdateErrorParametersChanged: int#
hipGraphExecUpdateErrorNotSupported: int#
CU_GRAPH_EXEC_UPDATE_ERROR_NOT_SUPPORTED: int#
cudaGraphExecUpdateErrorNotSupported: int#
hipGraphExecUpdateErrorUnsupportedFunctionChange: int#
CU_GRAPH_EXEC_UPDATE_ERROR_UNSUPPORTED_FUNCTION_CHANGE: int#
cudaGraphExecUpdateErrorUnsupportedFunctionChange: int#
cuda.bindings.runtime.HIP_PYTHON_cudaGraphExecUpdateResult_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaGraphExecUpdateResult#

Bases: enum.IntEnum

Graph execution update result

hipGraphExecUpdateSuccess: int#
CU_GRAPH_EXEC_UPDATE_SUCCESS: int#
cudaGraphExecUpdateSuccess: int#
hipGraphExecUpdateError: int#
CU_GRAPH_EXEC_UPDATE_ERROR: int#
cudaGraphExecUpdateError: int#
hipGraphExecUpdateErrorTopologyChanged: int#
CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED: int#
cudaGraphExecUpdateErrorTopologyChanged: int#
hipGraphExecUpdateErrorNodeTypeChanged: int#
CU_GRAPH_EXEC_UPDATE_ERROR_NODE_TYPE_CHANGED: int#
cudaGraphExecUpdateErrorNodeTypeChanged: int#
hipGraphExecUpdateErrorFunctionChanged: int#
CU_GRAPH_EXEC_UPDATE_ERROR_FUNCTION_CHANGED: int#
cudaGraphExecUpdateErrorFunctionChanged: int#
hipGraphExecUpdateErrorParametersChanged: int#
CU_GRAPH_EXEC_UPDATE_ERROR_PARAMETERS_CHANGED: int#
cudaGraphExecUpdateErrorParametersChanged: int#
hipGraphExecUpdateErrorNotSupported: int#
CU_GRAPH_EXEC_UPDATE_ERROR_NOT_SUPPORTED: int#
cudaGraphExecUpdateErrorNotSupported: int#
hipGraphExecUpdateErrorUnsupportedFunctionChange: int#
CU_GRAPH_EXEC_UPDATE_ERROR_UNSUPPORTED_FUNCTION_CHANGE: int#
cudaGraphExecUpdateErrorUnsupportedFunctionChange: int#
cuda.bindings.runtime.HIP_PYTHON_CUstreamCaptureMode_HALLUCINATE: Any#
class cuda.bindings.runtime.CUstreamCaptureMode#

Bases: enum.IntEnum

(No short description)

hipStreamCaptureModeGlobal: int#
CU_STREAM_CAPTURE_MODE_GLOBAL: int#
cudaStreamCaptureModeGlobal: int#
hipStreamCaptureModeThreadLocal: int#
CU_STREAM_CAPTURE_MODE_THREAD_LOCAL: int#
cudaStreamCaptureModeThreadLocal: int#
hipStreamCaptureModeRelaxed: int#
CU_STREAM_CAPTURE_MODE_RELAXED: int#
cudaStreamCaptureModeRelaxed: int#
cuda.bindings.runtime.HIP_PYTHON_CUstreamCaptureMode_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUstreamCaptureMode_enum#

Bases: enum.IntEnum

(No short description)

hipStreamCaptureModeGlobal: int#
CU_STREAM_CAPTURE_MODE_GLOBAL: int#
cudaStreamCaptureModeGlobal: int#
hipStreamCaptureModeThreadLocal: int#
CU_STREAM_CAPTURE_MODE_THREAD_LOCAL: int#
cudaStreamCaptureModeThreadLocal: int#
hipStreamCaptureModeRelaxed: int#
CU_STREAM_CAPTURE_MODE_RELAXED: int#
cudaStreamCaptureModeRelaxed: int#
cuda.bindings.runtime.HIP_PYTHON_cudaStreamCaptureMode_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaStreamCaptureMode#

Bases: enum.IntEnum

(No short description)

hipStreamCaptureModeGlobal: int#
CU_STREAM_CAPTURE_MODE_GLOBAL: int#
cudaStreamCaptureModeGlobal: int#
hipStreamCaptureModeThreadLocal: int#
CU_STREAM_CAPTURE_MODE_THREAD_LOCAL: int#
cudaStreamCaptureModeThreadLocal: int#
hipStreamCaptureModeRelaxed: int#
CU_STREAM_CAPTURE_MODE_RELAXED: int#
cudaStreamCaptureModeRelaxed: int#
cuda.bindings.runtime.HIP_PYTHON_CUstreamCaptureStatus_HALLUCINATE: Any#
class cuda.bindings.runtime.CUstreamCaptureStatus#

Bases: enum.IntEnum

(No short description)

hipStreamCaptureStatusNone: int#
CU_STREAM_CAPTURE_STATUS_NONE: int#
cudaStreamCaptureStatusNone: int#
hipStreamCaptureStatusActive: int#
CU_STREAM_CAPTURE_STATUS_ACTIVE: int#
cudaStreamCaptureStatusActive: int#
hipStreamCaptureStatusInvalidated: int#
CU_STREAM_CAPTURE_STATUS_INVALIDATED: int#
cudaStreamCaptureStatusInvalidated: int#
cuda.bindings.runtime.HIP_PYTHON_CUstreamCaptureStatus_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUstreamCaptureStatus_enum#

Bases: enum.IntEnum

(No short description)

hipStreamCaptureStatusNone: int#
CU_STREAM_CAPTURE_STATUS_NONE: int#
cudaStreamCaptureStatusNone: int#
hipStreamCaptureStatusActive: int#
CU_STREAM_CAPTURE_STATUS_ACTIVE: int#
cudaStreamCaptureStatusActive: int#
hipStreamCaptureStatusInvalidated: int#
CU_STREAM_CAPTURE_STATUS_INVALIDATED: int#
cudaStreamCaptureStatusInvalidated: int#
cuda.bindings.runtime.HIP_PYTHON_cudaStreamCaptureStatus_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaStreamCaptureStatus#

Bases: enum.IntEnum

(No short description)

hipStreamCaptureStatusNone: int#
CU_STREAM_CAPTURE_STATUS_NONE: int#
cudaStreamCaptureStatusNone: int#
hipStreamCaptureStatusActive: int#
CU_STREAM_CAPTURE_STATUS_ACTIVE: int#
cudaStreamCaptureStatusActive: int#
hipStreamCaptureStatusInvalidated: int#
CU_STREAM_CAPTURE_STATUS_INVALIDATED: int#
cudaStreamCaptureStatusInvalidated: int#
cuda.bindings.runtime.HIP_PYTHON_CUstreamUpdateCaptureDependencies_flags_HALLUCINATE: Any#
class cuda.bindings.runtime.CUstreamUpdateCaptureDependencies_flags#

Bases: enum.IntEnum

(No short description)

hipStreamAddCaptureDependencies: int#
CU_STREAM_ADD_CAPTURE_DEPENDENCIES: int#
cudaStreamAddCaptureDependencies: int#
hipStreamSetCaptureDependencies: int#
CU_STREAM_SET_CAPTURE_DEPENDENCIES: int#
cudaStreamSetCaptureDependencies: int#
cuda.bindings.runtime.HIP_PYTHON_CUstreamUpdateCaptureDependencies_flags_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUstreamUpdateCaptureDependencies_flags_enum#

Bases: enum.IntEnum

(No short description)

hipStreamAddCaptureDependencies: int#
CU_STREAM_ADD_CAPTURE_DEPENDENCIES: int#
cudaStreamAddCaptureDependencies: int#
hipStreamSetCaptureDependencies: int#
CU_STREAM_SET_CAPTURE_DEPENDENCIES: int#
cudaStreamSetCaptureDependencies: int#
cuda.bindings.runtime.HIP_PYTHON_cudaStreamUpdateCaptureDependenciesFlags_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaStreamUpdateCaptureDependenciesFlags#

Bases: enum.IntEnum

(No short description)

hipStreamAddCaptureDependencies: int#
CU_STREAM_ADD_CAPTURE_DEPENDENCIES: int#
cudaStreamAddCaptureDependencies: int#
hipStreamSetCaptureDependencies: int#
CU_STREAM_SET_CAPTURE_DEPENDENCIES: int#
cudaStreamSetCaptureDependencies: int#
cuda.bindings.runtime.HIP_PYTHON_CUgraphMem_attribute_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphMem_attribute#

Bases: enum.IntEnum

(No short description)

hipGraphMemAttrUsedMemCurrent: int#
CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT: int#
cudaGraphMemAttrUsedMemCurrent: int#
hipGraphMemAttrUsedMemHigh: int#
CU_GRAPH_MEM_ATTR_USED_MEM_HIGH: int#
cudaGraphMemAttrUsedMemHigh: int#
hipGraphMemAttrReservedMemCurrent: int#
CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT: int#
cudaGraphMemAttrReservedMemCurrent: int#
hipGraphMemAttrReservedMemHigh: int#
CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH: int#
cudaGraphMemAttrReservedMemHigh: int#
cuda.bindings.runtime.HIP_PYTHON_CUgraphMem_attribute_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphMem_attribute_enum#

Bases: enum.IntEnum

(No short description)

hipGraphMemAttrUsedMemCurrent: int#
CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT: int#
cudaGraphMemAttrUsedMemCurrent: int#
hipGraphMemAttrUsedMemHigh: int#
CU_GRAPH_MEM_ATTR_USED_MEM_HIGH: int#
cudaGraphMemAttrUsedMemHigh: int#
hipGraphMemAttrReservedMemCurrent: int#
CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT: int#
cudaGraphMemAttrReservedMemCurrent: int#
hipGraphMemAttrReservedMemHigh: int#
CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH: int#
cudaGraphMemAttrReservedMemHigh: int#
cuda.bindings.runtime.HIP_PYTHON_cudaGraphMemAttributeType_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaGraphMemAttributeType#

Bases: enum.IntEnum

(No short description)

hipGraphMemAttrUsedMemCurrent: int#
CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT: int#
cudaGraphMemAttrUsedMemCurrent: int#
hipGraphMemAttrUsedMemHigh: int#
CU_GRAPH_MEM_ATTR_USED_MEM_HIGH: int#
cudaGraphMemAttrUsedMemHigh: int#
hipGraphMemAttrReservedMemCurrent: int#
CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT: int#
cudaGraphMemAttrReservedMemCurrent: int#
hipGraphMemAttrReservedMemHigh: int#
CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH: int#
cudaGraphMemAttrReservedMemHigh: int#
cuda.bindings.runtime.HIP_PYTHON_CUuserObject_flags_HALLUCINATE: Any#
class cuda.bindings.runtime.CUuserObject_flags#

Bases: enum.IntEnum

(No short description)

hipUserObjectNoDestructorSync: int#
CU_USER_OBJECT_NO_DESTRUCTOR_SYNC: int#
cudaUserObjectNoDestructorSync: int#
cuda.bindings.runtime.HIP_PYTHON_CUuserObject_flags_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUuserObject_flags_enum#

Bases: enum.IntEnum

(No short description)

hipUserObjectNoDestructorSync: int#
CU_USER_OBJECT_NO_DESTRUCTOR_SYNC: int#
cudaUserObjectNoDestructorSync: int#
cuda.bindings.runtime.HIP_PYTHON_cudaUserObjectFlags_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaUserObjectFlags#

Bases: enum.IntEnum

(No short description)

hipUserObjectNoDestructorSync: int#
CU_USER_OBJECT_NO_DESTRUCTOR_SYNC: int#
cudaUserObjectNoDestructorSync: int#
cuda.bindings.runtime.HIP_PYTHON_CUuserObjectRetain_flags_HALLUCINATE: Any#
class cuda.bindings.runtime.CUuserObjectRetain_flags#

Bases: enum.IntEnum

(No short description)

hipGraphUserObjectMove: int#
CU_GRAPH_USER_OBJECT_MOVE: int#
cudaGraphUserObjectMove: int#
cuda.bindings.runtime.HIP_PYTHON_CUuserObjectRetain_flags_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUuserObjectRetain_flags_enum#

Bases: enum.IntEnum

(No short description)

hipGraphUserObjectMove: int#
CU_GRAPH_USER_OBJECT_MOVE: int#
cudaGraphUserObjectMove: int#
cuda.bindings.runtime.HIP_PYTHON_cudaUserObjectRetainFlags_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaUserObjectRetainFlags#

Bases: enum.IntEnum

(No short description)

hipGraphUserObjectMove: int#
CU_GRAPH_USER_OBJECT_MOVE: int#
cudaGraphUserObjectMove: int#
cuda.bindings.runtime.HIP_PYTHON_CUgraphInstantiate_flags_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphInstantiate_flags#

Bases: enum.IntEnum

(No short description)

hipGraphInstantiateFlagAutoFreeOnLaunch: int#
CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH: int#
cudaGraphInstantiateFlagAutoFreeOnLaunch: int#
hipGraphInstantiateFlagUpload: int#
CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD: int#
cudaGraphInstantiateFlagUpload: int#
hipGraphInstantiateFlagDeviceLaunch: int#
CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH: int#
cudaGraphInstantiateFlagDeviceLaunch: int#
hipGraphInstantiateFlagUseNodePriority: int#
CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY: int#
cudaGraphInstantiateFlagUseNodePriority: int#
cuda.bindings.runtime.HIP_PYTHON_CUgraphInstantiate_flags_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphInstantiate_flags_enum#

Bases: enum.IntEnum

(No short description)

hipGraphInstantiateFlagAutoFreeOnLaunch: int#
CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH: int#
cudaGraphInstantiateFlagAutoFreeOnLaunch: int#
hipGraphInstantiateFlagUpload: int#
CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD: int#
cudaGraphInstantiateFlagUpload: int#
hipGraphInstantiateFlagDeviceLaunch: int#
CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH: int#
cudaGraphInstantiateFlagDeviceLaunch: int#
hipGraphInstantiateFlagUseNodePriority: int#
CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY: int#
cudaGraphInstantiateFlagUseNodePriority: int#
cuda.bindings.runtime.HIP_PYTHON_cudaGraphInstantiateFlags_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaGraphInstantiateFlags#

Bases: enum.IntEnum

(No short description)

hipGraphInstantiateFlagAutoFreeOnLaunch: int#
CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH: int#
cudaGraphInstantiateFlagAutoFreeOnLaunch: int#
hipGraphInstantiateFlagUpload: int#
CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD: int#
cudaGraphInstantiateFlagUpload: int#
hipGraphInstantiateFlagDeviceLaunch: int#
CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH: int#
cudaGraphInstantiateFlagDeviceLaunch: int#
hipGraphInstantiateFlagUseNodePriority: int#
CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY: int#
cudaGraphInstantiateFlagUseNodePriority: int#
cuda.bindings.runtime.HIP_PYTHON_CUgraphDebugDot_flags_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphDebugDot_flags#

Bases: enum.IntEnum

(No short description)

hipGraphDebugDotFlagsVerbose: int#
CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE: int#
cudaGraphDebugDotFlagsVerbose: int#
hipGraphDebugDotFlagsKernelNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_PARAMS: int#
cudaGraphDebugDotFlagsKernelNodeParams: int#
hipGraphDebugDotFlagsMemcpyNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_MEMCPY_NODE_PARAMS: int#
cudaGraphDebugDotFlagsMemcpyNodeParams: int#
hipGraphDebugDotFlagsMemsetNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_MEMSET_NODE_PARAMS: int#
cudaGraphDebugDotFlagsMemsetNodeParams: int#
hipGraphDebugDotFlagsHostNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_HOST_NODE_PARAMS: int#
cudaGraphDebugDotFlagsHostNodeParams: int#
hipGraphDebugDotFlagsEventNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_EVENT_NODE_PARAMS: int#
cudaGraphDebugDotFlagsEventNodeParams: int#
hipGraphDebugDotFlagsExtSemasSignalNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_SIGNAL_NODE_PARAMS: int#
cudaGraphDebugDotFlagsExtSemasSignalNodeParams: int#
hipGraphDebugDotFlagsExtSemasWaitNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_WAIT_NODE_PARAMS: int#
cudaGraphDebugDotFlagsExtSemasWaitNodeParams: int#
hipGraphDebugDotFlagsKernelNodeAttributes: int#
CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_ATTRIBUTES: int#
cudaGraphDebugDotFlagsKernelNodeAttributes: int#
hipGraphDebugDotFlagsHandles: int#
CU_GRAPH_DEBUG_DOT_FLAGS_HANDLES: int#
cudaGraphDebugDotFlagsHandles: int#
cuda.bindings.runtime.HIP_PYTHON_CUgraphDebugDot_flags_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphDebugDot_flags_enum#

Bases: enum.IntEnum

(No short description)

hipGraphDebugDotFlagsVerbose: int#
CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE: int#
cudaGraphDebugDotFlagsVerbose: int#
hipGraphDebugDotFlagsKernelNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_PARAMS: int#
cudaGraphDebugDotFlagsKernelNodeParams: int#
hipGraphDebugDotFlagsMemcpyNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_MEMCPY_NODE_PARAMS: int#
cudaGraphDebugDotFlagsMemcpyNodeParams: int#
hipGraphDebugDotFlagsMemsetNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_MEMSET_NODE_PARAMS: int#
cudaGraphDebugDotFlagsMemsetNodeParams: int#
hipGraphDebugDotFlagsHostNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_HOST_NODE_PARAMS: int#
cudaGraphDebugDotFlagsHostNodeParams: int#
hipGraphDebugDotFlagsEventNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_EVENT_NODE_PARAMS: int#
cudaGraphDebugDotFlagsEventNodeParams: int#
hipGraphDebugDotFlagsExtSemasSignalNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_SIGNAL_NODE_PARAMS: int#
cudaGraphDebugDotFlagsExtSemasSignalNodeParams: int#
hipGraphDebugDotFlagsExtSemasWaitNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_WAIT_NODE_PARAMS: int#
cudaGraphDebugDotFlagsExtSemasWaitNodeParams: int#
hipGraphDebugDotFlagsKernelNodeAttributes: int#
CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_ATTRIBUTES: int#
cudaGraphDebugDotFlagsKernelNodeAttributes: int#
hipGraphDebugDotFlagsHandles: int#
CU_GRAPH_DEBUG_DOT_FLAGS_HANDLES: int#
cudaGraphDebugDotFlagsHandles: int#
cuda.bindings.runtime.HIP_PYTHON_cudaGraphDebugDotFlags_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaGraphDebugDotFlags#

Bases: enum.IntEnum

(No short description)

hipGraphDebugDotFlagsVerbose: int#
CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE: int#
cudaGraphDebugDotFlagsVerbose: int#
hipGraphDebugDotFlagsKernelNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_PARAMS: int#
cudaGraphDebugDotFlagsKernelNodeParams: int#
hipGraphDebugDotFlagsMemcpyNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_MEMCPY_NODE_PARAMS: int#
cudaGraphDebugDotFlagsMemcpyNodeParams: int#
hipGraphDebugDotFlagsMemsetNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_MEMSET_NODE_PARAMS: int#
cudaGraphDebugDotFlagsMemsetNodeParams: int#
hipGraphDebugDotFlagsHostNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_HOST_NODE_PARAMS: int#
cudaGraphDebugDotFlagsHostNodeParams: int#
hipGraphDebugDotFlagsEventNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_EVENT_NODE_PARAMS: int#
cudaGraphDebugDotFlagsEventNodeParams: int#
hipGraphDebugDotFlagsExtSemasSignalNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_SIGNAL_NODE_PARAMS: int#
cudaGraphDebugDotFlagsExtSemasSignalNodeParams: int#
hipGraphDebugDotFlagsExtSemasWaitNodeParams: int#
CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_WAIT_NODE_PARAMS: int#
cudaGraphDebugDotFlagsExtSemasWaitNodeParams: int#
hipGraphDebugDotFlagsKernelNodeAttributes: int#
CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_ATTRIBUTES: int#
cudaGraphDebugDotFlagsKernelNodeAttributes: int#
hipGraphDebugDotFlagsHandles: int#
CU_GRAPH_DEBUG_DOT_FLAGS_HANDLES: int#
cudaGraphDebugDotFlagsHandles: int#
cuda.bindings.runtime.HIP_PYTHON_CUgraphInstantiateResult_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphInstantiateResult#

Bases: enum.IntEnum

hipGraphInstantiateWithParams results

hipGraphInstantiateSuccess: int#
CUDA_GRAPH_INSTANTIATE_SUCCESS: int#
cudaGraphInstantiateSuccess: int#
hipGraphInstantiateError: int#
CUDA_GRAPH_INSTANTIATE_ERROR: int#
cudaGraphInstantiateError: int#
hipGraphInstantiateInvalidStructure: int#
CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE: int#
cudaGraphInstantiateInvalidStructure: int#
hipGraphInstantiateNodeOperationNotSupported: int#
CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED: int#
cudaGraphInstantiateNodeOperationNotSupported: int#
hipGraphInstantiateMultipleDevicesNotSupported: int#
CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED: int#
cudaGraphInstantiateMultipleDevicesNotSupported: int#
cuda.bindings.runtime.HIP_PYTHON_CUgraphInstantiateResult_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphInstantiateResult_enum#

Bases: enum.IntEnum

hipGraphInstantiateWithParams results

hipGraphInstantiateSuccess: int#
CUDA_GRAPH_INSTANTIATE_SUCCESS: int#
cudaGraphInstantiateSuccess: int#
hipGraphInstantiateError: int#
CUDA_GRAPH_INSTANTIATE_ERROR: int#
cudaGraphInstantiateError: int#
hipGraphInstantiateInvalidStructure: int#
CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE: int#
cudaGraphInstantiateInvalidStructure: int#
hipGraphInstantiateNodeOperationNotSupported: int#
CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED: int#
cudaGraphInstantiateNodeOperationNotSupported: int#
hipGraphInstantiateMultipleDevicesNotSupported: int#
CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED: int#
cudaGraphInstantiateMultipleDevicesNotSupported: int#
cuda.bindings.runtime.HIP_PYTHON_cudaGraphInstantiateResult_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaGraphInstantiateResult#

Bases: enum.IntEnum

hipGraphInstantiateWithParams results

hipGraphInstantiateSuccess: int#
CUDA_GRAPH_INSTANTIATE_SUCCESS: int#
cudaGraphInstantiateSuccess: int#
hipGraphInstantiateError: int#
CUDA_GRAPH_INSTANTIATE_ERROR: int#
cudaGraphInstantiateError: int#
hipGraphInstantiateInvalidStructure: int#
CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE: int#
cudaGraphInstantiateInvalidStructure: int#
hipGraphInstantiateNodeOperationNotSupported: int#
CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED: int#
cudaGraphInstantiateNodeOperationNotSupported: int#
hipGraphInstantiateMultipleDevicesNotSupported: int#
CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED: int#
cudaGraphInstantiateMultipleDevicesNotSupported: int#
class cuda.bindings.runtime.CUDA_GRAPH_INSTANTIATE_PARAMS(*args, **kwargs)#

Bases: rocm.bindings.hip.hipGraphInstantiateParams

Graph Instantiation parameters

errNode_out: Any#
flags: Any#
result_out: Any#
uploadStream: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_GRAPH_INSTANTIATE_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipGraphInstantiateParams

Graph Instantiation parameters

errNode_out: Any#
flags: Any#
result_out: Any#
uploadStream: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaGraphInstantiateParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipGraphInstantiateParams

Graph Instantiation parameters

errNode_out: Any#
flags: Any#
result_out: Any#
uploadStream: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaGraphInstantiateParams_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipGraphInstantiateParams

Graph Instantiation parameters

errNode_out: Any#
flags: Any#
result_out: Any#
uploadStream: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemAllocationProp(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemAllocationProp

Memory allocation properties

type: Any#
location: Any#
win32HandleMetaData: Any#
allocFlags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemAllocationProp_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemAllocationProp

Memory allocation properties

type: Any#
location: Any#
win32HandleMetaData: Any#
allocFlags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUmemAllocationProp_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemAllocationProp

Memory allocation properties

type: Any#
location: Any#
win32HandleMetaData: Any#
allocFlags: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreSignalNodeParams

External semaphore signal node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreSignalNodeParams

External semaphore signal node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreSignalNodeParams

External semaphore signal node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreSignalNodeParams

External semaphore signal node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreSignalNodeParams

External semaphore signal node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreSignalNodeParams

External semaphore signal node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreSignalNodeParams

External semaphore signal node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EXT_SEM_WAIT_NODE_PARAMS(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreWaitNodeParams

External semaphore wait node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EXT_SEM_WAIT_NODE_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreWaitNodeParams

External semaphore wait node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreWaitNodeParams

External semaphore wait node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreWaitNodeParams

External semaphore wait node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreWaitNodeParams

External semaphore wait node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreWaitNodeParams

External semaphore wait node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2(*args, **kwargs)#

Bases: rocm.bindings.hip.hipExternalSemaphoreWaitNodeParams

External semaphore wait node parameters

extSemArray: Any#
paramsArray: Any#
numExtSems: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUmemGenericAllocationHandle: Any#
cuda.bindings.runtime.CUmemGenericAllocationHandle_v1: Any#
cuda.bindings.runtime.HIP_PYTHON_CUmemAllocationGranularity_flags_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemAllocationGranularity_flags#

Bases: enum.IntEnum

Flags for granularity

hipMemAllocationGranularityMinimum: int#
CU_MEM_ALLOC_GRANULARITY_MINIMUM: int#
hipMemAllocationGranularityRecommended: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemAllocationGranularity_flags_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemAllocationGranularity_flags_enum#

Bases: enum.IntEnum

Flags for granularity

hipMemAllocationGranularityMinimum: int#
CU_MEM_ALLOC_GRANULARITY_MINIMUM: int#
hipMemAllocationGranularityRecommended: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemHandleType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemHandleType#

Bases: enum.IntEnum

Memory handle type

hipMemHandleTypeGeneric: int#
CU_MEM_HANDLE_TYPE_GENERIC: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemHandleType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemHandleType_enum#

Bases: enum.IntEnum

Memory handle type

hipMemHandleTypeGeneric: int#
CU_MEM_HANDLE_TYPE_GENERIC: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemOperationType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemOperationType#

Bases: enum.IntEnum

Memory operation types

hipMemOperationTypeMap: int#
CU_MEM_OPERATION_TYPE_MAP: int#
hipMemOperationTypeUnmap: int#
CU_MEM_OPERATION_TYPE_UNMAP: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemOperationType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemOperationType_enum#

Bases: enum.IntEnum

Memory operation types

hipMemOperationTypeMap: int#
CU_MEM_OPERATION_TYPE_MAP: int#
hipMemOperationTypeUnmap: int#
CU_MEM_OPERATION_TYPE_UNMAP: int#
cuda.bindings.runtime.HIP_PYTHON_CUarraySparseSubresourceType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUarraySparseSubresourceType#

Bases: enum.IntEnum

Subresource types for sparse arrays

hipArraySparseSubresourceTypeSparseLevel: int#
CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL: int#
hipArraySparseSubresourceTypeMiptail: int#
CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL: int#
cuda.bindings.runtime.HIP_PYTHON_CUarraySparseSubresourceType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUarraySparseSubresourceType_enum#

Bases: enum.IntEnum

Subresource types for sparse arrays

hipArraySparseSubresourceTypeSparseLevel: int#
CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL: int#
hipArraySparseSubresourceTypeMiptail: int#
CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL: int#
class cuda.bindings.runtime.CUarrayMapInfo(*args, **kwargs)#

Bases: rocm.bindings.hip.hipArrayMapInfo

Map info for arrays

resourceType: Any#
resource: Any#
subresourceType: Any#
subresource: Any#
memOperationType: Any#
memHandleType: Any#
memHandle: Any#
offset: Any#
deviceBitMask: Any#
flags: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUarrayMapInfo_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipArrayMapInfo

Map info for arrays

resourceType: Any#
resource: Any#
subresourceType: Any#
subresource: Any#
memOperationType: Any#
memHandleType: Any#
memHandle: Any#
offset: Any#
deviceBitMask: Any#
flags: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUarrayMapInfo_v1(*args, **kwargs)#

Bases: rocm.bindings.hip.hipArrayMapInfo

Map info for arrays

resourceType: Any#
resource: Any#
subresourceType: Any#
subresource: Any#
memOperationType: Any#
memHandleType: Any#
memHandle: Any#
offset: Any#
deviceBitMask: Any#
flags: Any#
reserved: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY_NODE_PARAMS(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpyNodeParams

Memcpy node params

flags: Any#
reserved: Any#
copyParams: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEMCPY_NODE_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpyNodeParams

Memcpy node params

flags: Any#
reserved: Any#
copyParams: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMemcpyNodeParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemcpyNodeParams

Memcpy node params

flags: Any#
reserved: Any#
copyParams: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_CHILD_GRAPH_NODE_PARAMS(*args, **kwargs)#

Bases: rocm.bindings.hip.hipChildGraphNodeParams

Child graph node params

graph: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_CHILD_GRAPH_NODE_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipChildGraphNodeParams

Child graph node params

graph: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaChildGraphNodeParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipChildGraphNodeParams

Child graph node params

graph: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EVENT_WAIT_NODE_PARAMS(*args, **kwargs)#

Bases: rocm.bindings.hip.hipEventWaitNodeParams

Event record node params

event: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EVENT_WAIT_NODE_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipEventWaitNodeParams

Event record node params

event: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaEventWaitNodeParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipEventWaitNodeParams

Event record node params

event: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EVENT_RECORD_NODE_PARAMS(*args, **kwargs)#

Bases: rocm.bindings.hip.hipEventRecordNodeParams

Event record node params

event: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_EVENT_RECORD_NODE_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipEventRecordNodeParams

Event record node params

event: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaEventRecordNodeParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipEventRecordNodeParams

Event record node params

event: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEM_FREE_NODE_PARAMS(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemFreeNodeParams

Memory free node params

dptr: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUDA_MEM_FREE_NODE_PARAMS_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemFreeNodeParams

Memory free node params

dptr: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaMemFreeNodeParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipMemFreeNodeParams

Memory free node params

dptr: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUgraphNodeParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipGraphNodeParams

Params for different graph nodes

type: Any#
reserved0: Any#
reserved2: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUgraphNodeParams_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipGraphNodeParams

Params for different graph nodes

type: Any#
reserved0: Any#
reserved2: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaGraphNodeParams(*args, **kwargs)#

Bases: rocm.bindings.hip.hipGraphNodeParams

Params for different graph nodes

type: Any#
reserved0: Any#
reserved2: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.HIP_PYTHON_CUgraphDependencyType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphDependencyType#

Bases: enum.IntEnum

(No short description)

hipGraphDependencyTypeDefault: int#
CU_GRAPH_DEPENDENCY_TYPE_DEFAULT: int#
cudaGraphDependencyTypeDefault: int#
hipGraphDependencyTypeProgrammatic: int#
CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC: int#
cudaGraphDependencyTypeProgrammatic: int#
cuda.bindings.runtime.HIP_PYTHON_CUgraphDependencyType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUgraphDependencyType_enum#

Bases: enum.IntEnum

(No short description)

hipGraphDependencyTypeDefault: int#
CU_GRAPH_DEPENDENCY_TYPE_DEFAULT: int#
cudaGraphDependencyTypeDefault: int#
hipGraphDependencyTypeProgrammatic: int#
CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC: int#
cudaGraphDependencyTypeProgrammatic: int#
cuda.bindings.runtime.HIP_PYTHON_cudaGraphDependencyType_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaGraphDependencyType#

Bases: enum.IntEnum

(No short description)

hipGraphDependencyTypeDefault: int#
CU_GRAPH_DEPENDENCY_TYPE_DEFAULT: int#
cudaGraphDependencyTypeDefault: int#
hipGraphDependencyTypeProgrammatic: int#
CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC: int#
cudaGraphDependencyTypeProgrammatic: int#
cuda.bindings.runtime.HIP_PYTHON_cudaGraphDependencyType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaGraphDependencyType_enum#

Bases: enum.IntEnum

(No short description)

hipGraphDependencyTypeDefault: int#
CU_GRAPH_DEPENDENCY_TYPE_DEFAULT: int#
cudaGraphDependencyTypeDefault: int#
hipGraphDependencyTypeProgrammatic: int#
CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC: int#
cudaGraphDependencyTypeProgrammatic: int#
class cuda.bindings.runtime.CUgraphEdgeData(*args, **kwargs)#

Bases: rocm.bindings.hip.hipGraphEdgeData

(No short description)

from_port: Any#
reserved: Any#
to_port: Any#
type: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUgraphEdgeData_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipGraphEdgeData

(No short description)

from_port: Any#
reserved: Any#
to_port: Any#
type: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaGraphEdgeData(*args, **kwargs)#

Bases: rocm.bindings.hip.hipGraphEdgeData

(No short description)

from_port: Any#
reserved: Any#
to_port: Any#
type: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaGraphEdgeData_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipGraphEdgeData

(No short description)

from_port: Any#
reserved: Any#
to_port: Any#
type: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.CUlaunchAttribute_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchAttribute_st

Used to specify custom attributes for launching kernels

id: Any#
pad: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
class cuda.bindings.runtime.cudaLaunchAttribute_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchAttribute_st

Used to specify custom attributes for launching kernels

id: Any#
pad: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUlaunchAttribute: Any#
cuda.bindings.runtime.cudaLaunchAttribute: Any#
class cuda.bindings.runtime.cudaLaunchConfig_st(*args, **kwargs)#

Bases: rocm.bindings.hip.hipLaunchConfig_st

HIP extensible launch configuration

gridDim: Any#
blockDim: Any#
dynamicSmemBytes: Any#
stream: Any#
attrs: Any#
numAttrs: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.cudaLaunchConfig_t: Any#
class cuda.bindings.runtime.CUlaunchConfig_st(*args, **kwargs)#

Bases: rocm.bindings.hip.HIP_LAUNCH_CONFIG_st

HIP driver extensible launch configuration

gridDimX: Any#
gridDimY: Any#
gridDimZ: Any#
blockDimX: Any#
blockDimY: Any#
blockDimZ: Any#
sharedMemBytes: Any#
hStream: Any#
attrs: Any#
numAttrs: Any#
static PROPERTIES() → list[str]#
static fromObj(pyobj) → Any#
static allocate(count: int = 1) → Any#
c_sizeof() → int#
as_c_void_p() → Any#
cuda.bindings.runtime.CUlaunchConfig: Any#
cuda.bindings.runtime.HIP_PYTHON_CUmemRangeHandleType_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemRangeHandleType#

Bases: enum.IntEnum

Requested handle type for address range.

hipMemRangeHandleTypeDmaBufFd: int#
CU_MEM_RANGE_HANDLE_TYPE_DMA_BUF_FD: int#
hipMemRangeHandleTypeMax: int#
CU_MEM_RANGE_HANDLE_TYPE_MAX: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemRangeHandleType_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemRangeHandleType_enum#

Bases: enum.IntEnum

Requested handle type for address range.

hipMemRangeHandleTypeDmaBufFd: int#
CU_MEM_RANGE_HANDLE_TYPE_DMA_BUF_FD: int#
hipMemRangeHandleTypeMax: int#
CU_MEM_RANGE_HANDLE_TYPE_MAX: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemRangeFlags_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemRangeFlags#

Bases: enum.IntEnum

Mem Range Flags used in hipMemGetHandleForAddressRange.

hipMemRangeFlagDmaBufMappingTypePcie: int#
CU_MEM_RANGE_FLAG_DMA_BUF_MAPPING_TYPE_PCIE: int#
hipMemRangeFlagsMax: int#
cuda.bindings.runtime.HIP_PYTHON_CUmemRangeFlags_enum_HALLUCINATE: Any#
class cuda.bindings.runtime.CUmemRangeFlags_enum#

Bases: enum.IntEnum

Mem Range Flags used in hipMemGetHandleForAddressRange.

hipMemRangeFlagDmaBufMappingTypePcie: int#
CU_MEM_RANGE_FLAG_DMA_BUF_MAPPING_TYPE_PCIE: int#
hipMemRangeFlagsMax: int#
cuda.bindings.runtime.cuInit(flags)#

Explicitly initializes the HIP runtime.

Defines the HIP API. See the individual sections for more information.

  • This section describes the initializtion and version functions of HIP runtime API.

Most HIP APIs implicitly initialize the HIP runtime. This API provides control over the timing of the initialization.

Note:

Applications that use fork() should not initialize the HIP runtime before the fork when the child process will continue executing HIP code without an immediate exec(). Instead, the parent and child processes should initialize HIP independently after fork(). Inheriting HIP runtime state across fork() may lead to undefined behavior or initialization failures.

Args:
flags (int) – IN:

Initialization flag, should be zero.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipInit(unsigned int flags)
cuda.bindings.runtime.cuDriverGetVersion()#

Returns the approximate HIP driver version.

HIP driver version shows up in the format: HIP_VERSION_MAJOR * 10000000 + HIP_VERSION_MINOR * 100000 + HIP_VERSION_PATCH.

Warning:

The HIP driver version does not correspond to an exact CUDA driver revision. On AMD platform, the API returns the HIP driver version, while on NVIDIA platform, it calls the corresponding CUDA runtime API and returns the CUDA driver version. There is no mapping/correlation between HIP driver version and CUDA driver version.

See:

hipRuntimeGetVersion

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDriverGetVersion(int * driverVersion)
cuda.bindings.runtime.cudaDriverGetVersion()#

Returns the approximate HIP driver version.

HIP driver version shows up in the format: HIP_VERSION_MAJOR * 10000000 + HIP_VERSION_MINOR * 100000 + HIP_VERSION_PATCH.

Warning:

The HIP driver version does not correspond to an exact CUDA driver revision. On AMD platform, the API returns the HIP driver version, while on NVIDIA platform, it calls the corresponding CUDA runtime API and returns the CUDA driver version. There is no mapping/correlation between HIP driver version and CUDA driver version.

See:

hipRuntimeGetVersion

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDriverGetVersion(int * driverVersion)
cuda.bindings.runtime.cudaRuntimeGetVersion()#

Returns the approximate HIP Runtime version.

Warning:

The version definition of HIP runtime is different from CUDA. On AMD platform, the function returns HIP runtime version, while on NVIDIA platform, it returns CUDA runtime version. And there is no mapping/correlation between HIP version and CUDA version.

See:

hipDriverGetVersion

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipRuntimeGetVersion(int * runtimeVersion)
cuda.bindings.runtime.getLocalRuntimeVersion()#

Returns the approximate HIP Runtime version.

Warning:

The version definition of HIP runtime is different from CUDA. On AMD platform, the function returns HIP runtime version, while on NVIDIA platform, it returns CUDA runtime version. And there is no mapping/correlation between HIP version and CUDA version.

See:

hipDriverGetVersion

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipRuntimeGetVersion(int * runtimeVersion)
cuda.bindings.runtime.cuDeviceGet(ordinal)#

Returns a handle to a compute device

Args:
ordinal (int) – IN:

Device ordinal

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGet(hipDevice_t * device, int ordinal)
cuda.bindings.runtime.cuDeviceComputeCapability(device)#

Returns the compute capability of the device

Args:
device (int) – IN:

Device ordinal

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipDeviceComputeCapability(int * major, int * minor, hipDevice_t device)
cuda.bindings.runtime.cuDeviceGetName(len, device)#

Returns an identifer string for the device.

Args:
len (int) – IN:

Maximum length of string to store in device name

device (int) – IN:

Device ordinal

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetName(char * name, int len, hipDevice_t device)
cuda.bindings.runtime.cuDeviceGetUuid(device)#

Returns an UUID for the device.[BETA]

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Args:
device (int) – IN:

device ordinal

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetUuid(hipUUID * uuid, hipDevice_t device)
cuda.bindings.runtime.cuDeviceGetUuid_v2(device)#

Returns an UUID for the device.[BETA]

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Args:
device (int) – IN:

device ordinal

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetUuid(hipUUID * uuid, hipDevice_t device)
cuda.bindings.runtime.cuDeviceGetP2PAttribute(attr, srcDevice, dstDevice)#

Returns a value for attribute of link between two devices

Args:
attr (hipDeviceP2PAttr) – IN:

enum of hipDeviceP2PAttr to query

srcDevice (int) – IN:

The source device of the link

dstDevice (int) – IN:

The destination device of the link

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetP2PAttribute(int * value, hipDeviceP2PAttr attr, int srcDevice, int dstDevice)
cuda.bindings.runtime.cudaDeviceGetP2PAttribute(attr, srcDevice, dstDevice)#

Returns a value for attribute of link between two devices

Args:
attr (hipDeviceP2PAttr) – IN:

enum of hipDeviceP2PAttr to query

srcDevice (int) – IN:

The source device of the link

dstDevice (int) – IN:

The destination device of the link

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetP2PAttribute(int * value, hipDeviceP2PAttr attr, int srcDevice, int dstDevice)
cuda.bindings.runtime.cuDeviceGetPCIBusId(len, device)#

Returns a PCI Bus Id string for the device, overloaded to take int device ID.

Args:
len (int) – IN:

Maximum length of string

device (int) – IN:

The device ordinal

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetPCIBusId(char * pciBusId, int len, int device)
cuda.bindings.runtime.cudaDeviceGetPCIBusId(len, device)#

Returns a PCI Bus Id string for the device, overloaded to take int device ID.

Args:
len (int) – IN:

Maximum length of string

device (int) – IN:

The device ordinal

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetPCIBusId(char * pciBusId, int len, int device)
cuda.bindings.runtime.cuDeviceGetByPCIBusId(pciBusId)#

Returns a handle to a compute device.

Args:
pciBusId (CStr/object) – IN:

The string of PCI Bus Id for the device

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetByPCIBusId(int * device, const char * pciBusId)
cuda.bindings.runtime.cudaDeviceGetByPCIBusId(pciBusId)#

Returns a handle to a compute device.

Args:
pciBusId (CStr/object) – IN:

The string of PCI Bus Id for the device

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetByPCIBusId(int * device, const char * pciBusId)
cuda.bindings.runtime.cuDeviceTotalMem(device)#

Returns the total amount of memory on the device.

Args:
device (int) – IN:

The ordinal of the device

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceTotalMem(size_t * bytes, hipDevice_t device)
cuda.bindings.runtime.cuDeviceTotalMem_v2(device)#

Returns the total amount of memory on the device.

Args:
device (int) – IN:

The ordinal of the device

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceTotalMem(size_t * bytes, hipDevice_t device)
cuda.bindings.runtime.cudaDeviceSynchronize()#

Waits on all active streams on current device

  • This section describes the device management functions of HIP runtime API.

When this command is invoked, the host thread gets blocked until all the commands associated with streams associated with the device. HIP does not support multiple blocking modes (yet!).

See:

hipSetDevice, hipDeviceReset

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipDeviceSynchronize()
cuda.bindings.runtime.cudaThreadSynchronize()#

Waits on all active streams on current device

  • This section describes the device management functions of HIP runtime API.

When this command is invoked, the host thread gets blocked until all the commands associated with streams associated with the device. HIP does not support multiple blocking modes (yet!).

See:

hipSetDevice, hipDeviceReset

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipDeviceSynchronize()
cuda.bindings.runtime.cudaDeviceReset()#

The state of current device is discarded and updated to a fresh state.

Calling this function deletes all streams created, memory allocated, kernels running, events created. Make sure that no other thread is using the device or streams, memory, kernels, events associated with the current device.

See:

hipDeviceSynchronize

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipDeviceReset()
cuda.bindings.runtime.cudaThreadExit()#

The state of current device is discarded and updated to a fresh state.

Calling this function deletes all streams created, memory allocated, kernels running, events created. Make sure that no other thread is using the device or streams, memory, kernels, events associated with the current device.

See:

hipDeviceSynchronize

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipDeviceReset()
cuda.bindings.runtime.cudaSetDevice(deviceId)#

Set default device to be used for subsequent hip API calls from this thread.

Sets device as the default device for the calling host thread. Valid device id’s are 0… (hipGetDeviceCount()-1).

Many HIP APIs implicitly use the “default device” :

  • Any device memory subsequently allocated from this host thread (using hipMalloc) will be

allocated on device. - Any streams or events created from this host thread will be associated with device. - Any kernels launched from this host thread (using hipLaunchKernel) will be executed on device (unless a specific stream is specified, in which case the device associated with that stream will be used).

This function may be called from any host thread. Multiple host threads may use the same device. This function does no synchronization with the previous or new device, and has very little runtime overhead. Applications can use hipSetDevice to quickly switch the default device before making a HIP runtime call which uses the default device.

The default device is stored in thread-local-storage for each thread. Thread-pool implementations may inherit the default device of the previous thread. A good practice is to always call hipSetDevice at the start of HIP coding sequency to establish a known standard device.

See:

hipGetDevice, hipGetDeviceCount

Args:
deviceId (int) – IN:

Valid device in range 0…hipGetDeviceCount().

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice, hipErrorNoDevice

C signature

hipError_t hipSetDevice(int deviceId)
cuda.bindings.runtime.cudaSetValidDevices(len)#

Set a list of devices that can be used.

See:

hipGetDevice, hipGetDeviceCount. hipSetDevice. hipGetDeviceProperties. hipSetDeviceFlags. hipChooseDevice

Args:
len (int) – IN:

Number of devices in specified list

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipSetValidDevices(int * device_arr, int len)
cuda.bindings.runtime.cudaGetDevice()#

Return the default device id for the calling host thread.

HIP maintains an default device for each thread using thread-local-storage. This device is used implicitly for HIP runtime APIs called by this thread. hipGetDevice returns in * device the default device for the calling host thread.

See:

hipSetDevice, hipGetDevicesizeBytes

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetDevice(int * deviceId)
cuda.bindings.runtime.cuDeviceGetCount()#

Return number of compute-capable devices.

Returns in *count the number of devices that have ability to run compute commands. If there are no such devices, then hipGetDeviceCount will return hipErrorNoDevice. If 1 or more devices can be found, then hipGetDeviceCount returns hipSuccess.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetDeviceCount(int * count)
cuda.bindings.runtime.cudaGetDeviceCount()#

Return number of compute-capable devices.

Returns in *count the number of devices that have ability to run compute commands. If there are no such devices, then hipGetDeviceCount will return hipErrorNoDevice. If 1 or more devices can be found, then hipGetDeviceCount returns hipSuccess.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetDeviceCount(int * count)
cuda.bindings.runtime.cuDeviceGetAttribute(attr, deviceId)#

Query for a specific device attribute.

Args:
attr (hipDeviceAttribute_t) – IN:

attribute to query

deviceId (int) – IN:

which device to query for information

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetAttribute(int * pi, hipDeviceAttribute_t attr, int deviceId)
cuda.bindings.runtime.cudaDeviceGetAttribute(attr, deviceId)#

Query for a specific device attribute.

Args:
attr (hipDeviceAttribute_t) – IN:

attribute to query

deviceId (int) – IN:

which device to query for information

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetAttribute(int * pi, hipDeviceAttribute_t attr, int deviceId)
cuda.bindings.runtime.cuDeviceGetDefaultMemPool(device)#

Returns the default memory pool of the specified device

See:

hipDeviceGetDefaultMemPool, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Args:
device (int) – IN:

Device index for query the default memory pool

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetDefaultMemPool(hipMemPool_t * mem_pool, int device)
cuda.bindings.runtime.cudaDeviceGetDefaultMemPool(device)#

Returns the default memory pool of the specified device

See:

hipDeviceGetDefaultMemPool, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Args:
device (int) – IN:

Device index for query the default memory pool

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetDefaultMemPool(hipMemPool_t * mem_pool, int device)
cuda.bindings.runtime.cuDeviceSetMemPool(device, mem_pool)#

Sets the current memory pool of a device

The memory pool must be local to the specified device. hipMallocAsync allocates from the current mempool of the provided stream’s device. By default, a device’s current memory pool is its default memory pool.

Note:

Use hipMallocFromPoolAsync for asynchronous memory allocations from a device different than the one the stream runs on.

See:

hipDeviceGetDefaultMemPool, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Args:
device (int) – IN:

Device index for the update

mem_pool (ihipMemPoolHandle_t/object) – IN:

Memory pool for update as the current on the specified device

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidDevice, hipErrorNotSupported

C signature

hipError_t hipDeviceSetMemPool(int device, hipMemPool_t mem_pool)
cuda.bindings.runtime.cudaDeviceSetMemPool(device, mem_pool)#

Sets the current memory pool of a device

The memory pool must be local to the specified device. hipMallocAsync allocates from the current mempool of the provided stream’s device. By default, a device’s current memory pool is its default memory pool.

Note:

Use hipMallocFromPoolAsync for asynchronous memory allocations from a device different than the one the stream runs on.

See:

hipDeviceGetDefaultMemPool, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Args:
device (int) – IN:

Device index for the update

mem_pool (ihipMemPoolHandle_t/object) – IN:

Memory pool for update as the current on the specified device

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidDevice, hipErrorNotSupported

C signature

hipError_t hipDeviceSetMemPool(int device, hipMemPool_t mem_pool)
cuda.bindings.runtime.cuDeviceGetMemPool(device)#

Gets the current memory pool for the specified device

Returns the last pool provided to hipDeviceSetMemPool for this device or the device’s default memory pool if hipDeviceSetMemPool has never been called. By default the current mempool is the default mempool for a device, otherwise the returned pool must have been set with hipDeviceSetMemPool.

See:

hipDeviceGetDefaultMemPool, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Args:
device (int) – IN:

Device index to query the current memory pool

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetMemPool(hipMemPool_t * mem_pool, int device)
cuda.bindings.runtime.cudaDeviceGetMemPool(device)#

Gets the current memory pool for the specified device

Returns the last pool provided to hipDeviceSetMemPool for this device or the device’s default memory pool if hipDeviceSetMemPool has never been called. By default the current mempool is the default mempool for a device, otherwise the returned pool must have been set with hipDeviceSetMemPool.

See:

hipDeviceGetDefaultMemPool, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Args:
device (int) – IN:

Device index to query the current memory pool

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetMemPool(hipMemPool_t * mem_pool, int device)
cuda.bindings.runtime.cudaGetDeviceProperties(deviceId)#

Returns device properties.

Bug:

HIP-Clang always returns 0 for maxThreadsPerMultiProcessor

Bug:

HIP-Clang always returns 0 for regsPerBlock

Bug:

HIP-Clang always returns 0 for l2CacheSize

Populates hipGetDeviceProperties with information for the specified device.

Args:
deviceId (int) – IN:

which device to query for information

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetDevicePropertiesR0600(hipDeviceProp_tR0600 * prop, int deviceId)
cuda.bindings.runtime.cudaDeviceGetTexture1DLinearMaxWidth(desc, device)#

Gets the maximum width for 1D linear textures on the specified device

This function queries the maximum width, in elements, of 1D linear textures that can be allocated on the specified device. The maximum width depends on the texture element size and the hardware limitations of the device.

See:

hipDeviceGetAttribute, hipMalloc, hipTexRefSetAddressMode

Args:
desc (hipChannelFormatDesc/object) – IN:

Requested channel format

device (int) – IN:

Device index to query for maximum 1D texture width

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetTexture1DLinearMaxWidth(size_t * max_width, const hipChannelFormatDesc * desc, int device)
cuda.bindings.runtime.cudaDeviceSetCacheConfig(cacheConfig)#

Set L1/Shared cache partition.

Note: AMD devices do not support reconfigurable cache. This API is not implemented on AMD platform. If the function is called, it will return hipErrorNotSupported.

Args:
cacheConfig (hipFuncCache_t) – IN:

Cache configuration

Returns:

hipError_t: py:obj:hipSuccess, hipErrorNotInitialized, hipErrorNotSupported

C signature

hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig)
cuda.bindings.runtime.cudaThreadSetCacheConfig(cacheConfig)#

Set L1/Shared cache partition.

Note: AMD devices do not support reconfigurable cache. This API is not implemented on AMD platform. If the function is called, it will return hipErrorNotSupported.

Args:
cacheConfig (hipFuncCache_t) – IN:

Cache configuration

Returns:

hipError_t: py:obj:hipSuccess, hipErrorNotInitialized, hipErrorNotSupported

C signature

hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig)
cuda.bindings.runtime.cudaDeviceGetCacheConfig()#

Get Cache configuration for a specific Device

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetCacheConfig(hipFuncCache_t * cacheConfig)
cuda.bindings.runtime.cudaThreadGetCacheConfig()#

Get Cache configuration for a specific Device

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetCacheConfig(hipFuncCache_t * cacheConfig)
cuda.bindings.runtime.cuCtxGetLimit(limit)#

Gets resource limits of current device

The function queries the size of limit value, as required by the input enum value hipLimit_t, which can be either hipLimitStackSize, or hipLimitMallocHeapSize. Any other input as default, the function will return hipErrorUnsupportedLimit.

Args:
limit (hipLimit_t) – IN:

The limit to query

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetLimit(size_t * pValue, enum hipLimit_t limit)
cuda.bindings.runtime.cudaDeviceGetLimit(limit)#

Gets resource limits of current device

The function queries the size of limit value, as required by the input enum value hipLimit_t, which can be either hipLimitStackSize, or hipLimitMallocHeapSize. Any other input as default, the function will return hipErrorUnsupportedLimit.

Args:
limit (hipLimit_t) – IN:

The limit to query

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetLimit(size_t * pValue, enum hipLimit_t limit)
cuda.bindings.runtime.cuCtxSetLimit(limit, value)#

Sets resource limits of current device.

As the input enum limit, hipLimitStackSize sets the limit value of the stack size on the current GPU device, per thread. The limit size can get via hipDeviceGetLimit. The size is in units of 256 dwords, up to the limit (128K - 16).

hipLimitMallocHeapSize sets the limit value of the heap used by the malloc()/free() calls. For limit size, use the hipDeviceGetLimit API.

Any other input as default, the funtion will return hipErrorUnsupportedLimit.

Args:
limit (hipLimit_t) – IN:

Enum of hipLimit_t to set

value (int) – IN:

The size of limit value in bytes

Returns:

hipError_t: py:obj:hipSuccess, hipErrorUnsupportedLimit, hipErrorInvalidValue

C signature

hipError_t hipDeviceSetLimit(enum hipLimit_t limit, size_t value)
cuda.bindings.runtime.cudaDeviceSetLimit(limit, value)#

Sets resource limits of current device.

As the input enum limit, hipLimitStackSize sets the limit value of the stack size on the current GPU device, per thread. The limit size can get via hipDeviceGetLimit. The size is in units of 256 dwords, up to the limit (128K - 16).

hipLimitMallocHeapSize sets the limit value of the heap used by the malloc()/free() calls. For limit size, use the hipDeviceGetLimit API.

Any other input as default, the funtion will return hipErrorUnsupportedLimit.

Args:
limit (hipLimit_t) – IN:

Enum of hipLimit_t to set

value (int) – IN:

The size of limit value in bytes

Returns:

hipError_t: py:obj:hipSuccess, hipErrorUnsupportedLimit, hipErrorInvalidValue

C signature

hipError_t hipDeviceSetLimit(enum hipLimit_t limit, size_t value)
cuda.bindings.runtime.cudaDeviceGetSharedMemConfig()#

Returns bank width of shared memory for current device

Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceGetSharedMemConfig(hipSharedMemConfig * pConfig)
cuda.bindings.runtime.cudaGetDeviceFlags()#

Gets the flags set for current device

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetDeviceFlags(unsigned int * flags)
cuda.bindings.runtime.cudaDeviceSetSharedMemConfig(config)#

The bank width of shared memory on current device is set

Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.

Args:
config (hipSharedMemConfig) – IN:

Configuration for the bank width of shared memory

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized

C signature

hipError_t hipDeviceSetSharedMemConfig(hipSharedMemConfig config)
cuda.bindings.runtime.cudaSetDeviceFlags(flags)#

The current device behavior is changed according to the flags passed.

The schedule flags impact how HIP waits for the completion of a command running on a device.

hipDeviceScheduleSpin : HIP runtime will actively spin in the thread which submitted the work until the command completes. This offers the lowest latency, but will consume a CPU core and may increase power.

hipDeviceScheduleYield : The HIP runtime will yield the CPU to system so that other tasks can use it. This may increase latency to detect the completion but will consume less power and is friendlier to other tasks in the system.

hipDeviceScheduleBlockingSync : On ROCm platform, this is a synonym for hipDeviceScheduleYield.

hipDeviceScheduleAuto : This is the default value if the input ‘flags’ is zero. Uses a heuristic to select between Spin and Yield modes. If the number of HIP contexts is greater than the number of logical processors in the system, uses Spin scheduling, otherwise uses Yield scheduling.

hipDeviceMapHost : Allows mapping host memory. On ROCm, this is always allowed and the flag is ignored.

hipDeviceLmemResizeToMax : This flag is silently ignored on ROCm.

Args:
flags (int) – IN:

Flag to set on the current device

Returns:

hipError_t: py:obj:hipSuccess, hipErrorNoDevice, hipErrorInvalidDevice, hipErrorSetOnActiveProcess

C signature

hipError_t hipSetDeviceFlags(unsigned int flags)
cuda.bindings.runtime.cudaChooseDevice(prop)#

Device which matches hipDeviceProp_t is returned

Args:
prop (hipDeviceProp_t/object) – IN:

Pointer of the properties

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipChooseDeviceR0600(int * device, const hipDeviceProp_tR0600 * prop)
cuda.bindings.runtime.cuIpcGetMemHandle(devPtr)#
Gets an interprocess memory handle for an existing device memory

allocation

Takes a pointer to the base of an existing device memory allocation created with hipMalloc and exports it for use in another process. This is a lightweight operation and may be called multiple times on an allocation without adverse effects.

If a region of memory is freed with hipFree and a subsequent call to hipMalloc returns memory with the same device address, hipIpcGetMemHandle will return a unique handle for the new memory.

Note:

This IPC memory related feature API on Windows may behave differently from Linux.

Args:
devPtr (Pointer/object):
  • Base pointer to previously allocated device memory

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t * handle, void * devPtr)
cuda.bindings.runtime.cudaIpcGetMemHandle(devPtr)#
Gets an interprocess memory handle for an existing device memory

allocation

Takes a pointer to the base of an existing device memory allocation created with hipMalloc and exports it for use in another process. This is a lightweight operation and may be called multiple times on an allocation without adverse effects.

If a region of memory is freed with hipFree and a subsequent call to hipMalloc returns memory with the same device address, hipIpcGetMemHandle will return a unique handle for the new memory.

Note:

This IPC memory related feature API on Windows may behave differently from Linux.

Args:
devPtr (Pointer/object):
  • Base pointer to previously allocated device memory

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t * handle, void * devPtr)
cuda.bindings.runtime.cuIpcOpenMemHandle(handle, flags)#
Opens an interprocess memory handle exported from another process

and returns a device pointer usable in the local process.

Maps memory exported from another process with hipIpcGetMemHandle into the current device address space. For contexts on different devices hipIpcOpenMemHandle can attempt to enable peer access between the devices as if the user called hipDeviceEnablePeerAccess. This behavior is controlled by the hipIpcMemLazyEnablePeerAccess flag. hipDeviceCanAccessPeer can determine if a mapping is possible.

Contexts that may open hipIpcMemHandles are restricted in the following way. hipIpcMemHandles from each device in a given process may only be opened by one context per device per other process.

Memory returned from hipIpcOpenMemHandle must be freed with hipIpcCloseMemHandle.

Calling hipFree on an exported memory region before calling hipIpcCloseMemHandle in the importing context will result in undefined behavior.

Note:

During multiple processes, using the same memory handle opened by the current context, there is no guarantee that the same device poiter will be returned in *devPtr. This is diffrent from CUDA.

Note:

This IPC memory related feature API on Windows may behave differently from Linux.

Args:
handle (hipIpcMemHandle_st):
  • hipIpcMemHandle to open

flags (int):
  • Flags for this operation. Must be specified as hipIpcMemLazyEnablePeerAccess

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipIpcOpenMemHandle(void ** devPtr, hipIpcMemHandle_t handle, unsigned int flags)
cuda.bindings.runtime.cudaIpcOpenMemHandle(handle, flags)#
Opens an interprocess memory handle exported from another process

and returns a device pointer usable in the local process.

Maps memory exported from another process with hipIpcGetMemHandle into the current device address space. For contexts on different devices hipIpcOpenMemHandle can attempt to enable peer access between the devices as if the user called hipDeviceEnablePeerAccess. This behavior is controlled by the hipIpcMemLazyEnablePeerAccess flag. hipDeviceCanAccessPeer can determine if a mapping is possible.

Contexts that may open hipIpcMemHandles are restricted in the following way. hipIpcMemHandles from each device in a given process may only be opened by one context per device per other process.

Memory returned from hipIpcOpenMemHandle must be freed with hipIpcCloseMemHandle.

Calling hipFree on an exported memory region before calling hipIpcCloseMemHandle in the importing context will result in undefined behavior.

Note:

During multiple processes, using the same memory handle opened by the current context, there is no guarantee that the same device poiter will be returned in *devPtr. This is diffrent from CUDA.

Note:

This IPC memory related feature API on Windows may behave differently from Linux.

Args:
handle (hipIpcMemHandle_st):
  • hipIpcMemHandle to open

flags (int):
  • Flags for this operation. Must be specified as hipIpcMemLazyEnablePeerAccess

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipIpcOpenMemHandle(void ** devPtr, hipIpcMemHandle_t handle, unsigned int flags)
cuda.bindings.runtime.cuIpcCloseMemHandle(devPtr)#

Close memory mapped with hipIpcOpenMemHandle

Unmaps memory returnd by hipIpcOpenMemHandle. The original allocation in the exporting process as well as imported mappings in other processes will be unaffected.

Any resources used to enable peer access will be freed if this is the last mapping using them.

Note:

This IPC memory related feature API on Windows may behave differently from Linux.

Args:
devPtr (Pointer/object):
  • Device pointer returned by hipIpcOpenMemHandle

Returns:

hipError_t: py:obj:hipSuccess, hipErrorMapFailed, hipErrorInvalidHandle

C signature

hipError_t hipIpcCloseMemHandle(void * devPtr)
cuda.bindings.runtime.cudaIpcCloseMemHandle(devPtr)#

Close memory mapped with hipIpcOpenMemHandle

Unmaps memory returnd by hipIpcOpenMemHandle. The original allocation in the exporting process as well as imported mappings in other processes will be unaffected.

Any resources used to enable peer access will be freed if this is the last mapping using them.

Note:

This IPC memory related feature API on Windows may behave differently from Linux.

Args:
devPtr (Pointer/object):
  • Device pointer returned by hipIpcOpenMemHandle

Returns:

hipError_t: py:obj:hipSuccess, hipErrorMapFailed, hipErrorInvalidHandle

C signature

hipError_t hipIpcCloseMemHandle(void * devPtr)
cuda.bindings.runtime.cuIpcGetEventHandle(event)#

Gets an opaque interprocess handle for an event.

This opaque handle may be copied into other processes and opened with hipIpcOpenEventHandle. Then hipEventRecord, hipEventSynchronize, hipStreamWaitEvent and hipEventQuery may be used in either process. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior.

Note:

This IPC event related feature API is currently applicable on Linux.

Args:
event (ihipEvent_t/object) – IN:

Event allocated with hipEventInterprocess and hipEventDisableTiming flags

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipIpcGetEventHandle(hipIpcEventHandle_t * handle, hipEvent_t event)
cuda.bindings.runtime.cudaIpcGetEventHandle(event)#

Gets an opaque interprocess handle for an event.

This opaque handle may be copied into other processes and opened with hipIpcOpenEventHandle. Then hipEventRecord, hipEventSynchronize, hipStreamWaitEvent and hipEventQuery may be used in either process. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior.

Note:

This IPC event related feature API is currently applicable on Linux.

Args:
event (ihipEvent_t/object) – IN:

Event allocated with hipEventInterprocess and hipEventDisableTiming flags

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipIpcGetEventHandle(hipIpcEventHandle_t * handle, hipEvent_t event)
cuda.bindings.runtime.cuIpcOpenEventHandle(handle)#

Opens an interprocess event handles.

Opens an interprocess event handle exported from another process with hipIpcGetEventHandle. The returned hipEvent_t behaves like a locally created event with the hipEventDisableTiming flag specified. This event need be freed with hipEventDestroy. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior. If the function is called within the same process where handle is returned by hipIpcGetEventHandle, it will return hipErrorInvalidContext.

Note:

This IPC event related feature API is currently applicable on Linux.

Args:
handle (hipIpcEventHandle_st) – IN:

The opaque interprocess handle to open

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipIpcOpenEventHandle(hipEvent_t * event, hipIpcEventHandle_t handle)
cuda.bindings.runtime.cudaIpcOpenEventHandle(handle)#

Opens an interprocess event handles.

Opens an interprocess event handle exported from another process with hipIpcGetEventHandle. The returned hipEvent_t behaves like a locally created event with the hipEventDisableTiming flag specified. This event need be freed with hipEventDestroy. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior. If the function is called within the same process where handle is returned by hipIpcGetEventHandle, it will return hipErrorInvalidContext.

Note:

This IPC event related feature API is currently applicable on Linux.

Args:
handle (hipIpcEventHandle_st) – IN:

The opaque interprocess handle to open

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipIpcOpenEventHandle(hipEvent_t * event, hipIpcEventHandle_t handle)
cuda.bindings.runtime.cudaFuncSetAttribute(func, attr, value)#

Set attribute for a specific function

  • This section describes the execution control functions of HIP runtime API.

Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.

Args:
func (Pointer/object) – IN:

Pointer of the function

attr (hipFuncAttribute) – IN:

Attribute to set

value (int) – IN:

Value to set

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDeviceFunction, hipErrorInvalidValue

C signature

hipError_t hipFuncSetAttribute(const void * func, hipFuncAttribute attr, int value)
cuda.bindings.runtime.cudaFuncSetCacheConfig(func, config)#

Set Cache configuration for a specific function

Args:
func (Pointer/object) – IN:

Pointer of the function.

config (hipFuncCache_t) – IN:

Configuration to set.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorNotInitialized

Note: AMD devices and some Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.

C signature

hipError_t hipFuncSetCacheConfig(const void * func, hipFuncCache_t config)
cuda.bindings.runtime.cudaFuncSetSharedMemConfig(func, config)#

Set shared memory configuation for a specific function

Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.

Args:
func (Pointer/object) – IN:

Pointer of the function

config (hipSharedMemConfig) – IN:

Configuration

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDeviceFunction, hipErrorInvalidValue

C signature

hipError_t hipFuncSetSharedMemConfig(const void * func, hipSharedMemConfig config)
cuda.bindings.runtime.cudaGetLastError()#

Return last error returned by any HIP runtime API call and resets the stored error code to hipSuccess

  • This section describes the error handling functions of HIP runtime API.

Returns the last error that has been returned by any of the runtime calls in the same host thread, and then resets the saved error to hipSuccess.

See:

hipGetErrorString, hipGetLastError, hipPeakAtLastError, hipError_t

Returns:

hipError_t: return code from last HIP called from the active host thread

C signature

hipError_t hipGetLastError()
cuda.bindings.runtime.cudaPeekAtLastError()#

Return last error returned by any HIP runtime API call.

Returns the last error that has been returned by any of the runtime calls in the same host thread. Unlike hipGetLastError, this function does not reset the saved error code.

See:

hipGetErrorString, hipGetLastError, hipPeakAtLastError, hipError_t

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipPeekAtLastError()
cuda.bindings.runtime.cudaGetErrorName(hip_error)#

Return hip error as text string form.

See:

hipGetErrorString, hipGetLastError, hipPeakAtLastError, hipError_t

Args:
hip_error (hipError_t):

Error code to convert to name.

Returns:

A tuple of size 2 that contains (in that order):

C signature

const char * hipGetErrorName(hipError_t hip_error)
cuda.bindings.runtime.cudaGetErrorString(hipError)#

Return handy text string message to explain the error which occurred

See:

hipGetErrorName, hipGetLastError, hipPeakAtLastError, hipError_t

Args:
hipError (hipError_t):

Error code to convert to string.

Returns:

A tuple of size 2 that contains (in that order):

C signature

const char * hipGetErrorString(hipError_t hipError)
cuda.bindings.runtime.cuGetErrorName(hipError)#

Return hip error as text string form.

See:

hipGetErrorName, hipGetLastError, hipPeakAtLastError, hipError_t

Args:
hipError (hipError_t) – IN:

Error code to convert to string.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDrvGetErrorName(hipError_t hipError, const char ** errorString)
cuda.bindings.runtime.cuGetErrorString(hipError)#

Return handy text string message to explain the error which occurred

See:

hipGetErrorName, hipGetLastError, hipPeakAtLastError, hipError_t

Args:
hipError (hipError_t) – IN:

Error code to convert to string.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDrvGetErrorString(hipError_t hipError, const char ** errorString)
cuda.bindings.runtime.cudaStreamCreate()#

Creates an asynchronous stream.

Creates a new asynchronous stream with its associated current device. The stream returns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, the application must call hipStreamDestroy.

See:

hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamCreate(hipStream_t * stream)
cuda.bindings.runtime.cuStreamCreate(flags)#

Creates an asynchronous stream with flag.

Creates a new asynchronous stream with its associated current device. stream returns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, application must call hipStreamDestroy.

The flags parameter controls behavior of the stream. The valid values are hipStreamDefault and hipStreamNonBlocking.

See:

hipStreamCreate, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy.

Args:
flags (int) – IN:

Parameters to control stream creation

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamCreateWithFlags(hipStream_t * stream, unsigned int flags)
cuda.bindings.runtime.cudaStreamCreateWithFlags(flags)#

Creates an asynchronous stream with flag.

Creates a new asynchronous stream with its associated current device. stream returns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, application must call hipStreamDestroy.

The flags parameter controls behavior of the stream. The valid values are hipStreamDefault and hipStreamNonBlocking.

See:

hipStreamCreate, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy.

Args:
flags (int) – IN:

Parameters to control stream creation

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamCreateWithFlags(hipStream_t * stream, unsigned int flags)
cuda.bindings.runtime.cuStreamCreateWithPriority(flags, priority)#

Creates an asynchronous stream with the specified priority.

Creates a new asynchronous stream with the specified priority, with its associated current device. stream returns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, application must call hipStreamDestroy.

The flags parameter controls behavior of the stream. The valid values are hipStreamDefault and hipStreamNonBlocking.

See:

hipStreamCreate, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy

Args:
flags (int) – IN:

Parameters to control stream creation

priority (int) – IN:

Priority of the stream. Lower numbers represent higher priorities.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamCreateWithPriority(hipStream_t * stream, unsigned int flags, int priority)
cuda.bindings.runtime.cudaStreamCreateWithPriority(flags, priority)#

Creates an asynchronous stream with the specified priority.

Creates a new asynchronous stream with the specified priority, with its associated current device. stream returns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, application must call hipStreamDestroy.

The flags parameter controls behavior of the stream. The valid values are hipStreamDefault and hipStreamNonBlocking.

See:

hipStreamCreate, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy

Args:
flags (int) – IN:

Parameters to control stream creation

priority (int) – IN:

Priority of the stream. Lower numbers represent higher priorities.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamCreateWithPriority(hipStream_t * stream, unsigned int flags, int priority)
cuda.bindings.runtime.cuCtxGetStreamPriorityRange()#

Returns numerical values that correspond to the least and greatest stream priority.

Returns in *leastPriority and *greatestPriority the numerical values that correspond to the least and greatest stream priority respectively. Stream priorities follow a convention where lower numbers imply greater priorities. The range of meaningful stream priorities is given by [*leastPriority,*greatestPriority]. If the user attempts to create a stream with a priority value that is outside the meaningful range as specified by this API, the priority is automatically clamped to within the valid range.

Warning:

This API is under development on AMD GPUs and simply returns hipSuccess.

Returns:

A tuple of size 3 that contains (in that order):

  • hipError_t: py:obj:hipSuccess

  • int:

    Pointer in which a value corresponding to least priority is returned.

  • int:

    Pointer in which a value corresponding to greatest priority is returned.

C signature

hipError_t hipDeviceGetStreamPriorityRange(int * leastPriority, int * greatestPriority)
cuda.bindings.runtime.cudaDeviceGetStreamPriorityRange()#

Returns numerical values that correspond to the least and greatest stream priority.

Returns in *leastPriority and *greatestPriority the numerical values that correspond to the least and greatest stream priority respectively. Stream priorities follow a convention where lower numbers imply greater priorities. The range of meaningful stream priorities is given by [*leastPriority,*greatestPriority]. If the user attempts to create a stream with a priority value that is outside the meaningful range as specified by this API, the priority is automatically clamped to within the valid range.

Warning:

This API is under development on AMD GPUs and simply returns hipSuccess.

Returns:

A tuple of size 3 that contains (in that order):

  • hipError_t: py:obj:hipSuccess

  • int:

    Pointer in which a value corresponding to least priority is returned.

  • int:

    Pointer in which a value corresponding to greatest priority is returned.

C signature

hipError_t hipDeviceGetStreamPriorityRange(int * leastPriority, int * greatestPriority)
cuda.bindings.runtime.cuStreamDestroy(stream)#

Destroys the specified stream.

Destroys the specified stream.

If commands are still executing on the specified stream, some may complete execution before the queue is deleted.

The queue may be destroyed while some commands are still inflight, or may wait for all commands queued to the stream before destroying it.

See:

hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamQuery, hipStreamWaitEvent, hipStreamSynchronize

Args:
stream (ihipStream_t/object) – IN:

Stream identifier

Returns:

hipError_t: py:obj:hipSuccess hipErrorInvalidHandle

C signature

hipError_t hipStreamDestroy(hipStream_t stream)
cuda.bindings.runtime.cuStreamDestroy_v2(stream)#

Destroys the specified stream.

Destroys the specified stream.

If commands are still executing on the specified stream, some may complete execution before the queue is deleted.

The queue may be destroyed while some commands are still inflight, or may wait for all commands queued to the stream before destroying it.

See:

hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamQuery, hipStreamWaitEvent, hipStreamSynchronize

Args:
stream (ihipStream_t/object) – IN:

Stream identifier

Returns:

hipError_t: py:obj:hipSuccess hipErrorInvalidHandle

C signature

hipError_t hipStreamDestroy(hipStream_t stream)
cuda.bindings.runtime.cudaStreamDestroy(stream)#

Destroys the specified stream.

Destroys the specified stream.

If commands are still executing on the specified stream, some may complete execution before the queue is deleted.

The queue may be destroyed while some commands are still inflight, or may wait for all commands queued to the stream before destroying it.

See:

hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamQuery, hipStreamWaitEvent, hipStreamSynchronize

Args:
stream (ihipStream_t/object) – IN:

Stream identifier

Returns:

hipError_t: py:obj:hipSuccess hipErrorInvalidHandle

C signature

hipError_t hipStreamDestroy(hipStream_t stream)
cuda.bindings.runtime.cuStreamQuery(stream)#

Returns hipSuccess if all of the operations in the specified stream have completed, or hipErrorNotReady if not.

This is thread-safe and returns a snapshot of the current state of the queue. However, if other host threads are sending work to the stream, the status may change immediately after the function is called. It is typically used for debug.

See:

hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamWaitEvent, hipStreamSynchronize, hipStreamDestroy

Args:
stream (ihipStream_t/object) – IN:

Stream to query

Returns:

hipError_t: py:obj:hipSuccess, hipErrorNotReady, hipErrorInvalidHandle

C signature

hipError_t hipStreamQuery(hipStream_t stream)
cuda.bindings.runtime.cudaStreamQuery(stream)#

Returns hipSuccess if all of the operations in the specified stream have completed, or hipErrorNotReady if not.

This is thread-safe and returns a snapshot of the current state of the queue. However, if other host threads are sending work to the stream, the status may change immediately after the function is called. It is typically used for debug.

See:

hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamWaitEvent, hipStreamSynchronize, hipStreamDestroy

Args:
stream (ihipStream_t/object) – IN:

Stream to query

Returns:

hipError_t: py:obj:hipSuccess, hipErrorNotReady, hipErrorInvalidHandle

C signature

hipError_t hipStreamQuery(hipStream_t stream)
cuda.bindings.runtime.cuStreamSynchronize(stream)#

Waits for all commands in the stream to complete.

This command is host-synchronous : the host will block until all operations on the specified stream with its associated device are completed. On multiple device systems, the stream is associated with its device, no need to call hipSetDevice before this API.

This command follows standard null-stream semantics. Specifying the null stream will cause the command to wait for other streams on the same device to complete all pending operations.

This command honors the hipDeviceScheduleBlockingSync flag, which controls whether the wait is active or blocking.

See:

hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamWaitEvent, hipStreamDestroy

Args:
stream (ihipStream_t/object) – IN:

Stream identifier.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidHandle

C signature

hipError_t hipStreamSynchronize(hipStream_t stream)
cuda.bindings.runtime.cudaStreamSynchronize(stream)#

Waits for all commands in the stream to complete.

This command is host-synchronous : the host will block until all operations on the specified stream with its associated device are completed. On multiple device systems, the stream is associated with its device, no need to call hipSetDevice before this API.

This command follows standard null-stream semantics. Specifying the null stream will cause the command to wait for other streams on the same device to complete all pending operations.

This command honors the hipDeviceScheduleBlockingSync flag, which controls whether the wait is active or blocking.

See:

hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamWaitEvent, hipStreamDestroy

Args:
stream (ihipStream_t/object) – IN:

Stream identifier.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidHandle

C signature

hipError_t hipStreamSynchronize(hipStream_t stream)
cuda.bindings.runtime.cuStreamWaitEvent(stream, event, flags)#

Makes the specified compute stream wait for the specified event

This function inserts a wait operation into the specified stream. All future work submitted to stream will wait until event reports completion before beginning execution.

Flags include:

hipEventWaitDefault: Default event creation flag. hipEventWaitExternal: Wait is captured in the graph as an external event node when

performing stream capture

This function only waits for commands in the current stream to complete. Notably, this function does not implicitly wait for commands in the default stream to complete, even if the specified stream is created with hipStreamNonBlocking = 0.

See:

hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamDestroy

Args:
stream (ihipStream_t/object) – IN:

Stream to make wait

event (ihipEvent_t/object) – IN:

Event to wait on

flags (int) – IN:

Parameters to control the operation

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidHandle, hipErrorInvalidValue,

hipErrorStreamCaptureIsolation

C signature

hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags)
cuda.bindings.runtime.cudaStreamWaitEvent(stream, event, flags)#

Makes the specified compute stream wait for the specified event

This function inserts a wait operation into the specified stream. All future work submitted to stream will wait until event reports completion before beginning execution.

Flags include:

hipEventWaitDefault: Default event creation flag. hipEventWaitExternal: Wait is captured in the graph as an external event node when

performing stream capture

This function only waits for commands in the current stream to complete. Notably, this function does not implicitly wait for commands in the default stream to complete, even if the specified stream is created with hipStreamNonBlocking = 0.

See:

hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamDestroy

Args:
stream (ihipStream_t/object) – IN:

Stream to make wait

event (ihipEvent_t/object) – IN:

Event to wait on

flags (int) – IN:

Parameters to control the operation

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidHandle, hipErrorInvalidValue,

hipErrorStreamCaptureIsolation

C signature

hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags)
cuda.bindings.runtime.cuStreamGetFlags(stream)#

Returns flags associated with this stream.

See:

hipStreamCreateWithFlags

Args:
stream (ihipStream_t/object) – IN:

Stream to be queried

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int * flags)
cuda.bindings.runtime.cudaStreamGetFlags(stream)#

Returns flags associated with this stream.

See:

hipStreamCreateWithFlags

Args:
stream (ihipStream_t/object) – IN:

Stream to be queried

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int * flags)
cuda.bindings.runtime.cuStreamGetId(stream)#

Queries the Id of a stream.

See:

hipStreamCreateWithFlags, hipStreamGetFlags, hipStreamCreateWithPriority, hipStreamGetPriority

Args:
stream (ihipStream_t/object) – IN:

Stream to be queried

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamGetId(hipStream_t stream, unsigned long long * streamId)
cuda.bindings.runtime.cudaStreamGetId(stream)#

Queries the Id of a stream.

See:

hipStreamCreateWithFlags, hipStreamGetFlags, hipStreamCreateWithPriority, hipStreamGetPriority

Args:
stream (ihipStream_t/object) – IN:

Stream to be queried

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamGetId(hipStream_t stream, unsigned long long * streamId)
cuda.bindings.runtime.cuStreamGetPriority(stream)#

Queries the priority of a stream.

See:

hipStreamCreateWithPriority

Args:
stream (ihipStream_t/object) – IN:

Stream to be queried

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamGetPriority(hipStream_t stream, int * priority)
cuda.bindings.runtime.cudaStreamGetPriority(stream)#

Queries the priority of a stream.

See:

hipStreamCreateWithPriority

Args:
stream (ihipStream_t/object) – IN:

Stream to be queried

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamGetPriority(hipStream_t stream, int * priority)
class cuda.bindings.runtime.CUstreamCallback(*args, **kwargs)#

Bases: rocm.bindings.hip.hipStreamCallback_t

Stream CallBack struct

class cuda.bindings.runtime.cudaStreamCallback_t(*args, **kwargs)#

Bases: rocm.bindings.hip.hipStreamCallback_t

Stream CallBack struct

cuda.bindings.runtime.cuStreamAddCallback(stream, callback, userData, flags)#

Adds a callback to be called on the host after all currently enqueued items in the stream have completed. For each hipStreamAddCallback call, a callback will be executed exactly once. The callback will block later work in the stream until it is finished.

See:

hipStreamCreate, hipStreamCreateWithFlags, hipStreamQuery, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy, hipStreamCreateWithPriority

Args:
stream (ihipStream_t/object) – IN:
  • Stream to add callback to

callback (hipStreamCallback_t/object) – IN:
  • The function to call once preceding stream operations are complete

userData (Pointer/object) – IN:
  • User specified data to be passed to the callback function

flags (int) – IN:
  • Reserved for future use, must be 0

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidHandle, hipErrorNotSupported

C signature

hipError_t hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback, void * userData, unsigned int flags)
cuda.bindings.runtime.cudaStreamAddCallback(stream, callback, userData, flags)#

Adds a callback to be called on the host after all currently enqueued items in the stream have completed. For each hipStreamAddCallback call, a callback will be executed exactly once. The callback will block later work in the stream until it is finished.

See:

hipStreamCreate, hipStreamCreateWithFlags, hipStreamQuery, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy, hipStreamCreateWithPriority

Args:
stream (ihipStream_t/object) – IN:
  • Stream to add callback to

callback (hipStreamCallback_t/object) – IN:
  • The function to call once preceding stream operations are complete

userData (Pointer/object) – IN:
  • User specified data to be passed to the callback function

flags (int) – IN:
  • Reserved for future use, must be 0

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidHandle, hipErrorNotSupported

C signature

hipError_t hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback, void * userData, unsigned int flags)
cuda.bindings.runtime.cuStreamSetAttribute(stream, attr, value)#

Sets stream attribute. Updated attribute is applied to work submitted to the stream.

Args:
stream (ihipStream_t/object) – IN:
  • Stream to set attributes to

attr (hipLaunchAttributeID) – IN:
  • Attribute ID for the attribute to set

value (hipLaunchAttributeValue/object) – IN:
  • Attribute value for the attribute to set

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidResourceHandle

C signature

hipError_t hipStreamSetAttribute(hipStream_t stream, hipLaunchAttributeID attr, const hipLaunchAttributeValue * value)
cuda.bindings.runtime.cudaStreamSetAttribute(stream, attr, value)#

Sets stream attribute. Updated attribute is applied to work submitted to the stream.

Args:
stream (ihipStream_t/object) – IN:
  • Stream to set attributes to

attr (hipLaunchAttributeID) – IN:
  • Attribute ID for the attribute to set

value (hipLaunchAttributeValue/object) – IN:
  • Attribute value for the attribute to set

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidResourceHandle

C signature

hipError_t hipStreamSetAttribute(hipStream_t stream, hipLaunchAttributeID attr, const hipLaunchAttributeValue * value)
cuda.bindings.runtime.cuStreamGetAttribute(stream, attr, value_out)#

queries stream attribute.

Args:
stream (ihipStream_t/object) – IN:
  • Stream to geet attributes from

attr (hipLaunchAttributeID) – IN:
  • Attribute ID for the attribute to query

value_out (hipLaunchAttributeValue/object):

(undocumented)

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidResourceHandle

C signature

hipError_t hipStreamGetAttribute(hipStream_t stream, hipLaunchAttributeID attr, hipLaunchAttributeValue * value_out)
cuda.bindings.runtime.cudaStreamGetAttribute(stream, attr, value_out)#

queries stream attribute.

Args:
stream (ihipStream_t/object) – IN:
  • Stream to geet attributes from

attr (hipLaunchAttributeID) – IN:
  • Attribute ID for the attribute to query

value_out (hipLaunchAttributeValue/object):

(undocumented)

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidResourceHandle

C signature

hipError_t hipStreamGetAttribute(hipStream_t stream, hipLaunchAttributeID attr, hipLaunchAttributeValue * value_out)
cuda.bindings.runtime.cuStreamCopyAttributes(dst, src)#

Copies attributes from source stream to destination stream.

Args:
dst (ihipStream_t/object) – IN:
  • Destination stream

src (ihipStream_t/object) – IN:
  • Source stream

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamCopyAttributes(hipStream_t dst, hipStream_t src)
cuda.bindings.runtime.cudaStreamCopyAttributes(dst, src)#

Copies attributes from source stream to destination stream.

Args:
dst (ihipStream_t/object) – IN:
  • Destination stream

src (ihipStream_t/object) – IN:
  • Source stream

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamCopyAttributes(hipStream_t dst, hipStream_t src)
cuda.bindings.runtime.cuStreamWaitValue32(stream, ptr, value, flags, mask)#

Enqueues a wait command to the stream.[BETA]

Enqueues a wait command to the stream, all operations enqueued on this stream after this, will not execute until the defined wait condition is true.

hipStreamWaitValueGte: waits until *ptr&mask >= value

hipStreamWaitValueEq : waits until *ptr&mask == value

hipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0

hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0

Note:

when using hipStreamWaitValueNor, mask is applied on both ‘value’ and ‘*ptr’.

Note:

Support for hipStreamWaitValue32 can be queried using ‘hipDeviceGetAttribute()’ and ‘hipDeviceAttributeCanUseStreamWaitValue’ flag.

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

See:

hipExtMallocWithFlags, hipFree, hipStreamWaitValue64, hipStreamWriteValue64, hipStreamWriteValue32, hipDeviceGetAttribute

Args:
stream (ihipStream_t/object) – IN:
  • Stream identifier

ptr (Pointer/object) – IN:
value (int) – IN:
  • Value to be used in compare operation

flags (int) – IN:

hipStreamWaitValueEq, hipStreamWaitValueAnd and hipStreamWaitValueNor

mask (int) – IN:
  • Mask to be applied on value at memory before it is compared with value,

default value is set to enable every bit

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamWaitValue32(hipStream_t stream, void * ptr, uint32_t value, unsigned int flags, uint32_t mask)
cuda.bindings.runtime.cuStreamWaitValue32_v2(stream, ptr, value, flags, mask)#

Enqueues a wait command to the stream.[BETA]

Enqueues a wait command to the stream, all operations enqueued on this stream after this, will not execute until the defined wait condition is true.

hipStreamWaitValueGte: waits until *ptr&mask >= value

hipStreamWaitValueEq : waits until *ptr&mask == value

hipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0

hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0

Note:

when using hipStreamWaitValueNor, mask is applied on both ‘value’ and ‘*ptr’.

Note:

Support for hipStreamWaitValue32 can be queried using ‘hipDeviceGetAttribute()’ and ‘hipDeviceAttributeCanUseStreamWaitValue’ flag.

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

See:

hipExtMallocWithFlags, hipFree, hipStreamWaitValue64, hipStreamWriteValue64, hipStreamWriteValue32, hipDeviceGetAttribute

Args:
stream (ihipStream_t/object) – IN:
  • Stream identifier

ptr (Pointer/object) – IN:
value (int) – IN:
  • Value to be used in compare operation

flags (int) – IN:

hipStreamWaitValueEq, hipStreamWaitValueAnd and hipStreamWaitValueNor

mask (int) – IN:
  • Mask to be applied on value at memory before it is compared with value,

default value is set to enable every bit

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamWaitValue32(hipStream_t stream, void * ptr, uint32_t value, unsigned int flags, uint32_t mask)
cuda.bindings.runtime.cuStreamWaitValue64(stream, ptr, value, flags, mask)#

Enqueues a wait command to the stream.[BETA]

Enqueues a wait command to the stream, all operations enqueued on this stream after this, will not execute until the defined wait condition is true.

hipStreamWaitValueGte: waits until *ptr&mask >= value

hipStreamWaitValueEq : waits until *ptr&mask == value

hipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0

hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0

Note:

when using hipStreamWaitValueNor, mask is applied on both ‘value’ and ‘*ptr’.

Note:

Support for hipStreamWaitValue64 can be queried using ‘hipDeviceGetAttribute()’ and ‘hipDeviceAttributeCanUseStreamWaitValue’ flag.

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

See:

hipExtMallocWithFlags, hipFree, hipStreamWaitValue32, hipStreamWriteValue64, hipStreamWriteValue32, hipDeviceGetAttribute

Args:
stream (ihipStream_t/object) – IN:
  • Stream identifier

ptr (Pointer/object) – IN:
  • Pointer to memory object allocated using ‘hipMallocSignalMemory’ flag

value (int) – IN:
  • Value to be used in compare operation

flags (int) – IN:

hipStreamWaitValueEq, hipStreamWaitValueAnd and hipStreamWaitValueNor.

mask (int) – IN:
  • Mask to be applied on value at memory before it is compared with value

default value is set to enable every bit

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamWaitValue64(hipStream_t stream, void * ptr, uint64_t value, unsigned int flags, uint64_t mask)
cuda.bindings.runtime.cuStreamWaitValue64_v2(stream, ptr, value, flags, mask)#

Enqueues a wait command to the stream.[BETA]

Enqueues a wait command to the stream, all operations enqueued on this stream after this, will not execute until the defined wait condition is true.

hipStreamWaitValueGte: waits until *ptr&mask >= value

hipStreamWaitValueEq : waits until *ptr&mask == value

hipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0

hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0

Note:

when using hipStreamWaitValueNor, mask is applied on both ‘value’ and ‘*ptr’.

Note:

Support for hipStreamWaitValue64 can be queried using ‘hipDeviceGetAttribute()’ and ‘hipDeviceAttributeCanUseStreamWaitValue’ flag.

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

See:

hipExtMallocWithFlags, hipFree, hipStreamWaitValue32, hipStreamWriteValue64, hipStreamWriteValue32, hipDeviceGetAttribute

Args:
stream (ihipStream_t/object) – IN:
  • Stream identifier

ptr (Pointer/object) – IN:
  • Pointer to memory object allocated using ‘hipMallocSignalMemory’ flag

value (int) – IN:
  • Value to be used in compare operation

flags (int) – IN:

hipStreamWaitValueEq, hipStreamWaitValueAnd and hipStreamWaitValueNor.

mask (int) – IN:
  • Mask to be applied on value at memory before it is compared with value

default value is set to enable every bit

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamWaitValue64(hipStream_t stream, void * ptr, uint64_t value, unsigned int flags, uint64_t mask)
cuda.bindings.runtime.cuStreamWriteValue32(stream, ptr, value, flags)#

Enqueues a write command to the stream.[BETA]

Enqueues a write command to the stream, write operation is performed after all earlier commands on this stream have completed the execution.

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

See:

hipExtMallocWithFlags, hipFree, hipStreamWriteValue32, hipStreamWaitValue32, hipStreamWaitValue64

Args:
stream (ihipStream_t/object) – IN:
  • Stream identifier

ptr (Pointer/object) – IN:
  • Pointer to a GPU accessible memory object

value (int) – IN:
  • Value to be written

flags (int) – IN:
  • reserved, ignored for now, will be used in future releases

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamWriteValue32(hipStream_t stream, void * ptr, uint32_t value, unsigned int flags)
cuda.bindings.runtime.cuStreamWriteValue32_v2(stream, ptr, value, flags)#

Enqueues a write command to the stream.[BETA]

Enqueues a write command to the stream, write operation is performed after all earlier commands on this stream have completed the execution.

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

See:

hipExtMallocWithFlags, hipFree, hipStreamWriteValue32, hipStreamWaitValue32, hipStreamWaitValue64

Args:
stream (ihipStream_t/object) – IN:
  • Stream identifier

ptr (Pointer/object) – IN:
  • Pointer to a GPU accessible memory object

value (int) – IN:
  • Value to be written

flags (int) – IN:
  • reserved, ignored for now, will be used in future releases

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamWriteValue32(hipStream_t stream, void * ptr, uint32_t value, unsigned int flags)
cuda.bindings.runtime.cuStreamWriteValue64(stream, ptr, value, flags)#

Enqueues a write command to the stream.[BETA]

Enqueues a write command to the stream, write operation is performed after all earlier commands on this stream have completed the execution.

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

See:

hipExtMallocWithFlags, hipFree, hipStreamWriteValue32, hipStreamWaitValue32, hipStreamWaitValue64

Args:
stream (ihipStream_t/object) – IN:
  • Stream identifier

ptr (Pointer/object) – IN:
  • Pointer to a GPU accessible memory object

value (int) – IN:
  • Value to be written

flags (int) – IN:
  • reserved, ignored for now, will be used in future releases

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamWriteValue64(hipStream_t stream, void * ptr, uint64_t value, unsigned int flags)
cuda.bindings.runtime.cuStreamWriteValue64_v2(stream, ptr, value, flags)#

Enqueues a write command to the stream.[BETA]

Enqueues a write command to the stream, write operation is performed after all earlier commands on this stream have completed the execution.

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

See:

hipExtMallocWithFlags, hipFree, hipStreamWriteValue32, hipStreamWaitValue32, hipStreamWaitValue64

Args:
stream (ihipStream_t/object) – IN:
  • Stream identifier

ptr (Pointer/object) – IN:
  • Pointer to a GPU accessible memory object

value (int) – IN:
  • Value to be written

flags (int) – IN:
  • reserved, ignored for now, will be used in future releases

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamWriteValue64(hipStream_t stream, void * ptr, uint64_t value, unsigned int flags)
cuda.bindings.runtime.cuStreamBatchMemOp(stream, count, paramArray, flags)#

Enqueues an array of stream memory operations in the stream.[BETA]

Batch operations to synchronize the stream via memory operations.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

See:

hipStreamWriteValue32, hipStreamWaitValue32, hipStreamWaitValue64. hipStreamWriteValue64

Args:
stream (ihipStream_t/object) – IN:
  • Stream identifier

count (int) – IN:
  • The number of operations in the array. Must be less than 256

paramArray (hipStreamBatchMemOpParams_union/object) – IN:
  • The types and parameters of the individual operations.

flags (int) – IN:
  • Reserved for future expansion; must be 0.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamBatchMemOp(hipStream_t stream, unsigned int count, hipStreamBatchMemOpParams * paramArray, unsigned int flags)
cuda.bindings.runtime.cuStreamBatchMemOp_v2(stream, count, paramArray, flags)#

Enqueues an array of stream memory operations in the stream.[BETA]

Batch operations to synchronize the stream via memory operations.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

See:

hipStreamWriteValue32, hipStreamWaitValue32, hipStreamWaitValue64. hipStreamWriteValue64

Args:
stream (ihipStream_t/object) – IN:
  • Stream identifier

count (int) – IN:
  • The number of operations in the array. Must be less than 256

paramArray (hipStreamBatchMemOpParams_union/object) – IN:
  • The types and parameters of the individual operations.

flags (int) – IN:
  • Reserved for future expansion; must be 0.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamBatchMemOp(hipStream_t stream, unsigned int count, hipStreamBatchMemOpParams * paramArray, unsigned int flags)
cuda.bindings.runtime.cuGraphAddBatchMemOpNode(hGraph, dependencies, numDependencies, nodeParams)#

Creates a batch memory operation node and adds it to a graph.[BETA]

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

See:

hipStreamWriteValue32, hipStreamWaitValue32, hipStreamWaitValue64. hipStreamWriteValue64, hipStreamBatchMemOp

Args:
hGraph (ihipGraph/object) – IN:
  • Graph to which to add the node

dependencies (Pointer/object) – IN:
  • Dependencies of the node

numDependencies (int) – IN:
  • Number of dependencies

nodeParams (hipBatchMemOpNodeParams/object) – IN:
  • Parameters for the node

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddBatchMemOpNode(hipGraphNode_t * phGraphNode, hipGraph_t hGraph, const hipGraphNode_t * dependencies, size_t numDependencies, const hipBatchMemOpNodeParams * nodeParams)
cuda.bindings.runtime.cuGraphBatchMemOpNodeGetParams(hNode, nodeParams_out)#

Returns a batch mem op node’s parameters.[BETA]

Returns the parameters of batch mem op node hNode in nodeParams_out. The paramArray returned in nodeParams_out is owned by the node. This memory remains valid until the node is destroyed or its parameters are modified, and should not be modified directly.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

See:

hipStreamWriteValue32, hipStreamWaitValue32, hipStreamWaitValue64. hipStreamWriteValue64. hipGraphBatchMemOpNodeSetParams

Args:
hNode (hipGraphNode/object) – IN:
  • Node to get the parameters for

nodeParams_out (hipBatchMemOpNodeParams/object) – IN:
  • Pointer to return the parameters

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphBatchMemOpNodeGetParams(hipGraphNode_t hNode, hipBatchMemOpNodeParams * nodeParams_out)
cuda.bindings.runtime.cuGraphBatchMemOpNodeSetParams(hNode, nodeParams)#

Sets the batch mem op node’s parameters.[BETA]

Sets the parameters of batch mem op node hNode to nodeParams.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

See:

hipStreamWriteValue32, hipStreamWaitValue32, hipStreamWaitValue64. hipStreamWriteValue64, hipGraphBatchMemOpNodeGetParams

Args:
hNode (hipGraphNode/object) – IN:
  • Node to set the parameters for

nodeParams (hipBatchMemOpNodeParams/object) – IN:
  • Parameters to copy

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphBatchMemOpNodeSetParams(hipGraphNode_t hNode, hipBatchMemOpNodeParams * nodeParams)
cuda.bindings.runtime.cuGraphExecBatchMemOpNodeSetParams(hGraphExec, hNode, nodeParams)#

Sets the parameters for a batch mem op node in the given graphExec.[BETA]

Sets the parameters of a batch mem op node in an executable graph hGraphExec. The node is identified by the corresponding node hNode in the non-executable graph, from which the executable graph was instantiated.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

See:

hipStreamWriteValue32, hipStreamWaitValue32, hipStreamWaitValue64. hipStreamWriteValue64, hipStreamBatchMemOp

Args:
hGraphExec (hipGraphExec/object) – IN:
  • The executable graph in which to set the specified node

hNode (hipGraphNode/object) – IN:
  • Batch mem op node from the graph from which graphExec was instantiated

nodeParams (hipBatchMemOpNodeParams/object) – IN:
  • Updated Parameters to set

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecBatchMemOpNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipBatchMemOpNodeParams * nodeParams)
cuda.bindings.runtime.cuEventCreate(flags)#

Create an event with the specified flags

See:

hipEventCreate, hipEventSynchronize, hipEventDestroy, hipEventElapsedTime

Args:
flags (int) – IN:

Flags to control event behavior. Valid values are hipEventDefault, hipEventBlockingSync, hipEventDisableTiming, hipEventInterprocess

hipEventDefault : Default flag. The event will use active synchronization and will support

timing. Blocking synchronization provides lowest possible latency at the expense of dedicating a CPU to poll on the event.

hipEventBlockingSync : The event will use blocking synchronization : if hipEventSynchronize is

called on this event, the thread will block until the event completes. This can increase latency for the synchroniation but can result in lower power and more resources for other CPU threads.

hipEventDisableTiming : Disable recording of timing information. Events created with this flag

would not record profiling data and provide best performance if used for synchronization.

hipEventInterprocess : The event can be used as an interprocess event. hipEventDisableTiming

flag also must be set when hipEventInterprocess flag is set.

hipEventDisableSystemFence : Disable acquire and release system scope fence. This may

improve performance but device memory may not be visible to the host and other devices if this flag is set.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipEventCreateWithFlags(hipEvent_t * event, unsigned int flags)
cuda.bindings.runtime.cudaEventCreateWithFlags(flags)#

Create an event with the specified flags

See:

hipEventCreate, hipEventSynchronize, hipEventDestroy, hipEventElapsedTime

Args:
flags (int) – IN:

Flags to control event behavior. Valid values are hipEventDefault, hipEventBlockingSync, hipEventDisableTiming, hipEventInterprocess

hipEventDefault : Default flag. The event will use active synchronization and will support

timing. Blocking synchronization provides lowest possible latency at the expense of dedicating a CPU to poll on the event.

hipEventBlockingSync : The event will use blocking synchronization : if hipEventSynchronize is

called on this event, the thread will block until the event completes. This can increase latency for the synchroniation but can result in lower power and more resources for other CPU threads.

hipEventDisableTiming : Disable recording of timing information. Events created with this flag

would not record profiling data and provide best performance if used for synchronization.

hipEventInterprocess : The event can be used as an interprocess event. hipEventDisableTiming

flag also must be set when hipEventInterprocess flag is set.

hipEventDisableSystemFence : Disable acquire and release system scope fence. This may

improve performance but device memory may not be visible to the host and other devices if this flag is set.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipEventCreateWithFlags(hipEvent_t * event, unsigned int flags)
cuda.bindings.runtime.cudaEventCreate()#

Create an event

See:

hipEventCreateWithFlags, hipEventRecord, hipEventQuery, hipEventSynchronize, hipEventDestroy, hipEventElapsedTime

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipEventCreate(hipEvent_t * event)
cuda.bindings.runtime.cuEventRecordWithFlags(event, stream, flags)#

Record an event in the specified stream.

hipEventQuery() or hipEventSynchronize() must be used to determine when the event transitions from “recording” (after hipEventRecord() is called) to “recorded” (when timestamps are set, if requested).

Events which are recorded in a non-NULL stream will transition to from recording to “recorded” state when they reach the head of the specified stream, after all previous commands in that stream have completed executing.

Flags include:

hipEventRecordDefault: Default event creation flag. hipEventRecordExternal: Event is captured in the graph as an external event node when

performing stream capture

If hipEventRecord() has been previously called on this event, then this call will overwrite any existing state in event.

If this function is called on an event that is currently being recorded, results are undefined - either outstanding recording may save state into the event, and the order is not guaranteed.

Note:

If this function is not called before use hipEventQuery() or hipEventSynchronize(), hipSuccess is returned, meaning no pending event in the stream.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventSynchronize, hipEventDestroy, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

event to record.

stream (ihipStream_t/object) – IN:

stream in which to record event.

flags (int) – IN:

parameter for operations

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized,

hipErrorInvalidHandle, hipErrorLaunchFailure

C signature

hipError_t hipEventRecordWithFlags(hipEvent_t event, hipStream_t stream, unsigned int flags)
cuda.bindings.runtime.cudaEventRecordWithFlags(event, stream, flags)#

Record an event in the specified stream.

hipEventQuery() or hipEventSynchronize() must be used to determine when the event transitions from “recording” (after hipEventRecord() is called) to “recorded” (when timestamps are set, if requested).

Events which are recorded in a non-NULL stream will transition to from recording to “recorded” state when they reach the head of the specified stream, after all previous commands in that stream have completed executing.

Flags include:

hipEventRecordDefault: Default event creation flag. hipEventRecordExternal: Event is captured in the graph as an external event node when

performing stream capture

If hipEventRecord() has been previously called on this event, then this call will overwrite any existing state in event.

If this function is called on an event that is currently being recorded, results are undefined - either outstanding recording may save state into the event, and the order is not guaranteed.

Note:

If this function is not called before use hipEventQuery() or hipEventSynchronize(), hipSuccess is returned, meaning no pending event in the stream.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventSynchronize, hipEventDestroy, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

event to record.

stream (ihipStream_t/object) – IN:

stream in which to record event.

flags (int) – IN:

parameter for operations

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized,

hipErrorInvalidHandle, hipErrorLaunchFailure

C signature

hipError_t hipEventRecordWithFlags(hipEvent_t event, hipStream_t stream, unsigned int flags)
cuda.bindings.runtime.cuEventRecord(event, stream)#

Record an event in the specified stream.

hipEventQuery() or hipEventSynchronize() must be used to determine when the event transitions from “recording” (after hipEventRecord() is called) to “recorded” (when timestamps are set, if requested).

Events which are recorded in a non-NULL stream will transition to from recording to “recorded” state when they reach the head of the specified stream, after all previous commands in that stream have completed executing.

If hipEventRecord() has been previously called on this event, then this call will overwrite any existing state in event.

If this function is called on an event that is currently being recorded, results are undefined - either outstanding recording may save state into the event, and the order is not guaranteed.

Note:

If this function is not called before use hipEventQuery() or hipEventSynchronize(), hipSuccess is returned, meaning no pending event in the stream.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventSynchronize, hipEventDestroy, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

event to record.

stream (ihipStream_t/object) – IN:

stream in which to record event.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized,

hipErrorInvalidHandle, hipErrorLaunchFailure

C signature

hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream)
cuda.bindings.runtime.cudaEventRecord(event, stream)#

Record an event in the specified stream.

hipEventQuery() or hipEventSynchronize() must be used to determine when the event transitions from “recording” (after hipEventRecord() is called) to “recorded” (when timestamps are set, if requested).

Events which are recorded in a non-NULL stream will transition to from recording to “recorded” state when they reach the head of the specified stream, after all previous commands in that stream have completed executing.

If hipEventRecord() has been previously called on this event, then this call will overwrite any existing state in event.

If this function is called on an event that is currently being recorded, results are undefined - either outstanding recording may save state into the event, and the order is not guaranteed.

Note:

If this function is not called before use hipEventQuery() or hipEventSynchronize(), hipSuccess is returned, meaning no pending event in the stream.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventSynchronize, hipEventDestroy, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

event to record.

stream (ihipStream_t/object) – IN:

stream in which to record event.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized,

hipErrorInvalidHandle, hipErrorLaunchFailure

C signature

hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream)
cuda.bindings.runtime.cuEventDestroy(event)#

Destroy the specified event.

Releases memory associated with the event. If the event is recording but has not completed recording when hipEventDestroy() is called, the function will return immediately and the completion_future resources will be released later, when the hipDevice is synchronized.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventSynchronize, hipEventRecord, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

Event to destroy.

Returns:
hipError_t: One of:

C signature

hipError_t hipEventDestroy(hipEvent_t event)
cuda.bindings.runtime.cuEventDestroy_v2(event)#

Destroy the specified event.

Releases memory associated with the event. If the event is recording but has not completed recording when hipEventDestroy() is called, the function will return immediately and the completion_future resources will be released later, when the hipDevice is synchronized.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventSynchronize, hipEventRecord, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

Event to destroy.

Returns:
hipError_t: One of:

C signature

hipError_t hipEventDestroy(hipEvent_t event)
cuda.bindings.runtime.cudaEventDestroy(event)#

Destroy the specified event.

Releases memory associated with the event. If the event is recording but has not completed recording when hipEventDestroy() is called, the function will return immediately and the completion_future resources will be released later, when the hipDevice is synchronized.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventSynchronize, hipEventRecord, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

Event to destroy.

Returns:
hipError_t: One of:

C signature

hipError_t hipEventDestroy(hipEvent_t event)
cuda.bindings.runtime.cuEventSynchronize(event)#

Wait for an event to complete.

This function will block until the event is ready, waiting for all previous work in the stream specified when event was recorded with hipEventRecord().

If hipEventRecord() has not been called on event, this function returns hipSuccess when no event is captured.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

Event on which to wait.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized,

hipErrorInvalidHandle, hipErrorLaunchFailure

C signature

hipError_t hipEventSynchronize(hipEvent_t event)
cuda.bindings.runtime.cudaEventSynchronize(event)#

Wait for an event to complete.

This function will block until the event is ready, waiting for all previous work in the stream specified when event was recorded with hipEventRecord().

If hipEventRecord() has not been called on event, this function returns hipSuccess when no event is captured.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

Event on which to wait.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized,

hipErrorInvalidHandle, hipErrorLaunchFailure

C signature

hipError_t hipEventSynchronize(hipEvent_t event)
cuda.bindings.runtime.cuEventElapsedTime(start, stop)#

Return the elapsed time between two events.

Computes the elapsed time between two events. Time is computed in ms, with a resolution of approximately 1 us.

Events which are recorded in a NULL stream will block until all commands on all other streams complete execution, and then record the timestamp.

Events which are recorded in a non-NULL stream will record their timestamp when they reach the head of the specified stream, after all previous commands in that stream have completed executing. Thus the time that the event recorded may be significantly after the host calls hipEventRecord().

If hipEventRecord() has not been called on either event, then hipErrorInvalidHandle is returned. If hipEventRecord() has been called on both events, but the timestamp has not yet been recorded on one or both events (that is, hipEventQuery() would return hipErrorNotReady on at least one of the events), then hipErrorNotReady is returned.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord, hipEventSynchronize

Args:
start (ihipEvent_t/object) – IN:

Start event.

stop (ihipEvent_t/object) – IN:

Stop event.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipEventElapsedTime(float * ms, hipEvent_t start, hipEvent_t stop)
cuda.bindings.runtime.cuEventElapsedTime_v2(start, stop)#

Return the elapsed time between two events.

Computes the elapsed time between two events. Time is computed in ms, with a resolution of approximately 1 us.

Events which are recorded in a NULL stream will block until all commands on all other streams complete execution, and then record the timestamp.

Events which are recorded in a non-NULL stream will record their timestamp when they reach the head of the specified stream, after all previous commands in that stream have completed executing. Thus the time that the event recorded may be significantly after the host calls hipEventRecord().

If hipEventRecord() has not been called on either event, then hipErrorInvalidHandle is returned. If hipEventRecord() has been called on both events, but the timestamp has not yet been recorded on one or both events (that is, hipEventQuery() would return hipErrorNotReady on at least one of the events), then hipErrorNotReady is returned.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord, hipEventSynchronize

Args:
start (ihipEvent_t/object) – IN:

Start event.

stop (ihipEvent_t/object) – IN:

Stop event.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipEventElapsedTime(float * ms, hipEvent_t start, hipEvent_t stop)
cuda.bindings.runtime.cudaEventElapsedTime(start, stop)#

Return the elapsed time between two events.

Computes the elapsed time between two events. Time is computed in ms, with a resolution of approximately 1 us.

Events which are recorded in a NULL stream will block until all commands on all other streams complete execution, and then record the timestamp.

Events which are recorded in a non-NULL stream will record their timestamp when they reach the head of the specified stream, after all previous commands in that stream have completed executing. Thus the time that the event recorded may be significantly after the host calls hipEventRecord().

If hipEventRecord() has not been called on either event, then hipErrorInvalidHandle is returned. If hipEventRecord() has been called on both events, but the timestamp has not yet been recorded on one or both events (that is, hipEventQuery() would return hipErrorNotReady on at least one of the events), then hipErrorNotReady is returned.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord, hipEventSynchronize

Args:
start (ihipEvent_t/object) – IN:

Start event.

stop (ihipEvent_t/object) – IN:

Stop event.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipEventElapsedTime(float * ms, hipEvent_t start, hipEvent_t stop)
cuda.bindings.runtime.cuEventQuery(event)#

Query event status

Query the status of the specified event. This function will return hipSuccess if all commands in the appropriate stream (specified to hipEventRecord()) have completed. If any execution has not completed, then hipErrorNotReady is returned.

Note:

This API returns hipSuccess, if hipEventRecord() is not called before this API.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventRecord, hipEventDestroy, hipEventSynchronize, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

Event to query.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorNotReady, hipErrorInvalidHandle, hipErrorInvalidValue,

hipErrorNotInitialized, hipErrorLaunchFailure

C signature

hipError_t hipEventQuery(hipEvent_t event)
cuda.bindings.runtime.cudaEventQuery(event)#

Query event status

Query the status of the specified event. This function will return hipSuccess if all commands in the appropriate stream (specified to hipEventRecord()) have completed. If any execution has not completed, then hipErrorNotReady is returned.

Note:

This API returns hipSuccess, if hipEventRecord() is not called before this API.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventRecord, hipEventDestroy, hipEventSynchronize, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

Event to query.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorNotReady, hipErrorInvalidHandle, hipErrorInvalidValue,

hipErrorNotInitialized, hipErrorLaunchFailure

C signature

hipError_t hipEventQuery(hipEvent_t event)
cuda.bindings.runtime.cuPointerSetAttribute(value, attribute, ptr)#

Sets information on the specified pointer.[BETA]

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Args:
value (Pointer/object) – IN:

Sets pointer attribute value

attribute (hipPointer_attribute) – IN:

Attribute to set

ptr (Pointer/object) – IN:

Pointer to set attributes for

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue

C signature

hipError_t hipPointerSetAttribute(const void * value, hipPointer_attribute attribute, hipDeviceptr_t ptr)
cuda.bindings.runtime.cudaPointerGetAttributes(ptr)#

Returns attributes for the specified pointer

The output parameter ‘attributes’ has a member named ‘type’ that describes what memory the pointer is associated with, such as device memory, host memory, managed memory, and others. Otherwise, the API cannot handle the pointer and returns hipErrorInvalidValue.

Note:

The unrecognized memory type is unsupported to keep the HIP functionality backward compatibility due to hipMemoryType enum values.

Note:

The current behavior of this HIP API corresponds to the CUDA API before version 11.0.

See:

hipPointerGetAttribute

Args:
ptr (Pointer/object) – IN:

pointer to get attributes for

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipPointerGetAttributes(hipPointerAttribute_t * attributes, const void * ptr)
cuda.bindings.runtime.cuPointerGetAttribute(data, attribute, ptr)#

Returns information about the specified pointer.[BETA]

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

See:

hipPointerGetAttributes

Args:
data (Pointer/object) – IN,OUT:

Returned pointer attribute value

attribute (hipPointer_attribute) – IN:

Attribute to query for

ptr (Pointer/object) – IN:

Pointer to get attributes for

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue

C signature

hipError_t hipPointerGetAttribute(void * data, hipPointer_attribute attribute, hipDeviceptr_t ptr)
cuda.bindings.runtime.cuPointerGetAttributes(numAttributes, ptr)#

Returns information about the specified pointer.[BETA]

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

See:

hipPointerGetAttribute

Args:
numAttributes (int) – IN:

number of attributes to query for

ptr (Pointer/object) – IN:

pointer to get attributes for

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipDrvPointerGetAttributes(unsigned int numAttributes, hipPointer_attribute * attributes, void ** data, hipDeviceptr_t ptr)
cuda.bindings.runtime.cuImportExternalSemaphore(semHandleDesc)#

Imports an external semaphore.

This section describes the external resource interoperability functions of HIP runtime API.

See:

Note:

This API is currently not supported on Linux.

Args:
semHandleDesc (hipExternalSemaphoreHandleDesc_st/object) – IN:

Semaphore import handle descriptor

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipImportExternalSemaphore(hipExternalSemaphore_t * extSem_out, const hipExternalSemaphoreHandleDesc * semHandleDesc)
cuda.bindings.runtime.cudaImportExternalSemaphore(semHandleDesc)#

Imports an external semaphore.

This section describes the external resource interoperability functions of HIP runtime API.

See:

Note:

This API is currently not supported on Linux.

Args:
semHandleDesc (hipExternalSemaphoreHandleDesc_st/object) – IN:

Semaphore import handle descriptor

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipImportExternalSemaphore(hipExternalSemaphore_t * extSem_out, const hipExternalSemaphoreHandleDesc * semHandleDesc)
cuda.bindings.runtime.cuSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)#

Signals a set of external semaphore objects.

See:

Note:

This API is currently not supported on Linux.

Args:
extSemArray (ListOfPointer/object) – IN:

External semaphores to be waited on

paramsArray (hipExternalSemaphoreSignalParams_st/object) – IN:

Array of semaphore parameters

numExtSems (int) – IN:

Number of semaphores to wait on

stream (ihipStream_t/object) – IN:

Stream to enqueue the wait operations in

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue

C signature

hipError_t hipSignalExternalSemaphoresAsync(const hipExternalSemaphore_t * extSemArray, const hipExternalSemaphoreSignalParams * paramsArray, unsigned int numExtSems, hipStream_t stream)
cuda.bindings.runtime.cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)#

Signals a set of external semaphore objects.

See:

Note:

This API is currently not supported on Linux.

Args:
extSemArray (ListOfPointer/object) – IN:

External semaphores to be waited on

paramsArray (hipExternalSemaphoreSignalParams_st/object) – IN:

Array of semaphore parameters

numExtSems (int) – IN:

Number of semaphores to wait on

stream (ihipStream_t/object) – IN:

Stream to enqueue the wait operations in

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue

C signature

hipError_t hipSignalExternalSemaphoresAsync(const hipExternalSemaphore_t * extSemArray, const hipExternalSemaphoreSignalParams * paramsArray, unsigned int numExtSems, hipStream_t stream)
cuda.bindings.runtime.cuWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)#

Waits on a set of external semaphore objects

See:

Note:

This API is currently not supported on Linux.

Args:
extSemArray (ListOfPointer/object) – IN:

External semaphores to be waited on

paramsArray (hipExternalSemaphoreWaitParams_st/object) – IN:

Array of semaphore parameters

numExtSems (int) – IN:

Number of semaphores to wait on

stream (ihipStream_t/object) – IN:

Stream to enqueue the wait operations in

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue

C signature

hipError_t hipWaitExternalSemaphoresAsync(const hipExternalSemaphore_t * extSemArray, const hipExternalSemaphoreWaitParams * paramsArray, unsigned int numExtSems, hipStream_t stream)
cuda.bindings.runtime.cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)#

Waits on a set of external semaphore objects

See:

Note:

This API is currently not supported on Linux.

Args:
extSemArray (ListOfPointer/object) – IN:

External semaphores to be waited on

paramsArray (hipExternalSemaphoreWaitParams_st/object) – IN:

Array of semaphore parameters

numExtSems (int) – IN:

Number of semaphores to wait on

stream (ihipStream_t/object) – IN:

Stream to enqueue the wait operations in

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue

C signature

hipError_t hipWaitExternalSemaphoresAsync(const hipExternalSemaphore_t * extSemArray, const hipExternalSemaphoreWaitParams * paramsArray, unsigned int numExtSems, hipStream_t stream)
cuda.bindings.runtime.cuDestroyExternalSemaphore(extSem)#

Destroys an external semaphore object and releases any references to the underlying resource. Any outstanding signals or waits must have completed before the semaphore is destroyed.

See:

Note:

This API is currently not supported on Linux.

Args:
extSem (Pointer/object) – IN:

handle to an external memory object

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue

C signature

hipError_t hipDestroyExternalSemaphore(hipExternalSemaphore_t extSem)
cuda.bindings.runtime.cudaDestroyExternalSemaphore(extSem)#

Destroys an external semaphore object and releases any references to the underlying resource. Any outstanding signals or waits must have completed before the semaphore is destroyed.

See:

Note:

This API is currently not supported on Linux.

Args:
extSem (Pointer/object) – IN:

handle to an external memory object

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue

C signature

hipError_t hipDestroyExternalSemaphore(hipExternalSemaphore_t extSem)
cuda.bindings.runtime.cuImportExternalMemory(memHandleDesc)#

Imports an external memory object.

See:

Args:
memHandleDesc (hipExternalMemoryHandleDesc_st/object) – IN:

Memory import handle descriptor

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipImportExternalMemory(hipExternalMemory_t * extMem_out, const hipExternalMemoryHandleDesc * memHandleDesc)
cuda.bindings.runtime.cudaImportExternalMemory(memHandleDesc)#

Imports an external memory object.

See:

Args:
memHandleDesc (hipExternalMemoryHandleDesc_st/object) – IN:

Memory import handle descriptor

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipImportExternalMemory(hipExternalMemory_t * extMem_out, const hipExternalMemoryHandleDesc * memHandleDesc)
cuda.bindings.runtime.cuExternalMemoryGetMappedBuffer(extMem, bufferDesc)#

Maps a buffer onto an imported memory object.

See:

Args:
extMem (Pointer/object) – IN:

Handle to external memory object

bufferDesc (hipExternalMemoryBufferDesc_st/object) – IN:

Buffer descriptor

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipExternalMemoryGetMappedBuffer(void ** devPtr, hipExternalMemory_t extMem, const hipExternalMemoryBufferDesc * bufferDesc)
cuda.bindings.runtime.cudaExternalMemoryGetMappedBuffer(extMem, bufferDesc)#

Maps a buffer onto an imported memory object.

See:

Args:
extMem (Pointer/object) – IN:

Handle to external memory object

bufferDesc (hipExternalMemoryBufferDesc_st/object) – IN:

Buffer descriptor

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipExternalMemoryGetMappedBuffer(void ** devPtr, hipExternalMemory_t extMem, const hipExternalMemoryBufferDesc * bufferDesc)
cuda.bindings.runtime.cuDestroyExternalMemory(extMem)#

Destroys an external memory object.

See:

Args:
extMem (Pointer/object) – IN:

External memory object to be destroyed

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue

C signature

hipError_t hipDestroyExternalMemory(hipExternalMemory_t extMem)
cuda.bindings.runtime.cudaDestroyExternalMemory(extMem)#

Destroys an external memory object.

See:

Args:
extMem (Pointer/object) – IN:

External memory object to be destroyed

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue

C signature

hipError_t hipDestroyExternalMemory(hipExternalMemory_t extMem)
cuda.bindings.runtime.cuMemAlloc(size)#

Allocate memory on the default accelerator

If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.

See:

hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray, hipHostFree, hipHostMalloc

Args:
size (int) – IN:

Requested memory size

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMalloc(void ** ptr, size_t size)
cuda.bindings.runtime.cuMemAlloc_v2(size)#

Allocate memory on the default accelerator

If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.

See:

hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray, hipHostFree, hipHostMalloc

Args:
size (int) – IN:

Requested memory size

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMalloc(void ** ptr, size_t size)
cuda.bindings.runtime.cudaMalloc(size)#

Allocate memory on the default accelerator

If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.

See:

hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray, hipHostFree, hipHostMalloc

Args:
size (int) – IN:

Requested memory size

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMalloc(void ** ptr, size_t size)
cuda.bindings.runtime.cuMemAllocHost(size)#

Allocate pinned host memory [Deprecated]

If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.

Warning:

This API is deprecated, use hipHostMalloc() instead

Args:
size (int) – IN:

Requested memory size

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemAllocHost(void ** ptr, size_t size)
cuda.bindings.runtime.cuMemAllocHost_v2(size)#

Allocate pinned host memory [Deprecated]

If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.

Warning:

This API is deprecated, use hipHostMalloc() instead

Args:
size (int) – IN:

Requested memory size

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemAllocHost(void ** ptr, size_t size)
cuda.bindings.runtime.cudaMallocHost(size, flags)#

Allocates device accessible page locked (pinned) host memory

This API allocates pinned host memory which is mapped into the address space of all GPUs in the system, the memory can be accessed directly by the GPU device, and can be read or written with much higher bandwidth than pageable memory obtained with functions such as malloc().

Using the pinned host memory, applications can implement faster data transfers for HostToDevice and DeviceToHost. The runtime tracks the hipHostMalloc allocations and can avoid some of the setup required for regular unpinned memory.

When the memory accesses are infrequent, zero-copy memory can be a good choice, for coherent allocation. GPU can directly access the host memory over the CPU/GPU interconnect, without need to copy the data.

Currently the allocation granularity is 4KB for the API.

Developers need to choose proper allocation flag with consideration of synchronization.

If no input for flags, it will be the default pinned memory allocation on the host.

See:

hipSetDeviceFlags, hiptHostFree

Args:
size (int) – IN:

Requested memory size in bytes If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.

flags (int) – IN:

Type of host memory allocation. See the description of flags in hipSetDeviceFlags.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipHostMalloc(void ** ptr, size_t size, unsigned int flags)
cuda.bindings.runtime.cuMemAllocManaged(size, flags)#

Allocates memory that will be automatically managed by HIP.

  • This section describes the managed memory management functions of HIP runtime API.

Note:

The managed memory management APIs are implemented on Linux, under developement on Windows.

This API is used for managed memory, allows data be shared and accessible to both CPU and GPU using a single pointer.

The API returns the allocation pointer, managed by HMM, can be used further to execute kernels on device and fetch data between the host and device as needed.

If HMM is not supported, the function behaves the same as hipMallocHost .

Note:

It is recommend to do the capability check before call this API.

Args:
size (int) – IN:
  • requested allocation size in bytes, it should be granularity of 4KB

flags (int) – IN:
  • must be either hipMemAttachGlobal or hipMemAttachHost

(defaults to hipMemAttachGlobal)

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMallocManaged(void ** dev_ptr, size_t size, unsigned int flags)
cuda.bindings.runtime.cudaMallocManaged(size, flags)#

Allocates memory that will be automatically managed by HIP.

  • This section describes the managed memory management functions of HIP runtime API.

Note:

The managed memory management APIs are implemented on Linux, under developement on Windows.

This API is used for managed memory, allows data be shared and accessible to both CPU and GPU using a single pointer.

The API returns the allocation pointer, managed by HMM, can be used further to execute kernels on device and fetch data between the host and device as needed.

If HMM is not supported, the function behaves the same as hipMallocHost .

Note:

It is recommend to do the capability check before call this API.

Args:
size (int) – IN:
  • requested allocation size in bytes, it should be granularity of 4KB

flags (int) – IN:
  • must be either hipMemAttachGlobal or hipMemAttachHost

(defaults to hipMemAttachGlobal)

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMallocManaged(void ** dev_ptr, size_t size, unsigned int flags)
cuda.bindings.runtime.cuMemPrefetchAsync(dev_ptr, count, device, stream)#

Prefetches memory to the specified destination device using HIP.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
dev_ptr (Pointer/object) – IN:

pointer to be prefetched

count (int) – IN:

size in bytes for prefetching

device (int) – IN:

destination device to prefetch to

stream (ihipStream_t/object) – IN:

stream to enqueue prefetch operation

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemPrefetchAsync(const void * dev_ptr, size_t count, int device, hipStream_t stream)
cuda.bindings.runtime.cudaMemPrefetchAsync(dev_ptr, count, device, stream)#

Prefetches memory to the specified destination device using HIP.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
dev_ptr (Pointer/object) – IN:

pointer to be prefetched

count (int) – IN:

size in bytes for prefetching

device (int) – IN:

destination device to prefetch to

stream (ihipStream_t/object) – IN:

stream to enqueue prefetch operation

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemPrefetchAsync(const void * dev_ptr, size_t count, int device, hipStream_t stream)
cuda.bindings.runtime.cuMemAdvise(dev_ptr, count, advice, device)#

Advise about the usage of a given memory range to HIP.

This HIP API advises about the usage to be applied on unified memory allocation in the range starting from the pointer address devPtr, with the size of count bytes. The memory range must refer to managed memory allocated via the API hipMallocManaged, and the range will be handled with proper round down and round up respectively in the driver to be aligned to CPU page size, the same way as corresponding CUDA API behaves in CUDA version 8.0 and afterwards.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
dev_ptr (Pointer/object) – IN:

pointer to memory to set the advice for

count (int) – IN:

size in bytes of the memory range, it should be CPU page size alligned.

advice (hipMemoryAdvise) – IN:

advice to be applied for the specified memory range

device (int) – IN:

device to apply the advice for

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemAdvise(const void * dev_ptr, size_t count, hipMemoryAdvise advice, int device)
cuda.bindings.runtime.cudaMemAdvise(dev_ptr, count, advice, device)#

Advise about the usage of a given memory range to HIP.

This HIP API advises about the usage to be applied on unified memory allocation in the range starting from the pointer address devPtr, with the size of count bytes. The memory range must refer to managed memory allocated via the API hipMallocManaged, and the range will be handled with proper round down and round up respectively in the driver to be aligned to CPU page size, the same way as corresponding CUDA API behaves in CUDA version 8.0 and afterwards.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
dev_ptr (Pointer/object) – IN:

pointer to memory to set the advice for

count (int) – IN:

size in bytes of the memory range, it should be CPU page size alligned.

advice (hipMemoryAdvise) – IN:

advice to be applied for the specified memory range

device (int) – IN:

device to apply the advice for

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemAdvise(const void * dev_ptr, size_t count, hipMemoryAdvise advice, int device)
cuda.bindings.runtime.cuMemRangeGetAttribute(data, data_size, attribute, dev_ptr, count)#

Query an attribute of a given memory range in HIP.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
data (Pointer/object) – IN,OUT:

a pointer to a memory location where the result of each attribute query will be written to

data_size (int) – IN:

the size of data

attribute (hipMemRangeAttribute) – IN:

the attribute to query

dev_ptr (Pointer/object) – IN:

start of the range to query

count (int) – IN:

size of the range to query

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemRangeGetAttribute(void * data, size_t data_size, hipMemRangeAttribute attribute, const void * dev_ptr, size_t count)
cuda.bindings.runtime.cudaMemRangeGetAttribute(data, data_size, attribute, dev_ptr, count)#

Query an attribute of a given memory range in HIP.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
data (Pointer/object) – IN,OUT:

a pointer to a memory location where the result of each attribute query will be written to

data_size (int) – IN:

the size of data

attribute (hipMemRangeAttribute) – IN:

the attribute to query

dev_ptr (Pointer/object) – IN:

start of the range to query

count (int) – IN:

size of the range to query

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemRangeGetAttribute(void * data, size_t data_size, hipMemRangeAttribute attribute, const void * dev_ptr, size_t count)
cuda.bindings.runtime.cuMemRangeGetAttributes(num_attributes, dev_ptr, count)#

Query attributes of a given memory range in HIP.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
num_attributes (int) – IN:

an array of attributes to query (numAttributes and the number of attributes in this array should match)

dev_ptr (Pointer/object) – IN:

start of the range to query

count (int) – IN:

size of the range to query

Returns:

A tuple of size 4 that contains (in that order):

C signature

hipError_t hipMemRangeGetAttributes(void ** data, size_t * data_sizes, hipMemRangeAttribute * attributes, size_t num_attributes, const void * dev_ptr, size_t count)
cuda.bindings.runtime.cudaMemRangeGetAttributes(num_attributes, dev_ptr, count)#

Query attributes of a given memory range in HIP.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
num_attributes (int) – IN:

an array of attributes to query (numAttributes and the number of attributes in this array should match)

dev_ptr (Pointer/object) – IN:

start of the range to query

count (int) – IN:

size of the range to query

Returns:

A tuple of size 4 that contains (in that order):

C signature

hipError_t hipMemRangeGetAttributes(void ** data, size_t * data_sizes, hipMemRangeAttribute * attributes, size_t num_attributes, const void * dev_ptr, size_t count)
cuda.bindings.runtime.cuStreamAttachMemAsync(stream, dev_ptr, length, flags)#

Attach memory to a stream asynchronously in HIP.

Warning:

This API is under development. Currently it is a no-operation (NOP) function on AMD GPUs and returns hipSuccess.

Args:
stream (ihipStream_t/object) – IN:
  • stream in which to enqueue the attach operation

dev_ptr (Pointer/object) – IN:
  • pointer to memory (must be a pointer to managed memory or

to a valid host-accessible region of system-allocated memory)

length (int) – IN:
  • length of memory (defaults to zero)

flags (int) – IN:
  • must be one of hipMemAttachGlobal, hipMemAttachHost or

hipMemAttachSingle (defaults to hipMemAttachSingle)

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamAttachMemAsync(hipStream_t stream, void * dev_ptr, size_t length, unsigned int flags)
cuda.bindings.runtime.cudaStreamAttachMemAsync(stream, dev_ptr, length, flags)#

Attach memory to a stream asynchronously in HIP.

Warning:

This API is under development. Currently it is a no-operation (NOP) function on AMD GPUs and returns hipSuccess.

Args:
stream (ihipStream_t/object) – IN:
  • stream in which to enqueue the attach operation

dev_ptr (Pointer/object) – IN:
  • pointer to memory (must be a pointer to managed memory or

to a valid host-accessible region of system-allocated memory)

length (int) – IN:
  • length of memory (defaults to zero)

flags (int) – IN:
  • must be one of hipMemAttachGlobal, hipMemAttachHost or

hipMemAttachSingle (defaults to hipMemAttachSingle)

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamAttachMemAsync(hipStream_t stream, void * dev_ptr, size_t length, unsigned int flags)
cuda.bindings.runtime.cuMemAllocAsync(size, stream)#

Allocates memory with stream ordered semantics

Inserts a memory allocation operation into stream. A pointer to the allocated memory is returned immediately in *dptr. The allocation must not be accessed until the allocation operation completes. The allocation comes from the memory pool associated with the stream’s device.

Note:

The default memory pool of a device contains device memory from that device.

Note:

Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.

Note:

During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.

See:

hipMallocFromPoolAsync, hipFreeAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
size (int) – IN:

Number of bytes to allocate

stream (ihipStream_t/object) – IN:

The stream establishing the stream ordering contract and the memory pool to allocate from

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMallocAsync(void ** dev_ptr, size_t size, hipStream_t stream)
cuda.bindings.runtime.cudaMallocAsync(size, stream)#

Allocates memory with stream ordered semantics

Inserts a memory allocation operation into stream. A pointer to the allocated memory is returned immediately in *dptr. The allocation must not be accessed until the allocation operation completes. The allocation comes from the memory pool associated with the stream’s device.

Note:

The default memory pool of a device contains device memory from that device.

Note:

Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.

Note:

During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.

See:

hipMallocFromPoolAsync, hipFreeAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
size (int) – IN:

Number of bytes to allocate

stream (ihipStream_t/object) – IN:

The stream establishing the stream ordering contract and the memory pool to allocate from

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMallocAsync(void ** dev_ptr, size_t size, hipStream_t stream)
cuda.bindings.runtime.cuMemFreeAsync(dev_ptr, stream)#

Frees memory with stream ordered semantics

Inserts a free operation into stream. The allocation must not be used after stream execution reaches the free. After this API returns, accessing the memory from any subsequent work launched on the GPU or querying its pointer attributes results in undefined behavior.

Note:

During stream capture, this function results in the creation of a free node and must therefore be passed the address of a graph allocation.

See:

hipMallocFromPoolAsync, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
dev_ptr (Pointer/object) – IN:

Pointer to device memory to free

stream (ihipStream_t/object) – IN:

The stream, where the destruciton will occur according to the execution order

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipFreeAsync(void * dev_ptr, hipStream_t stream)
cuda.bindings.runtime.cudaFreeAsync(dev_ptr, stream)#

Frees memory with stream ordered semantics

Inserts a free operation into stream. The allocation must not be used after stream execution reaches the free. After this API returns, accessing the memory from any subsequent work launched on the GPU or querying its pointer attributes results in undefined behavior.

Note:

During stream capture, this function results in the creation of a free node and must therefore be passed the address of a graph allocation.

See:

hipMallocFromPoolAsync, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
dev_ptr (Pointer/object) – IN:

Pointer to device memory to free

stream (ihipStream_t/object) – IN:

The stream, where the destruciton will occur according to the execution order

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipFreeAsync(void * dev_ptr, hipStream_t stream)
cuda.bindings.runtime.cuMemPoolTrimTo(mem_pool, min_bytes_to_hold)#

Releases freed memory back to the OS

Releases memory back to the OS until the pool contains fewer than min_bytes_to_keep reserved bytes, or there is no more memory that the allocator can safely release. The allocator cannot release OS allocations that back outstanding asynchronous allocations. The OS allocations may happen at different granularity from the user allocations.

Note:

Allocations that have not been freed count as outstanding.

Note:

Allocations that have been asynchronously freed but whose completion has not been observed on the host (eg. by a synchronize) can count as outstanding.

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

The memory pool to trim allocations

min_bytes_to_hold (int) – IN:

If the pool has less than min_bytes_to_hold reserved, then the TrimTo operation is a no-op. Otherwise the memory pool will contain at least min_bytes_to_hold bytes reserved after the operation.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemPoolTrimTo(hipMemPool_t mem_pool, size_t min_bytes_to_hold)
cuda.bindings.runtime.cudaMemPoolTrimTo(mem_pool, min_bytes_to_hold)#

Releases freed memory back to the OS

Releases memory back to the OS until the pool contains fewer than min_bytes_to_keep reserved bytes, or there is no more memory that the allocator can safely release. The allocator cannot release OS allocations that back outstanding asynchronous allocations. The OS allocations may happen at different granularity from the user allocations.

Note:

Allocations that have not been freed count as outstanding.

Note:

Allocations that have been asynchronously freed but whose completion has not been observed on the host (eg. by a synchronize) can count as outstanding.

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

The memory pool to trim allocations

min_bytes_to_hold (int) – IN:

If the pool has less than min_bytes_to_hold reserved, then the TrimTo operation is a no-op. Otherwise the memory pool will contain at least min_bytes_to_hold bytes reserved after the operation.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemPoolTrimTo(hipMemPool_t mem_pool, size_t min_bytes_to_hold)
cuda.bindings.runtime.cuMemPoolSetAttribute(mem_pool, attr, value)#

Sets attributes of a memory pool

Supported attributes are: - hipMemPoolAttrReleaseThreshold: (value type = cuuint64_t)

Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0)

  • hipMemPoolReuseFollowEventDependencies: (value type = int)

    Allow hipMallocAsync to use memory asynchronously freed in another stream as long as a stream ordering dependency of the allocating stream on the free action exists. HIP events and null stream interactions can create the required stream ordered dependencies. (default enabled)

  • hipMemPoolReuseAllowOpportunistic: (value type = int)

    Allow reuse of already completed frees when there is no

dependency between the free and allocation. (default enabled) - hipMemPoolReuseAllowInternalDependencies: (value type = int)

Allow hipMallocAsync to insert new stream dependencies in order to establish the stream ordering required to reuse a piece of memory released by hipFreeAsync (default enabled).

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

The memory pool to modify

attr (hipMemPoolAttr) – IN:

The attribute to modify

value (Pointer/object) – IN:

Pointer to the value to assign

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemPoolSetAttribute(hipMemPool_t mem_pool, hipMemPoolAttr attr, void * value)
cuda.bindings.runtime.cudaMemPoolSetAttribute(mem_pool, attr, value)#

Sets attributes of a memory pool

Supported attributes are: - hipMemPoolAttrReleaseThreshold: (value type = cuuint64_t)

Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0)

  • hipMemPoolReuseFollowEventDependencies: (value type = int)

    Allow hipMallocAsync to use memory asynchronously freed in another stream as long as a stream ordering dependency of the allocating stream on the free action exists. HIP events and null stream interactions can create the required stream ordered dependencies. (default enabled)

  • hipMemPoolReuseAllowOpportunistic: (value type = int)

    Allow reuse of already completed frees when there is no

dependency between the free and allocation. (default enabled) - hipMemPoolReuseAllowInternalDependencies: (value type = int)

Allow hipMallocAsync to insert new stream dependencies in order to establish the stream ordering required to reuse a piece of memory released by hipFreeAsync (default enabled).

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

The memory pool to modify

attr (hipMemPoolAttr) – IN:

The attribute to modify

value (Pointer/object) – IN:

Pointer to the value to assign

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemPoolSetAttribute(hipMemPool_t mem_pool, hipMemPoolAttr attr, void * value)
cuda.bindings.runtime.cuMemPoolGetAttribute(mem_pool, attr, value)#

Gets attributes of a memory pool

Supported attributes are: - hipMemPoolAttrReleaseThreshold: (value type = cuuint64_t)

Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0)

  • hipMemPoolReuseFollowEventDependencies: (value type = int)

    Allow hipMallocAsync to use memory asynchronously freed in another stream as long as a stream ordering dependency of the allocating stream on the free action exists. HIP events and null stream interactions can create the required stream ordered dependencies. (default enabled)

  • hipMemPoolReuseAllowOpportunistic: (value type = int)

    Allow reuse of already completed frees when there is no

dependency between the free and allocation. (default enabled) - hipMemPoolReuseAllowInternalDependencies: (value type = int)

Allow hipMallocAsync to insert new stream dependencies in order to establish the stream ordering required to reuse a piece of memory released by hipFreeAsync (default enabled).

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

The memory pool to get attributes of

attr (hipMemPoolAttr) – IN:

The attribute to get

value (Pointer/object) – IN:

Retrieved value

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemPoolGetAttribute(hipMemPool_t mem_pool, hipMemPoolAttr attr, void * value)
cuda.bindings.runtime.cudaMemPoolGetAttribute(mem_pool, attr, value)#

Gets attributes of a memory pool

Supported attributes are: - hipMemPoolAttrReleaseThreshold: (value type = cuuint64_t)

Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0)

  • hipMemPoolReuseFollowEventDependencies: (value type = int)

    Allow hipMallocAsync to use memory asynchronously freed in another stream as long as a stream ordering dependency of the allocating stream on the free action exists. HIP events and null stream interactions can create the required stream ordered dependencies. (default enabled)

  • hipMemPoolReuseAllowOpportunistic: (value type = int)

    Allow reuse of already completed frees when there is no

dependency between the free and allocation. (default enabled) - hipMemPoolReuseAllowInternalDependencies: (value type = int)

Allow hipMallocAsync to insert new stream dependencies in order to establish the stream ordering required to reuse a piece of memory released by hipFreeAsync (default enabled).

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

The memory pool to get attributes of

attr (hipMemPoolAttr) – IN:

The attribute to get

value (Pointer/object) – IN:

Retrieved value

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemPoolGetAttribute(hipMemPool_t mem_pool, hipMemPoolAttr attr, void * value)
cuda.bindings.runtime.cuMemPoolSetAccess(mem_pool, desc_list, count)#

Controls visibility of the specified pool between devices

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

Memory pool for acccess change

desc_list (hipMemAccessDesc/object) – IN:

Array of access descriptors. Each descriptor instructs the access to enable for a single gpu

count (int) – IN:

Number of descriptors in the map array.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemPoolSetAccess(hipMemPool_t mem_pool, const hipMemAccessDesc * desc_list, size_t count)
cuda.bindings.runtime.cudaMemPoolSetAccess(mem_pool, desc_list, count)#

Controls visibility of the specified pool between devices

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

Memory pool for acccess change

desc_list (hipMemAccessDesc/object) – IN:

Array of access descriptors. Each descriptor instructs the access to enable for a single gpu

count (int) – IN:

Number of descriptors in the map array.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemPoolSetAccess(hipMemPool_t mem_pool, const hipMemAccessDesc * desc_list, size_t count)
cuda.bindings.runtime.cuMemPoolGetAccess(mem_pool, location)#

Returns the accessibility of a pool from a device

Returns the accessibility of the pool’s memory from the specified location.

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

Memory pool being queried

location (hipMemLocation/object) – IN:

Location/device for memory pool access

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemPoolGetAccess(hipMemAccessFlags * flags, hipMemPool_t mem_pool, hipMemLocation * location)
cuda.bindings.runtime.cudaMemPoolGetAccess(mem_pool, location)#

Returns the accessibility of a pool from a device

Returns the accessibility of the pool’s memory from the specified location.

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

Memory pool being queried

location (hipMemLocation/object) – IN:

Location/device for memory pool access

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemPoolGetAccess(hipMemAccessFlags * flags, hipMemPool_t mem_pool, hipMemLocation * location)
cuda.bindings.runtime.cuMemPoolCreate(pool_props)#

Creates a memory pool

Creates a HIP memory pool and returns the handle in mem_pool. The pool_props determines the properties of the pool such as the backing device and IPC capabilities.

By default, the memory pool will be accessible from the device it is allocated on.

Note:

Specifying hipMemHandleTypeNone creates a memory pool that will not support IPC.

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolDestroy, hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
pool_props (hipMemPoolProps/object) – IN:

Memory pool properties

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemPoolCreate(hipMemPool_t * mem_pool, const hipMemPoolProps * pool_props)
cuda.bindings.runtime.cudaMemPoolCreate(pool_props)#

Creates a memory pool

Creates a HIP memory pool and returns the handle in mem_pool. The pool_props determines the properties of the pool such as the backing device and IPC capabilities.

By default, the memory pool will be accessible from the device it is allocated on.

Note:

Specifying hipMemHandleTypeNone creates a memory pool that will not support IPC.

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolDestroy, hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
pool_props (hipMemPoolProps/object) – IN:

Memory pool properties

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemPoolCreate(hipMemPool_t * mem_pool, const hipMemPoolProps * pool_props)
cuda.bindings.runtime.cuMemPoolDestroy(mem_pool)#

Destroys the specified memory pool

If any pointers obtained from this pool haven’t been freed or the pool has free operations that haven’t completed when hipMemPoolDestroy is invoked, the function will return immediately and the resources associated with the pool will be released automatically once there are no more outstanding allocations.

Destroying the current mempool of a device sets the default mempool of that device as the current mempool for that device.

Note:

A device’s default memory pool cannot be destroyed.

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolCreate hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

Memory pool for destruction

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemPoolDestroy(hipMemPool_t mem_pool)
cuda.bindings.runtime.cudaMemPoolDestroy(mem_pool)#

Destroys the specified memory pool

If any pointers obtained from this pool haven’t been freed or the pool has free operations that haven’t completed when hipMemPoolDestroy is invoked, the function will return immediately and the resources associated with the pool will be released automatically once there are no more outstanding allocations.

Destroying the current mempool of a device sets the default mempool of that device as the current mempool for that device.

Note:

A device’s default memory pool cannot be destroyed.

See:

hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolCreate hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

Memory pool for destruction

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemPoolDestroy(hipMemPool_t mem_pool)
cuda.bindings.runtime.cuMemAllocFromPoolAsync(size, mem_pool, stream)#

Allocates memory from a specified pool with stream ordered semantics.

Inserts an allocation operation into stream. A pointer to the allocated memory is returned immediately in dev_ptr. The allocation must not be accessed until the allocation operation completes. The allocation comes from the specified memory pool.

Note:

The specified memory pool may be from a device different than that of the specified stream.

Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.

Note:

During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.

See:

hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolCreate hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess,

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
size (int) – IN:

Number of bytes to allocate

mem_pool (ihipMemPoolHandle_t/object) – IN:

The pool to allocate from

stream (ihipStream_t/object) – IN:

The stream establishing the stream ordering semantic

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMallocFromPoolAsync(void ** dev_ptr, size_t size, hipMemPool_t mem_pool, hipStream_t stream)
cuda.bindings.runtime.cudaMallocFromPoolAsync(size, mem_pool, stream)#

Allocates memory from a specified pool with stream ordered semantics.

Inserts an allocation operation into stream. A pointer to the allocated memory is returned immediately in dev_ptr. The allocation must not be accessed until the allocation operation completes. The allocation comes from the specified memory pool.

Note:

The specified memory pool may be from a device different than that of the specified stream.

Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.

Note:

During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.

See:

hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolCreate hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess,

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
size (int) – IN:

Number of bytes to allocate

mem_pool (ihipMemPoolHandle_t/object) – IN:

The pool to allocate from

stream (ihipStream_t/object) – IN:

The stream establishing the stream ordering semantic

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMallocFromPoolAsync(void ** dev_ptr, size_t size, hipMemPool_t mem_pool, hipStream_t stream)
cuda.bindings.runtime.cuMemPoolExportToShareableHandle(shared_handle, mem_pool, handle_type, flags)#

Exports a memory pool to the requested handle type.

Given an IPC capable mempool, create an OS handle to share the pool with another process. A recipient process can convert the shareable handle into a mempool with hipMemPoolImportFromShareableHandle. Individual pointers can then be shared with the hipMemPoolExportPointer and hipMemPoolImportPointer APIs. The implementation of what the shareable handle is and how it can be transferred is defined by the requested handle type.

Note:

To create an IPC capable mempool, create a mempool with a hipMemAllocationHandleType other than hipMemHandleTypeNone.

See:

hipMemPoolImportFromShareableHandle

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
shared_handle (Pointer/object) – OUT:

Pointer to the location in which to store the requested handle

mem_pool (ihipMemPoolHandle_t/object) – IN:

Pool to export

handle_type (hipMemAllocationHandleType) – IN:

The type of handle to create

flags (int) – IN:

Must be 0

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorOutOfMemory

C signature

hipError_t hipMemPoolExportToShareableHandle(void * shared_handle, hipMemPool_t mem_pool, hipMemAllocationHandleType handle_type, unsigned int flags)
cuda.bindings.runtime.cudaMemPoolExportToShareableHandle(shared_handle, mem_pool, handle_type, flags)#

Exports a memory pool to the requested handle type.

Given an IPC capable mempool, create an OS handle to share the pool with another process. A recipient process can convert the shareable handle into a mempool with hipMemPoolImportFromShareableHandle. Individual pointers can then be shared with the hipMemPoolExportPointer and hipMemPoolImportPointer APIs. The implementation of what the shareable handle is and how it can be transferred is defined by the requested handle type.

Note:

To create an IPC capable mempool, create a mempool with a hipMemAllocationHandleType other than hipMemHandleTypeNone.

See:

hipMemPoolImportFromShareableHandle

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
shared_handle (Pointer/object) – OUT:

Pointer to the location in which to store the requested handle

mem_pool (ihipMemPoolHandle_t/object) – IN:

Pool to export

handle_type (hipMemAllocationHandleType) – IN:

The type of handle to create

flags (int) – IN:

Must be 0

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorOutOfMemory

C signature

hipError_t hipMemPoolExportToShareableHandle(void * shared_handle, hipMemPool_t mem_pool, hipMemAllocationHandleType handle_type, unsigned int flags)
cuda.bindings.runtime.cuMemPoolImportFromShareableHandle(shared_handle, handle_type, flags)#

Imports a memory pool from a shared handle.

Specific allocations can be imported from the imported pool with hipMemPoolImportPointer.

Note:

Imported memory pools do not support creating new allocations. As such imported memory pools may not be used in hipDeviceSetMemPool or hipMallocFromPoolAsync calls.

See:

hipMemPoolExportToShareableHandle

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
shared_handle (Pointer/object) – IN:

OS handle of the pool to open

handle_type (hipMemAllocationHandleType) – IN:

The type of handle being imported

flags (int) – IN:

Must be 0

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemPoolImportFromShareableHandle(hipMemPool_t * mem_pool, void * shared_handle, hipMemAllocationHandleType handle_type, unsigned int flags)
cuda.bindings.runtime.cudaMemPoolImportFromShareableHandle(shared_handle, handle_type, flags)#

Imports a memory pool from a shared handle.

Specific allocations can be imported from the imported pool with hipMemPoolImportPointer.

Note:

Imported memory pools do not support creating new allocations. As such imported memory pools may not be used in hipDeviceSetMemPool or hipMallocFromPoolAsync calls.

See:

hipMemPoolExportToShareableHandle

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
shared_handle (Pointer/object) – IN:

OS handle of the pool to open

handle_type (hipMemAllocationHandleType) – IN:

The type of handle being imported

flags (int) – IN:

Must be 0

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemPoolImportFromShareableHandle(hipMemPool_t * mem_pool, void * shared_handle, hipMemAllocationHandleType handle_type, unsigned int flags)
cuda.bindings.runtime.cuMemPoolExportPointer(dev_ptr)#

Export data to share a memory pool allocation between processes.

Constructs export_data for sharing a specific allocation from an already shared memory pool. The recipient process can import the allocation with the hipMemPoolImportPointer api. The data is not a handle and may be shared through any IPC mechanism.

See:

hipMemPoolImportPointer

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
dev_ptr (Pointer/object) – IN:

Pointer to memory being exported

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemPoolExportPointer(hipMemPoolPtrExportData * export_data, void * dev_ptr)
cuda.bindings.runtime.cudaMemPoolExportPointer(dev_ptr)#

Export data to share a memory pool allocation between processes.

Constructs export_data for sharing a specific allocation from an already shared memory pool. The recipient process can import the allocation with the hipMemPoolImportPointer api. The data is not a handle and may be shared through any IPC mechanism.

See:

hipMemPoolImportPointer

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
dev_ptr (Pointer/object) – IN:

Pointer to memory being exported

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemPoolExportPointer(hipMemPoolPtrExportData * export_data, void * dev_ptr)
cuda.bindings.runtime.cuMemPoolImportPointer(mem_pool, export_data)#

Import a memory pool allocation from another process.

Returns in dev_ptr a pointer to the imported memory. The imported memory must not be accessed before the allocation operation completes in the exporting process. The imported memory must be freed from all importing processes before being freed in the exporting process. The pointer may be freed with hipFree or hipFreeAsync. If hipFreeAsync is used, the free must be completed on the importing process before the free operation on the exporting process.

Note:

The hipFreeAsync api may be used in the exporting process before the hipFreeAsync operation completes in its stream as long as the hipFreeAsync in the exporting process specifies a stream with a stream dependency on the importing process’s hipFreeAsync.

See:

hipMemPoolExportPointer

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

Memory pool from which to import a pointer

export_data (hipMemPoolPtrExportData/object) – IN:

Data specifying the memory to import

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemPoolImportPointer(void ** dev_ptr, hipMemPool_t mem_pool, hipMemPoolPtrExportData * export_data)
cuda.bindings.runtime.cudaMemPoolImportPointer(mem_pool, export_data)#

Import a memory pool allocation from another process.

Returns in dev_ptr a pointer to the imported memory. The imported memory must not be accessed before the allocation operation completes in the exporting process. The imported memory must be freed from all importing processes before being freed in the exporting process. The pointer may be freed with hipFree or hipFreeAsync. If hipFreeAsync is used, the free must be completed on the importing process before the free operation on the exporting process.

Note:

The hipFreeAsync api may be used in the exporting process before the hipFreeAsync operation completes in its stream as long as the hipFreeAsync in the exporting process specifies a stream with a stream dependency on the importing process’s hipFreeAsync.

See:

hipMemPoolExportPointer

Warning:

This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

Memory pool from which to import a pointer

export_data (hipMemPoolPtrExportData/object) – IN:

Data specifying the memory to import

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemPoolImportPointer(void ** dev_ptr, hipMemPool_t mem_pool, hipMemPoolPtrExportData * export_data)
cuda.bindings.runtime.cuMemHostAlloc(size, flags)#

Allocate device accessible page locked host memory

If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.

Flags: - hipHostAllocDefault Default pinned memory allocation on the host. - hipHostAllocPortable Memory is considered allocated by all contexts. - hipHostAllocMapped Map the allocation into the address space for the current device. - hipHostAllocWriteCombined Allocates the memory as write-combined. - hipHostAllocUncached Allocate the host memory on extended fine grained access system

memory pool

Args:
size (int) – IN:

Requested memory size in bytes

flags (int) – IN:

Type of host memory allocation see below

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipHostAlloc(void ** ptr, size_t size, unsigned int flags)
cuda.bindings.runtime.cudaHostAlloc(size, flags)#

Allocate device accessible page locked host memory

If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.

Flags: - hipHostAllocDefault Default pinned memory allocation on the host. - hipHostAllocPortable Memory is considered allocated by all contexts. - hipHostAllocMapped Map the allocation into the address space for the current device. - hipHostAllocWriteCombined Allocates the memory as write-combined. - hipHostAllocUncached Allocate the host memory on extended fine grained access system

memory pool

Args:
size (int) – IN:

Requested memory size in bytes

flags (int) – IN:

Type of host memory allocation see below

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipHostAlloc(void ** ptr, size_t size, unsigned int flags)
cuda.bindings.runtime.cuMemHostGetDevicePointer(hstPtr, flags)#

Get Device pointer from Host Pointer allocated through hipHostMalloc

See:

hipSetDeviceFlags, hipHostMalloc

Args:
hstPtr (Pointer/object) – IN:

Host Pointer allocated through hipHostMalloc

flags (int) – IN:

Flags to be passed for extension

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipHostGetDevicePointer(void ** devPtr, void * hstPtr, unsigned int flags)
cuda.bindings.runtime.cuMemHostGetDevicePointer_v2(hstPtr, flags)#

Get Device pointer from Host Pointer allocated through hipHostMalloc

See:

hipSetDeviceFlags, hipHostMalloc

Args:
hstPtr (Pointer/object) – IN:

Host Pointer allocated through hipHostMalloc

flags (int) – IN:

Flags to be passed for extension

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipHostGetDevicePointer(void ** devPtr, void * hstPtr, unsigned int flags)
cuda.bindings.runtime.cudaHostGetDevicePointer(hstPtr, flags)#

Get Device pointer from Host Pointer allocated through hipHostMalloc

See:

hipSetDeviceFlags, hipHostMalloc

Args:
hstPtr (Pointer/object) – IN:

Host Pointer allocated through hipHostMalloc

flags (int) – IN:

Flags to be passed for extension

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipHostGetDevicePointer(void ** devPtr, void * hstPtr, unsigned int flags)
cuda.bindings.runtime.cuMemHostGetFlags(hostPtr)#

Return flags associated with host pointer

See:

hipHostMalloc

Args:
hostPtr (Pointer/object) – IN:

Host Pointer allocated through hipHostMalloc

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipHostGetFlags(unsigned int * flagsPtr, void * hostPtr)
cuda.bindings.runtime.cudaHostGetFlags(hostPtr)#

Return flags associated with host pointer

See:

hipHostMalloc

Args:
hostPtr (Pointer/object) – IN:

Host Pointer allocated through hipHostMalloc

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipHostGetFlags(unsigned int * flagsPtr, void * hostPtr)
cuda.bindings.runtime.cuMemHostRegister(hostPtr, sizeBytes, flags)#

Register host memory so it can be accessed from the current device.

Flags:
one context so this is always assumed true.
The device pointer can be obtained with hipHostGetDevicePointer.
  • hipExtHostRegisterUncached Map the host memory onto extended fine grained access system

memory pool.

After registering the memory, use hipHostGetDevicePointer to obtain the mapped device pointer. On many systems, the mapped device pointer will have a different value than the mapped host

pointer. Applications must use the device pointer in device code, and the host pointer in host code.

On some systems, registered memory is pinned. On some systems, registered memory may not be

actually be pinned but uses OS or hardware facilities to all GPU access to the host memory.

Developers are strongly encouraged to register memory blocks which are aligned to the host

cache-line size. (typically 64-bytes but can be obtains from the CPUID instruction).

If registering non-aligned pointers, the application must take care when register pointers from

the same cache line on different devices. HIP’s coarse-grained synchronization model does not guarantee correct results if different devices write to different parts of the same cache block - typically one of the writes will “win” and overwrite data from the other registered memory region.

See:

hipHostUnregister, hipHostGetFlags, hipHostGetDevicePointer

Args:
hostPtr (Pointer/object) – OUT:

Pointer to host memory to be registered.

sizeBytes (int) – IN:

Size of the host memory

flags (int) – IN:

See below.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorOutOfMemory

C signature

hipError_t hipHostRegister(void * hostPtr, size_t sizeBytes, unsigned int flags)
cuda.bindings.runtime.cuMemHostRegister_v2(hostPtr, sizeBytes, flags)#

Register host memory so it can be accessed from the current device.

Flags:
one context so this is always assumed true.
The device pointer can be obtained with hipHostGetDevicePointer.
  • hipExtHostRegisterUncached Map the host memory onto extended fine grained access system

memory pool.

After registering the memory, use hipHostGetDevicePointer to obtain the mapped device pointer. On many systems, the mapped device pointer will have a different value than the mapped host

pointer. Applications must use the device pointer in device code, and the host pointer in host code.

On some systems, registered memory is pinned. On some systems, registered memory may not be

actually be pinned but uses OS or hardware facilities to all GPU access to the host memory.

Developers are strongly encouraged to register memory blocks which are aligned to the host

cache-line size. (typically 64-bytes but can be obtains from the CPUID instruction).

If registering non-aligned pointers, the application must take care when register pointers from

the same cache line on different devices. HIP’s coarse-grained synchronization model does not guarantee correct results if different devices write to different parts of the same cache block - typically one of the writes will “win” and overwrite data from the other registered memory region.

See:

hipHostUnregister, hipHostGetFlags, hipHostGetDevicePointer

Args:
hostPtr (Pointer/object) – OUT:

Pointer to host memory to be registered.

sizeBytes (int) – IN:

Size of the host memory

flags (int) – IN:

See below.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorOutOfMemory

C signature

hipError_t hipHostRegister(void * hostPtr, size_t sizeBytes, unsigned int flags)
cuda.bindings.runtime.cudaHostRegister(hostPtr, sizeBytes, flags)#

Register host memory so it can be accessed from the current device.

Flags:
one context so this is always assumed true.
The device pointer can be obtained with hipHostGetDevicePointer.
  • hipExtHostRegisterUncached Map the host memory onto extended fine grained access system

memory pool.

After registering the memory, use hipHostGetDevicePointer to obtain the mapped device pointer. On many systems, the mapped device pointer will have a different value than the mapped host

pointer. Applications must use the device pointer in device code, and the host pointer in host code.

On some systems, registered memory is pinned. On some systems, registered memory may not be

actually be pinned but uses OS or hardware facilities to all GPU access to the host memory.

Developers are strongly encouraged to register memory blocks which are aligned to the host

cache-line size. (typically 64-bytes but can be obtains from the CPUID instruction).

If registering non-aligned pointers, the application must take care when register pointers from

the same cache line on different devices. HIP’s coarse-grained synchronization model does not guarantee correct results if different devices write to different parts of the same cache block - typically one of the writes will “win” and overwrite data from the other registered memory region.

See:

hipHostUnregister, hipHostGetFlags, hipHostGetDevicePointer

Args:
hostPtr (Pointer/object) – OUT:

Pointer to host memory to be registered.

sizeBytes (int) – IN:

Size of the host memory

flags (int) – IN:

See below.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorOutOfMemory

C signature

hipError_t hipHostRegister(void * hostPtr, size_t sizeBytes, unsigned int flags)
cuda.bindings.runtime.cuMemHostUnregister(hostPtr)#

Un-register host pointer

See:

hipHostRegister

Args:
hostPtr (Pointer/object) – IN:

Host pointer previously registered with hipHostRegister

Returns:

hipError_t: Error code

C signature

hipError_t hipHostUnregister(void * hostPtr)
cuda.bindings.runtime.cudaHostUnregister(hostPtr)#

Un-register host pointer

See:

hipHostRegister

Args:
hostPtr (Pointer/object) – IN:

Host pointer previously registered with hipHostRegister

Returns:

hipError_t: Error code

C signature

hipError_t hipHostUnregister(void * hostPtr)
cuda.bindings.runtime.cudaMallocPitch(width, height)#
Allocates at least width (in bytes) * height bytes of linear memory

Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be retu […]

Allocates at least width (in bytes) * height bytes of linear memory Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be returned in *pitch. Currently the alignment is set to 128 bytes

If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.

See:

hipMalloc, hipFree, hipMallocArray, hipFreeArray, hipHostFree, hipMalloc3D, hipMalloc3DArray, hipHostMalloc

Args:
width (int) – IN:

Requested pitched allocation width (in bytes)

height (int) – IN:

Requested pitched allocation height

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipMallocPitch(void ** ptr, size_t * pitch, size_t width, size_t height)
cuda.bindings.runtime.cuMemAllocPitch(widthInBytes, height, elementSizeBytes)#
Allocates at least width (in bytes) * height bytes of linear memory

Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be retu […]

Allocates at least width (in bytes) * height bytes of linear memory Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be returned in *pitch. Currently the alignment is set to 128 bytes

If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.

The intended usage of pitch is as a separate parameter of the allocation, used to compute

addresses within the 2D array. Given the row and column of an array element of type T, the address is computed as: T* pElement = (T*)((char*)BaseAddress + Row * Pitch) + Column;

See:

hipMalloc, hipFree, hipMallocArray, hipFreeArray, hipHostFree, hipMalloc3D, hipMalloc3DArray, hipHostMalloc

Args:
widthInBytes (int) – IN:

Requested pitched allocation width (in bytes)

height (int) – IN:

Requested pitched allocation height

elementSizeBytes (int) – IN:

The size of element bytes, should be 4, 8 or 16

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipMemAllocPitch(hipDeviceptr_t * dptr, size_t * pitch, size_t widthInBytes, size_t height, unsigned int elementSizeBytes)
cuda.bindings.runtime.cuMemAllocPitch_v2(widthInBytes, height, elementSizeBytes)#
Allocates at least width (in bytes) * height bytes of linear memory

Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be retu […]

Allocates at least width (in bytes) * height bytes of linear memory Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be returned in *pitch. Currently the alignment is set to 128 bytes

If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.

The intended usage of pitch is as a separate parameter of the allocation, used to compute

addresses within the 2D array. Given the row and column of an array element of type T, the address is computed as: T* pElement = (T*)((char*)BaseAddress + Row * Pitch) + Column;

See:

hipMalloc, hipFree, hipMallocArray, hipFreeArray, hipHostFree, hipMalloc3D, hipMalloc3DArray, hipHostMalloc

Args:
widthInBytes (int) – IN:

Requested pitched allocation width (in bytes)

height (int) – IN:

Requested pitched allocation height

elementSizeBytes (int) – IN:

The size of element bytes, should be 4, 8 or 16

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipMemAllocPitch(hipDeviceptr_t * dptr, size_t * pitch, size_t widthInBytes, size_t height, unsigned int elementSizeBytes)
cuda.bindings.runtime.cuMemFree(ptr)#
Free memory allocated by the HIP-Clang hip memory allocation API.

This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.

See:

hipMalloc, hipMallocPitch, hipMallocArray, hipFreeArray, hipHostFree, hipMalloc3D, hipMalloc3DArray, hipHostMalloc

Args:
ptr (Pointer/object) – IN:

Pointer to memory to be freed

Returns:
hipError_t: One of:

C signature

hipError_t hipFree(void * ptr)
cuda.bindings.runtime.cuMemFree_v2(ptr)#
Free memory allocated by the HIP-Clang hip memory allocation API.

This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.

See:

hipMalloc, hipMallocPitch, hipMallocArray, hipFreeArray, hipHostFree, hipMalloc3D, hipMalloc3DArray, hipHostMalloc

Args:
ptr (Pointer/object) – IN:

Pointer to memory to be freed

Returns:
hipError_t: One of:

C signature

hipError_t hipFree(void * ptr)
cuda.bindings.runtime.cudaFree(ptr)#
Free memory allocated by the HIP-Clang hip memory allocation API.

This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.

See:

hipMalloc, hipMallocPitch, hipMallocArray, hipFreeArray, hipHostFree, hipMalloc3D, hipMalloc3DArray, hipHostMalloc

Args:
ptr (Pointer/object) – IN:

Pointer to memory to be freed

Returns:
hipError_t: One of:

C signature

hipError_t hipFree(void * ptr)
cuda.bindings.runtime.cuMemFreeHost(ptr)#
Free memory allocated by the HIP-Clang hip host memory allocation API

This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.

See:

hipMalloc, hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray, hipHostMalloc

Args:
ptr (Pointer/object) – IN:

Pointer to memory to be freed

Returns:
hipError_t: py:obj:hipSuccess,

hipErrorInvalidValue (if pointer is invalid, including device pointers allocated with

hipMalloc)

C signature

hipError_t hipHostFree(void * ptr)
cuda.bindings.runtime.cudaFreeHost(ptr)#
Free memory allocated by the HIP-Clang hip host memory allocation API

This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.

See:

hipMalloc, hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray, hipHostMalloc

Args:
ptr (Pointer/object) – IN:

Pointer to memory to be freed

Returns:
hipError_t: py:obj:hipSuccess,

hipErrorInvalidValue (if pointer is invalid, including device pointers allocated with

hipMalloc)

C signature

hipError_t hipHostFree(void * ptr)
cuda.bindings.runtime.cudaMemcpy(dst, src, sizeBytes, kind)#

Copy data from src to dst.

It supports memory from host to device,

device to host, device to device and host to host The src and dst must not overlap.

For hipMemcpy, the copy is always performed by the current device (set by hipSetDevice). For multi-gpu or peer-to-peer configurations, it is recommended to set the current device to the device where the src data is physically located. For optimal peer-to-peer copies, the copy

device must be able to access the src and dst pointers (by calling hipDeviceEnablePeerAccess with copy agent as the current device and src/dst as the peerDevice argument. if this is not done, the hipMemcpy will still work, but will perform the copy using a staging buffer on the host.

Calling hipMemcpy with dst and src pointers that do not match the hipMemcpyKind results in undefined behavior.

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

kind (hipMemcpyKind) – IN:

Kind of transfer

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorUnknown

C signature

hipError_t hipMemcpy(void * dst, const void * src, size_t sizeBytes, hipMemcpyKind kind)
cuda.bindings.runtime.cuMemcpyHtoD(dst, src, sizeBytes)#

Copy data from Host to Device

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyHtoD(hipDeviceptr_t dst, const void * src, size_t sizeBytes)
cuda.bindings.runtime.cuMemcpyHtoD_v2(dst, src, sizeBytes)#

Copy data from Host to Device

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyHtoD(hipDeviceptr_t dst, const void * src, size_t sizeBytes)
cuda.bindings.runtime.cuMemcpyDtoH(dst, src, sizeBytes)#

Copy data from Device to Host

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyDtoH(void * dst, hipDeviceptr_t src, size_t sizeBytes)
cuda.bindings.runtime.cuMemcpyDtoH_v2(dst, src, sizeBytes)#

Copy data from Device to Host

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyDtoH(void * dst, hipDeviceptr_t src, size_t sizeBytes)
cuda.bindings.runtime.cuMemcpyDtoD(dst, src, sizeBytes)#

Copy data from Device to Device

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyDtoD(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes)
cuda.bindings.runtime.cuMemcpyDtoD_v2(dst, src, sizeBytes)#

Copy data from Device to Device

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyDtoD(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes)
cuda.bindings.runtime.cuMemcpyAtoD(dstDevice, srcArray, srcOffset, ByteCount)#

Copies from one 1D array to device memory.

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dstDevice (Pointer/object) – OUT:

Destination device pointer

srcArray (hipArray/object) – IN:

Source array

srcOffset (int) – IN:

Offset in bytes of source array

ByteCount (int) – IN:

Size of memory copy in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyAtoD(hipDeviceptr_t dstDevice, hipArray_t srcArray, size_t srcOffset, size_t ByteCount)
cuda.bindings.runtime.cuMemcpyAtoD_v2(dstDevice, srcArray, srcOffset, ByteCount)#

Copies from one 1D array to device memory.

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dstDevice (Pointer/object) – OUT:

Destination device pointer

srcArray (hipArray/object) – IN:

Source array

srcOffset (int) – IN:

Offset in bytes of source array

ByteCount (int) – IN:

Size of memory copy in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyAtoD(hipDeviceptr_t dstDevice, hipArray_t srcArray, size_t srcOffset, size_t ByteCount)
cuda.bindings.runtime.cuMemcpyDtoA(dstArray, dstOffset, srcDevice, ByteCount)#

Copies from device memory to a 1D array.

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dstArray (hipArray/object) – OUT:

Destination array

dstOffset (int) – IN:

Offset in bytes of destination array

srcDevice (Pointer/object) – IN:

Source device pointer

ByteCount (int) – IN:

Size of memory copy in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyDtoA(hipArray_t dstArray, size_t dstOffset, hipDeviceptr_t srcDevice, size_t ByteCount)
cuda.bindings.runtime.cuMemcpyDtoA_v2(dstArray, dstOffset, srcDevice, ByteCount)#

Copies from device memory to a 1D array.

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dstArray (hipArray/object) – OUT:

Destination array

dstOffset (int) – IN:

Offset in bytes of destination array

srcDevice (Pointer/object) – IN:

Source device pointer

ByteCount (int) – IN:

Size of memory copy in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyDtoA(hipArray_t dstArray, size_t dstOffset, hipDeviceptr_t srcDevice, size_t ByteCount)
cuda.bindings.runtime.cuMemcpyAtoA(dstArray, dstOffset, srcArray, srcOffset, ByteCount)#

Copies from one 1D array to another.

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dstArray (hipArray/object) – OUT:

Destination array

dstOffset (int) – IN:

Offset in bytes of destination array

srcArray (hipArray/object) – IN:

Source array

srcOffset (int) – IN:

Offset in bytes of source array

ByteCount (int) – IN:

Size of memory copy in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyAtoA(hipArray_t dstArray, size_t dstOffset, hipArray_t srcArray, size_t srcOffset, size_t ByteCount)
cuda.bindings.runtime.cuMemcpyAtoA_v2(dstArray, dstOffset, srcArray, srcOffset, ByteCount)#

Copies from one 1D array to another.

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dstArray (hipArray/object) – OUT:

Destination array

dstOffset (int) – IN:

Offset in bytes of destination array

srcArray (hipArray/object) – IN:

Source array

srcOffset (int) – IN:

Offset in bytes of source array

ByteCount (int) – IN:

Size of memory copy in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyAtoA(hipArray_t dstArray, size_t dstOffset, hipArray_t srcArray, size_t srcOffset, size_t ByteCount)
cuda.bindings.runtime.cuMemcpyHtoDAsync(dst, src, sizeBytes, stream)#

Copy data from Host to Device asynchronously

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyHtoDAsync(hipDeviceptr_t dst, const void * src, size_t sizeBytes, hipStream_t stream)
cuda.bindings.runtime.cuMemcpyHtoDAsync_v2(dst, src, sizeBytes, stream)#

Copy data from Host to Device asynchronously

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyHtoDAsync(hipDeviceptr_t dst, const void * src, size_t sizeBytes, hipStream_t stream)
cuda.bindings.runtime.cuMemcpyDtoHAsync(dst, src, sizeBytes, stream)#

Copy data from Device to Host asynchronously

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyDtoHAsync(void * dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
cuda.bindings.runtime.cuMemcpyDtoHAsync_v2(dst, src, sizeBytes, stream)#

Copy data from Device to Host asynchronously

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyDtoHAsync(void * dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
cuda.bindings.runtime.cuMemcpyDtoDAsync(dst, src, sizeBytes, stream)#

Copy data from Device to Device asynchronously

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyDtoDAsync(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
cuda.bindings.runtime.cuMemcpyDtoDAsync_v2(dst, src, sizeBytes, stream)#

Copy data from Device to Device asynchronously

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyDtoDAsync(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
cuda.bindings.runtime.cuMemcpyAtoHAsync(dstHost, srcArray, srcOffset, ByteCount, stream)#

Copies from one 1D array to host memory.

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dstHost (Pointer/object) – OUT:

Destination pointer

srcArray (hipArray/object) – IN:

Source array

srcOffset (int) – IN:

Offset in bytes of source array

ByteCount (int) – IN:

Size of memory copy in bytes

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyAtoHAsync(void * dstHost, hipArray_t srcArray, size_t srcOffset, size_t ByteCount, hipStream_t stream)
cuda.bindings.runtime.cuMemcpyAtoHAsync_v2(dstHost, srcArray, srcOffset, ByteCount, stream)#

Copies from one 1D array to host memory.

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dstHost (Pointer/object) – OUT:

Destination pointer

srcArray (hipArray/object) – IN:

Source array

srcOffset (int) – IN:

Offset in bytes of source array

ByteCount (int) – IN:

Size of memory copy in bytes

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyAtoHAsync(void * dstHost, hipArray_t srcArray, size_t srcOffset, size_t ByteCount, hipStream_t stream)
cuda.bindings.runtime.cuMemcpyHtoAAsync(dstArray, dstOffset, srcHost, ByteCount, stream)#

Copies from host memory to a 1D array.

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dstArray (hipArray/object) – OUT:

Destination array

dstOffset (int) – IN:

Offset in bytes of destination array

srcHost (Pointer/object) – IN:

Source host pointer

ByteCount (int) – IN:

Size of memory copy in bytes

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyHtoAAsync(hipArray_t dstArray, size_t dstOffset, const void * srcHost, size_t ByteCount, hipStream_t stream)
cuda.bindings.runtime.cuMemcpyHtoAAsync_v2(dstArray, dstOffset, srcHost, ByteCount, stream)#

Copies from host memory to a 1D array.

See:

hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer

Args:
dstArray (hipArray/object) – OUT:

Destination array

dstOffset (int) – IN:

Offset in bytes of destination array

srcHost (Pointer/object) – IN:

Source host pointer

ByteCount (int) – IN:

Size of memory copy in bytes

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidValue

C signature

hipError_t hipMemcpyHtoAAsync(hipArray_t dstArray, size_t dstOffset, const void * srcHost, size_t ByteCount, hipStream_t stream)
cuda.bindings.runtime.cuModuleGetGlobal(hmod, name)#

Returns a global pointer from a module.

Returns in *dptr and *bytes the pointer and size of the global of name name located in module hmod. If no variable of that name exists, it returns hipErrorNotFound. Both parameters dptr and bytes are optional. If one of them is NULL, it is ignored and hipSuccess is returned.

Args:
hmod (ihipModule_t/object) – IN:

Module to retrieve global from

name (CStr/object) – IN:

Name of global to retrieve

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipModuleGetGlobal(hipDeviceptr_t * dptr, size_t * bytes, hipModule_t hmod, const char * name)
cuda.bindings.runtime.cuModuleGetGlobal_v2(hmod, name)#

Returns a global pointer from a module.

Returns in *dptr and *bytes the pointer and size of the global of name name located in module hmod. If no variable of that name exists, it returns hipErrorNotFound. Both parameters dptr and bytes are optional. If one of them is NULL, it is ignored and hipSuccess is returned.

Args:
hmod (ihipModule_t/object) – IN:

Module to retrieve global from

name (CStr/object) – IN:

Name of global to retrieve

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipModuleGetGlobal(hipDeviceptr_t * dptr, size_t * bytes, hipModule_t hmod, const char * name)
cuda.bindings.runtime.cudaGetSymbolAddress(symbol)#

Gets device pointer associated with symbol on the device.

Args:
symbol (Pointer/object) – IN:

pointer to the symbole of the device

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetSymbolAddress(void ** devPtr, const void * symbol)
cuda.bindings.runtime.cudaGetSymbolSize(symbol)#

Gets the size of the given symbol on the device.

Args:
symbol (Pointer/object) – IN:

pointer to the device symbole

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetSymbolSize(size_t * size, const void * symbol)
cuda.bindings.runtime.cuGetProcAddress(symbol, hipVersion, flags)#

Gets the pointer of requested HIP driver function.

Returns hipSuccess if the returned pfn is addressed to the pointer of found driver function.

Args:
symbol (CStr/object) – IN:

The Symbol name of the driver function to request.

hipVersion (int) – IN:

The HIP version for the requested driver function symbol. HIP version is defined as 100*version_major + version_minor. For example, in HIP 6.1, the hipversion is 601, for the symbol function “hipGetDeviceProperties”, the specified hipVersion 601 is greater or equal to the version 600, the symbol function will be handle properly as backend compatible function.

flags (int) – IN:

Currently only default flag is suppported.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipGetProcAddress(const char * symbol, void ** pfn, int hipVersion, uint64_t flags, hipDriverProcAddressQueryResult * symbolStatus)
cuda.bindings.runtime.cudaMemcpyToSymbol(symbol, src, sizeBytes, offset, kind)#

Copies data to the given symbol on the device. Symbol HIP APIs allow a kernel to define a device-side data symbol which can be accessed on the host side. The symbol can be in __constant or device space. Note that the symbol name needs to be encased in the HIP_SYMBOL macro. This also applies to hipMemcpyFromSymbol, hipGetSymbolAddress, and hipGetSymbolSize. For detailed usage, see the <a href=”https://rocm.docs.amd.com/projects/HIP/en/latest/how-to/hip_porting_guide.html:py:obj:memcpytosymbol”>memcpyToSymbol example</a> in the HIP Porting Guide.

Args:
symbol (Pointer/object) – OUT:

pointer to the device symbole

src (Pointer/object) – IN:

pointer to the source address

sizeBytes (int) – IN:

size in bytes to copy

offset (int) – IN:

offset in bytes from start of symbole

kind (hipMemcpyKind) – IN:

type of memory transfer

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemcpyToSymbol(const void * symbol, const void * src, size_t sizeBytes, size_t offset, hipMemcpyKind kind)
cuda.bindings.runtime.cudaMemcpyToSymbolAsync(symbol, src, sizeBytes, offset, kind, stream)#

Copies data to the given symbol on the device asynchronously.

Args:
symbol (Pointer/object) – OUT:

pointer to the device symbole

src (Pointer/object) – IN:

pointer to the source address

sizeBytes (int) – IN:

size in bytes to copy

offset (int) – IN:

offset in bytes from start of symbole

kind (hipMemcpyKind) – IN:

type of memory transfer

stream (ihipStream_t/object) – IN:

stream identifier

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemcpyToSymbolAsync(const void * symbol, const void * src, size_t sizeBytes, size_t offset, hipMemcpyKind kind, hipStream_t stream)
cuda.bindings.runtime.cudaMemcpyFromSymbol(dst, symbol, sizeBytes, offset, kind)#

Copies data from the given symbol on the device.

Args:
dst (Pointer/object) – OUT:

Returns pointer to destinition memory address

symbol (Pointer/object) – IN:

Pointer to the symbole address on the device

sizeBytes (int) – IN:

Size in bytes to copy

offset (int) – IN:

Offset in bytes from the start of symbole

kind (hipMemcpyKind) – IN:

Type of memory transfer

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemcpyFromSymbol(void * dst, const void * symbol, size_t sizeBytes, size_t offset, hipMemcpyKind kind)
cuda.bindings.runtime.cudaMemcpyFromSymbolAsync(dst, symbol, sizeBytes, offset, kind, stream)#

Copies data from the given symbol on the device asynchronously.

Args:
dst (Pointer/object) – OUT:

Returns pointer to destinition memory address

symbol (Pointer/object) – IN:

pointer to the symbole address on the device

sizeBytes (int) – IN:

size in bytes to copy

offset (int) – IN:

offset in bytes from the start of symbole

kind (hipMemcpyKind) – IN:

type of memory transfer

stream (ihipStream_t/object) – IN:

stream identifier

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemcpyFromSymbolAsync(void * dst, const void * symbol, size_t sizeBytes, size_t offset, hipMemcpyKind kind, hipStream_t stream)
cuda.bindings.runtime.cudaMemcpyAsync(dst, src, sizeBytes, kind, stream)#

Copies data from src to dst asynchronously.

The copy is always performed by the device associated with the specified stream.

For multi-gpu or peer-to-peer configurations, it is recommended to use a stream which is

attached to the device where the src data is physically located.

For optimal peer-to-peer copies, the copy device must be able to access the src and dst

pointers (by calling hipDeviceEnablePeerAccess) with copy agent as the current device and src/dest as the peerDevice argument. If enabling device peer access is not done, the memory copy will still work, but will perform the copy using a staging buffer on the host.

Note:

If host or dst are not pinned, the memory copy will be performed synchronously. For best performance, use hipHostMalloc to allocate host memory that is transferred asynchronously.

See:

hipMemcpy, hipMemcpy2D, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpy2DFromArray, hipMemcpyArrayToArray, hipMemcpy2DArrayToArray, hipMemcpyToSymbol, hipMemcpyFromSymbol, hipMemcpy2DAsync, hipMemcpyToArrayAsync, hipMemcpy2DToArrayAsync, hipMemcpyFromArrayAsync, hipMemcpy2DFromArrayAsync, hipMemcpyToSymbolAsync, hipMemcpyFromSymbolAsync

Args:
dst (Pointer/object) – OUT:

Data being copy to

src (Pointer/object) – IN:

Data being copy from

sizeBytes (int) – IN:

Data size in bytes

kind (hipMemcpyKind) – IN:

Type of memory transfer

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorUnknown

C signature

hipError_t hipMemcpyAsync(void * dst, const void * src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream)
cuda.bindings.runtime.cudaMemset(dst, value, sizeBytes)#

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant byte value value.

Args:
dst (Pointer/object) – OUT:

Data being filled

value (int) – IN:

Value to be set

sizeBytes (int) – IN:

Data size in bytes

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized

C signature

hipError_t hipMemset(void * dst, int value, size_t sizeBytes)
cuda.bindings.runtime.cuMemsetD8(dest, value, count)#

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant byte value value.

Args:
dest (Pointer/object) – OUT:

Data ptr to be filled

value (int) – IN:

Value to be set

count (int) – IN:

Number of values to be set

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized

C signature

hipError_t hipMemsetD8(hipDeviceptr_t dest, unsigned char value, size_t count)
cuda.bindings.runtime.cuMemsetD8_v2(dest, value, count)#

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant byte value value.

Args:
dest (Pointer/object) – OUT:

Data ptr to be filled

value (int) – IN:

Value to be set

count (int) – IN:

Number of values to be set

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized

C signature

hipError_t hipMemsetD8(hipDeviceptr_t dest, unsigned char value, size_t count)
cuda.bindings.runtime.cuMemsetD8Async(dest, value, count, stream)#

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant byte value value.

hipMemsetD8Async() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.

Args:
dest (Pointer/object) – OUT:

Data ptr to be filled

value (int) – IN:

Constant value to be set

count (int) – IN:

Number of values to be set

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized

C signature

hipError_t hipMemsetD8Async(hipDeviceptr_t dest, unsigned char value, size_t count, hipStream_t stream)
cuda.bindings.runtime.cuMemsetD16(dest, value, count)#

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant short value value.

Args:
dest (Pointer/object) – OUT:

Data ptr to be filled

value (int) – IN:

Constant value to be set

count (int) – IN:

Number of values to be set

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized

C signature

hipError_t hipMemsetD16(hipDeviceptr_t dest, unsigned short value, size_t count)
cuda.bindings.runtime.cuMemsetD16_v2(dest, value, count)#

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant short value value.

Args:
dest (Pointer/object) – OUT:

Data ptr to be filled

value (int) – IN:

Constant value to be set

count (int) – IN:

Number of values to be set

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized

C signature

hipError_t hipMemsetD16(hipDeviceptr_t dest, unsigned short value, size_t count)
cuda.bindings.runtime.cuMemsetD16Async(dest, value, count, stream)#

Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant short value value.

hipMemsetD16Async() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.

Args:
dest (Pointer/object) – OUT:

Data ptr to be filled

value (int) – IN:

Constant value to be set

count (int) – IN:

Number of values to be set

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized

C signature

hipError_t hipMemsetD16Async(hipDeviceptr_t dest, unsigned short value, size_t count, hipStream_t stream)
cuda.bindings.runtime.cuMemsetD32(dest, value, count)#

Fills the memory area pointed to by dest with the constant integer value for specified number of times.

Args:
dest (Pointer/object) – OUT:

Data being filled

value (int) – IN:

Constant value to be set

count (int) – IN:

Number of values to be set

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized

C signature

hipError_t hipMemsetD32(hipDeviceptr_t dest, int value, size_t count)
cuda.bindings.runtime.cuMemsetD32_v2(dest, value, count)#

Fills the memory area pointed to by dest with the constant integer value for specified number of times.

Args:
dest (Pointer/object) – OUT:

Data being filled

value (int) – IN:

Constant value to be set

count (int) – IN:

Number of values to be set

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized

C signature

hipError_t hipMemsetD32(hipDeviceptr_t dest, int value, size_t count)
cuda.bindings.runtime.cudaMemsetAsync(dst, value, sizeBytes, stream)#

Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant byte value value.

hipMemsetAsync() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.

Args:
dst (Pointer/object) – OUT:

Pointer to device memory

value (int) – IN:

Value to set for each byte of specified memory

sizeBytes (int) – IN:

Size in bytes to set

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemsetAsync(void * dst, int value, size_t sizeBytes, hipStream_t stream)
cuda.bindings.runtime.cuMemsetD32Async(dst, value, count, stream)#

Fills the memory area pointed to by dev with the constant integer value for specified number of times.

hipMemsetD32Async() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.

Args:
dst (Pointer/object) – OUT:

Pointer to device memory

value (int) – IN:

Value to set for each byte of specified memory

count (int) – IN:

Number of values to be set

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemsetD32Async(hipDeviceptr_t dst, int value, size_t count, hipStream_t stream)
cuda.bindings.runtime.cudaMemset2D(dst, pitch, value, width, height)#

Fills the memory area pointed to by dst with the constant value.

Args:
dst (Pointer/object) – OUT:

Pointer to 2D device memory

pitch (int) – IN:

Pitch size in bytes of 2D device memory, unused if height equals 1

value (int) – IN:

Constant value to set for each byte of specified memory

width (int) – IN:

Width size in bytes in 2D memory

height (int) – IN:

Height size in bytes in 2D memory

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemset2D(void * dst, size_t pitch, int value, size_t width, size_t height)
cuda.bindings.runtime.cudaMemset2DAsync(dst, pitch, value, width, height, stream)#

Fills asynchronously the memory area pointed to by dst with the constant value.

Args:
dst (Pointer/object) – IN:

Pointer to 2D device memory

pitch (int) – IN:

Pitch size in bytes of 2D device memory, unused if height equals 1

value (int) – IN:

Value to set for each byte of specified memory

width (int) – IN:

Width size in bytes in 2D memory

height (int) – IN:

Height size in bytes in 2D memory

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemset2DAsync(void * dst, size_t pitch, int value, size_t width, size_t height, hipStream_t stream)
cuda.bindings.runtime.cudaMemset3D(pitchedDevPtr, value, extent)#

Fills synchronously the memory area pointed to by pitchedDevPtr with the constant value.

Args:
pitchedDevPtr (hipPitchedPtr) – IN:

Pointer to pitched device memory

value (int) – IN:

Value to set for each byte of specified memory

extent (hipExtent) – IN:

Size parameters for width field in bytes in device memory

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemset3D(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent)
cuda.bindings.runtime.cudaMemset3DAsync(pitchedDevPtr, value, extent, stream)#

Fills asynchronously the memory area pointed to by pitchedDevPtr with the constant value.

Args:
pitchedDevPtr (hipPitchedPtr) – IN:

Pointer to pitched device memory

value (int) – IN:

Value to set for each byte of specified memory

extent (hipExtent) – IN:

Size parameters for width field in bytes in device memory

stream (ihipStream_t/object) – IN:

Stream identifier

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemset3DAsync(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent, hipStream_t stream)
cuda.bindings.runtime.cuMemsetD2D8(dst, dstPitch, value, width, height)#

Fills 2D memory range of ‘width’ 8-bit values synchronously to the specified char value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.

Args:
dst (Pointer/object) – IN:

Pointer to device memory

dstPitch (int) – IN:

Pitch of dst device pointer

value (int) – IN:

value to set

width (int) – IN:

Width of row

height (int) – IN:

Number of rows

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemsetD2D8(hipDeviceptr_t dst, size_t dstPitch, unsigned char value, size_t width, size_t height)
cuda.bindings.runtime.cuMemsetD2D8_v2(dst, dstPitch, value, width, height)#

Fills 2D memory range of ‘width’ 8-bit values synchronously to the specified char value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.

Args:
dst (Pointer/object) – IN:

Pointer to device memory

dstPitch (int) – IN:

Pitch of dst device pointer

value (int) – IN:

value to set

width (int) – IN:

Width of row

height (int) – IN:

Number of rows

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemsetD2D8(hipDeviceptr_t dst, size_t dstPitch, unsigned char value, size_t width, size_t height)
cuda.bindings.runtime.cuMemsetD2D8Async(dst, dstPitch, value, width, height, stream)#

Fills 2D memory range of ‘width’ 8-bit values asynchronously to the specified char value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.

Args:
dst (Pointer/object) – IN:

Pointer to device memory

dstPitch (int) – IN:

Pitch of dst device pointer

value (int) – IN:

value to set

width (int) – IN:

Width of row

height (int) – IN:

Number of rows

stream (ihipStream_t/object) – IN:

Stream Identifier

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemsetD2D8Async(hipDeviceptr_t dst, size_t dstPitch, unsigned char value, size_t width, size_t height, hipStream_t stream)
cuda.bindings.runtime.cuMemsetD2D16(dst, dstPitch, value, width, height)#

Fills 2D memory range of ‘width’ 16-bit values synchronously to the specified short value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.

Args:
dst (Pointer/object) – IN:

Pointer to device memory

dstPitch (int) – IN:

Pitch of dst device pointer

value (int) – IN:

value to set

width (int) – IN:

Width of row

height (int) – IN:

Number of rows

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemsetD2D16(hipDeviceptr_t dst, size_t dstPitch, unsigned short value, size_t width, size_t height)
cuda.bindings.runtime.cuMemsetD2D16_v2(dst, dstPitch, value, width, height)#

Fills 2D memory range of ‘width’ 16-bit values synchronously to the specified short value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.

Args:
dst (Pointer/object) – IN:

Pointer to device memory

dstPitch (int) – IN:

Pitch of dst device pointer

value (int) – IN:

value to set

width (int) – IN:

Width of row

height (int) – IN:

Number of rows

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemsetD2D16(hipDeviceptr_t dst, size_t dstPitch, unsigned short value, size_t width, size_t height)
cuda.bindings.runtime.cuMemsetD2D16Async(dst, dstPitch, value, width, height, stream)#

Fills 2D memory range of ‘width’ 16-bit values asynchronously to the specified short value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.

Args:
dst (Pointer/object) – IN:

Pointer to device memory

dstPitch (int) – IN:

Pitch of dst device pointer

value (int) – IN:

value to set

width (int) – IN:

Width of row

height (int) – IN:

Number of rows

stream (ihipStream_t/object) – IN:

Stream Identifier

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemsetD2D16Async(hipDeviceptr_t dst, size_t dstPitch, unsigned short value, size_t width, size_t height, hipStream_t stream)
cuda.bindings.runtime.cuMemsetD2D32(dst, dstPitch, value, width, height)#

Fills 2D memory range of ‘width’ 32-bit values synchronously to the specified int value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.

Args:
dst (Pointer/object) – IN:

Pointer to device memory

dstPitch (int) – IN:

Pitch of dst device pointer

value (int) – IN:

value to set

width (int) – IN:

Width of row

height (int) – IN:

Number of rows

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemsetD2D32(hipDeviceptr_t dst, size_t dstPitch, unsigned int value, size_t width, size_t height)
cuda.bindings.runtime.cuMemsetD2D32_v2(dst, dstPitch, value, width, height)#

Fills 2D memory range of ‘width’ 32-bit values synchronously to the specified int value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.

Args:
dst (Pointer/object) – IN:

Pointer to device memory

dstPitch (int) – IN:

Pitch of dst device pointer

value (int) – IN:

value to set

width (int) – IN:

Width of row

height (int) – IN:

Number of rows

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemsetD2D32(hipDeviceptr_t dst, size_t dstPitch, unsigned int value, size_t width, size_t height)
cuda.bindings.runtime.cuMemsetD2D32Async(dst, dstPitch, value, width, height, stream)#

Fills 2D memory range of ‘width’ 32-bit values asynchronously to the specified int value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.

Args:
dst (Pointer/object) – IN:

Pointer to device memory

dstPitch (int) – IN:

Pitch of dst device pointer

value (int) – IN:

value to set

width (int) – IN:

Width of row

height (int) – IN:

Number of rows

stream (ihipStream_t/object) – IN:

Stream Identifier

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipMemsetD2D32Async(hipDeviceptr_t dst, size_t dstPitch, unsigned int value, size_t width, size_t height, hipStream_t stream)
cuda.bindings.runtime.cuMemGetInfo()#

Query memory info.

On ROCM, this function gets the actual free memory left on the current device, so supports the cases while running multi-workload (such as multiple processes, multiple threads, and multiple GPUs).

Warning:

On Windows, the free memory only accounts for memory allocated by this process and may be optimistic.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipMemGetInfo(size_t * free, size_t * total)
cuda.bindings.runtime.cuMemGetInfo_v2()#

Query memory info.

On ROCM, this function gets the actual free memory left on the current device, so supports the cases while running multi-workload (such as multiple processes, multiple threads, and multiple GPUs).

Warning:

On Windows, the free memory only accounts for memory allocated by this process and may be optimistic.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipMemGetInfo(size_t * free, size_t * total)
cuda.bindings.runtime.cudaMemGetInfo()#

Query memory info.

On ROCM, this function gets the actual free memory left on the current device, so supports the cases while running multi-workload (such as multiple processes, multiple threads, and multiple GPUs).

Warning:

On Windows, the free memory only accounts for memory allocated by this process and may be optimistic.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipMemGetInfo(size_t * free, size_t * total)
cuda.bindings.runtime.cudaMallocArray(desc, width, height, flags)#

Allocate an array on the device.

See:

hipMalloc, hipMallocPitch, hipFree, hipFreeArray, hipHostMalloc, hipHostFree

Args:
desc (hipChannelFormatDesc/object) – IN:

Requested channel format

width (int) – IN:

Requested array allocation width

height (int) – IN:

Requested array allocation height

flags (int) – IN:

Requested properties of allocated array

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMallocArray(hipArray_t * array, const hipChannelFormatDesc * desc, size_t width, size_t height, unsigned int flags)
cuda.bindings.runtime.cuArrayCreate(pAllocateArray)#

Create an array memory pointer on the device.

See:

hipMallocArray, hipArrayDestroy, hipFreeArray

Args:
pAllocateArray (HIP_ARRAY_DESCRIPTOR/object) – IN:

Requested array desciptor

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipArrayCreate(hipArray_t * pHandle, const HIP_ARRAY_DESCRIPTOR * pAllocateArray)
cuda.bindings.runtime.cuArrayCreate_v2(pAllocateArray)#

Create an array memory pointer on the device.

See:

hipMallocArray, hipArrayDestroy, hipFreeArray

Args:
pAllocateArray (HIP_ARRAY_DESCRIPTOR/object) – IN:

Requested array desciptor

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipArrayCreate(hipArray_t * pHandle, const HIP_ARRAY_DESCRIPTOR * pAllocateArray)
cuda.bindings.runtime.cuArrayDestroy(array)#

Destroy an array memory pointer on the device.

See:

hipArrayCreate, hipArrayDestroy, hipFreeArray

Args:
array (hipArray/object) – IN:

Pointer to the array memory

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipArrayDestroy(hipArray_t array)
cuda.bindings.runtime.cuArray3DCreate(pAllocateArray)#

Create a 3D array memory pointer on the device.

See:

hipMallocArray, hipArrayDestroy, hipFreeArray

Args:
pAllocateArray (HIP_ARRAY3D_DESCRIPTOR/object) – IN:

Requested array desciptor

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipArray3DCreate(hipArray_t * array, const HIP_ARRAY3D_DESCRIPTOR * pAllocateArray)
cuda.bindings.runtime.cuArray3DCreate_v2(pAllocateArray)#

Create a 3D array memory pointer on the device.

See:

hipMallocArray, hipArrayDestroy, hipFreeArray

Args:
pAllocateArray (HIP_ARRAY3D_DESCRIPTOR/object) – IN:

Requested array desciptor

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipArray3DCreate(hipArray_t * array, const HIP_ARRAY3D_DESCRIPTOR * pAllocateArray)
cuda.bindings.runtime.cudaMalloc3D(extent)#

Create a 3D memory pointer on the device.

See:

hipMallocPitch, hipMemGetInfo, hipFree

Args:
extent (hipExtent) – IN:

Requested extent

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMalloc3D(hipPitchedPtr * pitchedDevPtr, hipExtent extent)
cuda.bindings.runtime.cudaFreeArray(array)#

Frees an array on the device.

See:

hipMalloc, hipMallocPitch, hipFree, hipMallocArray, hipHostMalloc, hipHostFree

Args:
array (hipArray/object) – IN:

Pointer to array to free

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized

C signature

hipError_t hipFreeArray(hipArray_t array)
cuda.bindings.runtime.cudaMalloc3DArray(desc, extent, flags)#

Allocate an array on the device.

See:

hipMalloc, hipMallocPitch, hipFree, hipFreeArray, hipHostMalloc, hipHostFree

Args:
desc (hipChannelFormatDesc/object) – IN:

Requested channel format

extent (hipExtent) – IN:

Requested array allocation width, height and depth

flags (int) – IN:

Requested properties of allocated array

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMalloc3DArray(hipArray_t * array, const struct hipChannelFormatDesc * desc, struct hipExtent extent, unsigned int flags)
cuda.bindings.runtime.cudaArrayGetInfo(array)#

Gets info about the specified array

See:

hipArrayGetDescriptor, hipArray3DGetDescriptor

Args:
array (hipArray/object) – IN:
  • The HIP array to get info for

Returns:

A tuple of size 4 that contains (in that order):

C signature

hipError_t hipArrayGetInfo(hipChannelFormatDesc * desc, hipExtent * extent, unsigned int * flags, hipArray_t array)
cuda.bindings.runtime.cuArrayGetDescriptor(array)#

Gets a 1D or 2D array descriptor

See:

hipArray3DCreate, hipArray3DGetDescriptor, hipArrayCreate, hipArrayDestroy, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpy3D, hipMemcpy3DAsync, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoD, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer, hipMemsetD8, hipMemsetD16, hipMemsetD32, hipArrayGetInfo

Args:
array (hipArray/object) – IN:
  • Array to get descriptor of

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipArrayGetDescriptor(HIP_ARRAY_DESCRIPTOR * pArrayDescriptor, hipArray_t array)
cuda.bindings.runtime.cuArrayGetDescriptor_v2(array)#

Gets a 1D or 2D array descriptor

See:

hipArray3DCreate, hipArray3DGetDescriptor, hipArrayCreate, hipArrayDestroy, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpy3D, hipMemcpy3DAsync, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoD, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer, hipMemsetD8, hipMemsetD16, hipMemsetD32, hipArrayGetInfo

Args:
array (hipArray/object) – IN:
  • Array to get descriptor of

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipArrayGetDescriptor(HIP_ARRAY_DESCRIPTOR * pArrayDescriptor, hipArray_t array)
cuda.bindings.runtime.cuArray3DGetDescriptor(array)#

Gets a 3D array descriptor

See:

hipArray3DCreate, hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpy3D, hipMemcpy3DAsync, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoD, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer, hipMemsetD8, hipMemsetD16, hipMemsetD32, hipArrayGetInfo

Args:
array (hipArray/object) – IN:
  • 3D array to get descriptor of

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipArray3DGetDescriptor(HIP_ARRAY3D_DESCRIPTOR * pArrayDescriptor, hipArray_t array)
cuda.bindings.runtime.cuArray3DGetDescriptor_v2(array)#

Gets a 3D array descriptor

See:

hipArray3DCreate, hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpy3D, hipMemcpy3DAsync, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoD, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer, hipMemsetD8, hipMemsetD16, hipMemsetD32, hipArrayGetInfo

Args:
array (hipArray/object) – IN:
  • 3D array to get descriptor of

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipArray3DGetDescriptor(HIP_ARRAY3D_DESCRIPTOR * pArrayDescriptor, hipArray_t array)
cuda.bindings.runtime.cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind)#

Copies data between host and device.

hipMemcpy2D supports memory matrix copy from the pointed area src to the pointed area dst. The copy direction is defined by kind which must be one of hipMemcpyHostToDevice, hipMemcpyHostToDevice, hipMemcpyDeviceToHost hipMemcpyDeviceToDevice or hipMemcpyDefault. Device to Device copies don’t need to wait for host synchronization. The copy is executed on the default null tream. The src and dst must not overlap. dpitch and spitch are the widths in bytes in memory matrix, width cannot exceed dpitch or spitch.

For hipMemcpy2D, the copy is always performed by the current device (set by hipSetDevice). For multi-gpu or peer-to-peer configurations, it is recommended to set the current device to the device where the src data is physically located. For optimal peer-to-peer copies, the copy device must be able to access the src and dst pointers (by calling hipDeviceEnablePeerAccess with copy agent as the current device and src/dst as the peerDevice argument. if this is not done, the hipMemcpy2D will still work, but will perform the copy using a staging buffer on the host.

Warning:

Calling hipMemcpy2D with dst and src pointers that do not match the hipMemcpyKind results in undefined behavior.

See:

hipMemcpy, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (Pointer/object) – OUT:

Destination memory address

dpitch (int) – IN:

Pitch size in bytes of destination memory

src (Pointer/object) – IN:

Source memory address

spitch (int) – IN:

Pitch size in bytes of source memory

width (int) – IN:

Width size in bytes of matrix transfer (columns)

height (int) – IN:

Height size in bytes of matrix transfer (rows)

kind (hipMemcpyKind) – IN:

Type of transfer

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpy2D(void * dst, size_t dpitch, const void * src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind)
cuda.bindings.runtime.cuMemcpy2D(pCopy)#

Copies memory for 2D arrays.

See:

hipMemcpy, hipMemcpy2D, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
pCopy (hip_Memcpy2D/object) – IN:

Parameters for the memory copy

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpyParam2D(const hip_Memcpy2D * pCopy)
cuda.bindings.runtime.cuMemcpy2D_v2(pCopy)#

Copies memory for 2D arrays.

See:

hipMemcpy, hipMemcpy2D, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
pCopy (hip_Memcpy2D/object) – IN:

Parameters for the memory copy

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpyParam2D(const hip_Memcpy2D * pCopy)
cuda.bindings.runtime.cuMemcpy2DAsync(pCopy, stream)#

Copies memory for 2D arrays.

See:

hipMemcpy, hipMemcpy2D, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
pCopy (hip_Memcpy2D/object) – IN:

Parameters for the memory copy

stream (ihipStream_t/object) – IN:

Stream to use

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpyParam2DAsync(const hip_Memcpy2D * pCopy, hipStream_t stream)
cuda.bindings.runtime.cuMemcpy2DAsync_v2(pCopy, stream)#

Copies memory for 2D arrays.

See:

hipMemcpy, hipMemcpy2D, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
pCopy (hip_Memcpy2D/object) – IN:

Parameters for the memory copy

stream (ihipStream_t/object) – IN:

Stream to use

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpyParam2DAsync(const hip_Memcpy2D * pCopy, hipStream_t stream)
cuda.bindings.runtime.cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream)#

Copies data between host and device asynchronously.

hipMemcpy2DAsync supports memory matrix copy from the pointed area src to the pointed area dst. The copy direction is defined by kind which must be one of hipMemcpyHostToDevice, hipMemcpyDeviceToHost, hipMemcpyDeviceToDevice or hipMemcpyDefault. dpitch and spitch are the widths in bytes for memory matrix corresponds to dst and src. width cannot exceed dpitch or spitch.

The copy is always performed by the device associated with the specified stream. The API is asynchronous with respect to the host, so the call may return before the copy is complete. The copy can optionally be excuted in a specific stream by passing a non-zero stream argument, for HostToDevice or DeviceToHost copies, the copy can overlap with operations in other streams.

For multi-gpu or peer-to-peer configurations, it is recommended to use a stream which is attached to the device where the src data is physically located.

For optimal peer-to-peer copies, the copy device must be able to access the src and dst pointers (by calling hipDeviceEnablePeerAccess) with copy agent as the current device and src/dst as the peerDevice argument. If enabling device peer access is not done, the API will still work, but will perform the copy using a staging buffer on the host.

Note:

If host or dst are not pinned, the memory copy will be performed synchronously. For best performance, use hipHostMalloc to allocate host memory that is transferred asynchronously.

See:

hipMemcpy, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (Pointer/object) – OUT:

Pointer to destination memory address

dpitch (int) – IN:

Pitch size in bytes of destination memory

src (Pointer/object) – IN:

Pointer to source memory address

spitch (int) – IN:

Pitch size in bytes of source memory

width (int) – IN:

Width of matrix transfer (columns in bytes)

height (int) – IN:

Height of matrix transfer (rows)

kind (hipMemcpyKind) – IN:

Type of transfer

stream (ihipStream_t/object) – IN:

Stream to use

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpy2DAsync(void * dst, size_t dpitch, const void * src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind, hipStream_t stream)
cuda.bindings.runtime.cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind)#

Copies data between host and device.

See:

hipMemcpy, hipMemcpyToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (hipArray/object) – OUT:

Destination memory address

wOffset (int) – IN:

Destination starting X offset

hOffset (int) – IN:

Destination starting Y offset

src (Pointer/object) – IN:

Source memory address

spitch (int) – IN:

Pitch of source memory

width (int) – IN:

Width of matrix transfer (columns in bytes)

height (int) – IN:

Height of matrix transfer (rows)

kind (hipMemcpyKind) – IN:

Type of transfer

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpy2DToArray(hipArray_t dst, size_t wOffset, size_t hOffset, const void * src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind)
cuda.bindings.runtime.cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream)#

Copies data between host and device.

See:

hipMemcpy, hipMemcpyToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (hipArray/object) – OUT:

Destination memory address

wOffset (int) – IN:

Destination starting X offset

hOffset (int) – IN:

Destination starting Y offset

src (Pointer/object) – IN:

Source memory address

spitch (int) – IN:

Pitch of source memory

width (int) – IN:

Width of matrix transfer (columns in bytes)

height (int) – IN:

Height of matrix transfer (rows)

kind (hipMemcpyKind) – IN:

Type of transfer

stream (ihipStream_t/object) – IN:

Accelerator view which the copy is being enqueued

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpy2DToArrayAsync(hipArray_t dst, size_t wOffset, size_t hOffset, const void * src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind, hipStream_t stream)
cuda.bindings.runtime.cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind)#

Copies data between host and device.

See:

hipMemcpy, hipMemcpyToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (hipArray/object) – OUT:

Destination memory address

wOffsetDst (int) – IN:

Destination starting X offset

hOffsetDst (int) – IN:

Destination starting Y offset

src (hipArray/object) – IN:

Source memory address

wOffsetSrc (int) – IN:

Source starting X offset

hOffsetSrc (int) – IN:

Source starting Y offset (columns in bytes)

width (int) – IN:

Width of matrix transfer (columns in bytes)

height (int) – IN:

Height of matrix transfer (rows)

kind (hipMemcpyKind) – IN:

Type of transfer

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpy2DArrayToArray(hipArray_t dst, size_t wOffsetDst, size_t hOffsetDst, hipArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, hipMemcpyKind kind)
cuda.bindings.runtime.cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind)#

Copies data between host and device [Deprecated]

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Warning:

This API is deprecated.

Args:
dst (hipArray/object) – OUT:

Destination memory address

wOffset (int) – IN:

Destination starting X offset

hOffset (int) – IN:

Destination starting Y offset

src (Pointer/object) – IN:

Source memory address

count (int) – IN:

size in bytes to copy

kind (hipMemcpyKind) – IN:

Type of transfer

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpyToArray(hipArray_t dst, size_t wOffset, size_t hOffset, const void * src, size_t count, hipMemcpyKind kind)
cuda.bindings.runtime.cudaMemcpyFromArray(dst, srcArray, wOffset, hOffset, count, kind)#

Copies data between host and device [Deprecated]

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Warning:

This API is deprecated.

Args:
dst (Pointer/object) – OUT:

Destination memory address

srcArray (hipArray/object) – IN:

Source memory address

wOffset (int) – IN:

Source starting X offset

hOffset (int) – IN:

Source starting Y offset

count (int) – IN:

Size in bytes to copy

kind (hipMemcpyKind) – IN:

Type of transfer

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpyFromArray(void * dst, hipArray_const_t srcArray, size_t wOffset, size_t hOffset, size_t count, hipMemcpyKind kind)
cuda.bindings.runtime.cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind)#

Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (Pointer/object) – OUT:

Destination memory address

dpitch (int) – IN:

Pitch of destination memory

src (hipArray/object) – IN:

Source memory address

wOffset (int) – IN:

Source starting X offset

hOffset (int) – IN:

Source starting Y offset

width (int) – IN:

Width of matrix transfer (columns in bytes)

height (int) – IN:

Height of matrix transfer (rows)

kind (hipMemcpyKind) – IN:

Type of transfer

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpy2DFromArray(void * dst, size_t dpitch, hipArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, hipMemcpyKind kind)
cuda.bindings.runtime.cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream)#

Copies data between host and device asynchronously.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (Pointer/object) – OUT:

Destination memory address

dpitch (int) – IN:

Pitch of destination memory

src (hipArray/object) – IN:

Source memory address

wOffset (int) – IN:

Source starting X offset

hOffset (int) – IN:

Source starting Y offset

width (int) – IN:

Width of matrix transfer (columns in bytes)

height (int) – IN:

Height of matrix transfer (rows)

kind (hipMemcpyKind) – IN:

Type of transfer

stream (ihipStream_t/object) – IN:

Accelerator view which the copy is being enqueued

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpy2DFromArrayAsync(void * dst, size_t dpitch, hipArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, hipMemcpyKind kind, hipStream_t stream)
cuda.bindings.runtime.cuMemcpyAtoH(dst, srcArray, srcOffset, count)#

Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (Pointer/object) – OUT:

Destination memory address

srcArray (hipArray/object) – IN:

Source array

srcOffset (int) – IN:

Offset in bytes of source array

count (int) – IN:

Size of memory copy in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpyAtoH(void * dst, hipArray_t srcArray, size_t srcOffset, size_t count)
cuda.bindings.runtime.cuMemcpyAtoH_v2(dst, srcArray, srcOffset, count)#

Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (Pointer/object) – OUT:

Destination memory address

srcArray (hipArray/object) – IN:

Source array

srcOffset (int) – IN:

Offset in bytes of source array

count (int) – IN:

Size of memory copy in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpyAtoH(void * dst, hipArray_t srcArray, size_t srcOffset, size_t count)
cuda.bindings.runtime.cuMemcpyHtoA(dstArray, dstOffset, srcHost, count)#

Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dstArray (hipArray/object) – OUT:

Destination memory address

dstOffset (int) – IN:

Offset in bytes of destination array

srcHost (Pointer/object) – IN:

Source host pointer

count (int) – IN:

Size of memory copy in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpyHtoA(hipArray_t dstArray, size_t dstOffset, const void * srcHost, size_t count)
cuda.bindings.runtime.cuMemcpyHtoA_v2(dstArray, dstOffset, srcHost, count)#

Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dstArray (hipArray/object) – OUT:

Destination memory address

dstOffset (int) – IN:

Offset in bytes of destination array

srcHost (Pointer/object) – IN:

Source host pointer

count (int) – IN:

Size of memory copy in bytes

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpyHtoA(hipArray_t dstArray, size_t dstOffset, const void * srcHost, size_t count)
cuda.bindings.runtime.cudaMemcpy3D(p)#

Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
p (hipMemcpy3DParms/object) – IN:

3D memory copy parameters

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpy3D(const struct hipMemcpy3DParms * p)
cuda.bindings.runtime.cudaMemcpy3DAsync(p, stream)#

Copies data between host and device asynchronously.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
p (hipMemcpy3DParms/object) – IN:

3D memory copy parameters

stream (ihipStream_t/object) – IN:

Stream to use

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipMemcpy3DAsync(const struct hipMemcpy3DParms * p, hipStream_t stream)
cuda.bindings.runtime.cuMemcpy3D(pCopy)#

Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
pCopy (HIP_MEMCPY3D/object) – IN:

3D memory copy parameters

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipDrvMemcpy3D(const HIP_MEMCPY3D * pCopy)
cuda.bindings.runtime.cuMemcpy3D_v2(pCopy)#

Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
pCopy (HIP_MEMCPY3D/object) – IN:

3D memory copy parameters

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipDrvMemcpy3D(const HIP_MEMCPY3D * pCopy)
cuda.bindings.runtime.cuMemcpy3DAsync(pCopy, stream)#

Copies data between host and device asynchronously.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
pCopy (HIP_MEMCPY3D/object) – IN:

3D memory copy parameters

stream (ihipStream_t/object) – IN:

Stream to use

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipDrvMemcpy3DAsync(const HIP_MEMCPY3D * pCopy, hipStream_t stream)
cuda.bindings.runtime.cuMemcpy3DAsync_v2(pCopy, stream)#

Copies data between host and device asynchronously.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
pCopy (HIP_MEMCPY3D/object) – IN:

3D memory copy parameters

stream (ihipStream_t/object) – IN:

Stream to use

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidPitchValue,

hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection

C signature

hipError_t hipDrvMemcpy3DAsync(const HIP_MEMCPY3D * pCopy, hipStream_t stream)
cuda.bindings.runtime.cuMemGetAddressRange(dptr)#

Get information on memory allocations.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Args:
dptr (Pointer/object) – IN:
  • Device Pointer

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipMemGetAddressRange(hipDeviceptr_t * pbase, size_t * psize, hipDeviceptr_t dptr)
cuda.bindings.runtime.cuMemGetAddressRange_v2(dptr)#

Get information on memory allocations.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Args:
dptr (Pointer/object) – IN:
  • Device Pointer

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipMemGetAddressRange(hipDeviceptr_t * pbase, size_t * psize, hipDeviceptr_t dptr)
cuda.bindings.runtime.cuMemcpyBatchAsync(srcs, count, attrs, numAttrs, stream)#

Perform Batch of 1D copies

Args:
srcs (ListOfPointer/object) – IN:
  • Array of source pointers.

count (int) – IN:
  • Size of dsts, srcs and sizes arrays

attrs (hipMemcpyAttributes/object) – IN:
  • Array of memcpy attributes (not supported)

numAttrs (int) – IN:
  • Size of attrs and attrsIdxs arrays (not supported)

stream (ihipStream_t/object) – IN:
  • stream used to enqueue operations in.

Returns:

A tuple of size 5 that contains (in that order):

C signature

hipError_t hipMemcpyBatchAsync(void ** dsts, void ** srcs, size_t * sizes, size_t count, hipMemcpyAttributes * attrs, size_t * attrsIdxs, size_t numAttrs, size_t * failIdx, hipStream_t stream)
cuda.bindings.runtime.cudaMemcpyBatchAsync(srcs, count, attrs, numAttrs, stream)#

Perform Batch of 1D copies

Args:
srcs (ListOfPointer/object) – IN:
  • Array of source pointers.

count (int) – IN:
  • Size of dsts, srcs and sizes arrays

attrs (hipMemcpyAttributes/object) – IN:
  • Array of memcpy attributes (not supported)

numAttrs (int) – IN:
  • Size of attrs and attrsIdxs arrays (not supported)

stream (ihipStream_t/object) – IN:
  • stream used to enqueue operations in.

Returns:

A tuple of size 5 that contains (in that order):

C signature

hipError_t hipMemcpyBatchAsync(void ** dsts, void ** srcs, size_t * sizes, size_t count, hipMemcpyAttributes * attrs, size_t * attrsIdxs, size_t numAttrs, size_t * failIdx, hipStream_t stream)
cuda.bindings.runtime.cuMemcpy3DBatchAsync(numOps, opList, flags, stream)#

Perform Batch of 3D copies

Args:
numOps (int) – IN:
  • Total number of memcpy operations.

opList (hipMemcpy3DBatchOp/object) – IN:
  • Array of size numOps containing the actual memcpy operations.

flags (int) – IN:
  • Flags for future use, must be zero now.

stream (ihipStream_t/object) – IN:
  • The stream to enqueue the operations in.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemcpy3DBatchAsync(size_t numOps, struct hipMemcpy3DBatchOp * opList, size_t * failIdx, unsigned long long flags, hipStream_t stream)
cuda.bindings.runtime.cudaMemcpy3DBatchAsync(numOps, opList, flags, stream)#

Perform Batch of 3D copies

Args:
numOps (int) – IN:
  • Total number of memcpy operations.

opList (hipMemcpy3DBatchOp/object) – IN:
  • Array of size numOps containing the actual memcpy operations.

flags (int) – IN:
  • Flags for future use, must be zero now.

stream (ihipStream_t/object) – IN:
  • The stream to enqueue the operations in.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemcpy3DBatchAsync(size_t numOps, struct hipMemcpy3DBatchOp * opList, size_t * failIdx, unsigned long long flags, hipStream_t stream)
cuda.bindings.runtime.cudaMemcpy3DPeer(p)#

Performs 3D memory copies between devices This API is asynchronous with respect to host

Args:
p (hipMemcpy3DPeerParms/object) – IN:
  • Parameters for memory copy

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidDevice

C signature

hipError_t hipMemcpy3DPeer(hipMemcpy3DPeerParms * p)
cuda.bindings.runtime.cudaMemcpy3DPeerAsync(p, stream)#

Performs 3D memory copies between devices asynchronously

Args:
p (hipMemcpy3DPeerParms/object) – IN:
  • Parameters for memory copy

stream (ihipStream_t/object) – IN:
  • Stream to enqueue operation in.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidDevice

C signature

hipError_t hipMemcpy3DPeerAsync(hipMemcpy3DPeerParms * p, hipStream_t stream)
cuda.bindings.runtime.cuDeviceCanAccessPeer(deviceId, peerDeviceId)#

Determines if a device can access a peer device’s memory.

This section describes the PeerToPeer device memory access functions of HIP runtime API.

The value of canAccessPeer,

Returns “1” if the specified deviceId is capable of directly accessing memory physically located on peerDeviceId,

Returns “0” if the specified deviceId is not capable of directly accessing memory physically located on peerDeviceId.

Returns “0” if deviceId == peerDeviceId, both are valid devices, however, a device is not a peer of itself.

Returns hipErrorInvalidDevice if deviceId or peerDeviceId are not valid devices

Args:
deviceId (int) – IN:
  • The device accessing the peer device memory.

peerDeviceId (int) – IN:
  • Peer device where memory is physically located

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceCanAccessPeer(int * canAccessPeer, int deviceId, int peerDeviceId)
cuda.bindings.runtime.cudaDeviceCanAccessPeer(deviceId, peerDeviceId)#

Determines if a device can access a peer device’s memory.

This section describes the PeerToPeer device memory access functions of HIP runtime API.

The value of canAccessPeer,

Returns “1” if the specified deviceId is capable of directly accessing memory physically located on peerDeviceId,

Returns “0” if the specified deviceId is not capable of directly accessing memory physically located on peerDeviceId.

Returns “0” if deviceId == peerDeviceId, both are valid devices, however, a device is not a peer of itself.

Returns hipErrorInvalidDevice if deviceId or peerDeviceId are not valid devices

Args:
deviceId (int) – IN:
  • The device accessing the peer device memory.

peerDeviceId (int) – IN:
  • Peer device where memory is physically located

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDeviceCanAccessPeer(int * canAccessPeer, int deviceId, int peerDeviceId)
cuda.bindings.runtime.cudaDeviceEnablePeerAccess(peerDeviceId, flags)#

Enables direct access to memory allocations on a peer device.

When this API is successful, all memory allocations on peer device will be mapped into the address space of the current device. In addition, any future memory allocation on the peer device will remain accessible from the current device, until the access is disabled using hipDeviceDisablePeerAccess or device is reset using hipDeviceReset.

Args:
peerDeviceId (int) – IN:
  • Peer device to enable direct access to from the current device

flags (int) – IN:
  • Reserved for future use, must be zero

Returns:
hipError_t: One of:

C signature

hipError_t hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags)
cuda.bindings.runtime.cudaDeviceDisablePeerAccess(peerDeviceId)#

Disables direct access to memory allocations on a peer device.

If direct access to memory allocations on peer device has not been enabled yet from the current device, it returns hipErrorPeerAccessNotEnabled.

Args:
peerDeviceId (int) – IN:

Peer device to disable direct access to

Returns:

hipError_t: py:obj:hipSuccess, hipErrorPeerAccessNotEnabled

C signature

hipError_t hipDeviceDisablePeerAccess(int peerDeviceId)
cuda.bindings.runtime.cudaMemcpyPeer(dst, dstDeviceId, src, srcDeviceId, sizeBytes)#

Copies memory between two peer accessible devices.

Args:
dst (Pointer/object) – OUT:
  • Destination device pointer

dstDeviceId (int) – IN:
  • Destination device

src (Pointer/object) – IN:
  • Source device pointer

srcDeviceId (int) – IN:
  • Source device

sizeBytes (int) – IN:
  • Size of memory copy in bytes

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidDevice

C signature

hipError_t hipMemcpyPeer(void * dst, int dstDeviceId, const void * src, int srcDeviceId, size_t sizeBytes)
cuda.bindings.runtime.cudaMemcpyPeerAsync(dst, dstDeviceId, src, srcDevice, sizeBytes, stream)#

Copies memory between two peer accessible devices asynchronously.

Args:
dst (Pointer/object) – OUT:
  • Destination device pointer

dstDeviceId (int) – IN:
  • Destination device

src (Pointer/object) – IN:
  • Source device pointer

srcDevice (int) – IN:
  • Source device

sizeBytes (int) – IN:
  • Size of memory copy in bytes

stream (ihipStream_t/object) – IN:
  • Stream identifier

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidDevice

C signature

hipError_t hipMemcpyPeerAsync(void * dst, int dstDeviceId, const void * src, int srcDevice, size_t sizeBytes, hipStream_t stream)
cuda.bindings.runtime.cuCtxCreate(flags, device)#

Create a context and set it as current/default context

See:

hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Args:
flags (int) – IN:

Context creation flags

device (int) – IN:

device handle

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipCtxCreate(hipCtx_t * ctx, unsigned int flags, hipDevice_t device)
cuda.bindings.runtime.cuCtxCreate_v2(flags, device)#

Create a context and set it as current/default context

See:

hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Args:
flags (int) – IN:

Context creation flags

device (int) – IN:

device handle

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipCtxCreate(hipCtx_t * ctx, unsigned int flags, hipDevice_t device)
cuda.bindings.runtime.cuCtxDestroy(ctx)#

Destroy a HIP context [Deprecated]

See:

hipCtxCreate, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,:py:obj:hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Args:
ctx (ihipCtx_t/object) – IN:

Context to destroy

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipCtxDestroy(hipCtx_t ctx)
cuda.bindings.runtime.cuCtxDestroy_v2(ctx)#

Destroy a HIP context [Deprecated]

See:

hipCtxCreate, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,:py:obj:hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Args:
ctx (ihipCtx_t/object) – IN:

Context to destroy

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipCtxDestroy(hipCtx_t ctx)
cuda.bindings.runtime.cuCtxPopCurrent()#

Pop the current/default context and return the popped context [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxSetCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipCtxPopCurrent(hipCtx_t * ctx)
cuda.bindings.runtime.cuCtxPopCurrent_v2()#

Pop the current/default context and return the popped context [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxSetCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipCtxPopCurrent(hipCtx_t * ctx)
cuda.bindings.runtime.cuCtxPushCurrent(ctx)#

Push the context to be set as current/ default context [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Args:
ctx (ihipCtx_t/object) – IN:

The current context to push

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidContext

C signature

hipError_t hipCtxPushCurrent(hipCtx_t ctx)
cuda.bindings.runtime.cuCtxPushCurrent_v2(ctx)#

Push the context to be set as current/ default context [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Args:
ctx (ihipCtx_t/object) – IN:

The current context to push

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidContext

C signature

hipError_t hipCtxPushCurrent(hipCtx_t ctx)
cuda.bindings.runtime.cuCtxSetCurrent(ctx)#

Set the passed context as current/default [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Args:
ctx (ihipCtx_t/object) – IN:

The context to set as current

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidContext

C signature

hipError_t hipCtxSetCurrent(hipCtx_t ctx)
cuda.bindings.runtime.cuCtxGetCurrent()#

Get the handle of the current/ default context [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetDevice, hipCtxGetFlags, hipCtxPopCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipCtxGetCurrent(hipCtx_t * ctx)
cuda.bindings.runtime.cuCtxGetDevice()#

Get the handle of the device associated with current/default context [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipCtxGetDevice(hipDevice_t * device)
cuda.bindings.runtime.cuCtxGetApiVersion(ctx)#

Returns the approximate HIP api version.

Warning:

The HIP feature set does not correspond to an exact CUDA SDK api revision. This function always set *apiVersion to 4 as an approximation though HIP supports some features which were introduced in later CUDA SDK revisions. HIP apps code should not rely on the api revision number here and should use arch feature flags to test device capabilities or conditional compilation.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetDevice, hipCtxGetFlags, hipCtxPopCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Args:
ctx (ihipCtx_t/object) – IN:

Context to check [Deprecated]

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipCtxGetApiVersion(hipCtx_t ctx, unsigned int * apiVersion)
cuda.bindings.runtime.cuCtxGetCacheConfig()#

Get Cache configuration for a specific function [Deprecated]

Warning:

AMD devices and some Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipCtxGetCacheConfig(hipFuncCache_t * cacheConfig)
cuda.bindings.runtime.cuCtxSetCacheConfig(cacheConfig)#

Set L1/Shared cache partition [Deprecated]

Warning:

AMD devices and some Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Args:
cacheConfig (hipFuncCache_t) – IN:

Cache configuration to set

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipCtxSetCacheConfig(hipFuncCache_t cacheConfig)
cuda.bindings.runtime.cuCtxSetSharedMemConfig(config)#

Set Shared memory bank configuration [Deprecated]

Warning:

AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Args:
config (hipSharedMemConfig) – IN:

Shared memory configuration to set

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipCtxSetSharedMemConfig(hipSharedMemConfig config)
cuda.bindings.runtime.cuCtxGetSharedMemConfig()#

Get Shared memory bank configuration [Deprecated]

Warning:

AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipCtxGetSharedMemConfig(hipSharedMemConfig * pConfig)
cuda.bindings.runtime.cuCtxSynchronize()#

Blocks until the default context has completed all preceding requested tasks [Deprecated]

Warning:

This function waits for all streams on the default context to complete execution, and then returns.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipCtxSynchronize()
cuda.bindings.runtime.cuCtxGetFlags()#

Return flags used for creating default context [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipCtxGetFlags(unsigned int * flags)
cuda.bindings.runtime.cuCtxEnablePeerAccess(peerCtx, flags)#

Enables direct access to memory allocations in a peer context [Deprecated]

Memory which already allocated on peer device will be mapped into the address space of the current device. In addition, all future memory allocations on peerDeviceId will be mapped into the address space of the current device when the memory is allocated. The peer memory remains accessible from the current device until a call to hipDeviceDisablePeerAccess or hipDeviceReset.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

PeerToPeer support is experimental.

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Args:
peerCtx (ihipCtx_t/object) – IN:

Peer context

flags (int) – IN:

flags, need to set as 0

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue,

hipErrorPeerAccessAlreadyEnabled

C signature

hipError_t hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags)
cuda.bindings.runtime.cuCtxDisablePeerAccess(peerCtx)#

Disable direct access from current context’s virtual address space to memory allocations physically located on a peer context.Disables direct access to memory allocations in a peer context and unregisters any registered allocations [Deprecated]

Returns hipErrorPeerAccessNotEnabled if direct access to memory on peerDevice has not yet been enabled from the current device.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

PeerToPeer support is experimental.

Warning:

This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Args:
peerCtx (ihipCtx_t/object) – IN:

Peer context to be disabled

Returns:

hipError_t: py:obj:hipSuccess, hipErrorPeerAccessNotEnabled

C signature

hipError_t hipCtxDisablePeerAccess(hipCtx_t peerCtx)
cuda.bindings.runtime.cuDevicePrimaryCtxGetState(dev)#

Get the state of the primary context [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.

Args:
dev (int) – IN:

Device to get primary context flags for

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipDevicePrimaryCtxGetState(hipDevice_t dev, unsigned int * flags, int * active)
cuda.bindings.runtime.cuDevicePrimaryCtxRelease(dev)#

Release the primary context on the GPU.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This function return hipSuccess though doesn’t release the primaryCtx by design on HIP/HIP-CLANG path.

Warning:

This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.

Args:
dev (int) – IN:

Device which primary context is released [Deprecated]

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipDevicePrimaryCtxRelease(hipDevice_t dev)
cuda.bindings.runtime.cuDevicePrimaryCtxRelease_v2(dev)#

Release the primary context on the GPU.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This function return hipSuccess though doesn’t release the primaryCtx by design on HIP/HIP-CLANG path.

Warning:

This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.

Args:
dev (int) – IN:

Device which primary context is released [Deprecated]

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipDevicePrimaryCtxRelease(hipDevice_t dev)
cuda.bindings.runtime.cuDevicePrimaryCtxRetain(dev)#

Retain the primary context on the GPU [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.

Args:
dev (int) – IN:

Device which primary context is released

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDevicePrimaryCtxRetain(hipCtx_t * pctx, hipDevice_t dev)
cuda.bindings.runtime.cuDevicePrimaryCtxReset(dev)#

Resets the primary context on the GPU [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.

Args:
dev (int) – IN:

Device which primary context is reset

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipDevicePrimaryCtxReset(hipDevice_t dev)
cuda.bindings.runtime.cuDevicePrimaryCtxReset_v2(dev)#

Resets the primary context on the GPU [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.

Args:
dev (int) – IN:

Device which primary context is reset

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipDevicePrimaryCtxReset(hipDevice_t dev)
cuda.bindings.runtime.cuDevicePrimaryCtxSetFlags(dev, flags)#

Set flags for the primary context [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.

Args:
dev (int) – IN:

Device for which the primary context flags are set

flags (int) – IN:

New flags for the device

Returns:

hipError_t: py:obj:hipSuccess, hipErrorContextAlreadyInUse

C signature

hipError_t hipDevicePrimaryCtxSetFlags(hipDevice_t dev, unsigned int flags)
cuda.bindings.runtime.cuDevicePrimaryCtxSetFlags_v2(dev, flags)#

Set flags for the primary context [Deprecated]

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.

Args:
dev (int) – IN:

Device for which the primary context flags are set

flags (int) – IN:

New flags for the device

Returns:

hipError_t: py:obj:hipSuccess, hipErrorContextAlreadyInUse

C signature

hipError_t hipDevicePrimaryCtxSetFlags(hipDevice_t dev, unsigned int flags)
cuda.bindings.runtime.cuModuleLoadFatBinary(fatbin)#

Loads fatbin object

This section describes the module management functions of HIP runtime API.

Args:
fatbin (Pointer/object) – IN:

fatbin to be loaded as a module

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipModuleLoadFatBinary(hipModule_t * module, const void * fatbin)
cuda.bindings.runtime.cuModuleLoad(fname)#

Loads code object from file into a module the currrent context.

Warning:

File/memory resources allocated in this function are released only in hipModuleUnload.

Args:
fname (CStr/object) – IN:

Filename of code object to load

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipModuleLoad(hipModule_t * module, const char * fname)
cuda.bindings.runtime.cuModuleUnload(module)#

Frees the module

The module is freed, and the code objects associated with it are destroyed.

Args:
module (ihipModule_t/object) – IN:

Module to free

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidResourceHandle

C signature

hipError_t hipModuleUnload(hipModule_t module)
cuda.bindings.runtime.cuModuleGetFunction(module, kname)#

Function with kname will be extracted if present in module

Args:
module (ihipModule_t/object) – IN:

Module to get function from

kname (CStr/object) – IN:

Pointer to the name of function

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipModuleGetFunction(hipFunction_t * function, hipModule_t module, const char * kname)
cuda.bindings.runtime.cuModuleGetFunctionCount(mod)#

Returns the number of functions within a module.

Args:
mod (ihipModule_t/object) – IN:

Module to get function count from

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipModuleGetFunctionCount(unsigned int * count, hipModule_t mod)
cuda.bindings.runtime.cuLibraryLoadData(code, jitOptionsValues, numJitOptions, libraryOptionValues, numLibraryOptions)#

Load hip Library from inmemory object

Args:
code (Pointer/object) – IN:

In memory object

jitOptionsValues (ListOfPointer/object) – IN:

JIT options values, CUDA only

numJitOptions (int) – IN:

Number of JIT options

libraryOptionValues (ListOfPointer/object) – IN:

Library options values

numLibraryOptions (int) – IN:

Number of library options

Returns:

A tuple of size 4 that contains (in that order):

C signature

hipError_t hipLibraryLoadData(hipLibrary_t * library, const void * code, hipJitOption * jitOptions, void ** jitOptionsValues, unsigned int numJitOptions, hipLibraryOption * libraryOptions, void ** libraryOptionValues, unsigned int numLibraryOptions)
cuda.bindings.runtime.cudaLibraryLoadData(code, jitOptionsValues, numJitOptions, libraryOptionValues, numLibraryOptions)#

Load hip Library from inmemory object

Args:
code (Pointer/object) – IN:

In memory object

jitOptionsValues (ListOfPointer/object) – IN:

JIT options values, CUDA only

numJitOptions (int) – IN:

Number of JIT options

libraryOptionValues (ListOfPointer/object) – IN:

Library options values

numLibraryOptions (int) – IN:

Number of library options

Returns:

A tuple of size 4 that contains (in that order):

C signature

hipError_t hipLibraryLoadData(hipLibrary_t * library, const void * code, hipJitOption * jitOptions, void ** jitOptionsValues, unsigned int numJitOptions, hipLibraryOption * libraryOptions, void ** libraryOptionValues, unsigned int numLibraryOptions)
cuda.bindings.runtime.cuLibraryLoadFromFile(fileName, jitOptionsValues, numJitOptions, libraryOptionValues, numLibraryOptions)#

Load hip Library from file

Args:
fileName (CStr/object) – IN:

file which contains code object

jitOptionsValues (ListOfPointer/object) – IN:

JIT options values, CUDA only

numJitOptions (int) – IN:

Number of JIT options

libraryOptionValues (ListOfPointer/object) – IN:

Library options values

numLibraryOptions (int) – IN:

Number of library options

Returns:

A tuple of size 4 that contains (in that order):

C signature

hipError_t hipLibraryLoadFromFile(hipLibrary_t * library, const char * fileName, hipJitOption * jitOptions, void ** jitOptionsValues, unsigned int numJitOptions, hipLibraryOption * libraryOptions, void ** libraryOptionValues, unsigned int numLibraryOptions)
cuda.bindings.runtime.cudaLibraryLoadFromFile(fileName, jitOptionsValues, numJitOptions, libraryOptionValues, numLibraryOptions)#

Load hip Library from file

Args:
fileName (CStr/object) – IN:

file which contains code object

jitOptionsValues (ListOfPointer/object) – IN:

JIT options values, CUDA only

numJitOptions (int) – IN:

Number of JIT options

libraryOptionValues (ListOfPointer/object) – IN:

Library options values

numLibraryOptions (int) – IN:

Number of library options

Returns:

A tuple of size 4 that contains (in that order):

C signature

hipError_t hipLibraryLoadFromFile(hipLibrary_t * library, const char * fileName, hipJitOption * jitOptions, void ** jitOptionsValues, unsigned int numJitOptions, hipLibraryOption * libraryOptions, void ** libraryOptionValues, unsigned int numLibraryOptions)
cuda.bindings.runtime.cuLibraryUnload(library)#

Unload HIP Library

Args:
library (ihipLibrary_t/object) – IN:

Input created hip library

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipLibraryUnload(hipLibrary_t library)
cuda.bindings.runtime.cudaLibraryUnload(library)#

Unload HIP Library

Args:
library (ihipLibrary_t/object) – IN:

Input created hip library

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipLibraryUnload(hipLibrary_t library)
cuda.bindings.runtime.cuLibraryGetKernel(library, name)#

Get Kernel object from library

Args:
library (ihipLibrary_t/object) – IN:

Input hip library

name (CStr/object) – IN:

kernel name to be searched for

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipLibraryGetKernel(hipKernel_t * pKernel, hipLibrary_t library, const char * name)
cuda.bindings.runtime.cudaLibraryGetKernel(library, name)#

Get Kernel object from library

Args:
library (ihipLibrary_t/object) – IN:

Input hip library

name (CStr/object) – IN:

kernel name to be searched for

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipLibraryGetKernel(hipKernel_t * pKernel, hipLibrary_t library, const char * name)
cuda.bindings.runtime.cuLibraryGetKernelCount(library)#

Get Kernel count in library

Args:
library (ihipLibrary_t/object) – IN:

Input created hip library

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipLibraryGetKernelCount(unsigned int * count, hipLibrary_t library)
cuda.bindings.runtime.cudaLibraryGetKernelCount(library)#

Get Kernel count in library

Args:
library (ihipLibrary_t/object) – IN:

Input created hip library

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipLibraryGetKernelCount(unsigned int * count, hipLibrary_t library)
cuda.bindings.runtime.cuLibraryEnumerateKernels(numKernels, library)#

Retrieve kernel handles within a library

Args:
numKernels (int) – IN:

Maximum number of kernel handles to return to buffer @oaram [in] library Library handle to query from

library (ihipLibrary_t/object):

(undocumented)

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipLibraryEnumerateKernels(hipKernel_t * kernels, unsigned int numKernels, hipLibrary_t library)
cuda.bindings.runtime.cudaLibraryEnumerateKernels(numKernels, library)#

Retrieve kernel handles within a library

Args:
numKernels (int) – IN:

Maximum number of kernel handles to return to buffer @oaram [in] library Library handle to query from

library (ihipLibrary_t/object):

(undocumented)

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipLibraryEnumerateKernels(hipKernel_t * kernels, unsigned int numKernels, hipLibrary_t library)
cuda.bindings.runtime.cuKernelGetLibrary(kernel)#

Returns a Library Handle

Args:
kernel (ihipKernel_t/object) – IN:

Kernel to retrieve library Handle

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipKernelGetLibrary(hipLibrary_t * library, hipKernel_t kernel)
cuda.bindings.runtime.cuKernelGetName(kernel)#

Returns a Kernel Name

Args:
kernel (ihipKernel_t/object) – IN:

Kernel handle to retrieve name

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipKernelGetName(const char ** name, hipKernel_t kernel)
cuda.bindings.runtime.cudaFuncGetAttributes(func)#

Find out attributes for a given function.

Args:
func (Pointer/object) – IN:

Pointer to the function handle

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipFuncGetAttributes(struct hipFuncAttributes * attr, const void * func)
cuda.bindings.runtime.cuFuncGetAttribute(attrib, hfunc)#

Find out a specific attribute for a given function.

Args:
attrib (hipFunction_attribute) – IN:

Attributes of the given funtion

hfunc (ihipModuleSymbol_t/object) – IN:

Function to get attributes from

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipFuncGetAttribute(int * value, hipFunction_attribute attrib, hipFunction_t hfunc)
cuda.bindings.runtime.cudaGetFuncBySymbol(symbolPtr)#

Gets pointer to device entry function that matches entry function symbolPtr.

Args:
symbolPtr (Pointer/object) – IN:

Pointer to device entry function to search for

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetFuncBySymbol(hipFunction_t * functionPtr, const void * symbolPtr)
cuda.bindings.runtime.cudaGetDriverEntryPoint(symbol, flags)#

Gets function pointer of a requested HIP API

Args:
symbol (CStr/object) – IN:

The API base name

flags (int) – IN:

Flags for the search

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipGetDriverEntryPoint(const char * symbol, void ** funcPtr, unsigned long long flags, hipDriverEntryPointQueryResult * driverStatus)
cuda.bindings.runtime.cuModuleGetTexRef(hmod, name)#

returns the handle of the texture reference with the name from the module.

Args:
hmod (ihipModule_t/object) – IN:

Module

name (CStr/object) – IN:

Pointer of name of texture reference

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipModuleGetTexRef(textureReference ** texRef, hipModule_t hmod, const char * name)
cuda.bindings.runtime.cuModuleLoadData(image)#

builds module from code object data which resides in host memory.

The “image” is a pointer to the location of code object data. This data can be either a single code object or a fat binary (fatbin), which serves as the entry point for loading and launching device-specific kernel executions.

By default, the following command generates a fatbin:

“amdclang++ -O3 -c –offload-device-only –offload-arch=<GPU_ARCH> <input_file> -o <output_file>”

For more details, refer to: <a href= “https://rocm.docs.amd.com/projects/HIP/en/latest/how-to/kernel_language_cpp_support.html:py:obj:kernel-compilation”> Kernel Compilation</a> in the HIP kernel language C++ support, or <a href=”https://rocm.docs.amd.com/projects/HIP/en/latest/how-to/hip_rtc.html”>HIP runtime compilation (HIP RTC)</a>.

Args:
image (Pointer/object) – IN:

The pointer to the location of data

Returns:

A tuple of size 2 that contains (in that order):

  • hipError_t: hipSuccess, hipErrorNotInitialized, hipErrorOutOfMemory, hipErrorNotInitialized

  • ihipModule_t:

    Retuned module

C signature

hipError_t hipModuleLoadData(hipModule_t * module, const void * image)
cuda.bindings.runtime.cuModuleLoadDataEx(image, numOptions, optionValues)#

builds module from code object which resides in host memory. Image is pointer to that location. Options are not used. hipModuleLoadData is called.

Args:
image (Pointer/object) – IN:

The pointer to the location of data

numOptions (int) – IN:

Number of options

optionValues (ListOfPointer/object) – IN:

Option values for JIT

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipModuleLoadDataEx(hipModule_t * module, const void * image, unsigned int numOptions, hipJitOption * options, void ** optionValues)
cuda.bindings.runtime.cuLaunchKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, stream, kernelParams, extra)#

launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelparams or extra

Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32. So gridDim.x * blockDim.x, gridDim.y * blockDim.y and gridDim.z * blockDim.z are always less than 2^32.

Args:
f (ihipModuleSymbol_t/object) – IN:

Kernel to launch.

gridDimX (int) – IN:

X grid dimension specified as multiple of blockDimX.

gridDimY (int) – IN:

Y grid dimension specified as multiple of blockDimY.

gridDimZ (int) – IN:

Z grid dimension specified as multiple of blockDimZ.

blockDimX (int) – IN:

X block dimensions specified in work-items

blockDimY (int) – IN:

Y grid dimension specified in work-items

blockDimZ (int) – IN:

Z grid dimension specified in work-items

sharedMemBytes (int) – IN:

Amount of dynamic shared memory to allocate for this kernel. The HIP-Clang compiler provides support for extern shared declarations.

stream (ihipStream_t/object) – IN:

Stream where the kernel should be dispatched. May be 0, in which case th default stream is used with associated synchronization rules.

kernelParams (ListOfPointer/object) – IN:

Kernel parameters to launch

extra (HipModuleLaunchKernel_extra/object) – IN:

Pointer to kernel arguments. These are passed directly to the kernel and must be in the memory layout and alignment expected by the kernel. All passed arguments must be naturally aligned according to their type. The memory address of each argument should be a multiple of its size in bytes. Please refer to hip_porting_driver_api.md for sample usage.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorNotInitialized, hipErrorInvalidValue

C signature

hipError_t hipModuleLaunchKernel(hipFunction_t f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, hipStream_t stream, void ** kernelParams, void ** extra)
cuda.bindings.runtime.cuLaunchCooperativeKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, stream, kernelParams)#

launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelParams, where thread blocks can cooperate and synchronize as they execute

Please note, HIP does not support kernel launch with total work items defined in dimension with size \(gridDim \cdot blockDim \geq 2^{32}\).

Args:
f (ihipModuleSymbol_t/object) – IN:

Kernel to launch.

gridDimX (int) – IN:

X grid dimension specified as multiple of blockDimX.

gridDimY (int) – IN:

Y grid dimension specified as multiple of blockDimY.

gridDimZ (int) – IN:

Z grid dimension specified as multiple of blockDimZ.

blockDimX (int) – IN:

X block dimension specified in work-items.

blockDimY (int) – IN:

Y block dimension specified in work-items.

blockDimZ (int) – IN:

Z block dimension specified in work-items.

sharedMemBytes (int) – IN:

Amount of dynamic shared memory to allocate for this kernel. The HIP-Clang compiler provides support for extern shared declarations.

stream (ihipStream_t/object) – IN:

Stream where the kernel should be dispatched. May be 0, in which case the default stream is used with associated synchronization rules.

kernelParams (ListOfPointer/object) – IN:

A list of kernel arguments.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidHandle, hipErrorInvalidImage, hipErrorInvalidValue, hipErrorInvalidConfiguration, hipErrorLaunchFailure, hipErrorLaunchOutOfResources, hipErrorLaunchTimeOut, hipErrorCooperativeLaunchTooLarge, hipErrorSharedObjectInitFailed

C signature

hipError_t hipModuleLaunchCooperativeKernel(hipFunction_t f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, hipStream_t stream, void ** kernelParams)
cuda.bindings.runtime.cuLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags)#

Launches kernels on multiple devices where thread blocks can cooperate and synchronize as they execute.

Args:
launchParamsList (hipFunctionLaunchParams_t/object) – IN:

List of launch parameters, one per device.

numDevices (int) – IN:

Size of the launchParamsList array.

flags (int) – IN:

Flags to control launch behavior.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

hipErrorInvalidHandle, hipErrorInvalidImage, hipErrorInvalidValue, hipErrorInvalidConfiguration, hipErrorInvalidResourceHandle, hipErrorLaunchFailure, hipErrorLaunchOutOfResources, hipErrorLaunchTimeOut, hipErrorCooperativeLaunchTooLarge, hipErrorSharedObjectInitFailed

C signature

hipError_t hipModuleLaunchCooperativeKernelMultiDevice(hipFunctionLaunchParams * launchParamsList, unsigned int numDevices, unsigned int flags)
cuda.bindings.runtime.cudaLaunchCooperativeKernel(f, gridDim, blockDimX, kernelParams, sharedMemBytes, stream)#

Launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelparams or extra, where thread blocks can cooperate and synchronize as they execute.

Please note, HIP does not support kernel launch with total work items defined in dimension with size \(gridDim \cdot blockDim \geq 2^{32}\).

Args:
f (Pointer/object) – IN:
  • Kernel to launch.

gridDim (dim3) – IN:
  • Grid dimensions specified as multiple of blockDim.

blockDimX (dim3) – IN:
  • Block dimensions specified in work-items

kernelParams (ListOfPointer/object) – IN:
  • Pointer of arguments passed to the kernel. If the kernel has multiple

parameters, ‘kernelParams’ should be array of pointers, each points the corresponding argument.

sharedMemBytes (int) – IN:
  • Amount of dynamic shared memory to allocate for this kernel. The

HIP-Clang compiler provides support for extern shared declarations.

stream (ihipStream_t/object) – IN:
  • Stream where the kernel should be dispatched. May be 0, in which case th

default stream is used with associated synchronization rules.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorNotInitialized, hipErrorInvalidValue,

hipErrorCooperativeLaunchTooLarge

C signature

hipError_t hipLaunchCooperativeKernel(const void * f, dim3 gridDim, dim3 blockDimX, void ** kernelParams, unsigned int sharedMemBytes, hipStream_t stream)
cuda.bindings.runtime.cudaLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags)#

Launches kernels on multiple devices where thread blocks can cooperate and synchronize as they execute.

Args:
launchParamsList (hipLaunchParams_t/object) – IN:

List of launch parameters, one per device.

numDevices (int) – IN:

Size of the launchParamsList array.

flags (int) – IN:

Flags to control launch behavior.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorNotInitialized, hipErrorInvalidValue,

hipErrorCooperativeLaunchTooLarge

C signature

hipError_t hipLaunchCooperativeKernelMultiDevice(hipLaunchParams * launchParamsList, int numDevices, unsigned int flags)
cuda.bindings.runtime.cudaLaunchKernelExC(config, fPtr, args)#

Launches a HIP kernel using a generic function pointer and the specified configuration.

This function is equivalent to hipLaunchKernelEx but accepts the kernel as a generic function pointer.

Args:
config (hipLaunchConfig_st/object) – IN:

Pointer to the kernel launch configuration structure.

fPtr (Pointer/object) – IN:

Pointer to the device kernel function.

args (ListOfPointer/object) – IN:

Array of pointers to the kernel arguments.

Returns:

hipError_t: py:obj:hipSuccess if the kernel is launched successfully, otherwise an appropriate error code.

C signature

hipError_t hipLaunchKernelExC(const hipLaunchConfig_t * config, const void * fPtr, void ** args)
cuda.bindings.runtime.cuLaunchKernelEx(config, f, params, extra)#

Launches a HIP kernel using the driver API with the specified configuration.

This function dispatches the device kernel represented by a HIP function object. It passes both the kernel parameters and any extra configuration arguments to the kernel launch.

Args:
config (HIP_LAUNCH_CONFIG_st/object) – IN:

Pointer to the kernel launch configuration structure.

f (ihipModuleSymbol_t/object) – IN:

HIP function object representing the device kernel to be launched.

params (ListOfPointer/object) – IN:

Array of pointers to the kernel parameters.

extra (ListOfPointer/object) – IN:

Array of pointers for additional launch parameters or extra configuration data.

Returns:

hipError_t: py:obj:hipSuccess if the kernel is launched successfully, otherwise an appropriate error code.

C signature

hipError_t hipDrvLaunchKernelEx(const HIP_LAUNCH_CONFIG * config, hipFunction_t f, void ** params, void ** extra)
cuda.bindings.runtime.cuMemGetHandleForAddressRange(handle, dptr, size, handleType, flags)#

Returns a handle for the address range requested.

This function returns a handle to a device pointer created using either hipMalloc set of APIs or through hipMemAddressReserve (as long as the ptr is mapped).

Args:
handle (Pointer/object) – OUT:

Ptr to the handle where the fd or other types will be returned.

dptr (Pointer/object) – IN:

Device ptr for which we get the handle.

size (int) – IN:

Size of the address range.

handleType (hipMemRangeHandleType) – IN:

Type of the handle requested for the address range.

flags (int) – IN:

Any flags set regarding the handle requested.

Returns:

hipError_t: py:obj:hipSuccess if the kernel is launched successfully, otherwise an appropriate error code.

C signature

hipError_t hipMemGetHandleForAddressRange(void * handle, hipDeviceptr_t dptr, size_t size, hipMemRangeHandleType handleType, unsigned long long flags)
cuda.bindings.runtime.cuOccupancyMaxPotentialBlockSize(f, dynSharedMemPerBlk, blockSizeLimit)#

determine the grid and block sizes to achieves maximum occupancy for a kernel

  • This section describes the occupancy functions of HIP runtime API.

Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.

Args:
f (ihipModuleSymbol_t/object) – IN:

kernel function for which occupancy is calculated

dynSharedMemPerBlk (int) – IN:

dynamic shared memory usage (in bytes) intended for each block

blockSizeLimit (int) – IN:

the maximum block size for the kernel, use 0 for no limit

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipModuleOccupancyMaxPotentialBlockSize(int * gridSize, int * blockSize, hipFunction_t f, size_t dynSharedMemPerBlk, int blockSizeLimit)
cuda.bindings.runtime.cuOccupancyMaxPotentialBlockSizeWithFlags(f, dynSharedMemPerBlk, blockSizeLimit, flags)#

determine the grid and block sizes to achieves maximum occupancy for a kernel

Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.

Args:
f (ihipModuleSymbol_t/object) – IN:

kernel function for which occupancy is calculated

dynSharedMemPerBlk (int) – IN:

dynamic shared memory usage (in bytes) intended for each block

blockSizeLimit (int) – IN:

the maximum block size for the kernel, use 0 for no limit

flags (int) – IN:

Extra flags for occupancy calculation (only default supported)

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipModuleOccupancyMaxPotentialBlockSizeWithFlags(int * gridSize, int * blockSize, hipFunction_t f, size_t dynSharedMemPerBlk, int blockSizeLimit, unsigned int flags)
cuda.bindings.runtime.cuOccupancyMaxActiveBlocksPerMultiprocessor(f, blockSize, dynSharedMemPerBlk)#

Returns occupancy for a device function.

Args:
f (ihipModuleSymbol_t/object) – IN:

Kernel function (hipFunction) for which occupancy is calculated

blockSize (int) – IN:

Block size the kernel is intended to be launched with

dynSharedMemPerBlk (int) – IN:

Dynamic shared memory usage (in bytes) intended for each block

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipModuleOccupancyMaxActiveBlocksPerMultiprocessor(int * numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk)
cuda.bindings.runtime.cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, blockSize, dynSharedMemPerBlk, flags)#

Returns occupancy for a device function.

Args:
f (ihipModuleSymbol_t/object) – IN:

Kernel function(hipFunction_t) for which occupancy is calculated

blockSize (int) – IN:

Block size the kernel is intended to be launched with

dynSharedMemPerBlk (int) – IN:

Dynamic shared memory usage (in bytes) intended for each block

flags (int) – IN:

Extra flags for occupancy calculation (only default supported)

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int * numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags)
cuda.bindings.runtime.cudaOccupancyMaxActiveBlocksPerMultiprocessor(f, blockSize, dynSharedMemPerBlk)#

Returns occupancy for a device function.

Args:
f (Pointer/object) – IN:

Kernel function for which occupancy is calculated

blockSize (int) – IN:

Block size the kernel is intended to be launched with

dynSharedMemPerBlk (int) – IN:

Dynamic shared memory usage (in bytes) intended for each block

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipOccupancyMaxActiveBlocksPerMultiprocessor(int * numBlocks, const void * f, int blockSize, size_t dynSharedMemPerBlk)
cuda.bindings.runtime.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, blockSize, dynSharedMemPerBlk, flags)#

Returns occupancy for a device function.

Args:
f (Pointer/object) – IN:

Kernel function for which occupancy is calculated

blockSize (int) – IN:

Block size the kernel is intended to be launched with

dynSharedMemPerBlk (int) – IN:

Dynamic shared memory usage (in bytes) intended for each block

flags (int) – IN:

Extra flags for occupancy calculation (currently ignored)

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int * numBlocks, const void * f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags)
cuda.bindings.runtime.cudaOccupancyMaxPotentialBlockSize(f, dynSharedMemPerBlk, blockSizeLimit)#

determine the grid and block sizes to achieves maximum occupancy for a kernel

Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.

Args:
f (Pointer/object) – IN:

kernel function for which occupancy is calculated

dynSharedMemPerBlk (int) – IN:

dynamic shared memory usage (in bytes) intended for each block

blockSizeLimit (int) – IN:

the maximum block size for the kernel, use 0 for no limit

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipOccupancyMaxPotentialBlockSize(int * gridSize, int * blockSize, const void * f, size_t dynSharedMemPerBlk, int blockSizeLimit)
cuda.bindings.runtime.cuOccupancyAvailableDynamicSMemPerBlock(f, numBlocks, blockSize)#

Returns dynamic shared memory available per block when launching numBlocks blocks on SM.

Returns in *dynamicSmemSize the maximum size of dynamic shared memory / to allow numBlocks blocks per SM.

Args:
f (Pointer/object) – IN:

Kernel function for which occupancy is calculated.

numBlocks (int) – IN:

Number of blocks to fit on SM

blockSize (int) – IN:

Size of the block

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipOccupancyAvailableDynamicSMemPerBlock(size_t * dynamicSmemSize, const void * f, int numBlocks, int blockSize)
cuda.bindings.runtime.cudaOccupancyAvailableDynamicSMemPerBlock(f, numBlocks, blockSize)#

Returns dynamic shared memory available per block when launching numBlocks blocks on SM.

Returns in *dynamicSmemSize the maximum size of dynamic shared memory / to allow numBlocks blocks per SM.

Args:
f (Pointer/object) – IN:

Kernel function for which occupancy is calculated.

numBlocks (int) – IN:

Number of blocks to fit on SM

blockSize (int) – IN:

Size of the block

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipOccupancyAvailableDynamicSMemPerBlock(size_t * dynamicSmemSize, const void * f, int numBlocks, int blockSize)
cuda.bindings.runtime.cuProfilerStart()#

Start recording of profiling information [Deprecated] When using this API, start the profiler with profiling disabled. (–startdisabled)

Warning:

hipProfilerStart API is deprecated, use roctracer/rocTX instead.

Returns:

hipError_t: py:obj:hipErrorNotSupported

C signature

hipError_t hipProfilerStart()
cuda.bindings.runtime.cudaProfilerStart()#

Start recording of profiling information [Deprecated] When using this API, start the profiler with profiling disabled. (–startdisabled)

Warning:

hipProfilerStart API is deprecated, use roctracer/rocTX instead.

Returns:

hipError_t: py:obj:hipErrorNotSupported

C signature

hipError_t hipProfilerStart()
cuda.bindings.runtime.cuProfilerStop()#

Stop recording of profiling information [Deprecated] When using this API, start the profiler with profiling disabled. (–startdisabled)

Warning:

hipProfilerStart API is deprecated, use roctracer/rocTX instead.

Returns:

hipError_t: py:obj:hipErrorNotSupported

C signature

hipError_t hipProfilerStop()
cuda.bindings.runtime.cudaProfilerStop()#

Stop recording of profiling information [Deprecated] When using this API, start the profiler with profiling disabled. (–startdisabled)

Warning:

hipProfilerStart API is deprecated, use roctracer/rocTX instead.

Returns:

hipError_t: py:obj:hipErrorNotSupported

C signature

hipError_t hipProfilerStop()
cuda.bindings.runtime.cudaConfigureCall(gridDim, blockDim, sharedMem, stream)#

Configure a kernel launch.

  • This section describes the API to support the triple-chevron syntax.

Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.

Args:
gridDim (dim3) – IN:

grid dimension specified as multiple of blockDim.

blockDim (dim3) – IN:

block dimensions specified in work-items

sharedMem (int) – IN:

Amount of dynamic shared memory to allocate for this kernel. The HIP-Clang compiler provides support for extern shared declarations.

stream (ihipStream_t/object) – IN:

Stream where the kernel should be dispatched. May be 0, in which case the default stream is used with associated synchronization rules.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorNotInitialized, hipErrorInvalidValue

C signature

hipError_t hipConfigureCall(dim3 gridDim, dim3 blockDim, size_t sharedMem, hipStream_t stream)
cuda.bindings.runtime.cudaSetupArgument(arg, size, offset)#

Set a kernel argument.

Args:
arg (Pointer/object) – IN:

Pointer the argument in host memory.

size (int) – IN:

Size of the argument.

offset (int) – IN:

Offset of the argument on the argument stack.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorNotInitialized, hipErrorInvalidValue

C signature

hipError_t hipSetupArgument(const void * arg, size_t size, size_t offset)
cuda.bindings.runtime.cudaLaunch(func)#

Launch a kernel.

Args:
func (Pointer/object) – IN:

Kernel to launch.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorNotInitialized, hipErrorInvalidValue

C signature

hipError_t hipLaunchByPtr(const void * func)
cuda.bindings.runtime.cudaLaunchKernel(function_address, numBlocks, dimBlocks, args, sharedMemBytes, stream)#

C compliant kernel launch API

Args:
function_address (Pointer/object) – IN:
  • Kernel stub function pointer.

numBlocks (dim3) – IN:
  • Number of blocks.

dimBlocks (dim3) – IN:
  • Dimension of a block

args (ListOfPointer/object) – IN:
  • Pointer of arguments passed to the kernel. If the kernel has multiple

parameters, ‘args’ should be array of pointers, each points the corresponding argument.

sharedMemBytes (int) – IN:
  • Amount of dynamic shared memory to allocate for this kernel. The

HIP-Clang compiler provides support for extern shared declarations.

stream (ihipStream_t/object) – IN:
  • Stream where the kernel should be dispatched. May be 0, in which case th

default stream is used with associated synchronization rules.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipLaunchKernel(const void * function_address, dim3 numBlocks, dim3 dimBlocks, void ** args, size_t sharedMemBytes, hipStream_t stream)
cuda.bindings.runtime.cuLaunchHostFunc(stream, fn, userData)#

Enqueues a host function call in a stream.

The host function to call in this API will be executed after the preceding operations in the stream are complete. The function is a blocking operation that blocks operations in the stream that follow it, until the function is returned. Event synchronization and internal callback functions make sure enqueued operations will execute in order, in the stream.

The host function must not make any HIP API calls. The host function is non-reentrant. It must not perform sychronization with any operation that may depend on other processing execution but is not enqueued to run earlier in the stream.

Host functions that are enqueued respectively in different non-blocking streams can run concurrently.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Args:
stream (ihipStream_t/object) – IN:
  • The stream to enqueue work in.

fn (hipHostFn_t/object) – IN:
  • The function to call once enqueued preceeding operations are complete.

userData (Pointer/object) – IN:
  • User-specified data to be passed to the function.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidResourceHandle, hipErrorInvalidValue,

hipErrorNotSupported

C signature

hipError_t hipLaunchHostFunc(hipStream_t stream, hipHostFn_t fn, void * userData)
cuda.bindings.runtime.cudaLaunchHostFunc(stream, fn, userData)#

Enqueues a host function call in a stream.

The host function to call in this API will be executed after the preceding operations in the stream are complete. The function is a blocking operation that blocks operations in the stream that follow it, until the function is returned. Event synchronization and internal callback functions make sure enqueued operations will execute in order, in the stream.

The host function must not make any HIP API calls. The host function is non-reentrant. It must not perform sychronization with any operation that may depend on other processing execution but is not enqueued to run earlier in the stream.

Host functions that are enqueued respectively in different non-blocking streams can run concurrently.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Args:
stream (ihipStream_t/object) – IN:
  • The stream to enqueue work in.

fn (hipHostFn_t/object) – IN:
  • The function to call once enqueued preceeding operations are complete.

userData (Pointer/object) – IN:
  • User-specified data to be passed to the function.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidResourceHandle, hipErrorInvalidValue,

hipErrorNotSupported

C signature

hipError_t hipLaunchHostFunc(hipStream_t stream, hipHostFn_t fn, void * userData)
cuda.bindings.runtime.cuMemcpy2DUnaligned(pCopy)#

Copies memory for 2D arrays.

Args:
pCopy (hip_Memcpy2D/object):
  • Parameters for the memory copy

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipDrvMemcpy2DUnaligned(const hip_Memcpy2D * pCopy)
cuda.bindings.runtime.cuMemcpy2DUnaligned_v2(pCopy)#

Copies memory for 2D arrays.

Args:
pCopy (hip_Memcpy2D/object):
  • Parameters for the memory copy

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipDrvMemcpy2DUnaligned(const hip_Memcpy2D * pCopy)
cuda.bindings.runtime.cudaCreateTextureObject(pResDesc, pTexDesc, pResViewDesc)#

Creates a texture object.

Note:

3D linear filter isn’t supported on GFX90A boards, on which the API hipCreateTextureObject will return hipErrorNotSupported.

Args:
pResDesc (hipResourceDesc/object) – IN:

pointer to resource descriptor

pTexDesc (hipTextureDesc/object) – IN:

pointer to texture descriptor

pResViewDesc (hipResourceViewDesc/object) – IN:

pointer to resource view descriptor

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipCreateTextureObject(hipTextureObject_t * pTexObject, const hipResourceDesc * pResDesc, const hipTextureDesc * pTexDesc, const struct hipResourceViewDesc * pResViewDesc)
cuda.bindings.runtime.cudaDestroyTextureObject(textureObject)#

Destroys a texture object.

Args:
textureObject (__hip_texture/object) – IN:

texture object to destroy

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipDestroyTextureObject(hipTextureObject_t textureObject)
cuda.bindings.runtime.cudaGetChannelDesc(desc)#

Gets the channel descriptor in an array.

Args:
desc (hipChannelFormatDesc/object) – IN:

pointer to channel format descriptor

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetChannelDesc(hipChannelFormatDesc * desc, hipArray_const_t array)
cuda.bindings.runtime.cudaGetTextureObjectResourceDesc(textureObject)#

Gets resource descriptor for the texture object.

Args:
textureObject (__hip_texture/object) – IN:

texture object

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetTextureObjectResourceDesc(hipResourceDesc * pResDesc, hipTextureObject_t textureObject)
cuda.bindings.runtime.cudaGetTextureObjectResourceViewDesc(textureObject)#

Gets resource view descriptor for the texture object.

Args:
textureObject (__hip_texture/object) – IN:

texture object

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetTextureObjectResourceViewDesc(struct hipResourceViewDesc * pResViewDesc, hipTextureObject_t textureObject)
cuda.bindings.runtime.cudaGetTextureObjectTextureDesc(textureObject)#

Gets texture descriptor for the texture object.

Args:
textureObject (__hip_texture/object) – IN:

texture object

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetTextureObjectTextureDesc(hipTextureDesc * pTexDesc, hipTextureObject_t textureObject)
cuda.bindings.runtime.cuTexObjectCreate(pResDesc, pTexDesc, pResViewDesc)#

Creates a texture object.

Args:
pResDesc (HIP_RESOURCE_DESC_st/object) – IN:

pointer to resource descriptor

pTexDesc (HIP_TEXTURE_DESC_st/object) – IN:

pointer to texture descriptor

pResViewDesc (HIP_RESOURCE_VIEW_DESC_st/object) – IN:

pointer to resource view descriptor

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexObjectCreate(hipTextureObject_t * pTexObject, const HIP_RESOURCE_DESC * pResDesc, const HIP_TEXTURE_DESC * pTexDesc, const HIP_RESOURCE_VIEW_DESC * pResViewDesc)
cuda.bindings.runtime.cuTexObjectDestroy(texObject)#

Destroys a texture object.

Args:
texObject (__hip_texture/object) – IN:

texture object to destroy

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipTexObjectDestroy(hipTextureObject_t texObject)
cuda.bindings.runtime.cuTexObjectGetResourceDesc(texObject)#

Gets resource descriptor of a texture object.

Args:
texObject (__hip_texture/object) – IN:

texture object

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexObjectGetResourceDesc(HIP_RESOURCE_DESC * pResDesc, hipTextureObject_t texObject)
cuda.bindings.runtime.cuTexObjectGetResourceViewDesc(texObject)#

Gets resource view descriptor of a texture object.

Args:
texObject (__hip_texture/object) – IN:

texture object

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexObjectGetResourceViewDesc(HIP_RESOURCE_VIEW_DESC * pResViewDesc, hipTextureObject_t texObject)
cuda.bindings.runtime.cuTexObjectGetTextureDesc(texObject)#

Gets texture descriptor of a texture object.

Args:
texObject (__hip_texture/object) – IN:

texture object

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexObjectGetTextureDesc(HIP_TEXTURE_DESC * pTexDesc, hipTextureObject_t texObject)
cuda.bindings.runtime.cudaMallocMipmappedArray(desc, extent, numLevels, flags)#

Allocate a mipmapped array on the device.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
desc (hipChannelFormatDesc/object) – IN:
  • Requested channel format

extent (hipExtent) – IN:
  • Requested allocation size (width field in elements)

numLevels (int) – IN:
  • Number of mipmap levels to allocate

flags (int) – IN:
  • Flags for extensions

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMallocMipmappedArray(hipMipmappedArray_t * mipmappedArray, const struct hipChannelFormatDesc * desc, struct hipExtent extent, unsigned int numLevels, unsigned int flags)
cuda.bindings.runtime.cudaFreeMipmappedArray(mipmappedArray)#

Frees a mipmapped array on the device.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mipmappedArray (hipMipmappedArray/object) – IN:
  • Pointer to mipmapped array to free

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipFreeMipmappedArray(hipMipmappedArray_t mipmappedArray)
cuda.bindings.runtime.cudaGetMipmappedArrayLevel(mipmappedArray, level)#

Gets a mipmap level of a HIP mipmapped array.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
mipmappedArray (hipMipmappedArray/object) – IN:
  • HIP mipmapped array

level (int) – IN:
  • Mipmap level

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetMipmappedArrayLevel(hipArray_t * levelArray, hipMipmappedArray_const_t mipmappedArray, unsigned int level)
cuda.bindings.runtime.cuMipmappedArrayCreate(pMipmappedArrayDesc, numMipmapLevels)#

Create a mipmapped array.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
pMipmappedArrayDesc (HIP_ARRAY3D_DESCRIPTOR/object) – IN:

mipmapped array descriptor

numMipmapLevels (int) – IN:

mipmap level

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMipmappedArrayCreate(hipMipmappedArray_t * pHandle, HIP_ARRAY3D_DESCRIPTOR * pMipmappedArrayDesc, unsigned int numMipmapLevels)
cuda.bindings.runtime.cuMipmappedArrayDestroy()#

Destroy a mipmapped array.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMipmappedArrayDestroy(hipMipmappedArray_t hMipmappedArray)
cuda.bindings.runtime.cuMipmappedArrayGetLevel(pLevelArray, level)#

Get a mipmapped array on a mipmapped level.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
pLevelArray (Pointer/object) – IN:

Pointer of array

level (int) – OUT:

Mipmap level

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMipmappedArrayGetLevel(hipArray_t * pLevelArray, hipMipmappedArray_t hMipMappedArray, unsigned int level)
cuda.bindings.runtime.cudaBindTextureToMipmappedArray(tex, mipmappedArray, desc)#

Binds a mipmapped array to a texture [Deprecated]

Args:
tex (textureReference/object) – IN:

pointer to the texture reference to bind

mipmappedArray (hipMipmappedArray/object) – IN:

memory mipmapped array on the device

desc (hipChannelFormatDesc/object) – IN:

opointer to the channel format

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipBindTextureToMipmappedArray(const textureReference * tex, hipMipmappedArray_const_t mipmappedArray, const hipChannelFormatDesc * desc)
cuda.bindings.runtime.cudaGetTextureReference(symbol)#

Gets the texture reference related with the symbol [Deprecated]

Warning:

This API is deprecated.

Args:
symbol (Pointer/object) – IN:

pointer to the symbol related with the texture for the reference

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetTextureReference(const textureReference ** texref, const void * symbol)
cuda.bindings.runtime.cuTexRefGetBorderColor(texRef)#

Gets the border color used by a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Texture reference.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexRefGetBorderColor(float * pBorderColor, const textureReference * texRef)
cuda.bindings.runtime.cuTexRefGetArray(pArray, texRef)#

Gets the array bound to a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
pArray (Pointer/object) – IN:

Returned array.

texRef (textureReference/object) – IN:

texture reference.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipTexRefGetArray(hipArray_t * pArray, const textureReference * texRef)
cuda.bindings.runtime.cuTexRefSetAddressMode(texRef, dim, am)#

Sets address mode for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

texture reference.

dim (int) – IN:

Dimension of the texture.

am (hipTextureAddressMode) – IN:

Value of the texture address mode.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipTexRefSetAddressMode(textureReference * texRef, int dim, enum hipTextureAddressMode am)
cuda.bindings.runtime.cuTexRefSetArray(tex, array, flags)#

Binds an array as a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
tex (textureReference/object) – IN:

Pointer texture reference.

array (hipArray/object) – IN:

Array to bind.

flags (int) – IN:

Flags should be set as HIP_TRSA_OVERRIDE_FORMAT, as a valid value.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipTexRefSetArray(textureReference * tex, hipArray_const_t array, unsigned int flags)
cuda.bindings.runtime.cuTexRefSetFilterMode(texRef, fm)#

Set filter mode for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer texture reference.

fm (hipTextureFilterMode) – IN:

Value of texture filter mode.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipTexRefSetFilterMode(textureReference * texRef, enum hipTextureFilterMode fm)
cuda.bindings.runtime.cuTexRefSetFlags(texRef, Flags)#

Set flags for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer texture reference.

Flags (int) – IN:

Value of flags.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipTexRefSetFlags(textureReference * texRef, unsigned int Flags)
cuda.bindings.runtime.cuTexRefSetFormat(texRef, fmt, NumPackedComponents)#

Set format for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer texture reference.

fmt (hipArray_Format) – IN:

Value of format.

NumPackedComponents (int) – IN:

Number of components per array.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipTexRefSetFormat(textureReference * texRef, hipArray_Format fmt, int NumPackedComponents)
cuda.bindings.runtime.cudaBindTexture(tex, devPtr, desc, size)#

Binds a memory area to a texture [Deprecated]

Warning:

This API is deprecated.

Args:
tex (textureReference/object) – IN:

Texture to bind.

devPtr (Pointer/object) – IN:

Pointer of memory on the device.

desc (hipChannelFormatDesc/object) – IN:

Pointer of channel format descriptor.

size (int) – IN:

Size of memory in bites.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipBindTexture(size_t * offset, const textureReference * tex, const void * devPtr, const hipChannelFormatDesc * desc, size_t size)
cuda.bindings.runtime.cudaBindTexture2D(tex, devPtr, desc, width, height, pitch)#

Binds a 2D memory area to a texture [Deprecated]

Warning:

This API is deprecated.

Args:
tex (textureReference/object) – IN:

Texture to bind.

devPtr (Pointer/object) – IN:

Pointer of 2D memory area on the device.

desc (hipChannelFormatDesc/object) – IN:

Pointer of channel format descriptor.

width (int) – IN:

Width in texel units.

height (int) – IN:

Height in texel units.

pitch (int) – IN:

Pitch in bytes.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipBindTexture2D(size_t * offset, const textureReference * tex, const void * devPtr, const hipChannelFormatDesc * desc, size_t width, size_t height, size_t pitch)
cuda.bindings.runtime.cudaBindTextureToArray(tex, array, desc)#

Binds a memory area to a texture [Deprecated]

Warning:

This API is deprecated.

Args:
tex (textureReference/object) – IN:

Pointer of texture reference.

array (hipArray/object) – IN:

Array to bind.

desc (hipChannelFormatDesc/object) – IN:

Pointer of channel format descriptor.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipBindTextureToArray(const textureReference * tex, hipArray_const_t array, const hipChannelFormatDesc * desc)
cuda.bindings.runtime.cudaGetTextureAlignmentOffset(texref)#

Get the offset of the alignment in a texture [Deprecated]

Warning:

This API is deprecated.

Args:
texref (textureReference/object) – IN:

Pointer of texture reference.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGetTextureAlignmentOffset(size_t * offset, const textureReference * texref)
cuda.bindings.runtime.cudaUnbindTexture(tex)#

Unbinds a texture [Deprecated]

Warning:

This API is deprecated.

Args:
tex (textureReference/object) – IN:

Texture to unbind.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipUnbindTexture(const textureReference * tex)
cuda.bindings.runtime.cuTexRefGetAddress(texRef)#

Gets the address for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexRefGetAddress(hipDeviceptr_t * dev_ptr, const textureReference * texRef)
cuda.bindings.runtime.cuTexRefGetAddress_v2(texRef)#

Gets the address for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexRefGetAddress(hipDeviceptr_t * dev_ptr, const textureReference * texRef)
cuda.bindings.runtime.cuTexRefGetAddressMode(texRef, dim)#

Gets the address mode for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

dim (int) – IN:

Dimension.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexRefGetAddressMode(enum hipTextureAddressMode * pam, const textureReference * texRef, int dim)
cuda.bindings.runtime.cuTexRefGetFilterMode(texRef)#

Gets filter mode for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexRefGetFilterMode(enum hipTextureFilterMode * pfm, const textureReference * texRef)
cuda.bindings.runtime.cuTexRefGetFlags(texRef)#

Gets flags for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexRefGetFlags(unsigned int * pFlags, const textureReference * texRef)
cuda.bindings.runtime.cuTexRefGetFormat(texRef)#

Gets texture format for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipTexRefGetFormat(hipArray_Format * pFormat, int * pNumChannels, const textureReference * texRef)
cuda.bindings.runtime.cuTexRefGetMaxAnisotropy(texRef)#

Gets the maximum anisotropy for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexRefGetMaxAnisotropy(int * pmaxAnsio, const textureReference * texRef)
cuda.bindings.runtime.cuTexRefGetMipmapFilterMode(texRef)#

Gets the mipmap filter mode for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexRefGetMipmapFilterMode(enum hipTextureFilterMode * pfm, const textureReference * texRef)
cuda.bindings.runtime.cuTexRefGetMipmapLevelBias(texRef)#

Gets the mipmap level bias for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexRefGetMipmapLevelBias(float * pbias, const textureReference * texRef)
cuda.bindings.runtime.cuTexRefGetMipmapLevelClamp(texRef)#

Gets the minimum and maximum mipmap level clamps for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipTexRefGetMipmapLevelClamp(float * pminMipmapLevelClamp, float * pmaxMipmapLevelClamp, const textureReference * texRef)
cuda.bindings.runtime.cuTexRefGetMipmappedArray(texRef)#

Gets the mipmapped array bound to a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexRefGetMipMappedArray(hipMipmappedArray_t * pArray, const textureReference * texRef)
cuda.bindings.runtime.cuTexRefSetAddress(texRef, dptr, bytes)#

Sets an bound address for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

dptr (Pointer/object) – IN:

Pointer of device address to bind.

bytes (int) – IN:

Size in bytes.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexRefSetAddress(size_t * ByteOffset, textureReference * texRef, hipDeviceptr_t dptr, size_t bytes)
cuda.bindings.runtime.cuTexRefSetAddress_v2(texRef, dptr, bytes)#

Sets an bound address for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

dptr (Pointer/object) – IN:

Pointer of device address to bind.

bytes (int) – IN:

Size in bytes.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexRefSetAddress(size_t * ByteOffset, textureReference * texRef, hipDeviceptr_t dptr, size_t bytes)
cuda.bindings.runtime.cuTexRefSetAddress2D(texRef, desc, dptr, Pitch)#

Set a bind an address as a 2D texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

desc (HIP_ARRAY_DESCRIPTOR/object) – IN:

Pointer of array descriptor.

dptr (Pointer/object) – IN:

Pointer of device address to bind.

Pitch (int) – IN:

Pitch in bytes.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipTexRefSetAddress2D(textureReference * texRef, const HIP_ARRAY_DESCRIPTOR * desc, hipDeviceptr_t dptr, size_t Pitch)
cuda.bindings.runtime.cuTexRefSetAddress2D_v2(texRef, desc, dptr, Pitch)#

Set a bind an address as a 2D texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

desc (HIP_ARRAY_DESCRIPTOR/object) – IN:

Pointer of array descriptor.

dptr (Pointer/object) – IN:

Pointer of device address to bind.

Pitch (int) – IN:

Pitch in bytes.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipTexRefSetAddress2D(textureReference * texRef, const HIP_ARRAY_DESCRIPTOR * desc, hipDeviceptr_t dptr, size_t Pitch)
cuda.bindings.runtime.cuTexRefSetAddress2D_v3(texRef, desc, dptr, Pitch)#

Set a bind an address as a 2D texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

desc (HIP_ARRAY_DESCRIPTOR/object) – IN:

Pointer of array descriptor.

dptr (Pointer/object) – IN:

Pointer of device address to bind.

Pitch (int) – IN:

Pitch in bytes.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipTexRefSetAddress2D(textureReference * texRef, const HIP_ARRAY_DESCRIPTOR * desc, hipDeviceptr_t dptr, size_t Pitch)
cuda.bindings.runtime.cuTexRefSetMaxAnisotropy(texRef, maxAniso)#

Sets the maximum anisotropy for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

maxAniso (int) – OUT:

Value of the maximum anisotropy.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipTexRefSetMaxAnisotropy(textureReference * texRef, unsigned int maxAniso)
cuda.bindings.runtime.cuTexRefSetBorderColor(texRef)#

Sets border color for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipTexRefSetBorderColor(textureReference * texRef, float * pBorderColor)
cuda.bindings.runtime.cuTexRefSetMipmapFilterMode(texRef, fm)#

Sets mipmap filter mode for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

fm (hipTextureFilterMode) – IN:

Value of filter mode.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipTexRefSetMipmapFilterMode(textureReference * texRef, enum hipTextureFilterMode fm)
cuda.bindings.runtime.cuTexRefSetMipmapLevelBias(texRef, bias)#

Sets mipmap level bias for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

bias (float/int) – IN:

Value of mipmap bias.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipTexRefSetMipmapLevelBias(textureReference * texRef, float bias)
cuda.bindings.runtime.cuTexRefSetMipmapLevelClamp(texRef, minMipMapLevelClamp, maxMipMapLevelClamp)#

Sets mipmap level clamp for a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

minMipMapLevelClamp (float/int) – IN:

Value of minimum mipmap level clamp.

maxMipMapLevelClamp (float/int) – IN:

Value of maximum mipmap level clamp.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipTexRefSetMipmapLevelClamp(textureReference * texRef, float minMipMapLevelClamp, float maxMipMapLevelClamp)
cuda.bindings.runtime.cuTexRefSetMipmappedArray(texRef, mipmappedArray, Flags)#

Binds mipmapped array to a texture reference [Deprecated]

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference to bind.

mipmappedArray (hipMipmappedArray/object) – IN:

Pointer of mipmapped array to bind.

Flags (int) – IN:

Flags should be set as HIP_TRSA_OVERRIDE_FORMAT, as a valid value.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipTexRefSetMipmappedArray(textureReference * texRef, struct hipMipmappedArray * mipmappedArray, unsigned int Flags)
cuda.bindings.runtime.cuStreamBeginCapture(stream, mode)#

Begins graph capture on a stream.

Args:
stream (ihipStream_t/object) – IN:
  • Stream to initiate capture.

mode (hipStreamCaptureMode) – IN:
  • Controls the interaction of this capture sequence with other API calls that

are not safe.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamBeginCapture(hipStream_t stream, hipStreamCaptureMode mode)
cuda.bindings.runtime.cuStreamBeginCapture_v2(stream, mode)#

Begins graph capture on a stream.

Args:
stream (ihipStream_t/object) – IN:
  • Stream to initiate capture.

mode (hipStreamCaptureMode) – IN:
  • Controls the interaction of this capture sequence with other API calls that

are not safe.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamBeginCapture(hipStream_t stream, hipStreamCaptureMode mode)
cuda.bindings.runtime.cudaStreamBeginCapture(stream, mode)#

Begins graph capture on a stream.

Args:
stream (ihipStream_t/object) – IN:
  • Stream to initiate capture.

mode (hipStreamCaptureMode) – IN:
  • Controls the interaction of this capture sequence with other API calls that

are not safe.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamBeginCapture(hipStream_t stream, hipStreamCaptureMode mode)
cuda.bindings.runtime.cuStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode)#

Begins graph capture on a stream to an existing graph.

Warning:

param “const hipGraphEdgeData* dependencyData” is currently not supported and has to be passed as nullptr. This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Args:
stream (ihipStream_t/object) – IN:
  • Stream to initiate capture.

graph (ihipGraph/object) – IN:
  • Graph to capture into.

dependencies (Pointer/object) – IN:
  • Dependencies of the first node captured in the stream. Can be NULL if

numDependencies is 0.

dependencyData (hipGraphEdgeData/object) – IN:
  • Optional array of data associated with each dependency.

numDependencies (int) – IN:
  • Number of dependencies.

mode (hipStreamCaptureMode) – IN:
  • Controls the interaction of this capture sequence with other API calls that

are not safe.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamBeginCaptureToGraph(hipStream_t stream, hipGraph_t graph, const hipGraphNode_t * dependencies, const hipGraphEdgeData * dependencyData, size_t numDependencies, hipStreamCaptureMode mode)
cuda.bindings.runtime.cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode)#

Begins graph capture on a stream to an existing graph.

Warning:

param “const hipGraphEdgeData* dependencyData” is currently not supported and has to be passed as nullptr. This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Args:
stream (ihipStream_t/object) – IN:
  • Stream to initiate capture.

graph (ihipGraph/object) – IN:
  • Graph to capture into.

dependencies (Pointer/object) – IN:
  • Dependencies of the first node captured in the stream. Can be NULL if

numDependencies is 0.

dependencyData (hipGraphEdgeData/object) – IN:
  • Optional array of data associated with each dependency.

numDependencies (int) – IN:
  • Number of dependencies.

mode (hipStreamCaptureMode) – IN:
  • Controls the interaction of this capture sequence with other API calls that

are not safe.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipStreamBeginCaptureToGraph(hipStream_t stream, hipGraph_t graph, const hipGraphNode_t * dependencies, const hipGraphEdgeData * dependencyData, size_t numDependencies, hipStreamCaptureMode mode)
cuda.bindings.runtime.cuStreamEndCapture(stream)#

Ends capture on a stream, returning the captured graph.

Args:
stream (ihipStream_t/object) – IN:
  • Stream to end capture.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamEndCapture(hipStream_t stream, hipGraph_t * pGraph)
cuda.bindings.runtime.cudaStreamEndCapture(stream)#

Ends capture on a stream, returning the captured graph.

Args:
stream (ihipStream_t/object) – IN:
  • Stream to end capture.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamEndCapture(hipStream_t stream, hipGraph_t * pGraph)
cuda.bindings.runtime.cuStreamGetCaptureInfo(stream)#

Get capture status of a stream.

Args:
stream (ihipStream_t/object) – IN:
  • Stream of which to get capture status from.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipStreamGetCaptureInfo(hipStream_t stream, hipStreamCaptureStatus * pCaptureStatus, unsigned long long * pId)
cuda.bindings.runtime.cudaStreamGetCaptureInfo(stream)#

Get capture status of a stream.

Args:
stream (ihipStream_t/object) – IN:
  • Stream of which to get capture status from.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipStreamGetCaptureInfo(hipStream_t stream, hipStreamCaptureStatus * pCaptureStatus, unsigned long long * pId)
cuda.bindings.runtime.cuStreamGetCaptureInfo_v2(stream, dependencies_out)#

Get stream’s capture state

Args:
stream (ihipStream_t/object) – IN:
  • Stream of which to get capture status from.

dependencies_out (Pointer/object) – OUT:
  • Pointer to an array of nodes representing the graphs

dependencies.

Returns:

A tuple of size 5 that contains (in that order):

C signature

hipError_t hipStreamGetCaptureInfo_v2(hipStream_t stream, hipStreamCaptureStatus * captureStatus_out, unsigned long long * id_out, hipGraph_t * graph_out, const hipGraphNode_t ** dependencies_out, size_t * numDependencies_out)
cuda.bindings.runtime.cuStreamIsCapturing(stream)#

Get stream’s capture state

Args:
stream (ihipStream_t/object) – IN:
  • Stream of which to get capture status from.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamIsCapturing(hipStream_t stream, hipStreamCaptureStatus * pCaptureStatus)
cuda.bindings.runtime.cudaStreamIsCapturing(stream)#

Get stream’s capture state

Args:
stream (ihipStream_t/object) – IN:
  • Stream of which to get capture status from.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipStreamIsCapturing(hipStream_t stream, hipStreamCaptureStatus * pCaptureStatus)
cuda.bindings.runtime.cuStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags)#

Update the set of dependencies in a capturing stream

Args:
stream (ihipStream_t/object) – IN:

Stream that is being captured.

dependencies (Pointer/object) – IN:

Pointer to an array of nodes to add/replace.

numDependencies (int) – IN:

Size of the dependencies array.

flags (int) – IN:

Flag to update dependency set. Should be one of the values in enum hipStreamUpdateCaptureDependenciesFlags.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorIllegalState

C signature

hipError_t hipStreamUpdateCaptureDependencies(hipStream_t stream, hipGraphNode_t * dependencies, size_t numDependencies, unsigned int flags)
cuda.bindings.runtime.cudaStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags)#

Update the set of dependencies in a capturing stream

Args:
stream (ihipStream_t/object) – IN:

Stream that is being captured.

dependencies (Pointer/object) – IN:

Pointer to an array of nodes to add/replace.

numDependencies (int) – IN:

Size of the dependencies array.

flags (int) – IN:

Flag to update dependency set. Should be one of the values in enum hipStreamUpdateCaptureDependenciesFlags.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorIllegalState

C signature

hipError_t hipStreamUpdateCaptureDependencies(hipStream_t stream, hipGraphNode_t * dependencies, size_t numDependencies, unsigned int flags)
cuda.bindings.runtime.cuThreadExchangeStreamCaptureMode()#

Swaps the stream capture mode of a thread.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipThreadExchangeStreamCaptureMode(hipStreamCaptureMode * mode)
cuda.bindings.runtime.cudaThreadExchangeStreamCaptureMode()#

Swaps the stream capture mode of a thread.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipThreadExchangeStreamCaptureMode(hipStreamCaptureMode * mode)
cuda.bindings.runtime.cuGraphCreate(flags)#

Creates a graph

Args:
flags (int) – IN:
  • flags for graph creation, must be 0.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphCreate(hipGraph_t * pGraph, unsigned int flags)
cuda.bindings.runtime.cudaGraphCreate(flags)#

Creates a graph

Args:
flags (int) – IN:
  • flags for graph creation, must be 0.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphCreate(hipGraph_t * pGraph, unsigned int flags)
cuda.bindings.runtime.cuGraphDestroy(graph)#

Destroys a graph

Args:
graph (ihipGraph/object) – IN:
  • instance of graph to destroy.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphDestroy(hipGraph_t graph)
cuda.bindings.runtime.cudaGraphDestroy(graph)#

Destroys a graph

Args:
graph (ihipGraph/object) – IN:
  • instance of graph to destroy.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphDestroy(hipGraph_t graph)
cuda.bindings.runtime.cuGraphAddDependencies(graph, from_, to, numDependencies)#

Adds dependency edges to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph to add dependencies to.

from (Pointer/object) – IN:
  • Pointer to the graph nodes with dependencies to add from.

to (Pointer/object) – IN:
  • Pointer to the graph nodes to add dependencies to.

numDependencies (int) – IN:
  • Number of dependencies to add.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphAddDependencies(hipGraph_t graph, const hipGraphNode_t * from, const hipGraphNode_t * to, size_t numDependencies)
cuda.bindings.runtime.cudaGraphAddDependencies(graph, from_, to, numDependencies)#

Adds dependency edges to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph to add dependencies to.

from (Pointer/object) – IN:
  • Pointer to the graph nodes with dependencies to add from.

to (Pointer/object) – IN:
  • Pointer to the graph nodes to add dependencies to.

numDependencies (int) – IN:
  • Number of dependencies to add.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphAddDependencies(hipGraph_t graph, const hipGraphNode_t * from, const hipGraphNode_t * to, size_t numDependencies)
cuda.bindings.runtime.cuGraphRemoveDependencies(graph, from_, to, numDependencies)#

Removes dependency edges from a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph to remove dependencies from.

from (Pointer/object) – IN:
  • Array of nodes that provide the dependencies.

to (Pointer/object) – IN:
  • Array of dependent nodes.

numDependencies (int) – IN:
  • Number of dependencies to remove.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphRemoveDependencies(hipGraph_t graph, const hipGraphNode_t * from, const hipGraphNode_t * to, size_t numDependencies)
cuda.bindings.runtime.cudaGraphRemoveDependencies(graph, from_, to, numDependencies)#

Removes dependency edges from a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph to remove dependencies from.

from (Pointer/object) – IN:
  • Array of nodes that provide the dependencies.

to (Pointer/object) – IN:
  • Array of dependent nodes.

numDependencies (int) – IN:
  • Number of dependencies to remove.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphRemoveDependencies(hipGraph_t graph, const hipGraphNode_t * from, const hipGraphNode_t * to, size_t numDependencies)
cuda.bindings.runtime.cuGraphGetEdges(graph)#

Returns a graph’s dependency edges.

from and to may both be NULL, in which case this function only returns the number of edges in numEdges. Otherwise, numEdges entries will be filled in. If numEdges is higher than the actual number of edges, the remaining entries in from and to will be set to NULL, and the number of edges actually returned will be written to numEdges.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph to get the edges from.

Returns:

A tuple of size 4 that contains (in that order):

C signature

hipError_t hipGraphGetEdges(hipGraph_t graph, hipGraphNode_t * from, hipGraphNode_t * to, size_t * numEdges)
cuda.bindings.runtime.cudaGraphGetEdges(graph)#

Returns a graph’s dependency edges.

from and to may both be NULL, in which case this function only returns the number of edges in numEdges. Otherwise, numEdges entries will be filled in. If numEdges is higher than the actual number of edges, the remaining entries in from and to will be set to NULL, and the number of edges actually returned will be written to numEdges.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph to get the edges from.

Returns:

A tuple of size 4 that contains (in that order):

C signature

hipError_t hipGraphGetEdges(hipGraph_t graph, hipGraphNode_t * from, hipGraphNode_t * to, size_t * numEdges)
cuda.bindings.runtime.cuGraphGetNodes(graph)#

Returns a graph’s nodes.

nodes may be NULL, in which case this function will return the number of nodes in numNodes. Otherwise, numNodes entries will be filled in. If numNodes is higher than the actual number of nodes, the remaining entries in nodes will be set to NULL, and the number of nodes actually obtained will be returned in numNodes.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to get the nodes from.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipGraphGetNodes(hipGraph_t graph, hipGraphNode_t * nodes, size_t * numNodes)
cuda.bindings.runtime.cudaGraphGetNodes(graph)#

Returns a graph’s nodes.

nodes may be NULL, in which case this function will return the number of nodes in numNodes. Otherwise, numNodes entries will be filled in. If numNodes is higher than the actual number of nodes, the remaining entries in nodes will be set to NULL, and the number of nodes actually obtained will be returned in numNodes.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to get the nodes from.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipGraphGetNodes(hipGraph_t graph, hipGraphNode_t * nodes, size_t * numNodes)
cuda.bindings.runtime.cuGraphGetRootNodes(graph)#

Returns a graph’s root nodes.

pRootNodes may be NULL, in which case this function will return the number of root nodes in pNumRootNodes. Otherwise, pNumRootNodes entries will be filled in. If pNumRootNodes is higher than the actual number of root nodes, the remaining entries in pRootNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumRootNodes.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph to get the nodes from.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipGraphGetRootNodes(hipGraph_t graph, hipGraphNode_t * pRootNodes, size_t * pNumRootNodes)
cuda.bindings.runtime.cudaGraphGetRootNodes(graph)#

Returns a graph’s root nodes.

pRootNodes may be NULL, in which case this function will return the number of root nodes in pNumRootNodes. Otherwise, pNumRootNodes entries will be filled in. If pNumRootNodes is higher than the actual number of root nodes, the remaining entries in pRootNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumRootNodes.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph to get the nodes from.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipGraphGetRootNodes(hipGraph_t graph, hipGraphNode_t * pRootNodes, size_t * pNumRootNodes)
cuda.bindings.runtime.cuGraphNodeGetDependencies(node)#

Returns a node’s dependencies.

pDependencies may be NULL, in which case this function will return the number of dependencies in pNumDependencies. Otherwise, pNumDependencies entries will be filled in. If pNumDependencies is higher than the actual number of dependencies, the remaining entries in pDependencies will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependencies.

Args:
node (hipGraphNode/object) – IN:
  • Graph node to get the dependencies from.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipGraphNodeGetDependencies(hipGraphNode_t node, hipGraphNode_t * pDependencies, size_t * pNumDependencies)
cuda.bindings.runtime.cudaGraphNodeGetDependencies(node)#

Returns a node’s dependencies.

pDependencies may be NULL, in which case this function will return the number of dependencies in pNumDependencies. Otherwise, pNumDependencies entries will be filled in. If pNumDependencies is higher than the actual number of dependencies, the remaining entries in pDependencies will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependencies.

Args:
node (hipGraphNode/object) – IN:
  • Graph node to get the dependencies from.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipGraphNodeGetDependencies(hipGraphNode_t node, hipGraphNode_t * pDependencies, size_t * pNumDependencies)
cuda.bindings.runtime.cuGraphNodeGetDependentNodes(node)#

Returns a node’s dependent nodes.

pDependentNodes may be NULL, in which case this function will return the number of dependent nodes in pNumDependentNodes. Otherwise, pNumDependentNodes entries will be filled in. If pNumDependentNodes is higher than the actual number of dependent nodes, the remaining entries in pDependentNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependentNodes.

Args:
node (hipGraphNode/object) – IN:
  • Graph node to get the dependent nodes from.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipGraphNodeGetDependentNodes(hipGraphNode_t node, hipGraphNode_t * pDependentNodes, size_t * pNumDependentNodes)
cuda.bindings.runtime.cudaGraphNodeGetDependentNodes(node)#

Returns a node’s dependent nodes.

pDependentNodes may be NULL, in which case this function will return the number of dependent nodes in pNumDependentNodes. Otherwise, pNumDependentNodes entries will be filled in. If pNumDependentNodes is higher than the actual number of dependent nodes, the remaining entries in pDependentNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependentNodes.

Args:
node (hipGraphNode/object) – IN:
  • Graph node to get the dependent nodes from.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipGraphNodeGetDependentNodes(hipGraphNode_t node, hipGraphNode_t * pDependentNodes, size_t * pNumDependentNodes)
cuda.bindings.runtime.cuGraphNodeGetType(node)#

Returns a node’s type.

Args:
node (hipGraphNode/object) – IN:
  • Node to get type of.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphNodeGetType(hipGraphNode_t node, hipGraphNodeType * pType)
cuda.bindings.runtime.cudaGraphNodeGetType(node)#

Returns a node’s type.

Args:
node (hipGraphNode/object) – IN:
  • Node to get type of.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphNodeGetType(hipGraphNode_t node, hipGraphNodeType * pType)
cuda.bindings.runtime.cuGraphDestroyNode(node)#

Remove a node from the graph.

Args:
node (hipGraphNode/object) – IN:
  • graph node to remove

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphDestroyNode(hipGraphNode_t node)
cuda.bindings.runtime.cudaGraphDestroyNode(node)#

Remove a node from the graph.

Args:
node (hipGraphNode/object) – IN:
  • graph node to remove

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphDestroyNode(hipGraphNode_t node)
cuda.bindings.runtime.cuGraphClone(originalGraph)#

Clones a graph.

Args:
originalGraph (ihipGraph/object) – IN:
  • original graph to clone from.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphClone(hipGraph_t * pGraphClone, hipGraph_t originalGraph)
cuda.bindings.runtime.cudaGraphClone(originalGraph)#

Clones a graph.

Args:
originalGraph (ihipGraph/object) – IN:
  • original graph to clone from.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphClone(hipGraph_t * pGraphClone, hipGraph_t originalGraph)
cuda.bindings.runtime.cuGraphNodeFindInClone(originalNode, clonedGraph)#

Finds a cloned version of a node.

Args:
originalNode (hipGraphNode/object) – IN:
  • original node handle.

clonedGraph (ihipGraph/object) – IN:
  • Cloned graph to query.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphNodeFindInClone(hipGraphNode_t * pNode, hipGraphNode_t originalNode, hipGraph_t clonedGraph)
cuda.bindings.runtime.cudaGraphNodeFindInClone(originalNode, clonedGraph)#

Finds a cloned version of a node.

Args:
originalNode (hipGraphNode/object) – IN:
  • original node handle.

clonedGraph (ihipGraph/object) – IN:
  • Cloned graph to query.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphNodeFindInClone(hipGraphNode_t * pNode, hipGraphNode_t originalNode, hipGraph_t clonedGraph)
cuda.bindings.runtime.cuGraphInstantiate(graph, bufferSize)#

Creates an executable graph from a graph

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to instantiate.

bufferSize (int) – OUT:
  • Size of the log buffer.

Returns:

A tuple of size 4 that contains (in that order):

C signature

hipError_t hipGraphInstantiate(hipGraphExec_t * pGraphExec, hipGraph_t graph, hipGraphNode_t * pErrorNode, char * pLogBuffer, size_t bufferSize)
cuda.bindings.runtime.cuGraphInstantiate_v2(graph, bufferSize)#

Creates an executable graph from a graph

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to instantiate.

bufferSize (int) – OUT:
  • Size of the log buffer.

Returns:

A tuple of size 4 that contains (in that order):

C signature

hipError_t hipGraphInstantiate(hipGraphExec_t * pGraphExec, hipGraph_t graph, hipGraphNode_t * pErrorNode, char * pLogBuffer, size_t bufferSize)
cuda.bindings.runtime.cudaGraphInstantiate(graph, bufferSize)#

Creates an executable graph from a graph

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to instantiate.

bufferSize (int) – OUT:
  • Size of the log buffer.

Returns:

A tuple of size 4 that contains (in that order):

C signature

hipError_t hipGraphInstantiate(hipGraphExec_t * pGraphExec, hipGraph_t graph, hipGraphNode_t * pErrorNode, char * pLogBuffer, size_t bufferSize)
cuda.bindings.runtime.cuGraphInstantiateWithFlags(graph, flags)#

Creates an executable graph from a graph.

Warning:

This API does not support any of flag and is behaving as hipGraphInstantiate.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to instantiate.

flags (int) – IN:
  • Flags to control instantiation.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphInstantiateWithFlags(hipGraphExec_t * pGraphExec, hipGraph_t graph, unsigned long long flags)
cuda.bindings.runtime.cudaGraphInstantiateWithFlags(graph, flags)#

Creates an executable graph from a graph.

Warning:

This API does not support any of flag and is behaving as hipGraphInstantiate.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to instantiate.

flags (int) – IN:
  • Flags to control instantiation.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphInstantiateWithFlags(hipGraphExec_t * pGraphExec, hipGraph_t graph, unsigned long long flags)
cuda.bindings.runtime.cuGraphInstantiateWithParams(graph, instantiateParams)#

Creates an executable graph from a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to instantiate.

instantiateParams (hipGraphInstantiateParams/object) – IN:
  • Graph instantiation Params

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphInstantiateWithParams(hipGraphExec_t * pGraphExec, hipGraph_t graph, hipGraphInstantiateParams * instantiateParams)
cuda.bindings.runtime.cudaGraphInstantiateWithParams(graph, instantiateParams)#

Creates an executable graph from a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to instantiate.

instantiateParams (hipGraphInstantiateParams/object) – IN:
  • Graph instantiation Params

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphInstantiateWithParams(hipGraphExec_t * pGraphExec, hipGraph_t graph, hipGraphInstantiateParams * instantiateParams)
cuda.bindings.runtime.cuGraphLaunch(graphExec, stream)#

Launches an executable graph in the specified stream.

Args:
graphExec (hipGraphExec/object) – IN:
  • Instance of executable graph to launch.

stream (ihipStream_t/object) – IN:
  • Instance of stream in which to launch executable graph.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphLaunch(hipGraphExec_t graphExec, hipStream_t stream)
cuda.bindings.runtime.cudaGraphLaunch(graphExec, stream)#

Launches an executable graph in the specified stream.

Args:
graphExec (hipGraphExec/object) – IN:
  • Instance of executable graph to launch.

stream (ihipStream_t/object) – IN:
  • Instance of stream in which to launch executable graph.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphLaunch(hipGraphExec_t graphExec, hipStream_t stream)
cuda.bindings.runtime.cuGraphUpload(graphExec, stream)#

Uploads an executable graph to a stream

Args:
graphExec (hipGraphExec/object) – IN:
  • Instance of executable graph to be uploaded.

stream (ihipStream_t/object) – IN:
  • Instance of stream to which the executable graph is uploaded to.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphUpload(hipGraphExec_t graphExec, hipStream_t stream)
cuda.bindings.runtime.cudaGraphUpload(graphExec, stream)#

Uploads an executable graph to a stream

Args:
graphExec (hipGraphExec/object) – IN:
  • Instance of executable graph to be uploaded.

stream (ihipStream_t/object) – IN:
  • Instance of stream to which the executable graph is uploaded to.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphUpload(hipGraphExec_t graphExec, hipStream_t stream)
cuda.bindings.runtime.cuGraphAddNode(graph, pDependencies, numDependencies, nodeParams)#

Creates a kernel execution node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to add the created node to.

pDependencies (Pointer/object) – IN:
  • Pointer to the dependencies on the kernel execution node.

numDependencies (int) – IN:
  • Number of dependencies.

nodeParams (hipGraphNodeParams/object) – IN:
  • Pointer to the node parameters.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipGraphNodeParams * nodeParams)
cuda.bindings.runtime.cudaGraphAddNode(graph, pDependencies, numDependencies, nodeParams)#

Creates a kernel execution node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to add the created node to.

pDependencies (Pointer/object) – IN:
  • Pointer to the dependencies on the kernel execution node.

numDependencies (int) – IN:
  • Number of dependencies.

nodeParams (hipGraphNodeParams/object) – IN:
  • Pointer to the node parameters.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipGraphNodeParams * nodeParams)
cuda.bindings.runtime.cuGraphExecGetFlags(graphExec)#

Return the flags of an executable graph.

Args:
graphExec (hipGraphExec/object) – IN:
  • Executable graph to get the flags from.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphExecGetFlags(hipGraphExec_t graphExec, unsigned long long * flags)
cuda.bindings.runtime.cudaGraphExecGetFlags(graphExec)#

Return the flags of an executable graph.

Args:
graphExec (hipGraphExec/object) – IN:
  • Executable graph to get the flags from.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphExecGetFlags(hipGraphExec_t graphExec, unsigned long long * flags)
cuda.bindings.runtime.cuGraphNodeSetParams(node, nodeParams)#

Updates parameters of a graph’s node.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters for.

nodeParams (hipGraphNodeParams/object) – IN:
  • Pointer to the parameters to be set.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidDeviceFunction,

hipErrorNotSupported.

C signature

hipError_t hipGraphNodeSetParams(hipGraphNode_t node, hipGraphNodeParams * nodeParams)
cuda.bindings.runtime.cudaGraphNodeSetParams(node, nodeParams)#

Updates parameters of a graph’s node.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters for.

nodeParams (hipGraphNodeParams/object) – IN:
  • Pointer to the parameters to be set.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidDeviceFunction,

hipErrorNotSupported.

C signature

hipError_t hipGraphNodeSetParams(hipGraphNode_t node, hipGraphNodeParams * nodeParams)
cuda.bindings.runtime.cuGraphExecNodeSetParams(graphExec, node, nodeParams)#

Updates parameters of an executable graph’s node.

Args:
graphExec (hipGraphExec/object) – IN:
  • Instance of the executable graph.

node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters to.

nodeParams (hipGraphNodeParams/object) – IN:
  • Pointer to the parameters to be set.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidDeviceFunction,

hipErrorNotSupported.

C signature

hipError_t hipGraphExecNodeSetParams(hipGraphExec_t graphExec, hipGraphNode_t node, hipGraphNodeParams * nodeParams)
cuda.bindings.runtime.cudaGraphExecNodeSetParams(graphExec, node, nodeParams)#

Updates parameters of an executable graph’s node.

Args:
graphExec (hipGraphExec/object) – IN:
  • Instance of the executable graph.

node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters to.

nodeParams (hipGraphNodeParams/object) – IN:
  • Pointer to the parameters to be set.

Returns:
hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorInvalidDeviceFunction,

hipErrorNotSupported.

C signature

hipError_t hipGraphExecNodeSetParams(hipGraphExec_t graphExec, hipGraphNode_t node, hipGraphNodeParams * nodeParams)
cuda.bindings.runtime.cuGraphExecDestroy(graphExec)#

Destroys an executable graph

Args:
graphExec (hipGraphExec/object) – IN:
  • Instance of executable graph to destroy.

Returns:

hipError_t: py:obj:hipSuccess.

C signature

hipError_t hipGraphExecDestroy(hipGraphExec_t graphExec)
cuda.bindings.runtime.cudaGraphExecDestroy(graphExec)#

Destroys an executable graph

Args:
graphExec (hipGraphExec/object) – IN:
  • Instance of executable graph to destroy.

Returns:

hipError_t: py:obj:hipSuccess.

C signature

hipError_t hipGraphExecDestroy(hipGraphExec_t graphExec)
cuda.bindings.runtime.cuGraphExecUpdate(hGraphExec, hGraph, hErrorNode_out)#

Check whether an executable graph can be updated with a graph and perform the update if * possible.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • instance of executable graph to update.

hGraph (ihipGraph/object) – IN:
  • graph that contains the updated parameters.

hErrorNode_out (Pointer/object) – IN:
  • node which caused the permissibility check to forbid the update.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphExecUpdate(hipGraphExec_t hGraphExec, hipGraph_t hGraph, hipGraphNode_t * hErrorNode_out, hipGraphExecUpdateResult * updateResult_out)
cuda.bindings.runtime.cudaGraphExecUpdate(hGraphExec, hGraph, hErrorNode_out)#

Check whether an executable graph can be updated with a graph and perform the update if * possible.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • instance of executable graph to update.

hGraph (ihipGraph/object) – IN:
  • graph that contains the updated parameters.

hErrorNode_out (Pointer/object) – IN:
  • node which caused the permissibility check to forbid the update.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphExecUpdate(hipGraphExec_t hGraphExec, hipGraph_t hGraph, hipGraphNode_t * hErrorNode_out, hipGraphExecUpdateResult * updateResult_out)
cuda.bindings.runtime.cuGraphAddKernelNode(graph, pDependencies, numDependencies, pNodeParams)#

Creates a kernel execution node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to add the created node to.

pDependencies (Pointer/object) – IN:
  • Pointer to the dependencies of the kernel execution node.

numDependencies (int) – IN:
  • The number of the dependencies.

pNodeParams (hipKernelNodeParams/object) – IN:
  • Pointer to the parameters of the kernel execution node.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddKernelNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipKernelNodeParams * pNodeParams)
cuda.bindings.runtime.cudaGraphAddKernelNode(graph, pDependencies, numDependencies, pNodeParams)#

Creates a kernel execution node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to add the created node to.

pDependencies (Pointer/object) – IN:
  • Pointer to the dependencies of the kernel execution node.

numDependencies (int) – IN:
  • The number of the dependencies.

pNodeParams (hipKernelNodeParams/object) – IN:
  • Pointer to the parameters of the kernel execution node.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddKernelNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipKernelNodeParams * pNodeParams)
cuda.bindings.runtime.cuGraphKernelNodeGetParams(node)#

Gets kernel node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • instance of the node to get parameters from.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphKernelNodeGetParams(hipGraphNode_t node, hipKernelNodeParams * pNodeParams)
cuda.bindings.runtime.cudaGraphKernelNodeGetParams(node)#

Gets kernel node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • instance of the node to get parameters from.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphKernelNodeGetParams(hipGraphNode_t node, hipKernelNodeParams * pNodeParams)
cuda.bindings.runtime.cuGraphKernelNodeSetParams(node, pNodeParams)#

Sets a kernel node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

pNodeParams (hipKernelNodeParams/object) – IN:
  • const pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphKernelNodeSetParams(hipGraphNode_t node, const hipKernelNodeParams * pNodeParams)
cuda.bindings.runtime.cudaGraphKernelNodeSetParams(node, pNodeParams)#

Sets a kernel node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

pNodeParams (hipKernelNodeParams/object) – IN:
  • const pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphKernelNodeSetParams(hipGraphNode_t node, const hipKernelNodeParams * pNodeParams)
cuda.bindings.runtime.cuGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams)#

Sets the parameters for a kernel node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • Instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

pNodeParams (hipKernelNodeParams/object) – IN:
  • const pointer to the kernel node parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecKernelNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipKernelNodeParams * pNodeParams)
cuda.bindings.runtime.cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams)#

Sets the parameters for a kernel node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • Instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

pNodeParams (hipKernelNodeParams/object) – IN:
  • const pointer to the kernel node parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecKernelNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipKernelNodeParams * pNodeParams)
cuda.bindings.runtime.cuGraphAddMemcpyNode(hGraph, dependencies, numDependencies, copyParams, ctx)#

Creates a memcpy node and adds it to a graph.

Args:
hGraph (ihipGraph/object) – IN:
  • Instance of graph to add the created node to.

dependencies (Pointer/object) – IN:
  • const pointer to the dependencies of the memcpy execution node.

numDependencies (int) – IN:
  • The number of dependencies.

copyParams (HIP_MEMCPY3D/object) – IN:
  • const pointer to the parameters for the memory copy.

ctx (ihipCtx_t/object) – IN:
  • context related to current device.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDrvGraphAddMemcpyNode(hipGraphNode_t * phGraphNode, hipGraph_t hGraph, const hipGraphNode_t * dependencies, size_t numDependencies, const HIP_MEMCPY3D * copyParams, hipCtx_t ctx)
cuda.bindings.runtime.cudaGraphAddMemcpyNode(graph, pDependencies, numDependencies, pCopyParams)#

Creates a memcpy node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to add the created node to.

pDependencies (Pointer/object) – IN:
  • const pointer to the dependencies of the memcpy execution node.

numDependencies (int) – IN:
  • The number of dependencies.

pCopyParams (hipMemcpy3DParms/object) – IN:
  • const pointer to the parameters for the memory copy.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddMemcpyNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipMemcpy3DParms * pCopyParams)
cuda.bindings.runtime.cudaGraphMemcpyNodeGetParams(node)#

Gets a memcpy node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • instance of the node to get parameters from.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphMemcpyNodeGetParams(hipGraphNode_t node, hipMemcpy3DParms * pNodeParams)
cuda.bindings.runtime.cudaGraphMemcpyNodeSetParams(node, pNodeParams)#

Sets a memcpy node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipMemcpy3DParms/object) – IN:
  • const pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphMemcpyNodeSetParams(hipGraphNode_t node, const hipMemcpy3DParms * pNodeParams)
cuda.bindings.runtime.cuGraphKernelNodeSetAttribute(hNode, attr, value)#

Sets a node’s attribute.

Args:
hNode (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

attr (hipLaunchAttributeID) – IN:
  • The attribute type to be set.

value (hipLaunchAttributeValue/object) – IN:
  • const pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphKernelNodeSetAttribute(hipGraphNode_t hNode, hipLaunchAttributeID attr, const hipLaunchAttributeValue * value)
cuda.bindings.runtime.cudaGraphKernelNodeSetAttribute(hNode, attr, value)#

Sets a node’s attribute.

Args:
hNode (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

attr (hipLaunchAttributeID) – IN:
  • The attribute type to be set.

value (hipLaunchAttributeValue/object) – IN:
  • const pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphKernelNodeSetAttribute(hipGraphNode_t hNode, hipLaunchAttributeID attr, const hipLaunchAttributeValue * value)
cuda.bindings.runtime.cuGraphKernelNodeGetAttribute(hNode, attr, value)#

Gets a node’s attribute.

Args:
hNode (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

attr (hipLaunchAttributeID) – IN:
  • The attribute type to be set.

value (hipLaunchAttributeValue/object) – IN:
  • const pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphKernelNodeGetAttribute(hipGraphNode_t hNode, hipLaunchAttributeID attr, hipLaunchAttributeValue * value)
cuda.bindings.runtime.cudaGraphKernelNodeGetAttribute(hNode, attr, value)#

Gets a node’s attribute.

Args:
hNode (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

attr (hipLaunchAttributeID) – IN:
  • The attribute type to be set.

value (hipLaunchAttributeValue/object) – IN:
  • const pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphKernelNodeGetAttribute(hipGraphNode_t hNode, hipLaunchAttributeID attr, hipLaunchAttributeValue * value)
cuda.bindings.runtime.cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams)#

Sets the parameters of a memcpy node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • Instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

pNodeParams (hipMemcpy3DParms/object) – IN:
  • const pointer to the kernel node parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecMemcpyNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, hipMemcpy3DParms * pNodeParams)
cuda.bindings.runtime.cudaGraphAddMemcpyNode1D(graph, pDependencies, numDependencies, dst, src, count, kind)#

Creates a 1D memcpy node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to add the created node to.

pDependencies (Pointer/object) – IN:
  • const pointer to the dependencies of the memcpy execution node.

numDependencies (int) – IN:
  • The number of dependencies.

dst (Pointer/object) – IN:
  • Pointer to memory address of the destination.

src (Pointer/object) – IN:
  • Pointer to memory address of the source.

count (int) – IN:
  • Size of the memory to copy.

kind (hipMemcpyKind) – IN:
  • Type of memory copy.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddMemcpyNode1D(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, void * dst, const void * src, size_t count, hipMemcpyKind kind)
cuda.bindings.runtime.cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind)#

Sets a memcpy node’s parameters to perform a 1-dimensional copy.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

dst (Pointer/object) – IN:
  • Pointer to memory address of the destination.

src (Pointer/object) – IN:
  • Pointer to memory address of the source.

count (int) – IN:
  • Size of the memory to copy.

kind (hipMemcpyKind) – IN:
  • Type of memory copy.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphMemcpyNodeSetParams1D(hipGraphNode_t node, void * dst, const void * src, size_t count, hipMemcpyKind kind)
cuda.bindings.runtime.cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind)#

Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional copy.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • Instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

dst (Pointer/object) – IN:
  • Pointer to memory address of the destination.

src (Pointer/object) – IN:
  • Pointer to memory address of the source.

count (int) – IN:
  • Size of the memory to copy.

kind (hipMemcpyKind) – IN:
  • Type of memory copy.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecMemcpyNodeSetParams1D(hipGraphExec_t hGraphExec, hipGraphNode_t node, void * dst, const void * src, size_t count, hipMemcpyKind kind)
cuda.bindings.runtime.cudaGraphAddMemcpyNodeFromSymbol(graph, pDependencies, numDependencies, dst, symbol, count, offset, kind)#

Creates a memcpy node to copy from a symbol on the device and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to add the created node to.

pDependencies (Pointer/object) – IN:
  • const pointer to the dependencies of the memcpy execution node.

numDependencies (int) – IN:
  • Number of the dependencies.

dst (Pointer/object) – IN:
  • Pointer to memory address of the destination.

symbol (Pointer/object) – IN:
  • Device symbol address.

count (int) – IN:
  • Size of the memory to copy.

offset (int) – IN:
  • Offset from start of symbol in bytes.

kind (hipMemcpyKind) – IN:
  • Type of memory copy.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddMemcpyNodeFromSymbol(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, void * dst, const void * symbol, size_t count, size_t offset, hipMemcpyKind kind)
cuda.bindings.runtime.cudaGraphMemcpyNodeSetParamsFromSymbol(node, dst, symbol, count, offset, kind)#

Sets a memcpy node’s parameters to copy from a symbol on the device.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

dst (Pointer/object) – IN:
  • Pointer to memory address of the destination.

symbol (Pointer/object) – IN:
  • Device symbol address.

count (int) – IN:
  • Size of the memory to copy.

offset (int) – IN:
  • Offset from start of symbol in bytes.

kind (hipMemcpyKind) – IN:
  • Type of memory copy.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphMemcpyNodeSetParamsFromSymbol(hipGraphNode_t node, void * dst, const void * symbol, size_t count, size_t offset, hipMemcpyKind kind)
cuda.bindings.runtime.cudaGraphExecMemcpyNodeSetParamsFromSymbol(hGraphExec, node, dst, symbol, count, offset, kind)#

Sets the parameters for a memcpy node in the given graphExec to copy from a symbol on the * device.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • Instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

dst (Pointer/object) – IN:
  • Pointer to memory address of the destination.

symbol (Pointer/object) – IN:
  • Device symbol address.

count (int) – IN:
  • Size of the memory to copy.

offset (int) – IN:
  • Offset from start of symbol in bytes.

kind (hipMemcpyKind) – IN:
  • Type of memory copy.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecMemcpyNodeSetParamsFromSymbol(hipGraphExec_t hGraphExec, hipGraphNode_t node, void * dst, const void * symbol, size_t count, size_t offset, hipMemcpyKind kind)
cuda.bindings.runtime.cudaGraphAddMemcpyNodeToSymbol(graph, pDependencies, numDependencies, symbol, src, count, offset, kind)#

Creates a memcpy node to copy to a symbol on the device and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of graph to add the created node to.

pDependencies (Pointer/object) – IN:
  • const pointer to the dependencies on the memcpy execution node.

numDependencies (int) – IN:
  • Number of dependencies.

symbol (Pointer/object) – IN:
  • Device symbol address.

src (Pointer/object) – IN:
  • Pointer to memory address of the src.

count (int) – IN:
  • Size of the memory to copy.

offset (int) – IN:
  • Offset from start of symbol in bytes.

kind (hipMemcpyKind) – IN:
  • Type of memory copy.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddMemcpyNodeToSymbol(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const void * symbol, const void * src, size_t count, size_t offset, hipMemcpyKind kind)
cuda.bindings.runtime.cudaGraphMemcpyNodeSetParamsToSymbol(node, symbol, src, count, offset, kind)#

Sets a memcpy node’s parameters to copy to a symbol on the device.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

symbol (Pointer/object) – IN:
  • Device symbol address.

src (Pointer/object) – IN:
  • Pointer to memory address of the src.

count (int) – IN:
  • Size of the memory to copy.

offset (int) – IN:
  • Offset from start of symbol in bytes.

kind (hipMemcpyKind) – IN:
  • Type of memory copy.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphMemcpyNodeSetParamsToSymbol(hipGraphNode_t node, const void * symbol, const void * src, size_t count, size_t offset, hipMemcpyKind kind)
cuda.bindings.runtime.cudaGraphExecMemcpyNodeSetParamsToSymbol(hGraphExec, node, symbol, src, count, offset, kind)#

Sets the parameters for a memcpy node in the given graphExec to copy to a symbol on the device.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • Instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

symbol (Pointer/object) – IN:
  • Device symbol address.

src (Pointer/object) – IN:
  • Pointer to memory address of the src.

count (int) – IN:
  • Size of the memory to copy.

offset (int) – IN:
  • Offset from start of symbol in bytes.

kind (hipMemcpyKind) – IN:
  • Type of memory copy.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecMemcpyNodeSetParamsToSymbol(hipGraphExec_t hGraphExec, hipGraphNode_t node, const void * symbol, const void * src, size_t count, size_t offset, hipMemcpyKind kind)
cuda.bindings.runtime.cudaGraphAddMemsetNode(graph, pDependencies, numDependencies, pMemsetParams)#

Creates a memset node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph to add the created node to.

pDependencies (Pointer/object) – IN:
  • const pointer to the dependencies on the memset execution node.

numDependencies (int) – IN:
  • Number of dependencies.

pMemsetParams (hipMemsetParams/object) – IN:
  • const pointer to the parameters for the memory set.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddMemsetNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipMemsetParams * pMemsetParams)
cuda.bindings.runtime.cuGraphMemsetNodeGetParams(node)#

Gets a memset node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to get parameters of.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphMemsetNodeGetParams(hipGraphNode_t node, hipMemsetParams * pNodeParams)
cuda.bindings.runtime.cudaGraphMemsetNodeGetParams(node)#

Gets a memset node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to get parameters of.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphMemsetNodeGetParams(hipGraphNode_t node, hipMemsetParams * pNodeParams)
cuda.bindings.runtime.cuGraphMemsetNodeSetParams(node, pNodeParams)#

Sets a memset node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

pNodeParams (hipMemsetParams/object) – IN:
  • Pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphMemsetNodeSetParams(hipGraphNode_t node, const hipMemsetParams * pNodeParams)
cuda.bindings.runtime.cudaGraphMemsetNodeSetParams(node, pNodeParams)#

Sets a memset node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

pNodeParams (hipMemsetParams/object) – IN:
  • Pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphMemsetNodeSetParams(hipGraphNode_t node, const hipMemsetParams * pNodeParams)
cuda.bindings.runtime.cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams)#

Sets the parameters for a memset node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • Instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

pNodeParams (hipMemsetParams/object) – IN:
  • Pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecMemsetNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipMemsetParams * pNodeParams)
cuda.bindings.runtime.cuGraphAddHostNode(graph, pDependencies, numDependencies, pNodeParams)#

Creates a host execution node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph to add the created node to.

pDependencies (Pointer/object) – IN:
  • const pointer to the dependencies of the memset execution node.

numDependencies (int) – IN:
  • Number of dependencies.

pNodeParams (hipHostNodeParams/object) – IN:
  • Pointer to the parameters.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddHostNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipHostNodeParams * pNodeParams)
cuda.bindings.runtime.cudaGraphAddHostNode(graph, pDependencies, numDependencies, pNodeParams)#

Creates a host execution node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph to add the created node to.

pDependencies (Pointer/object) – IN:
  • const pointer to the dependencies of the memset execution node.

numDependencies (int) – IN:
  • Number of dependencies.

pNodeParams (hipHostNodeParams/object) – IN:
  • Pointer to the parameters.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddHostNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipHostNodeParams * pNodeParams)
cuda.bindings.runtime.cuGraphHostNodeGetParams(node)#

Returns a host node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to get parameters of.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphHostNodeGetParams(hipGraphNode_t node, hipHostNodeParams * pNodeParams)
cuda.bindings.runtime.cudaGraphHostNodeGetParams(node)#

Returns a host node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to get parameters of.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphHostNodeGetParams(hipGraphNode_t node, hipHostNodeParams * pNodeParams)
cuda.bindings.runtime.cuGraphHostNodeSetParams(node, pNodeParams)#

Sets a host node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

pNodeParams (hipHostNodeParams/object) – IN:
  • Pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphHostNodeSetParams(hipGraphNode_t node, const hipHostNodeParams * pNodeParams)
cuda.bindings.runtime.cudaGraphHostNodeSetParams(node, pNodeParams)#

Sets a host node’s parameters.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

pNodeParams (hipHostNodeParams/object) – IN:
  • Pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphHostNodeSetParams(hipGraphNode_t node, const hipHostNodeParams * pNodeParams)
cuda.bindings.runtime.cuGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams)#

Sets the parameters for a host node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • Instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

pNodeParams (hipHostNodeParams/object) – IN:
  • Pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecHostNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipHostNodeParams * pNodeParams)
cuda.bindings.runtime.cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams)#

Sets the parameters for a host node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • Instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • Instance of the node to set parameters of.

pNodeParams (hipHostNodeParams/object) – IN:
  • Pointer to the parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecHostNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipHostNodeParams * pNodeParams)
cuda.bindings.runtime.cuGraphAddChildGraphNode(graph, pDependencies, numDependencies, childGraph)#

Creates a child graph node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph to add the created node.

pDependencies (Pointer/object) – IN:
  • const pointer to the dependencies of the memset execution node.

numDependencies (int) – IN:
  • Number of dependencies.

childGraph (ihipGraph/object) – IN:
  • Graph to clone into this node

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddChildGraphNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipGraph_t childGraph)
cuda.bindings.runtime.cudaGraphAddChildGraphNode(graph, pDependencies, numDependencies, childGraph)#

Creates a child graph node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph to add the created node.

pDependencies (Pointer/object) – IN:
  • const pointer to the dependencies of the memset execution node.

numDependencies (int) – IN:
  • Number of dependencies.

childGraph (ihipGraph/object) – IN:
  • Graph to clone into this node

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddChildGraphNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipGraph_t childGraph)
cuda.bindings.runtime.cuGraphChildGraphNodeGetGraph(node)#

Gets a handle to the embedded graph of a child graph node.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to get child graph of.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphChildGraphNodeGetGraph(hipGraphNode_t node, hipGraph_t * pGraph)
cuda.bindings.runtime.cudaGraphChildGraphNodeGetGraph(node)#

Gets a handle to the embedded graph of a child graph node.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to get child graph of.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphChildGraphNodeGetGraph(hipGraphNode_t node, hipGraph_t * pGraph)
cuda.bindings.runtime.cuGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph)#

Updates node parameters in the child graph node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • node from the graph which was used to instantiate graphExec.

childGraph (ihipGraph/object) – IN:
  • child graph with updated parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecChildGraphNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, hipGraph_t childGraph)
cuda.bindings.runtime.cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph)#

Updates node parameters in the child graph node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • node from the graph which was used to instantiate graphExec.

childGraph (ihipGraph/object) – IN:
  • child graph with updated parameters.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecChildGraphNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, hipGraph_t childGraph)
cuda.bindings.runtime.cuGraphAddEmptyNode(graph, pDependencies, numDependencies)#

Creates an empty node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph the node is added to.

pDependencies (Pointer/object) – IN:
  • const pointer to the node dependencies.

numDependencies (int) – IN:
  • Number of dependencies.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddEmptyNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies)
cuda.bindings.runtime.cudaGraphAddEmptyNode(graph, pDependencies, numDependencies)#

Creates an empty node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph the node is added to.

pDependencies (Pointer/object) – IN:
  • const pointer to the node dependencies.

numDependencies (int) – IN:
  • Number of dependencies.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddEmptyNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies)
cuda.bindings.runtime.cuGraphAddEventRecordNode(graph, pDependencies, numDependencies, event)#

Creates an event record node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph the node is added to.

pDependencies (Pointer/object) – IN:
  • const pointer to the node dependencies.

numDependencies (int) – IN:
  • Number of dependencies.

event (ihipEvent_t/object) – IN:
  • Event of the node.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddEventRecordNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipEvent_t event)
cuda.bindings.runtime.cudaGraphAddEventRecordNode(graph, pDependencies, numDependencies, event)#

Creates an event record node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph the node is added to.

pDependencies (Pointer/object) – IN:
  • const pointer to the node dependencies.

numDependencies (int) – IN:
  • Number of dependencies.

event (ihipEvent_t/object) – IN:
  • Event of the node.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddEventRecordNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipEvent_t event)
cuda.bindings.runtime.cuGraphEventRecordNodeGetEvent(node)#

Returns the event associated with an event record node.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to get event of.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphEventRecordNodeGetEvent(hipGraphNode_t node, hipEvent_t * event_out)
cuda.bindings.runtime.cudaGraphEventRecordNodeGetEvent(node)#

Returns the event associated with an event record node.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to get event of.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphEventRecordNodeGetEvent(hipGraphNode_t node, hipEvent_t * event_out)
cuda.bindings.runtime.cuGraphEventRecordNodeSetEvent(node, event)#

Sets an event record node’s event.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set event to.

event (ihipEvent_t/object) – IN:
  • Pointer to the event.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphEventRecordNodeSetEvent(hipGraphNode_t node, hipEvent_t event)
cuda.bindings.runtime.cudaGraphEventRecordNodeSetEvent(node, event)#

Sets an event record node’s event.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set event to.

event (ihipEvent_t/object) – IN:
  • Pointer to the event.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphEventRecordNodeSetEvent(hipGraphNode_t node, hipEvent_t event)
cuda.bindings.runtime.cuGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event)#

Sets the event for an event record node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

hNode (hipGraphNode/object) – IN:
  • node from the graph which was used to instantiate graphExec.

event (ihipEvent_t/object) – IN:
  • pointer to the event.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecEventRecordNodeSetEvent(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, hipEvent_t event)
cuda.bindings.runtime.cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event)#

Sets the event for an event record node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

hNode (hipGraphNode/object) – IN:
  • node from the graph which was used to instantiate graphExec.

event (ihipEvent_t/object) – IN:
  • pointer to the event.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecEventRecordNodeSetEvent(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, hipEvent_t event)
cuda.bindings.runtime.cuGraphAddEventWaitNode(graph, pDependencies, numDependencies, event)#

Creates an event wait node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph the node to be added.

pDependencies (Pointer/object) – IN:
  • const pointer to the node dependencies.

numDependencies (int) – IN:
  • Number of dependencies.

event (ihipEvent_t/object) – IN:
  • Event for the node.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddEventWaitNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipEvent_t event)
cuda.bindings.runtime.cudaGraphAddEventWaitNode(graph, pDependencies, numDependencies, event)#

Creates an event wait node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph the node to be added.

pDependencies (Pointer/object) – IN:
  • const pointer to the node dependencies.

numDependencies (int) – IN:
  • Number of dependencies.

event (ihipEvent_t/object) – IN:
  • Event for the node.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddEventWaitNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipEvent_t event)
cuda.bindings.runtime.cuGraphEventWaitNodeGetEvent(node)#

Returns the event associated with an event wait node.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to get event of.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphEventWaitNodeGetEvent(hipGraphNode_t node, hipEvent_t * event_out)
cuda.bindings.runtime.cudaGraphEventWaitNodeGetEvent(node)#

Returns the event associated with an event wait node.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to get event of.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphEventWaitNodeGetEvent(hipGraphNode_t node, hipEvent_t * event_out)
cuda.bindings.runtime.cuGraphEventWaitNodeSetEvent(node, event)#

Sets an event wait node’s event.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set event of.

event (ihipEvent_t/object) – IN:
  • Pointer to the event.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphEventWaitNodeSetEvent(hipGraphNode_t node, hipEvent_t event)
cuda.bindings.runtime.cudaGraphEventWaitNodeSetEvent(node, event)#

Sets an event wait node’s event.

Args:
node (hipGraphNode/object) – IN:
  • Instance of the node to set event of.

event (ihipEvent_t/object) – IN:
  • Pointer to the event.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphEventWaitNodeSetEvent(hipGraphNode_t node, hipEvent_t event)
cuda.bindings.runtime.cuGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event)#

Sets the event for an event record node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

hNode (hipGraphNode/object) – IN:
  • node from the graph which was used to instantiate graphExec.

event (ihipEvent_t/object) – IN:
  • pointer to the event.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecEventWaitNodeSetEvent(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, hipEvent_t event)
cuda.bindings.runtime.cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event)#

Sets the event for an event record node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

hNode (hipGraphNode/object) – IN:
  • node from the graph which was used to instantiate graphExec.

event (ihipEvent_t/object) – IN:
  • pointer to the event.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecEventWaitNodeSetEvent(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, hipEvent_t event)
cuda.bindings.runtime.cuGraphAddMemAllocNode(graph, pDependencies, numDependencies, pNodeParams)#

Creates a memory allocation node and adds it to a graph

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph node to be added

pDependencies (Pointer/object) – IN:
  • Const pointer to the node dependencies

numDependencies (int) – IN:
  • The number of dependencies

pNodeParams (hipMemAllocNodeParams/object) – IN,OUT:
  • Node parameters for memory allocation, returns a pointer to the

allocated memory.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddMemAllocNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipMemAllocNodeParams * pNodeParams)
cuda.bindings.runtime.cudaGraphAddMemAllocNode(graph, pDependencies, numDependencies, pNodeParams)#

Creates a memory allocation node and adds it to a graph

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph node to be added

pDependencies (Pointer/object) – IN:
  • Const pointer to the node dependencies

numDependencies (int) – IN:
  • The number of dependencies

pNodeParams (hipMemAllocNodeParams/object) – IN,OUT:
  • Node parameters for memory allocation, returns a pointer to the

allocated memory.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddMemAllocNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipMemAllocNodeParams * pNodeParams)
cuda.bindings.runtime.cuGraphMemAllocNodeGetParams(node)#

Returns parameters for memory allocation node

Args:
node (hipGraphNode/object) – IN:
  • Memory allocation node to query

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphMemAllocNodeGetParams(hipGraphNode_t node, hipMemAllocNodeParams * pNodeParams)
cuda.bindings.runtime.cudaGraphMemAllocNodeGetParams(node)#

Returns parameters for memory allocation node

Args:
node (hipGraphNode/object) – IN:
  • Memory allocation node to query

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphMemAllocNodeGetParams(hipGraphNode_t node, hipMemAllocNodeParams * pNodeParams)
cuda.bindings.runtime.cudaGraphAddMemFreeNode(graph, pDependencies, numDependencies, dev_ptr)#

Creates a memory free node and adds it to a graph

Args:
graph (ihipGraph/object) – IN:
  • Instance of the graph node to be added

pDependencies (Pointer/object) – IN:
  • Const pointer to the node dependencies

numDependencies (int) – IN:
  • The number of dependencies

dev_ptr (Pointer/object) – IN:
  • Pointer to the memory to be freed

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddMemFreeNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, void * dev_ptr)
cuda.bindings.runtime.cuGraphMemFreeNodeGetParams(node, dev_ptr)#

Returns parameters for memory free node

Args:
node (hipGraphNode/object) – IN:
  • Memory free node to query

dev_ptr (Pointer/object) – OUT:
  • Device pointer of the specified memory free node

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphMemFreeNodeGetParams(hipGraphNode_t node, void * dev_ptr)
cuda.bindings.runtime.cudaGraphMemFreeNodeGetParams(node, dev_ptr)#

Returns parameters for memory free node

Args:
node (hipGraphNode/object) – IN:
  • Memory free node to query

dev_ptr (Pointer/object) – OUT:
  • Device pointer of the specified memory free node

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphMemFreeNodeGetParams(hipGraphNode_t node, void * dev_ptr)
cuda.bindings.runtime.cuDeviceGetGraphMemAttribute(device, attr, value)#

Get the mem attribute for graphs.

Args:
device (int) – IN:
  • Device to get attributes from

attr (hipGraphMemAttributeType) – IN:
  • Attribute type to be queried

value (Pointer/object) – OUT:
  • Value of the queried attribute

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice

C signature

hipError_t hipDeviceGetGraphMemAttribute(int device, hipGraphMemAttributeType attr, void * value)
cuda.bindings.runtime.cudaDeviceGetGraphMemAttribute(device, attr, value)#

Get the mem attribute for graphs.

Args:
device (int) – IN:
  • Device to get attributes from

attr (hipGraphMemAttributeType) – IN:
  • Attribute type to be queried

value (Pointer/object) – OUT:
  • Value of the queried attribute

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice

C signature

hipError_t hipDeviceGetGraphMemAttribute(int device, hipGraphMemAttributeType attr, void * value)
cuda.bindings.runtime.cuDeviceSetGraphMemAttribute(device, attr, value)#

Set the mem attribute for graphs.

Args:
device (int) – IN:
  • Device to set attribute of.

attr (hipGraphMemAttributeType) – IN:
  • Attribute type to be set.

value (Pointer/object) – IN:
  • Value of the attribute.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice

C signature

hipError_t hipDeviceSetGraphMemAttribute(int device, hipGraphMemAttributeType attr, void * value)
cuda.bindings.runtime.cudaDeviceSetGraphMemAttribute(device, attr, value)#

Set the mem attribute for graphs.

Args:
device (int) – IN:
  • Device to set attribute of.

attr (hipGraphMemAttributeType) – IN:
  • Attribute type to be set.

value (Pointer/object) – IN:
  • Value of the attribute.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice

C signature

hipError_t hipDeviceSetGraphMemAttribute(int device, hipGraphMemAttributeType attr, void * value)
cuda.bindings.runtime.cuDeviceGraphMemTrim(device)#

Free unused memory reserved for graphs on a specific device and return it back to the OS.

Args:
device (int) – IN:
  • Device for which memory should be trimmed

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice

C signature

hipError_t hipDeviceGraphMemTrim(int device)
cuda.bindings.runtime.cudaDeviceGraphMemTrim(device)#

Free unused memory reserved for graphs on a specific device and return it back to the OS.

Args:
device (int) – IN:
  • Device for which memory should be trimmed

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidDevice

C signature

hipError_t hipDeviceGraphMemTrim(int device)
cuda.bindings.runtime.cuUserObjectCreate(ptr, destroy, initialRefcount, flags)#

Create an instance of userObject to manage lifetime of a resource.

Args:
ptr (Pointer/object) – IN:
  • pointer to pass to destroy function.

destroy (hipHostFn_t/object) – IN:
  • destroy callback to remove resource.

initialRefcount (int) – IN:
  • reference to resource.

flags (int) – IN:
  • flags passed to API.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipUserObjectCreate(hipUserObject_t * object_out, void * ptr, hipHostFn_t destroy, unsigned int initialRefcount, unsigned int flags)
cuda.bindings.runtime.cudaUserObjectCreate(ptr, destroy, initialRefcount, flags)#

Create an instance of userObject to manage lifetime of a resource.

Args:
ptr (Pointer/object) – IN:
  • pointer to pass to destroy function.

destroy (hipHostFn_t/object) – IN:
  • destroy callback to remove resource.

initialRefcount (int) – IN:
  • reference to resource.

flags (int) – IN:
  • flags passed to API.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipUserObjectCreate(hipUserObject_t * object_out, void * ptr, hipHostFn_t destroy, unsigned int initialRefcount, unsigned int flags)
cuda.bindings.runtime.cuUserObjectRelease(object, count)#

Release number of references to resource.

Args:
object (hipUserObject/object) – IN:
  • pointer to instace of userobj.

count (int) – IN:
  • reference to resource to be retained.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipUserObjectRelease(hipUserObject_t object, unsigned int count)
cuda.bindings.runtime.cudaUserObjectRelease(object, count)#

Release number of references to resource.

Args:
object (hipUserObject/object) – IN:
  • pointer to instace of userobj.

count (int) – IN:
  • reference to resource to be retained.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipUserObjectRelease(hipUserObject_t object, unsigned int count)
cuda.bindings.runtime.cuUserObjectRetain(object, count)#

Retain number of references to resource.

Args:
object (hipUserObject/object) – IN:
  • pointer to instace of userobj.

count (int) – IN:
  • reference to resource to be retained.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipUserObjectRetain(hipUserObject_t object, unsigned int count)
cuda.bindings.runtime.cudaUserObjectRetain(object, count)#

Retain number of references to resource.

Args:
object (hipUserObject/object) – IN:
  • pointer to instace of userobj.

count (int) – IN:
  • reference to resource to be retained.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipUserObjectRetain(hipUserObject_t object, unsigned int count)
cuda.bindings.runtime.cuGraphRetainUserObject(graph, object, count, flags)#

Retain user object for graphs.

Args:
graph (ihipGraph/object) – IN:
  • pointer to graph to retain the user object for.

object (hipUserObject/object) – IN:
  • pointer to instace of userobj.

count (int) – IN:
  • reference to resource to be retained.

flags (int) – IN:
  • flags passed to API.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphRetainUserObject(hipGraph_t graph, hipUserObject_t object, unsigned int count, unsigned int flags)
cuda.bindings.runtime.cudaGraphRetainUserObject(graph, object, count, flags)#

Retain user object for graphs.

Args:
graph (ihipGraph/object) – IN:
  • pointer to graph to retain the user object for.

object (hipUserObject/object) – IN:
  • pointer to instace of userobj.

count (int) – IN:
  • reference to resource to be retained.

flags (int) – IN:
  • flags passed to API.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphRetainUserObject(hipGraph_t graph, hipUserObject_t object, unsigned int count, unsigned int flags)
cuda.bindings.runtime.cuGraphReleaseUserObject(graph, object, count)#

Release user object from graphs.

Args:
graph (ihipGraph/object) – IN:
  • pointer to graph to retain the user object for.

object (hipUserObject/object) – IN:
  • pointer to instace of userobj.

count (int) – IN:
  • reference to resource to be retained.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphReleaseUserObject(hipGraph_t graph, hipUserObject_t object, unsigned int count)
cuda.bindings.runtime.cudaGraphReleaseUserObject(graph, object, count)#

Release user object from graphs.

Args:
graph (ihipGraph/object) – IN:
  • pointer to graph to retain the user object for.

object (hipUserObject/object) – IN:
  • pointer to instace of userobj.

count (int) – IN:
  • reference to resource to be retained.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphReleaseUserObject(hipGraph_t graph, hipUserObject_t object, unsigned int count)
cuda.bindings.runtime.cuGraphDebugDotPrint(graph, path, flags)#

Write a DOT file describing graph structure.

Args:
graph (ihipGraph/object) – IN:
  • graph object for which DOT file has to be generated.

path (CStr/object) – IN:
  • path to write the DOT file.

flags (int) – IN:
  • Flags from hipGraphDebugDotFlags to get additional node information.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorOperatingSystem

C signature

hipError_t hipGraphDebugDotPrint(hipGraph_t graph, const char * path, unsigned int flags)
cuda.bindings.runtime.cudaGraphDebugDotPrint(graph, path, flags)#

Write a DOT file describing graph structure.

Args:
graph (ihipGraph/object) – IN:
  • graph object for which DOT file has to be generated.

path (CStr/object) – IN:
  • path to write the DOT file.

flags (int) – IN:
  • Flags from hipGraphDebugDotFlags to get additional node information.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorOperatingSystem

C signature

hipError_t hipGraphDebugDotPrint(hipGraph_t graph, const char * path, unsigned int flags)
cuda.bindings.runtime.cuGraphKernelNodeCopyAttributes(hSrc)#

Copies attributes from source node to destination node.

Copies attributes from source node to destination node. Both node must have the same context.

Args:
hSrc (hipGraphNode/object) – IN:
  • Source node.

For list of attributes see ::hipKernelNodeAttrID.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphKernelNodeCopyAttributes(hipGraphNode_t hSrc, hipGraphNode_t hDst)
cuda.bindings.runtime.cudaGraphKernelNodeCopyAttributes(hSrc)#

Copies attributes from source node to destination node.

Copies attributes from source node to destination node. Both node must have the same context.

Args:
hSrc (hipGraphNode/object) – IN:
  • Source node.

For list of attributes see ::hipKernelNodeAttrID.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphKernelNodeCopyAttributes(hipGraphNode_t hSrc, hipGraphNode_t hDst)
cuda.bindings.runtime.cuGraphNodeSetEnabled(hGraphExec, hNode, isEnabled)#

Enables or disables the specified node in the given graphExec

Sets hNode to be either enabled or disabled. Disabled nodes are functionally equivalent to empty nodes until they are reenabled. Existing node parameters are not affected by disabling/enabling the node.

The node is identified by the corresponding hNode in the non-executable graph, from which the executable graph was instantiated.

hNode must not have been removed from the original graph.

Note:

Currently only kernel, memset and memcpy nodes are supported.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • The executable graph in which to set the specified node.

hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

isEnabled (int) – IN:
  • Node is enabled if != 0, otherwise the node is disabled.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue,

C signature

hipError_t hipGraphNodeSetEnabled(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, unsigned int isEnabled)
cuda.bindings.runtime.cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled)#

Enables or disables the specified node in the given graphExec

Sets hNode to be either enabled or disabled. Disabled nodes are functionally equivalent to empty nodes until they are reenabled. Existing node parameters are not affected by disabling/enabling the node.

The node is identified by the corresponding hNode in the non-executable graph, from which the executable graph was instantiated.

hNode must not have been removed from the original graph.

Note:

Currently only kernel, memset and memcpy nodes are supported.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • The executable graph in which to set the specified node.

hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

isEnabled (int) – IN:
  • Node is enabled if != 0, otherwise the node is disabled.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue,

C signature

hipError_t hipGraphNodeSetEnabled(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, unsigned int isEnabled)
cuda.bindings.runtime.cuGraphNodeGetEnabled(hGraphExec, hNode)#

Query whether a node in the given graphExec is enabled

Sets isEnabled to 1 if hNode is enabled, or 0 if it is disabled.

The node is identified by the corresponding node in the non-executable graph, from which the executable graph was instantiated.

hNode must not have been removed from the original graph.

Note:

Currently only kernel, memset and memcpy nodes are supported.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • The executable graph in which to set the specified node.

hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphNodeGetEnabled(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, unsigned int * isEnabled)
cuda.bindings.runtime.cudaGraphNodeGetEnabled(hGraphExec, hNode)#

Query whether a node in the given graphExec is enabled

Sets isEnabled to 1 if hNode is enabled, or 0 if it is disabled.

The node is identified by the corresponding node in the non-executable graph, from which the executable graph was instantiated.

hNode must not have been removed from the original graph.

Note:

Currently only kernel, memset and memcpy nodes are supported.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • The executable graph in which to set the specified node.

hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphNodeGetEnabled(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, unsigned int * isEnabled)
cuda.bindings.runtime.cuGraphAddExternalSemaphoresWaitNode(graph, pDependencies, numDependencies, nodeParams)#

Creates a external semaphor wait node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • instance of the graph to add the created node.

pDependencies (Pointer/object) – IN:
  • const pointer to the dependencies on the memset execution node.

numDependencies (int) – IN:
  • the number of the dependencies.

nodeParams (hipExternalSemaphoreWaitNodeParams/object) – IN:

-pointer to the parameters.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddExternalSemaphoresWaitNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipExternalSemaphoreWaitNodeParams * nodeParams)
cuda.bindings.runtime.cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies, numDependencies, nodeParams)#

Creates a external semaphor wait node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • instance of the graph to add the created node.

pDependencies (Pointer/object) – IN:
  • const pointer to the dependencies on the memset execution node.

numDependencies (int) – IN:
  • the number of the dependencies.

nodeParams (hipExternalSemaphoreWaitNodeParams/object) – IN:

-pointer to the parameters.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddExternalSemaphoresWaitNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipExternalSemaphoreWaitNodeParams * nodeParams)
cuda.bindings.runtime.cuGraphAddExternalSemaphoresSignalNode(graph, pDependencies, numDependencies, nodeParams)#

Creates a external semaphor signal node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • instance of the graph to add the created node.

pDependencies (Pointer/object) – IN:
  • const pointer to the dependencies on the memset execution node.

numDependencies (int) – IN:
  • the number of the dependencies.

nodeParams (hipExternalSemaphoreSignalNodeParams/object) – IN:

-pointer to the parameters.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddExternalSemaphoresSignalNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipExternalSemaphoreSignalNodeParams * nodeParams)
cuda.bindings.runtime.cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies, numDependencies, nodeParams)#

Creates a external semaphor signal node and adds it to a graph.

Args:
graph (ihipGraph/object) – IN:
  • instance of the graph to add the created node.

pDependencies (Pointer/object) – IN:
  • const pointer to the dependencies on the memset execution node.

numDependencies (int) – IN:
  • the number of the dependencies.

nodeParams (hipExternalSemaphoreSignalNodeParams/object) – IN:

-pointer to the parameters.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphAddExternalSemaphoresSignalNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipExternalSemaphoreSignalNodeParams * nodeParams)
cuda.bindings.runtime.cuGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams)#

Updates node parameters in the external semaphore signal node.

Args:
hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

nodeParams (hipExternalSemaphoreSignalNodeParams/object) – IN:
  • Pointer to the params to be set.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExternalSemaphoresSignalNodeSetParams(hipGraphNode_t hNode, const hipExternalSemaphoreSignalNodeParams * nodeParams)
cuda.bindings.runtime.cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams)#

Updates node parameters in the external semaphore signal node.

Args:
hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

nodeParams (hipExternalSemaphoreSignalNodeParams/object) – IN:
  • Pointer to the params to be set.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExternalSemaphoresSignalNodeSetParams(hipGraphNode_t hNode, const hipExternalSemaphoreSignalNodeParams * nodeParams)
cuda.bindings.runtime.cuGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams)#

Updates node parameters in the external semaphore wait node.

Args:
hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

nodeParams (hipExternalSemaphoreWaitNodeParams/object) – IN:
  • Pointer to the params to be set.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExternalSemaphoresWaitNodeSetParams(hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams * nodeParams)
cuda.bindings.runtime.cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams)#

Updates node parameters in the external semaphore wait node.

Args:
hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

nodeParams (hipExternalSemaphoreWaitNodeParams/object) – IN:
  • Pointer to the params to be set.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExternalSemaphoresWaitNodeSetParams(hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams * nodeParams)
cuda.bindings.runtime.cuGraphExternalSemaphoresSignalNodeGetParams(hNode)#

Returns external semaphore signal node params.

Args:
hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphExternalSemaphoresSignalNodeGetParams(hipGraphNode_t hNode, hipExternalSemaphoreSignalNodeParams * params_out)
cuda.bindings.runtime.cudaGraphExternalSemaphoresSignalNodeGetParams(hNode)#

Returns external semaphore signal node params.

Args:
hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphExternalSemaphoresSignalNodeGetParams(hipGraphNode_t hNode, hipExternalSemaphoreSignalNodeParams * params_out)
cuda.bindings.runtime.cuGraphExternalSemaphoresWaitNodeGetParams(hNode)#

Returns external semaphore wait node params.

Args:
hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphExternalSemaphoresWaitNodeGetParams(hipGraphNode_t hNode, hipExternalSemaphoreWaitNodeParams * params_out)
cuda.bindings.runtime.cudaGraphExternalSemaphoresWaitNodeGetParams(hNode)#

Returns external semaphore wait node params.

Args:
hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphExternalSemaphoresWaitNodeGetParams(hipGraphNode_t hNode, hipExternalSemaphoreWaitNodeParams * params_out)
cuda.bindings.runtime.cuGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams)#

Updates node parameters in the external semaphore signal node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • The executable graph in which to set the specified node.

hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

nodeParams (hipExternalSemaphoreSignalNodeParams/object) – IN:
  • Pointer to the params to be set.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecExternalSemaphoresSignalNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipExternalSemaphoreSignalNodeParams * nodeParams)
cuda.bindings.runtime.cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams)#

Updates node parameters in the external semaphore signal node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • The executable graph in which to set the specified node.

hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

nodeParams (hipExternalSemaphoreSignalNodeParams/object) – IN:
  • Pointer to the params to be set.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecExternalSemaphoresSignalNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipExternalSemaphoreSignalNodeParams * nodeParams)
cuda.bindings.runtime.cuGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams)#

Updates node parameters in the external semaphore wait node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • The executable graph in which to set the specified node.

hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

nodeParams (hipExternalSemaphoreWaitNodeParams/object) – IN:
  • Pointer to the params to be set.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecExternalSemaphoresWaitNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams * nodeParams)
cuda.bindings.runtime.cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams)#

Updates node parameters in the external semaphore wait node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • The executable graph in which to set the specified node.

hNode (hipGraphNode/object) – IN:
  • Node from the graph from which graphExec was instantiated.

nodeParams (hipExternalSemaphoreWaitNodeParams/object) – IN:
  • Pointer to the params to be set.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipGraphExecExternalSemaphoresWaitNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams * nodeParams)
cuda.bindings.runtime.cuGraphMemcpyNodeGetParams(hNode)#

Gets a memcpy node’s parameters.

Args:
hNode (hipGraphNode/object) – IN:
  • instance of the node to get parameters from.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDrvGraphMemcpyNodeGetParams(hipGraphNode_t hNode, HIP_MEMCPY3D * nodeParams)
cuda.bindings.runtime.cuGraphMemcpyNodeSetParams(hNode)#

Sets a memcpy node’s parameters.

Args:
hNode (hipGraphNode/object) – IN:
  • instance of the node to Set parameters for.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDrvGraphMemcpyNodeSetParams(hipGraphNode_t hNode, const HIP_MEMCPY3D * nodeParams)
cuda.bindings.runtime.cuGraphAddMemsetNode(hGraph, dependencies, numDependencies, memsetParams, ctx)#

Creates a memset node and adds it to a graph.

Args:
hGraph (ihipGraph/object) – IN:
  • instance of graph to add the created node to.

dependencies (Pointer/object) – IN:
  • const pointer to the dependencies on the memset execution node.

numDependencies (int) – IN:
  • number of the dependencies.

memsetParams (hipMemsetParams/object) – IN:
  • const pointer to the parameters for the memory set.

ctx (ihipCtx_t/object) – IN:
  • cotext related to current device.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDrvGraphAddMemsetNode(hipGraphNode_t * phGraphNode, hipGraph_t hGraph, const hipGraphNode_t * dependencies, size_t numDependencies, const hipMemsetParams * memsetParams, hipCtx_t ctx)
cuda.bindings.runtime.cuGraphAddMemFreeNode(hGraph, dependencies, numDependencies, dptr)#

Creates a memory free node and adds it to a graph

Args:
hGraph (ihipGraph/object) – IN:
  • Instance of the graph the node to be added

dependencies (Pointer/object) – IN:
  • Const pointer to the node dependencies

numDependencies (int) – IN:
  • The number of dependencies

dptr (Pointer/object) – IN:
  • Pointer to the memory to be freed

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipDrvGraphAddMemFreeNode(hipGraphNode_t * phGraphNode, hipGraph_t hGraph, const hipGraphNode_t * dependencies, size_t numDependencies, hipDeviceptr_t dptr)
cuda.bindings.runtime.cuGraphExecMemcpyNodeSetParams(hGraphExec, hNode, copyParams, ctx)#

Sets the parameters for a memcpy node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

hNode (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

copyParams (HIP_MEMCPY3D/object) – IN:
  • const pointer to the memcpy node params.

ctx (ihipCtx_t/object) – IN:
  • cotext related to current device.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipDrvGraphExecMemcpyNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const HIP_MEMCPY3D * copyParams, hipCtx_t ctx)
cuda.bindings.runtime.cuGraphExecMemsetNodeSetParams(hGraphExec, hNode, memsetParams, ctx)#

Sets the parameters for a memset node in the given graphExec.

Args:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

hNode (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

memsetParams (hipMemsetParams/object) – IN:
  • pointer to the parameters.

ctx (ihipCtx_t/object) – IN:
  • cotext related to current device.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipDrvGraphExecMemsetNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipMemsetParams * memsetParams, hipCtx_t ctx)
cuda.bindings.runtime.cuMemAddressFree(devPtr, size)#

Frees an address range reservation made via hipMemAddressReserve

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
devPtr (Pointer/object) – IN:
  • starting address of the range.

size (int) – IN:
  • size of the range.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipMemAddressFree(void * devPtr, size_t size)
cuda.bindings.runtime.cuMemAddressReserve(size, alignment, addr, flags)#

Reserves an address range

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
size (int) – IN:
  • size of the reservation.

alignment (int) – IN:
  • alignment of the address.

addr (Pointer/object) – IN:
  • requested starting address of the range.

flags (int) – IN:
  • currently unused, must be zero.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemAddressReserve(void ** ptr, size_t size, size_t alignment, void * addr, unsigned long long flags)
cuda.bindings.runtime.cuMemCreate(size, prop, flags)#

Creates a memory handle for the allocation described by the properties and given size

This API creates a memory allocation on the target device specified through the prop structure. The prop allocation type must be specified as either hipMemAllocationTypePinned or hipMemAllocationTypeUncached. The prop location type must be specified as hipMemLocationTypeDevice or hipMemLocationTypeHost. Any other value results in hipErrorInvalidValue.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
size (int) – IN:
  • size of the allocation.

prop (hipMemAllocationProp/object) – IN:
  • properties of the allocation.

flags (int) – IN:
  • currently unused, must be zero.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemCreate(hipMemGenericAllocationHandle_t * handle, size_t size, const hipMemAllocationProp * prop, unsigned long long flags)
cuda.bindings.runtime.cuMemExportToShareableHandle(shareableHandle, handle, handleType, flags)#

Exports an allocation to a requested shareable handle type.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
shareableHandle (Pointer/object) – OUT:
  • value of the returned handle.

handle (ihipMemGenericAllocationHandle/object) – IN:
  • handle to share.

handleType (hipMemAllocationHandleType) – IN:
  • type of the shareable handle.

flags (int) – IN:
  • currently unused, must be zero.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipMemExportToShareableHandle(void * shareableHandle, hipMemGenericAllocationHandle_t handle, hipMemAllocationHandleType handleType, unsigned long long flags)
cuda.bindings.runtime.cuMemGetAccess(location, ptr)#

Get the access flags set for the given location and ptr.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
location (hipMemLocation/object) – IN:
  • target location.

ptr (Pointer/object) – IN:
  • address to check the access flags.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemGetAccess(unsigned long long * flags, const hipMemLocation * location, void * ptr)
cuda.bindings.runtime.cuMemGetAllocationGranularity(prop, option)#

Calculates either the minimal or recommended granularity.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
prop (hipMemAllocationProp/object) – IN:
  • location properties.

option (hipMemAllocationGranularity_flags) – IN:
  • determines which granularity to return.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemGetAllocationGranularity(size_t * granularity, const hipMemAllocationProp * prop, hipMemAllocationGranularity_flags option)
cuda.bindings.runtime.cuMemGetAllocationPropertiesFromHandle(handle)#

Retrieve the property structure of the given handle.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
handle (ihipMemGenericAllocationHandle/object) – IN:
  • handle to perform the query on.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemGetAllocationPropertiesFromHandle(hipMemAllocationProp * prop, hipMemGenericAllocationHandle_t handle)
cuda.bindings.runtime.cuMemImportFromShareableHandle(osHandle, shHandleType)#

Imports an allocation from a requested shareable handle type.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
osHandle (Pointer/object) – IN:
  • shareable handle representing the memory allocation.

shHandleType (hipMemAllocationHandleType) – IN:
  • handle type.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemImportFromShareableHandle(hipMemGenericAllocationHandle_t * handle, void * osHandle, hipMemAllocationHandleType shHandleType)
cuda.bindings.runtime.cuMemMap(ptr, size, offset, handle, flags)#

Maps an allocation handle to a reserved virtual address range.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
ptr (Pointer/object) – IN:
  • address where the memory will be mapped.

size (int) – IN:
  • size of the mapping.

offset (int) – IN:
  • offset into the memory, currently must be zero.

handle (ihipMemGenericAllocationHandle/object) – IN:
  • memory allocation to be mapped.

flags (int) – IN:
  • currently unused, must be zero.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipMemMap(void * ptr, size_t size, size_t offset, hipMemGenericAllocationHandle_t handle, unsigned long long flags)
cuda.bindings.runtime.cuMemMapArrayAsync(mapInfoList, count, stream)#

Maps or unmaps subregions of sparse HIP arrays and sparse HIP mipmapped arrays.

Args:
mapInfoList (hipArrayMapInfo/object) – IN:
  • list of hipArrayMapInfo.

count (int) – IN:
  • number of hipArrayMapInfo in mapInfoList.

stream (ihipStream_t/object) – IN:
  • stream identifier for the stream to use for map or unmap operations.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipMemMapArrayAsync(hipArrayMapInfo * mapInfoList, unsigned int count, hipStream_t stream)
cuda.bindings.runtime.cuMemRelease(handle)#

Release a memory handle representing a memory allocation which was previously allocated through hipMemCreate.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
handle (ihipMemGenericAllocationHandle/object) – IN:
  • handle of the memory allocation.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipMemRelease(hipMemGenericAllocationHandle_t handle)
cuda.bindings.runtime.cuMemRetainAllocationHandle(addr)#

Returns the allocation handle of the backing memory allocation given the address.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
addr (Pointer/object) – IN:
  • address to look up.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipMemRetainAllocationHandle(hipMemGenericAllocationHandle_t * handle, void * addr)
cuda.bindings.runtime.cuMemSetAccess(ptr, size, desc, count)#

Set the access flags for each location specified in desc for the given virtual address range.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
ptr (Pointer/object) – IN:
  • starting address of the virtual address range.

size (int) – IN:
  • size of the range.

desc (hipMemAccessDesc/object) – IN:
  • array of hipMemAccessDesc.

count (int) – IN:
  • number of hipMemAccessDesc in desc.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipMemSetAccess(void * ptr, size_t size, const hipMemAccessDesc * desc, size_t count)
cuda.bindings.runtime.cuMemUnmap(ptr, size)#

Unmap memory allocation of a given address range.

Note:

This API is implemented on Linux and is under development on Microsoft Windows.

Args:
ptr (Pointer/object) – IN:
  • starting address of the range to unmap.

size (int) – IN:
  • size of the virtual address range.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

C signature

hipError_t hipMemUnmap(void * ptr, size_t size)
cuda.bindings.runtime.cuGraphicsMapResources(count, resources, stream)#

Maps a graphics resource for access.

Args:
count (int) – IN:
  • Number of resources to map.

resources (Pointer/object) – IN:
  • Pointer of resources to map.

stream (ihipStream_t/object) – IN:
  • Stream for synchronization.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorUnknown, hipErrorInvalidResourceHandle

C signature

hipError_t hipGraphicsMapResources(int count, hipGraphicsResource_t * resources, hipStream_t stream)
cuda.bindings.runtime.cudaGraphicsMapResources(count, resources, stream)#

Maps a graphics resource for access.

Args:
count (int) – IN:
  • Number of resources to map.

resources (Pointer/object) – IN:
  • Pointer of resources to map.

stream (ihipStream_t/object) – IN:
  • Stream for synchronization.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorUnknown, hipErrorInvalidResourceHandle

C signature

hipError_t hipGraphicsMapResources(int count, hipGraphicsResource_t * resources, hipStream_t stream)
cuda.bindings.runtime.cuGraphicsSubResourceGetMappedArray(resource, arrayIndex, mipLevel)#

Get an array through which to access a subresource of a mapped graphics resource.

Note:

In this API, the value of arrayIndex higher than zero is currently not supported.

Args:
resource (_hipGraphicsResource/object) – IN:
  • Mapped resource to access.

arrayIndex (int) – IN:
  • Array index for the subresource to access.

mipLevel (int) – IN:
  • Mipmap level for the subresource to access.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphicsSubResourceGetMappedArray(hipArray_t * array, hipGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel)
cuda.bindings.runtime.cudaGraphicsSubResourceGetMappedArray(resource, arrayIndex, mipLevel)#

Get an array through which to access a subresource of a mapped graphics resource.

Note:

In this API, the value of arrayIndex higher than zero is currently not supported.

Args:
resource (_hipGraphicsResource/object) – IN:
  • Mapped resource to access.

arrayIndex (int) – IN:
  • Array index for the subresource to access.

mipLevel (int) – IN:
  • Mipmap level for the subresource to access.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipGraphicsSubResourceGetMappedArray(hipArray_t * array, hipGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel)
cuda.bindings.runtime.cuGraphicsResourceGetMappedPointer(resource)#

Gets device accessible address of a graphics resource.

Args:
resource (_hipGraphicsResource/object) – IN:
  • Mapped resource to access.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipGraphicsResourceGetMappedPointer(void ** devPtr, size_t * size, hipGraphicsResource_t resource)
cuda.bindings.runtime.cuGraphicsResourceGetMappedPointer_v2(resource)#

Gets device accessible address of a graphics resource.

Args:
resource (_hipGraphicsResource/object) – IN:
  • Mapped resource to access.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipGraphicsResourceGetMappedPointer(void ** devPtr, size_t * size, hipGraphicsResource_t resource)
cuda.bindings.runtime.cudaGraphicsResourceGetMappedPointer(resource)#

Gets device accessible address of a graphics resource.

Args:
resource (_hipGraphicsResource/object) – IN:
  • Mapped resource to access.

Returns:

A tuple of size 3 that contains (in that order):

C signature

hipError_t hipGraphicsResourceGetMappedPointer(void ** devPtr, size_t * size, hipGraphicsResource_t resource)
cuda.bindings.runtime.cuGraphicsUnmapResources(count, resources, stream)#

Unmaps graphics resources.

Args:
count (int) – IN:
  • Number of resources to unmap.

resources (Pointer/object) – IN:
  • Pointer of resources to unmap.

stream (ihipStream_t/object) – IN:
  • Stream for synchronization.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorUnknown, hipErrorContextIsDestroyed

C signature

hipError_t hipGraphicsUnmapResources(int count, hipGraphicsResource_t * resources, hipStream_t stream)
cuda.bindings.runtime.cudaGraphicsUnmapResources(count, resources, stream)#

Unmaps graphics resources.

Args:
count (int) – IN:
  • Number of resources to unmap.

resources (Pointer/object) – IN:
  • Pointer of resources to unmap.

stream (ihipStream_t/object) – IN:
  • Stream for synchronization.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue, hipErrorUnknown, hipErrorContextIsDestroyed

C signature

hipError_t hipGraphicsUnmapResources(int count, hipGraphicsResource_t * resources, hipStream_t stream)
cuda.bindings.runtime.cuGraphicsUnregisterResource(resource)#

Unregisters a graphics resource.

Args:
resource (_hipGraphicsResource/object) – IN:
  • Graphics resources to unregister.

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipGraphicsUnregisterResource(hipGraphicsResource_t resource)
cuda.bindings.runtime.cudaGraphicsUnregisterResource(resource)#

Unregisters a graphics resource.

Args:
resource (_hipGraphicsResource/object) – IN:
  • Graphics resources to unregister.

Returns:

hipError_t: py:obj:hipSuccess

C signature

hipError_t hipGraphicsUnregisterResource(hipGraphicsResource_t resource)
cuda.bindings.runtime.cudaCreateSurfaceObject(pResDesc)#

Create a surface object.

Args:
pResDesc (hipResourceDesc/object) – IN:

Pointer of suface object descriptor.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipError_t hipCreateSurfaceObject(hipSurfaceObject_t * pSurfObject, const hipResourceDesc * pResDesc)
cuda.bindings.runtime.cudaDestroySurfaceObject(surfaceObject)#

Destroy a surface object.

Args:
surfaceObject (__hip_surface/object) – IN:

Surface object to be destroyed.

Returns:

hipError_t: py:obj:hipSuccess, hipErrorInvalidValue

C signature

hipError_t hipDestroySurfaceObject(hipSurfaceObject_t surfaceObject)
cuda.bindings.runtime.HIP_PYTHON_cublasDataType_t_HALLUCINATE: Any#
class cuda.bindings.runtime.cublasDataType_t#

Bases: enum.IntEnum

(No short description)

HIP_R_32F: int#
CUDA_R_32F: int#
HIP_R_64F: int#
CUDA_R_64F: int#
HIP_R_16F: int#
CUDA_R_16F: int#
HIP_R_8I: int#
CUDA_R_8I: int#
HIP_C_32F: int#
CUDA_C_32F: int#
HIP_C_64F: int#
CUDA_C_64F: int#
HIP_C_16F: int#
CUDA_C_16F: int#
HIP_C_8I: int#
CUDA_C_8I: int#
HIP_R_8U: int#
CUDA_R_8U: int#
HIP_C_8U: int#
CUDA_C_8U: int#
HIP_R_32I: int#
CUDA_R_32I: int#
HIP_C_32I: int#
CUDA_C_32I: int#
HIP_R_32U: int#
CUDA_R_32U: int#
HIP_C_32U: int#
CUDA_C_32U: int#
HIP_R_16BF: int#
CUDA_R_16BF: int#
HIP_C_16BF: int#
CUDA_C_16BF: int#
HIP_R_4I: int#
CUDA_R_4I: int#
HIP_C_4I: int#
CUDA_C_4I: int#
HIP_R_4U: int#
CUDA_R_4U: int#
HIP_C_4U: int#
CUDA_C_4U: int#
HIP_R_16I: int#
CUDA_R_16I: int#
HIP_C_16I: int#
CUDA_C_16I: int#
HIP_R_16U: int#
CUDA_R_16U: int#
HIP_C_16U: int#
CUDA_C_16U: int#
HIP_R_64I: int#
CUDA_R_64I: int#
HIP_C_64I: int#
CUDA_C_64I: int#
HIP_R_64U: int#
CUDA_R_64U: int#
HIP_C_64U: int#
CUDA_C_64U: int#
HIP_R_8F_E4M3: int#
CUDA_R_8F_E4M3: int#
CUDA_R_8F_UE4M3: int#
HIP_R_8F_E5M2: int#
CUDA_R_8F_E5M2: int#
HIP_R_8F_UE8M0: int#
CUDA_R_8F_UE8M0: int#
HIP_R_6F_E2M3: int#
CUDA_R_6F_E2M3: int#
HIP_R_6F_E3M2: int#
CUDA_R_6F_E3M2: int#
HIP_R_4F_E2M1: int#
CUDA_R_4F_E2M1: int#
HIP_R_8F_E4M3_FNUZ: int#
HIP_R_8F_E5M2_FNUZ: int#
cuda.bindings.runtime.HIP_PYTHON_cudaDataType_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaDataType#

Bases: enum.IntEnum

(No short description)

HIP_R_32F: int#
CUDA_R_32F: int#
HIP_R_64F: int#
CUDA_R_64F: int#
HIP_R_16F: int#
CUDA_R_16F: int#
HIP_R_8I: int#
CUDA_R_8I: int#
HIP_C_32F: int#
CUDA_C_32F: int#
HIP_C_64F: int#
CUDA_C_64F: int#
HIP_C_16F: int#
CUDA_C_16F: int#
HIP_C_8I: int#
CUDA_C_8I: int#
HIP_R_8U: int#
CUDA_R_8U: int#
HIP_C_8U: int#
CUDA_C_8U: int#
HIP_R_32I: int#
CUDA_R_32I: int#
HIP_C_32I: int#
CUDA_C_32I: int#
HIP_R_32U: int#
CUDA_R_32U: int#
HIP_C_32U: int#
CUDA_C_32U: int#
HIP_R_16BF: int#
CUDA_R_16BF: int#
HIP_C_16BF: int#
CUDA_C_16BF: int#
HIP_R_4I: int#
CUDA_R_4I: int#
HIP_C_4I: int#
CUDA_C_4I: int#
HIP_R_4U: int#
CUDA_R_4U: int#
HIP_C_4U: int#
CUDA_C_4U: int#
HIP_R_16I: int#
CUDA_R_16I: int#
HIP_C_16I: int#
CUDA_C_16I: int#
HIP_R_16U: int#
CUDA_R_16U: int#
HIP_C_16U: int#
CUDA_C_16U: int#
HIP_R_64I: int#
CUDA_R_64I: int#
HIP_C_64I: int#
CUDA_C_64I: int#
HIP_R_64U: int#
CUDA_R_64U: int#
HIP_C_64U: int#
CUDA_C_64U: int#
HIP_R_8F_E4M3: int#
CUDA_R_8F_E4M3: int#
CUDA_R_8F_UE4M3: int#
HIP_R_8F_E5M2: int#
CUDA_R_8F_E5M2: int#
HIP_R_8F_UE8M0: int#
CUDA_R_8F_UE8M0: int#
HIP_R_6F_E2M3: int#
CUDA_R_6F_E2M3: int#
HIP_R_6F_E3M2: int#
CUDA_R_6F_E3M2: int#
HIP_R_4F_E2M1: int#
CUDA_R_4F_E2M1: int#
HIP_R_8F_E4M3_FNUZ: int#
HIP_R_8F_E5M2_FNUZ: int#
cuda.bindings.runtime.HIP_PYTHON_cudaDataType_t_HALLUCINATE: Any#
class cuda.bindings.runtime.cudaDataType_t#

Bases: enum.IntEnum

(No short description)

HIP_R_32F: int#
CUDA_R_32F: int#
HIP_R_64F: int#
CUDA_R_64F: int#
HIP_R_16F: int#
CUDA_R_16F: int#
HIP_R_8I: int#
CUDA_R_8I: int#
HIP_C_32F: int#
CUDA_C_32F: int#
HIP_C_64F: int#
CUDA_C_64F: int#
HIP_C_16F: int#
CUDA_C_16F: int#
HIP_C_8I: int#
CUDA_C_8I: int#
HIP_R_8U: int#
CUDA_R_8U: int#
HIP_C_8U: int#
CUDA_C_8U: int#
HIP_R_32I: int#
CUDA_R_32I: int#
HIP_C_32I: int#
CUDA_C_32I: int#
HIP_R_32U: int#
CUDA_R_32U: int#
HIP_C_32U: int#
CUDA_C_32U: int#
HIP_R_16BF: int#
CUDA_R_16BF: int#
HIP_C_16BF: int#
CUDA_C_16BF: int#
HIP_R_4I: int#
CUDA_R_4I: int#
HIP_C_4I: int#
CUDA_C_4I: int#
HIP_R_4U: int#
CUDA_R_4U: int#
HIP_C_4U: int#
CUDA_C_4U: int#
HIP_R_16I: int#
CUDA_R_16I: int#
HIP_C_16I: int#
CUDA_C_16I: int#
HIP_R_16U: int#
CUDA_R_16U: int#
HIP_C_16U: int#
CUDA_C_16U: int#
HIP_R_64I: int#
CUDA_R_64I: int#
HIP_C_64I: int#
CUDA_C_64I: int#
HIP_R_64U: int#
CUDA_R_64U: int#
HIP_C_64U: int#
CUDA_C_64U: int#
HIP_R_8F_E4M3: int#
CUDA_R_8F_E4M3: int#
CUDA_R_8F_UE4M3: int#
HIP_R_8F_E5M2: int#
CUDA_R_8F_E5M2: int#
HIP_R_8F_UE8M0: int#
CUDA_R_8F_UE8M0: int#
HIP_R_6F_E2M3: int#
CUDA_R_6F_E2M3: int#
HIP_R_6F_E3M2: int#
CUDA_R_6F_E3M2: int#
HIP_R_4F_E2M1: int#
CUDA_R_4F_E2M1: int#
HIP_R_8F_E4M3_FNUZ: int#
HIP_R_8F_E5M2_FNUZ: int#