cuda.cuda#

Attributes:
HIP_PYTHON (bool):

True.

hip_python_mod (module):

A reference to the module hip.hip.

hip (module):

A reference to the module hip.hip.

CU_TRSA_OVERRIDE_FORMAT:

Alias of HIP_TRSA_OVERRIDE_FORMAT

CU_TRSF_READ_AS_INTEGER:

Alias of HIP_TRSF_READ_AS_INTEGER

CU_TRSF_NORMALIZED_COORDINATES:

Alias of HIP_TRSF_NORMALIZED_COORDINATES

CU_TRSF_SRGB:

Alias of HIP_TRSF_SRGB

cudaTextureType1D:

Alias of hipTextureType1D

cudaTextureType2D:

Alias of hipTextureType2D

cudaTextureType3D:

Alias of hipTextureType3D

cudaTextureTypeCubemap:

Alias of hipTextureTypeCubemap

cudaTextureType1DLayered:

Alias of hipTextureType1DLayered

cudaTextureType2DLayered:

Alias of hipTextureType2DLayered

cudaTextureTypeCubemapLayered:

Alias of hipTextureTypeCubemapLayered

CU_LAUNCH_PARAM_BUFFER_POINTER:

Alias of HIP_LAUNCH_PARAM_BUFFER_POINTER

CU_LAUNCH_PARAM_BUFFER_SIZE:

Alias of HIP_LAUNCH_PARAM_BUFFER_SIZE

CU_LAUNCH_PARAM_END:

Alias of HIP_LAUNCH_PARAM_END

CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS:

Alias of hipIpcMemLazyEnablePeerAccess

cudaIpcMemLazyEnablePeerAccess:

Alias of hipIpcMemLazyEnablePeerAccess

CUDA_IPC_HANDLE_SIZE:

Alias of HIP_IPC_HANDLE_SIZE

CU_IPC_HANDLE_SIZE:

Alias of HIP_IPC_HANDLE_SIZE

CU_STREAM_DEFAULT:

Alias of hipStreamDefault

cudaStreamDefault:

Alias of hipStreamDefault

CU_STREAM_NON_BLOCKING:

Alias of hipStreamNonBlocking

cudaStreamNonBlocking:

Alias of hipStreamNonBlocking

CU_EVENT_DEFAULT:

Alias of hipEventDefault

cudaEventDefault:

Alias of hipEventDefault

CU_EVENT_BLOCKING_SYNC:

Alias of hipEventBlockingSync

cudaEventBlockingSync:

Alias of hipEventBlockingSync

CU_EVENT_DISABLE_TIMING:

Alias of hipEventDisableTiming

cudaEventDisableTiming:

Alias of hipEventDisableTiming

CU_EVENT_INTERPROCESS:

Alias of hipEventInterprocess

cudaEventInterprocess:

Alias of hipEventInterprocess

cudaHostAllocDefault:

Alias of hipHostMallocDefault

CU_MEMHOSTALLOC_PORTABLE:

Alias of hipHostMallocPortable

cudaHostAllocPortable:

Alias of hipHostMallocPortable

CU_MEMHOSTALLOC_DEVICEMAP:

Alias of hipHostMallocMapped

cudaHostAllocMapped:

Alias of hipHostMallocMapped

CU_MEMHOSTALLOC_WRITECOMBINED:

Alias of hipHostMallocWriteCombined

cudaHostAllocWriteCombined:

Alias of hipHostMallocWriteCombined

CU_MEM_ATTACH_GLOBAL:

Alias of hipMemAttachGlobal

cudaMemAttachGlobal:

Alias of hipMemAttachGlobal

CU_MEM_ATTACH_HOST:

Alias of hipMemAttachHost

cudaMemAttachHost:

Alias of hipMemAttachHost

CU_MEM_ATTACH_SINGLE:

Alias of hipMemAttachSingle

cudaMemAttachSingle:

Alias of hipMemAttachSingle

cudaHostRegisterDefault:

Alias of hipHostRegisterDefault

CU_MEMHOSTREGISTER_PORTABLE:

Alias of hipHostRegisterPortable

cudaHostRegisterPortable:

Alias of hipHostRegisterPortable

CU_MEMHOSTREGISTER_DEVICEMAP:

Alias of hipHostRegisterMapped

cudaHostRegisterMapped:

Alias of hipHostRegisterMapped

CU_MEMHOSTREGISTER_IOMEMORY:

Alias of hipHostRegisterIoMemory

cudaHostRegisterIoMemory:

Alias of hipHostRegisterIoMemory

CU_CTX_SCHED_AUTO:

Alias of hipDeviceScheduleAuto

cudaDeviceScheduleAuto:

Alias of hipDeviceScheduleAuto

CU_CTX_SCHED_SPIN:

Alias of hipDeviceScheduleSpin

cudaDeviceScheduleSpin:

Alias of hipDeviceScheduleSpin

CU_CTX_SCHED_YIELD:

Alias of hipDeviceScheduleYield

cudaDeviceScheduleYield:

Alias of hipDeviceScheduleYield

CU_CTX_BLOCKING_SYNC:

Alias of hipDeviceScheduleBlockingSync

CU_CTX_SCHED_BLOCKING_SYNC:

Alias of hipDeviceScheduleBlockingSync

cudaDeviceBlockingSync:

Alias of hipDeviceScheduleBlockingSync

cudaDeviceScheduleBlockingSync:

Alias of hipDeviceScheduleBlockingSync

CU_CTX_SCHED_MASK:

Alias of hipDeviceScheduleMask

cudaDeviceScheduleMask:

Alias of hipDeviceScheduleMask

CU_CTX_MAP_HOST:

Alias of hipDeviceMapHost

cudaDeviceMapHost:

Alias of hipDeviceMapHost

CU_CTX_LMEM_RESIZE_TO_MAX:

Alias of hipDeviceLmemResizeToMax

cudaDeviceLmemResizeToMax:

Alias of hipDeviceLmemResizeToMax

cudaArrayDefault:

Alias of hipArrayDefault

CUDA_ARRAY3D_LAYERED:

Alias of hipArrayLayered

cudaArrayLayered:

Alias of hipArrayLayered

CUDA_ARRAY3D_SURFACE_LDST:

Alias of hipArraySurfaceLoadStore

cudaArraySurfaceLoadStore:

Alias of hipArraySurfaceLoadStore

CUDA_ARRAY3D_CUBEMAP:

Alias of hipArrayCubemap

cudaArrayCubemap:

Alias of hipArrayCubemap

CUDA_ARRAY3D_TEXTURE_GATHER:

Alias of hipArrayTextureGather

cudaArrayTextureGather:

Alias of hipArrayTextureGather

CU_OCCUPANCY_DEFAULT:

Alias of hipOccupancyDefault

cudaOccupancyDefault:

Alias of hipOccupancyDefault

CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_PRE_LAUNCH_SYNC:

Alias of hipCooperativeLaunchMultiDeviceNoPreSync

cudaCooperativeLaunchMultiDeviceNoPreSync:

Alias of hipCooperativeLaunchMultiDeviceNoPreSync

CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_POST_LAUNCH_SYNC:

Alias of hipCooperativeLaunchMultiDeviceNoPostSync

cudaCooperativeLaunchMultiDeviceNoPostSync:

Alias of hipCooperativeLaunchMultiDeviceNoPostSync

CU_DEVICE_CPU:

Alias of hipCpuDeviceId

cudaCpuDeviceId:

Alias of hipCpuDeviceId

CU_DEVICE_INVALID:

Alias of hipInvalidDeviceId

cudaInvalidDeviceId:

Alias of hipInvalidDeviceId

CU_STREAM_WAIT_VALUE_GEQ:

Alias of hipStreamWaitValueGte

CU_STREAM_WAIT_VALUE_EQ:

Alias of hipStreamWaitValueEq

CU_STREAM_WAIT_VALUE_AND:

Alias of hipStreamWaitValueAnd

CU_STREAM_WAIT_VALUE_NOR:

Alias of hipStreamWaitValueNor

CUuuid:

Alias of hipUUID

cudaUUID_t:

Alias of hipUUID

HIP_PYTHON_CUmemorytype_HALLUCINATE:

Make CUmemorytype hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemorytype_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemorytype_enum_HALLUCINATE:

Make CUmemorytype_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemorytype_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaMemoryType_HALLUCINATE:

Make cudaMemoryType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaMemoryType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUresult_HALLUCINATE:

Make CUresult hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUresult_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaError_HALLUCINATE:

Make cudaError hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaError_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaError_enum_HALLUCINATE:

Make cudaError_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaError_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaError_t_HALLUCINATE:

Make cudaError_t hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaError_t_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUdevice_attribute_HALLUCINATE:

Make CUdevice_attribute hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUdevice_attribute_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUdevice_attribute_enum_HALLUCINATE:

Make CUdevice_attribute_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUdevice_attribute_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaDeviceAttr_HALLUCINATE:

Make cudaDeviceAttr hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaDeviceAttr_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUcomputemode_HALLUCINATE:

Make CUcomputemode hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUcomputemode_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUcomputemode_enum_HALLUCINATE:

Make CUcomputemode_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUcomputemode_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaComputeMode_HALLUCINATE:

Make cudaComputeMode hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaComputeMode_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

CUdeviceptr:

Alias of hipDeviceptr_t

CUdeviceptr_v1:

Alias of hipDeviceptr_t

CUdeviceptr_v2:

Alias of hipDeviceptr_t

HIP_PYTHON_cudaChannelFormatKind_HALLUCINATE:

Make cudaChannelFormatKind hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaChannelFormatKind_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

CUarray:

Alias of hipArray_t

cudaArray_t:

Alias of hipArray_t

cudaArray_const_t:

Alias of hipArray_const_t

HIP_PYTHON_CUarray_format_HALLUCINATE:

Make CUarray_format hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUarray_format_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUarray_format_enum_HALLUCINATE:

Make CUarray_format_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUarray_format_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

CUmipmappedArray:

Alias of hipMipmappedArray_t

cudaMipmappedArray_t:

Alias of hipMipmappedArray_t

cudaMipmappedArray_const_t:

Alias of hipMipmappedArray_const_t

HIP_PYTHON_cudaResourceType_HALLUCINATE:

Make cudaResourceType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaResourceType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUresourcetype_enum_HALLUCINATE:

Make CUresourcetype_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUresourcetype_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUresourcetype_HALLUCINATE:

Make CUresourcetype hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUresourcetype_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUaddress_mode_enum_HALLUCINATE:

Make CUaddress_mode_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUaddress_mode_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUaddress_mode_HALLUCINATE:

Make CUaddress_mode hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUaddress_mode_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUfilter_mode_enum_HALLUCINATE:

Make CUfilter_mode_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUfilter_mode_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUfilter_mode_HALLUCINATE:

Make CUfilter_mode hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUfilter_mode_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

CUDA_TEXTURE_DESC:

Alias of HIP_TEXTURE_DESC

CUDA_TEXTURE_DESC_v1:

Alias of HIP_TEXTURE_DESC

HIP_PYTHON_cudaResourceViewFormat_HALLUCINATE:

Make cudaResourceViewFormat hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaResourceViewFormat_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUresourceViewFormat_enum_HALLUCINATE:

Make CUresourceViewFormat_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUresourceViewFormat_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUresourceViewFormat_HALLUCINATE:

Make CUresourceViewFormat hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUresourceViewFormat_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

CUDA_RESOURCE_DESC:

Alias of HIP_RESOURCE_DESC

CUDA_RESOURCE_DESC_v1:

Alias of HIP_RESOURCE_DESC

CUDA_RESOURCE_VIEW_DESC:

Alias of HIP_RESOURCE_VIEW_DESC

CUDA_RESOURCE_VIEW_DESC_v1:

Alias of HIP_RESOURCE_VIEW_DESC

HIP_PYTHON_cudaMemcpyKind_HALLUCINATE:

Make cudaMemcpyKind hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaMemcpyKind_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUfunction_attribute_HALLUCINATE:

Make CUfunction_attribute hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUfunction_attribute_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUfunction_attribute_enum_HALLUCINATE:

Make CUfunction_attribute_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUfunction_attribute_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUpointer_attribute_HALLUCINATE:

Make CUpointer_attribute hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUpointer_attribute_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUpointer_attribute_enum_HALLUCINATE:

Make CUpointer_attribute_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUpointer_attribute_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

cudaCreateChannelDesc:

Alias of hipCreateChannelDesc

CUtexObject:

Alias of hipTextureObject_t

CUtexObject_v1:

Alias of hipTextureObject_t

cudaTextureObject_t:

Alias of hipTextureObject_t

HIP_PYTHON_cudaTextureAddressMode_HALLUCINATE:

Make cudaTextureAddressMode hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaTextureAddressMode_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaTextureFilterMode_HALLUCINATE:

Make cudaTextureFilterMode hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaTextureFilterMode_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaTextureReadMode_HALLUCINATE:

Make cudaTextureReadMode hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaTextureReadMode_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

CUsurfObject:

Alias of hipSurfaceObject_t

CUsurfObject_v1:

Alias of hipSurfaceObject_t

cudaSurfaceObject_t:

Alias of hipSurfaceObject_t

HIP_PYTHON_cudaSurfaceBoundaryMode_HALLUCINATE:

Make cudaSurfaceBoundaryMode hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaSurfaceBoundaryMode_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

CUcontext:

Alias of hipCtx_t

HIP_PYTHON_CUdevice_P2PAttribute_HALLUCINATE:

Make CUdevice_P2PAttribute hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUdevice_P2PAttribute_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUdevice_P2PAttribute_enum_HALLUCINATE:

Make CUdevice_P2PAttribute_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUdevice_P2PAttribute_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaDeviceP2PAttr_HALLUCINATE:

Make cudaDeviceP2PAttr hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaDeviceP2PAttr_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

CUstream:

Alias of hipStream_t

cudaStream_t:

Alias of hipStream_t

CUipcMemHandle:

Alias of hipIpcMemHandle_t

CUipcMemHandle_v1:

Alias of hipIpcMemHandle_t

cudaIpcMemHandle_t:

Alias of hipIpcMemHandle_t

CUipcEventHandle:

Alias of hipIpcEventHandle_t

CUipcEventHandle_v1:

Alias of hipIpcEventHandle_t

cudaIpcEventHandle_t:

Alias of hipIpcEventHandle_t

CUmodule:

Alias of hipModule_t

CUfunction:

Alias of hipFunction_t

cudaFunction_t:

Alias of hipFunction_t

CUmemoryPool:

Alias of hipMemPool_t

cudaMemPool_t:

Alias of hipMemPool_t

CUevent:

Alias of hipEvent_t

cudaEvent_t:

Alias of hipEvent_t

HIP_PYTHON_CUlimit_HALLUCINATE:

Make CUlimit hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUlimit_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUlimit_enum_HALLUCINATE:

Make CUlimit_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUlimit_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaLimit_HALLUCINATE:

Make cudaLimit hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaLimit_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmem_advise_HALLUCINATE:

Make CUmem_advise hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmem_advise_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmem_advise_enum_HALLUCINATE:

Make CUmem_advise_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmem_advise_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaMemoryAdvise_HALLUCINATE:

Make cudaMemoryAdvise hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaMemoryAdvise_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmem_range_attribute_HALLUCINATE:

Make CUmem_range_attribute hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmem_range_attribute_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmem_range_attribute_enum_HALLUCINATE:

Make CUmem_range_attribute_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmem_range_attribute_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaMemRangeAttribute_HALLUCINATE:

Make cudaMemRangeAttribute hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaMemRangeAttribute_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemPool_attribute_HALLUCINATE:

Make CUmemPool_attribute hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemPool_attribute_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemPool_attribute_enum_HALLUCINATE:

Make CUmemPool_attribute_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemPool_attribute_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaMemPoolAttr_HALLUCINATE:

Make cudaMemPoolAttr hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaMemPoolAttr_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemLocationType_HALLUCINATE:

Make CUmemLocationType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemLocationType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemLocationType_enum_HALLUCINATE:

Make CUmemLocationType_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemLocationType_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaMemLocationType_HALLUCINATE:

Make cudaMemLocationType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaMemLocationType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemAccess_flags_HALLUCINATE:

Make CUmemAccess_flags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemAccess_flags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemAccess_flags_enum_HALLUCINATE:

Make CUmemAccess_flags_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemAccess_flags_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaMemAccessFlags_HALLUCINATE:

Make cudaMemAccessFlags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaMemAccessFlags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemAllocationType_HALLUCINATE:

Make CUmemAllocationType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemAllocationType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemAllocationType_enum_HALLUCINATE:

Make CUmemAllocationType_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemAllocationType_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaMemAllocationType_HALLUCINATE:

Make cudaMemAllocationType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaMemAllocationType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemAllocationHandleType_HALLUCINATE:

Make CUmemAllocationHandleType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemAllocationHandleType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemAllocationHandleType_enum_HALLUCINATE:

Make CUmemAllocationHandleType_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemAllocationHandleType_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaMemAllocationHandleType_HALLUCINATE:

Make cudaMemAllocationHandleType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaMemAllocationHandleType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUjit_option_HALLUCINATE:

Make CUjit_option hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUjit_option_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUjit_option_enum_HALLUCINATE:

Make CUjit_option_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUjit_option_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaFuncAttribute_HALLUCINATE:

Make cudaFuncAttribute hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaFuncAttribute_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUfunc_cache_HALLUCINATE:

Make CUfunc_cache hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUfunc_cache_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUfunc_cache_enum_HALLUCINATE:

Make CUfunc_cache_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUfunc_cache_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaFuncCache_HALLUCINATE:

Make cudaFuncCache hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaFuncCache_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUsharedconfig_HALLUCINATE:

Make CUsharedconfig hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUsharedconfig_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUsharedconfig_enum_HALLUCINATE:

Make CUsharedconfig_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUsharedconfig_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaSharedMemConfig_HALLUCINATE:

Make cudaSharedMemConfig hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaSharedMemConfig_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

cudaLaunchParams:

Alias of hipLaunchParams

CUDA_LAUNCH_PARAMS:

Alias of hipFunctionLaunchParams

CUDA_LAUNCH_PARAMS_v1:

Alias of hipFunctionLaunchParams

HIP_PYTHON_CUexternalMemoryHandleType_enum_HALLUCINATE:

Make CUexternalMemoryHandleType_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUexternalMemoryHandleType_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUexternalMemoryHandleType_HALLUCINATE:

Make CUexternalMemoryHandleType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUexternalMemoryHandleType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaExternalMemoryHandleType_HALLUCINATE:

Make cudaExternalMemoryHandleType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaExternalMemoryHandleType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

CUDA_EXTERNAL_MEMORY_HANDLE_DESC:

Alias of hipExternalMemoryHandleDesc

CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1:

Alias of hipExternalMemoryHandleDesc

cudaExternalMemoryHandleDesc:

Alias of hipExternalMemoryHandleDesc

CUDA_EXTERNAL_MEMORY_BUFFER_DESC:

Alias of hipExternalMemoryBufferDesc

CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1:

Alias of hipExternalMemoryBufferDesc

cudaExternalMemoryBufferDesc:

Alias of hipExternalMemoryBufferDesc

CUexternalMemory:

Alias of hipExternalMemory_t

cudaExternalMemory_t:

Alias of hipExternalMemory_t

HIP_PYTHON_CUexternalSemaphoreHandleType_enum_HALLUCINATE:

Make CUexternalSemaphoreHandleType_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUexternalSemaphoreHandleType_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUexternalSemaphoreHandleType_HALLUCINATE:

Make CUexternalSemaphoreHandleType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUexternalSemaphoreHandleType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaExternalSemaphoreHandleType_HALLUCINATE:

Make cudaExternalSemaphoreHandleType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaExternalSemaphoreHandleType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC:

Alias of hipExternalSemaphoreHandleDesc

CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1:

Alias of hipExternalSemaphoreHandleDesc

cudaExternalSemaphoreHandleDesc:

Alias of hipExternalSemaphoreHandleDesc

CUexternalSemaphore:

Alias of hipExternalSemaphore_t

cudaExternalSemaphore_t:

Alias of hipExternalSemaphore_t

CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS:

Alias of hipExternalSemaphoreSignalParams

CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1:

Alias of hipExternalSemaphoreSignalParams

cudaExternalSemaphoreSignalParams:

Alias of hipExternalSemaphoreSignalParams

cudaExternalSemaphoreSignalParams_v1:

Alias of hipExternalSemaphoreSignalParams

CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS:

Alias of hipExternalSemaphoreWaitParams

CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1:

Alias of hipExternalSemaphoreWaitParams

cudaExternalSemaphoreWaitParams:

Alias of hipExternalSemaphoreWaitParams

cudaExternalSemaphoreWaitParams_v1:

Alias of hipExternalSemaphoreWaitParams

HIP_PYTHON_CUgraphicsRegisterFlags_HALLUCINATE:

Make CUgraphicsRegisterFlags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUgraphicsRegisterFlags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUgraphicsRegisterFlags_enum_HALLUCINATE:

Make CUgraphicsRegisterFlags_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUgraphicsRegisterFlags_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaGraphicsRegisterFlags_HALLUCINATE:

Make cudaGraphicsRegisterFlags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaGraphicsRegisterFlags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

CUgraphicsResource_st:

Alias of hipGraphicsResource

cudaGraphicsResource:

Alias of hipGraphicsResource

CUgraphicsResource:

Alias of hipGraphicsResource_t

cudaGraphicsResource_t:

Alias of hipGraphicsResource_t

CUgraph:

Alias of hipGraph_t

cudaGraph_t:

Alias of hipGraph_t

CUgraphNode:

Alias of hipGraphNode_t

cudaGraphNode_t:

Alias of hipGraphNode_t

CUgraphExec:

Alias of hipGraphExec_t

cudaGraphExec_t:

Alias of hipGraphExec_t

CUuserObject:

Alias of hipUserObject_t

cudaUserObject_t:

Alias of hipUserObject_t

HIP_PYTHON_CUgraphNodeType_HALLUCINATE:

Make CUgraphNodeType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUgraphNodeType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUgraphNodeType_enum_HALLUCINATE:

Make CUgraphNodeType_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUgraphNodeType_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaGraphNodeType_HALLUCINATE:

Make cudaGraphNodeType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaGraphNodeType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUkernelNodeAttrID_HALLUCINATE:

Make CUkernelNodeAttrID hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUkernelNodeAttrID_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUkernelNodeAttrID_enum_HALLUCINATE:

Make CUkernelNodeAttrID_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUkernelNodeAttrID_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaKernelNodeAttrID_HALLUCINATE:

Make cudaKernelNodeAttrID hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaKernelNodeAttrID_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUaccessProperty_HALLUCINATE:

Make CUaccessProperty hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUaccessProperty_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUaccessProperty_enum_HALLUCINATE:

Make CUaccessProperty_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUaccessProperty_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaAccessProperty_HALLUCINATE:

Make cudaAccessProperty hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaAccessProperty_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUgraphExecUpdateResult_HALLUCINATE:

Make CUgraphExecUpdateResult hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUgraphExecUpdateResult_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUgraphExecUpdateResult_enum_HALLUCINATE:

Make CUgraphExecUpdateResult_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUgraphExecUpdateResult_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaGraphExecUpdateResult_HALLUCINATE:

Make cudaGraphExecUpdateResult hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaGraphExecUpdateResult_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUstreamCaptureMode_HALLUCINATE:

Make CUstreamCaptureMode hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUstreamCaptureMode_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUstreamCaptureMode_enum_HALLUCINATE:

Make CUstreamCaptureMode_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUstreamCaptureMode_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaStreamCaptureMode_HALLUCINATE:

Make cudaStreamCaptureMode hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaStreamCaptureMode_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUstreamCaptureStatus_HALLUCINATE:

Make CUstreamCaptureStatus hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUstreamCaptureStatus_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUstreamCaptureStatus_enum_HALLUCINATE:

Make CUstreamCaptureStatus_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUstreamCaptureStatus_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaStreamCaptureStatus_HALLUCINATE:

Make cudaStreamCaptureStatus hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaStreamCaptureStatus_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUstreamUpdateCaptureDependencies_flags_HALLUCINATE:

Make CUstreamUpdateCaptureDependencies_flags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUstreamUpdateCaptureDependencies_flags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUstreamUpdateCaptureDependencies_flags_enum_HALLUCINATE:

Make CUstreamUpdateCaptureDependencies_flags_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUstreamUpdateCaptureDependencies_flags_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaStreamUpdateCaptureDependenciesFlags_HALLUCINATE:

Make cudaStreamUpdateCaptureDependenciesFlags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaStreamUpdateCaptureDependenciesFlags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUgraphMem_attribute_HALLUCINATE:

Make CUgraphMem_attribute hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUgraphMem_attribute_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUgraphMem_attribute_enum_HALLUCINATE:

Make CUgraphMem_attribute_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUgraphMem_attribute_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaGraphMemAttributeType_HALLUCINATE:

Make cudaGraphMemAttributeType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaGraphMemAttributeType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUuserObject_flags_HALLUCINATE:

Make CUuserObject_flags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUuserObject_flags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUuserObject_flags_enum_HALLUCINATE:

Make CUuserObject_flags_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUuserObject_flags_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaUserObjectFlags_HALLUCINATE:

Make cudaUserObjectFlags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaUserObjectFlags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUuserObjectRetain_flags_HALLUCINATE:

Make CUuserObjectRetain_flags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUuserObjectRetain_flags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUuserObjectRetain_flags_enum_HALLUCINATE:

Make CUuserObjectRetain_flags_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUuserObjectRetain_flags_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaUserObjectRetainFlags_HALLUCINATE:

Make cudaUserObjectRetainFlags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaUserObjectRetainFlags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUgraphInstantiate_flags_HALLUCINATE:

Make CUgraphInstantiate_flags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUgraphInstantiate_flags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUgraphInstantiate_flags_enum_HALLUCINATE:

Make CUgraphInstantiate_flags_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUgraphInstantiate_flags_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaGraphInstantiateFlags_HALLUCINATE:

Make cudaGraphInstantiateFlags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaGraphInstantiateFlags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUgraphDebugDot_flags_HALLUCINATE:

Make CUgraphDebugDot_flags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUgraphDebugDot_flags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUgraphDebugDot_flags_enum_HALLUCINATE:

Make CUgraphDebugDot_flags_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUgraphDebugDot_flags_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaGraphDebugDotFlags_HALLUCINATE:

Make cudaGraphDebugDotFlags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaGraphDebugDotFlags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

CUmemGenericAllocationHandle:

Alias of hipMemGenericAllocationHandle_t

CUmemGenericAllocationHandle_v1:

Alias of hipMemGenericAllocationHandle_t

HIP_PYTHON_CUmemAllocationGranularity_flags_HALLUCINATE:

Make CUmemAllocationGranularity_flags hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemAllocationGranularity_flags_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemAllocationGranularity_flags_enum_HALLUCINATE:

Make CUmemAllocationGranularity_flags_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemAllocationGranularity_flags_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemHandleType_HALLUCINATE:

Make CUmemHandleType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemHandleType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemHandleType_enum_HALLUCINATE:

Make CUmemHandleType_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemHandleType_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemOperationType_HALLUCINATE:

Make CUmemOperationType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemOperationType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUmemOperationType_enum_HALLUCINATE:

Make CUmemOperationType_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUmemOperationType_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUarraySparseSubresourceType_HALLUCINATE:

Make CUarraySparseSubresourceType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUarraySparseSubresourceType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_CUarraySparseSubresourceType_enum_HALLUCINATE:

Make CUarraySparseSubresourceType_enum hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_CUarraySparseSubresourceType_enum_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

cuInit:

Alias of hipInit

cuDriverGetVersion:

Alias of hipDriverGetVersion

cudaDriverGetVersion:

Alias of hipDriverGetVersion

cudaRuntimeGetVersion:

Alias of hipRuntimeGetVersion

cuDeviceGet:

Alias of hipDeviceGet

cuDeviceComputeCapability:

Alias of hipDeviceComputeCapability

cuDeviceGetName:

Alias of hipDeviceGetName

cuDeviceGetUuid:

Alias of hipDeviceGetUuid

cuDeviceGetUuid_v2:

Alias of hipDeviceGetUuid

cudaDeviceGetP2PAttribute:

Alias of hipDeviceGetP2PAttribute

cuDeviceGetP2PAttribute:

Alias of hipDeviceGetP2PAttribute

cudaDeviceGetPCIBusId:

Alias of hipDeviceGetPCIBusId

cuDeviceGetPCIBusId:

Alias of hipDeviceGetPCIBusId

cudaDeviceGetByPCIBusId:

Alias of hipDeviceGetByPCIBusId

cuDeviceGetByPCIBusId:

Alias of hipDeviceGetByPCIBusId

cuDeviceTotalMem:

Alias of hipDeviceTotalMem

cuDeviceTotalMem_v2:

Alias of hipDeviceTotalMem

cudaDeviceSynchronize:

Alias of hipDeviceSynchronize

cudaThreadSynchronize:

Alias of hipDeviceSynchronize

cudaDeviceReset:

Alias of hipDeviceReset

cudaThreadExit:

Alias of hipDeviceReset

cudaSetDevice:

Alias of hipSetDevice

cudaGetDevice:

Alias of hipGetDevice

cuDeviceGetCount:

Alias of hipGetDeviceCount

cudaGetDeviceCount:

Alias of hipGetDeviceCount

cuDeviceGetAttribute:

Alias of hipDeviceGetAttribute

cudaDeviceGetAttribute:

Alias of hipDeviceGetAttribute

cuDeviceGetDefaultMemPool:

Alias of hipDeviceGetDefaultMemPool

cudaDeviceGetDefaultMemPool:

Alias of hipDeviceGetDefaultMemPool

cuDeviceSetMemPool:

Alias of hipDeviceSetMemPool

cudaDeviceSetMemPool:

Alias of hipDeviceSetMemPool

cuDeviceGetMemPool:

Alias of hipDeviceGetMemPool

cudaDeviceGetMemPool:

Alias of hipDeviceGetMemPool

cudaGetDeviceProperties:

Alias of hipGetDeviceProperties

cudaDeviceSetCacheConfig:

Alias of hipDeviceSetCacheConfig

cudaThreadSetCacheConfig:

Alias of hipDeviceSetCacheConfig

cudaDeviceGetCacheConfig:

Alias of hipDeviceGetCacheConfig

cudaThreadGetCacheConfig:

Alias of hipDeviceGetCacheConfig

cudaDeviceGetLimit:

Alias of hipDeviceGetLimit

cuCtxGetLimit:

Alias of hipDeviceGetLimit

cudaDeviceSetLimit:

Alias of hipDeviceSetLimit

cuCtxSetLimit:

Alias of hipDeviceSetLimit

cudaDeviceGetSharedMemConfig:

Alias of hipDeviceGetSharedMemConfig

cudaGetDeviceFlags:

Alias of hipGetDeviceFlags

cudaDeviceSetSharedMemConfig:

Alias of hipDeviceSetSharedMemConfig

cudaSetDeviceFlags:

Alias of hipSetDeviceFlags

cudaChooseDevice:

Alias of hipChooseDevice

cudaIpcGetMemHandle:

Alias of hipIpcGetMemHandle

cuIpcGetMemHandle:

Alias of hipIpcGetMemHandle

cudaIpcOpenMemHandle:

Alias of hipIpcOpenMemHandle

cuIpcOpenMemHandle:

Alias of hipIpcOpenMemHandle

cudaIpcCloseMemHandle:

Alias of hipIpcCloseMemHandle

cuIpcCloseMemHandle:

Alias of hipIpcCloseMemHandle

cudaIpcGetEventHandle:

Alias of hipIpcGetEventHandle

cuIpcGetEventHandle:

Alias of hipIpcGetEventHandle

cudaIpcOpenEventHandle:

Alias of hipIpcOpenEventHandle

cuIpcOpenEventHandle:

Alias of hipIpcOpenEventHandle

cudaFuncSetAttribute:

Alias of hipFuncSetAttribute

cudaFuncSetCacheConfig:

Alias of hipFuncSetCacheConfig

cudaFuncSetSharedMemConfig:

Alias of hipFuncSetSharedMemConfig

cudaGetLastError:

Alias of hipGetLastError

cudaPeekAtLastError:

Alias of hipPeekAtLastError

cudaGetErrorName:

Alias of hipGetErrorName

cudaGetErrorString:

Alias of hipGetErrorString

cuGetErrorName:

Alias of hipDrvGetErrorName

cuGetErrorString:

Alias of hipDrvGetErrorString

cudaStreamCreate:

Alias of hipStreamCreate

cuStreamCreate:

Alias of hipStreamCreateWithFlags

cudaStreamCreateWithFlags:

Alias of hipStreamCreateWithFlags

cuStreamCreateWithPriority:

Alias of hipStreamCreateWithPriority

cudaStreamCreateWithPriority:

Alias of hipStreamCreateWithPriority

cudaDeviceGetStreamPriorityRange:

Alias of hipDeviceGetStreamPriorityRange

cuCtxGetStreamPriorityRange:

Alias of hipDeviceGetStreamPriorityRange

cuStreamDestroy:

Alias of hipStreamDestroy

cuStreamDestroy_v2:

Alias of hipStreamDestroy

cudaStreamDestroy:

Alias of hipStreamDestroy

cuStreamQuery:

Alias of hipStreamQuery

cudaStreamQuery:

Alias of hipStreamQuery

cuStreamSynchronize:

Alias of hipStreamSynchronize

cudaStreamSynchronize:

Alias of hipStreamSynchronize

cuStreamWaitEvent:

Alias of hipStreamWaitEvent

cudaStreamWaitEvent:

Alias of hipStreamWaitEvent

cuStreamGetFlags:

Alias of hipStreamGetFlags

cudaStreamGetFlags:

Alias of hipStreamGetFlags

cuStreamGetPriority:

Alias of hipStreamGetPriority

cudaStreamGetPriority:

Alias of hipStreamGetPriority

cuStreamAddCallback:

Alias of hipStreamAddCallback

cudaStreamAddCallback:

Alias of hipStreamAddCallback

cuStreamWaitValue32:

Alias of hipStreamWaitValue32

cuStreamWaitValue32_v2:

Alias of hipStreamWaitValue32

cuStreamWaitValue64:

Alias of hipStreamWaitValue64

cuStreamWaitValue64_v2:

Alias of hipStreamWaitValue64

cuStreamWriteValue32:

Alias of hipStreamWriteValue32

cuStreamWriteValue32_v2:

Alias of hipStreamWriteValue32

cuStreamWriteValue64:

Alias of hipStreamWriteValue64

cuStreamWriteValue64_v2:

Alias of hipStreamWriteValue64

cuEventCreate:

Alias of hipEventCreateWithFlags

cudaEventCreateWithFlags:

Alias of hipEventCreateWithFlags

cudaEventCreate:

Alias of hipEventCreate

cuEventRecord:

Alias of hipEventRecord

cudaEventRecord:

Alias of hipEventRecord

cuEventDestroy:

Alias of hipEventDestroy

cuEventDestroy_v2:

Alias of hipEventDestroy

cudaEventDestroy:

Alias of hipEventDestroy

cuEventSynchronize:

Alias of hipEventSynchronize

cudaEventSynchronize:

Alias of hipEventSynchronize

cuEventElapsedTime:

Alias of hipEventElapsedTime

cudaEventElapsedTime:

Alias of hipEventElapsedTime

cuEventQuery:

Alias of hipEventQuery

cudaEventQuery:

Alias of hipEventQuery

cuPointerSetAttribute:

Alias of hipPointerSetAttribute

cudaPointerGetAttributes:

Alias of hipPointerGetAttributes

cuPointerGetAttribute:

Alias of hipPointerGetAttribute

cuPointerGetAttributes:

Alias of hipDrvPointerGetAttributes

cuImportExternalSemaphore:

Alias of hipImportExternalSemaphore

cudaImportExternalSemaphore:

Alias of hipImportExternalSemaphore

cuSignalExternalSemaphoresAsync:

Alias of hipSignalExternalSemaphoresAsync

cudaSignalExternalSemaphoresAsync:

Alias of hipSignalExternalSemaphoresAsync

cuWaitExternalSemaphoresAsync:

Alias of hipWaitExternalSemaphoresAsync

cudaWaitExternalSemaphoresAsync:

Alias of hipWaitExternalSemaphoresAsync

cuDestroyExternalSemaphore:

Alias of hipDestroyExternalSemaphore

cudaDestroyExternalSemaphore:

Alias of hipDestroyExternalSemaphore

cuImportExternalMemory:

Alias of hipImportExternalMemory

cudaImportExternalMemory:

Alias of hipImportExternalMemory

cuExternalMemoryGetMappedBuffer:

Alias of hipExternalMemoryGetMappedBuffer

cudaExternalMemoryGetMappedBuffer:

Alias of hipExternalMemoryGetMappedBuffer

cuDestroyExternalMemory:

Alias of hipDestroyExternalMemory

cudaDestroyExternalMemory:

Alias of hipDestroyExternalMemory

cuMemAlloc:

Alias of hipMalloc

cuMemAlloc_v2:

Alias of hipMalloc

cudaMalloc:

Alias of hipMalloc

cuMemAllocHost:

Alias of hipMemAllocHost

cuMemAllocHost_v2:

Alias of hipMemAllocHost

cudaMallocHost:

Alias of hipHostMalloc

cuMemAllocManaged:

Alias of hipMallocManaged

cudaMallocManaged:

Alias of hipMallocManaged

cudaMemPrefetchAsync:

Alias of hipMemPrefetchAsync

cuMemPrefetchAsync:

Alias of hipMemPrefetchAsync

cudaMemAdvise:

Alias of hipMemAdvise

cuMemAdvise:

Alias of hipMemAdvise

cudaMemRangeGetAttribute:

Alias of hipMemRangeGetAttribute

cuMemRangeGetAttribute:

Alias of hipMemRangeGetAttribute

cudaMemRangeGetAttributes:

Alias of hipMemRangeGetAttributes

cuMemRangeGetAttributes:

Alias of hipMemRangeGetAttributes

cuStreamAttachMemAsync:

Alias of hipStreamAttachMemAsync

cudaStreamAttachMemAsync:

Alias of hipStreamAttachMemAsync

cudaMallocAsync:

Alias of hipMallocAsync

cuMemAllocAsync:

Alias of hipMallocAsync

cudaFreeAsync:

Alias of hipFreeAsync

cuMemFreeAsync:

Alias of hipFreeAsync

cudaMemPoolTrimTo:

Alias of hipMemPoolTrimTo

cuMemPoolTrimTo:

Alias of hipMemPoolTrimTo

cudaMemPoolSetAttribute:

Alias of hipMemPoolSetAttribute

cuMemPoolSetAttribute:

Alias of hipMemPoolSetAttribute

cudaMemPoolGetAttribute:

Alias of hipMemPoolGetAttribute

cuMemPoolGetAttribute:

Alias of hipMemPoolGetAttribute

cudaMemPoolSetAccess:

Alias of hipMemPoolSetAccess

cuMemPoolSetAccess:

Alias of hipMemPoolSetAccess

cudaMemPoolGetAccess:

Alias of hipMemPoolGetAccess

cuMemPoolGetAccess:

Alias of hipMemPoolGetAccess

cudaMemPoolCreate:

Alias of hipMemPoolCreate

cuMemPoolCreate:

Alias of hipMemPoolCreate

cudaMemPoolDestroy:

Alias of hipMemPoolDestroy

cuMemPoolDestroy:

Alias of hipMemPoolDestroy

cudaMallocFromPoolAsync:

Alias of hipMallocFromPoolAsync

cuMemAllocFromPoolAsync:

Alias of hipMallocFromPoolAsync

cudaMemPoolExportToShareableHandle:

Alias of hipMemPoolExportToShareableHandle

cuMemPoolExportToShareableHandle:

Alias of hipMemPoolExportToShareableHandle

cudaMemPoolImportFromShareableHandle:

Alias of hipMemPoolImportFromShareableHandle

cuMemPoolImportFromShareableHandle:

Alias of hipMemPoolImportFromShareableHandle

cudaMemPoolExportPointer:

Alias of hipMemPoolExportPointer

cuMemPoolExportPointer:

Alias of hipMemPoolExportPointer

cudaMemPoolImportPointer:

Alias of hipMemPoolImportPointer

cuMemPoolImportPointer:

Alias of hipMemPoolImportPointer

cuMemHostAlloc:

Alias of hipHostAlloc

cudaHostAlloc:

Alias of hipHostAlloc

cuMemHostGetDevicePointer:

Alias of hipHostGetDevicePointer

cuMemHostGetDevicePointer_v2:

Alias of hipHostGetDevicePointer

cudaHostGetDevicePointer:

Alias of hipHostGetDevicePointer

cuMemHostGetFlags:

Alias of hipHostGetFlags

cudaHostGetFlags:

Alias of hipHostGetFlags

cuMemHostRegister:

Alias of hipHostRegister

cuMemHostRegister_v2:

Alias of hipHostRegister

cudaHostRegister:

Alias of hipHostRegister

cuMemHostUnregister:

Alias of hipHostUnregister

cudaHostUnregister:

Alias of hipHostUnregister

cudaMallocPitch:

Alias of hipMallocPitch

cuMemAllocPitch:

Alias of hipMemAllocPitch

cuMemAllocPitch_v2:

Alias of hipMemAllocPitch

cuMemFree:

Alias of hipFree

cuMemFree_v2:

Alias of hipFree

cudaFree:

Alias of hipFree

cuMemFreeHost:

Alias of hipHostFree

cudaFreeHost:

Alias of hipHostFree

cudaMemcpy:

Alias of hipMemcpy

cuMemcpyHtoD:

Alias of hipMemcpyHtoD

cuMemcpyHtoD_v2:

Alias of hipMemcpyHtoD

cuMemcpyDtoH:

Alias of hipMemcpyDtoH

cuMemcpyDtoH_v2:

Alias of hipMemcpyDtoH

cuMemcpyDtoD:

Alias of hipMemcpyDtoD

cuMemcpyDtoD_v2:

Alias of hipMemcpyDtoD

cuMemcpyHtoDAsync:

Alias of hipMemcpyHtoDAsync

cuMemcpyHtoDAsync_v2:

Alias of hipMemcpyHtoDAsync

cuMemcpyDtoHAsync:

Alias of hipMemcpyDtoHAsync

cuMemcpyDtoHAsync_v2:

Alias of hipMemcpyDtoHAsync

cuMemcpyDtoDAsync:

Alias of hipMemcpyDtoDAsync

cuMemcpyDtoDAsync_v2:

Alias of hipMemcpyDtoDAsync

cuModuleGetGlobal:

Alias of hipModuleGetGlobal

cuModuleGetGlobal_v2:

Alias of hipModuleGetGlobal

cudaGetSymbolAddress:

Alias of hipGetSymbolAddress

cudaGetSymbolSize:

Alias of hipGetSymbolSize

cudaMemcpyToSymbol:

Alias of hipMemcpyToSymbol

cudaMemcpyToSymbolAsync:

Alias of hipMemcpyToSymbolAsync

cudaMemcpyFromSymbol:

Alias of hipMemcpyFromSymbol

cudaMemcpyFromSymbolAsync:

Alias of hipMemcpyFromSymbolAsync

cudaMemcpyAsync:

Alias of hipMemcpyAsync

cudaMemset:

Alias of hipMemset

cuMemsetD8:

Alias of hipMemsetD8

cuMemsetD8_v2:

Alias of hipMemsetD8

cuMemsetD8Async:

Alias of hipMemsetD8Async

cuMemsetD16:

Alias of hipMemsetD16

cuMemsetD16_v2:

Alias of hipMemsetD16

cuMemsetD16Async:

Alias of hipMemsetD16Async

cuMemsetD32:

Alias of hipMemsetD32

cuMemsetD32_v2:

Alias of hipMemsetD32

cudaMemsetAsync:

Alias of hipMemsetAsync

cuMemsetD32Async:

Alias of hipMemsetD32Async

cudaMemset2D:

Alias of hipMemset2D

cudaMemset2DAsync:

Alias of hipMemset2DAsync

cudaMemset3D:

Alias of hipMemset3D

cudaMemset3DAsync:

Alias of hipMemset3DAsync

cuMemGetInfo:

Alias of hipMemGetInfo

cuMemGetInfo_v2:

Alias of hipMemGetInfo

cudaMemGetInfo:

Alias of hipMemGetInfo

cudaMallocArray:

Alias of hipMallocArray

cuArrayCreate:

Alias of hipArrayCreate

cuArrayCreate_v2:

Alias of hipArrayCreate

cuArrayDestroy:

Alias of hipArrayDestroy

cuArray3DCreate:

Alias of hipArray3DCreate

cuArray3DCreate_v2:

Alias of hipArray3DCreate

cudaMalloc3D:

Alias of hipMalloc3D

cudaFreeArray:

Alias of hipFreeArray

cudaMalloc3DArray:

Alias of hipMalloc3DArray

cudaArrayGetInfo:

Alias of hipArrayGetInfo

cuArrayGetDescriptor:

Alias of hipArrayGetDescriptor

cuArrayGetDescriptor_v2:

Alias of hipArrayGetDescriptor

cuArray3DGetDescriptor:

Alias of hipArray3DGetDescriptor

cuArray3DGetDescriptor_v2:

Alias of hipArray3DGetDescriptor

cudaMemcpy2D:

Alias of hipMemcpy2D

cuMemcpy2D:

Alias of hipMemcpyParam2D

cuMemcpy2D_v2:

Alias of hipMemcpyParam2D

cuMemcpy2DAsync:

Alias of hipMemcpyParam2DAsync

cuMemcpy2DAsync_v2:

Alias of hipMemcpyParam2DAsync

cudaMemcpy2DAsync:

Alias of hipMemcpy2DAsync

cudaMemcpy2DToArray:

Alias of hipMemcpy2DToArray

cudaMemcpy2DToArrayAsync:

Alias of hipMemcpy2DToArrayAsync

cudaMemcpyToArray:

Alias of hipMemcpyToArray

cudaMemcpyFromArray:

Alias of hipMemcpyFromArray

cudaMemcpy2DFromArray:

Alias of hipMemcpy2DFromArray

cudaMemcpy2DFromArrayAsync:

Alias of hipMemcpy2DFromArrayAsync

cuMemcpyAtoH:

Alias of hipMemcpyAtoH

cuMemcpyAtoH_v2:

Alias of hipMemcpyAtoH

cuMemcpyHtoA:

Alias of hipMemcpyHtoA

cuMemcpyHtoA_v2:

Alias of hipMemcpyHtoA

cudaMemcpy3D:

Alias of hipMemcpy3D

cudaMemcpy3DAsync:

Alias of hipMemcpy3DAsync

cuMemcpy3D:

Alias of hipDrvMemcpy3D

cuMemcpy3D_v2:

Alias of hipDrvMemcpy3D

cuMemcpy3DAsync:

Alias of hipDrvMemcpy3DAsync

cuMemcpy3DAsync_v2:

Alias of hipDrvMemcpy3DAsync

cuDeviceCanAccessPeer:

Alias of hipDeviceCanAccessPeer

cudaDeviceCanAccessPeer:

Alias of hipDeviceCanAccessPeer

cudaDeviceEnablePeerAccess:

Alias of hipDeviceEnablePeerAccess

cudaDeviceDisablePeerAccess:

Alias of hipDeviceDisablePeerAccess

cuMemGetAddressRange:

Alias of hipMemGetAddressRange

cuMemGetAddressRange_v2:

Alias of hipMemGetAddressRange

cudaMemcpyPeer:

Alias of hipMemcpyPeer

cudaMemcpyPeerAsync:

Alias of hipMemcpyPeerAsync

cuCtxCreate:

Alias of hipCtxCreate

cuCtxCreate_v2:

Alias of hipCtxCreate

cuCtxDestroy:

Alias of hipCtxDestroy

cuCtxDestroy_v2:

Alias of hipCtxDestroy

cuCtxPopCurrent:

Alias of hipCtxPopCurrent

cuCtxPopCurrent_v2:

Alias of hipCtxPopCurrent

cuCtxPushCurrent:

Alias of hipCtxPushCurrent

cuCtxPushCurrent_v2:

Alias of hipCtxPushCurrent

cuCtxSetCurrent:

Alias of hipCtxSetCurrent

cuCtxGetCurrent:

Alias of hipCtxGetCurrent

cuCtxGetDevice:

Alias of hipCtxGetDevice

cuCtxGetApiVersion:

Alias of hipCtxGetApiVersion

cuCtxGetCacheConfig:

Alias of hipCtxGetCacheConfig

cuCtxSetCacheConfig:

Alias of hipCtxSetCacheConfig

cuCtxSetSharedMemConfig:

Alias of hipCtxSetSharedMemConfig

cuCtxGetSharedMemConfig:

Alias of hipCtxGetSharedMemConfig

cuCtxSynchronize:

Alias of hipCtxSynchronize

cuCtxGetFlags:

Alias of hipCtxGetFlags

cuCtxEnablePeerAccess:

Alias of hipCtxEnablePeerAccess

cuCtxDisablePeerAccess:

Alias of hipCtxDisablePeerAccess

cuDevicePrimaryCtxGetState:

Alias of hipDevicePrimaryCtxGetState

cuDevicePrimaryCtxRelease:

Alias of hipDevicePrimaryCtxRelease

cuDevicePrimaryCtxRelease_v2:

Alias of hipDevicePrimaryCtxRelease

cuDevicePrimaryCtxRetain:

Alias of hipDevicePrimaryCtxRetain

cuDevicePrimaryCtxReset:

Alias of hipDevicePrimaryCtxReset

cuDevicePrimaryCtxReset_v2:

Alias of hipDevicePrimaryCtxReset

cuDevicePrimaryCtxSetFlags:

Alias of hipDevicePrimaryCtxSetFlags

cuDevicePrimaryCtxSetFlags_v2:

Alias of hipDevicePrimaryCtxSetFlags

cuModuleLoad:

Alias of hipModuleLoad

cuModuleUnload:

Alias of hipModuleUnload

cuModuleGetFunction:

Alias of hipModuleGetFunction

cudaFuncGetAttributes:

Alias of hipFuncGetAttributes

cuFuncGetAttribute:

Alias of hipFuncGetAttribute

cuModuleGetTexRef:

Alias of hipModuleGetTexRef

cuModuleLoadData:

Alias of hipModuleLoadData

cuModuleLoadDataEx:

Alias of hipModuleLoadDataEx

cuLaunchKernel:

Alias of hipModuleLaunchKernel

cuLaunchCooperativeKernel:

Alias of hipModuleLaunchCooperativeKernel

cuLaunchCooperativeKernelMultiDevice:

Alias of hipModuleLaunchCooperativeKernelMultiDevice

cudaLaunchCooperativeKernel:

Alias of hipLaunchCooperativeKernel

cudaLaunchCooperativeKernelMultiDevice:

Alias of hipLaunchCooperativeKernelMultiDevice

cuOccupancyMaxPotentialBlockSize:

Alias of hipModuleOccupancyMaxPotentialBlockSize

cuOccupancyMaxPotentialBlockSizeWithFlags:

Alias of hipModuleOccupancyMaxPotentialBlockSizeWithFlags

cuOccupancyMaxActiveBlocksPerMultiprocessor:

Alias of hipModuleOccupancyMaxActiveBlocksPerMultiprocessor

cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags:

Alias of hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags

cudaOccupancyMaxActiveBlocksPerMultiprocessor:

Alias of hipOccupancyMaxActiveBlocksPerMultiprocessor

cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags:

Alias of hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags

cudaOccupancyMaxPotentialBlockSize:

Alias of hipOccupancyMaxPotentialBlockSize

cuProfilerStart:

Alias of hipProfilerStart

cudaProfilerStart:

Alias of hipProfilerStart

cuProfilerStop:

Alias of hipProfilerStop

cudaProfilerStop:

Alias of hipProfilerStop

cudaConfigureCall:

Alias of hipConfigureCall

cudaSetupArgument:

Alias of hipSetupArgument

cudaLaunch:

Alias of hipLaunchByPtr

cudaLaunchKernel:

Alias of hipLaunchKernel

cuLaunchHostFunc:

Alias of hipLaunchHostFunc

cudaLaunchHostFunc:

Alias of hipLaunchHostFunc

cuMemcpy2DUnaligned:

Alias of hipDrvMemcpy2DUnaligned

cuMemcpy2DUnaligned_v2:

Alias of hipDrvMemcpy2DUnaligned

cudaCreateTextureObject:

Alias of hipCreateTextureObject

cudaDestroyTextureObject:

Alias of hipDestroyTextureObject

cudaGetChannelDesc:

Alias of hipGetChannelDesc

cudaGetTextureObjectResourceDesc:

Alias of hipGetTextureObjectResourceDesc

cudaGetTextureObjectResourceViewDesc:

Alias of hipGetTextureObjectResourceViewDesc

cudaGetTextureObjectTextureDesc:

Alias of hipGetTextureObjectTextureDesc

cuTexObjectCreate:

Alias of hipTexObjectCreate

cuTexObjectDestroy:

Alias of hipTexObjectDestroy

cuTexObjectGetResourceDesc:

Alias of hipTexObjectGetResourceDesc

cuTexObjectGetResourceViewDesc:

Alias of hipTexObjectGetResourceViewDesc

cuTexObjectGetTextureDesc:

Alias of hipTexObjectGetTextureDesc

cudaMallocMipmappedArray:

Alias of hipMallocMipmappedArray

cudaFreeMipmappedArray:

Alias of hipFreeMipmappedArray

cudaGetMipmappedArrayLevel:

Alias of hipGetMipmappedArrayLevel

cuMipmappedArrayCreate:

Alias of hipMipmappedArrayCreate

cuMipmappedArrayDestroy:

Alias of hipMipmappedArrayDestroy

cuMipmappedArrayGetLevel:

Alias of hipMipmappedArrayGetLevel

cudaBindTextureToMipmappedArray:

Alias of hipBindTextureToMipmappedArray

cudaGetTextureReference:

Alias of hipGetTextureReference

cuTexRefSetAddressMode:

Alias of hipTexRefSetAddressMode

cuTexRefSetArray:

Alias of hipTexRefSetArray

cuTexRefSetFilterMode:

Alias of hipTexRefSetFilterMode

cuTexRefSetFlags:

Alias of hipTexRefSetFlags

cuTexRefSetFormat:

Alias of hipTexRefSetFormat

cudaBindTexture:

Alias of hipBindTexture

cudaBindTexture2D:

Alias of hipBindTexture2D

cudaBindTextureToArray:

Alias of hipBindTextureToArray

cudaGetTextureAlignmentOffset:

Alias of hipGetTextureAlignmentOffset

cudaUnbindTexture:

Alias of hipUnbindTexture

cuTexRefGetAddress:

Alias of hipTexRefGetAddress

cuTexRefGetAddress_v2:

Alias of hipTexRefGetAddress

cuTexRefGetAddressMode:

Alias of hipTexRefGetAddressMode

cuTexRefGetFilterMode:

Alias of hipTexRefGetFilterMode

cuTexRefGetFlags:

Alias of hipTexRefGetFlags

cuTexRefGetFormat:

Alias of hipTexRefGetFormat

cuTexRefGetMaxAnisotropy:

Alias of hipTexRefGetMaxAnisotropy

cuTexRefGetMipmapFilterMode:

Alias of hipTexRefGetMipmapFilterMode

cuTexRefGetMipmapLevelBias:

Alias of hipTexRefGetMipmapLevelBias

cuTexRefGetMipmapLevelClamp:

Alias of hipTexRefGetMipmapLevelClamp

cuTexRefGetMipmappedArray:

Alias of hipTexRefGetMipMappedArray

cuTexRefSetAddress:

Alias of hipTexRefSetAddress

cuTexRefSetAddress_v2:

Alias of hipTexRefSetAddress

cuTexRefSetAddress2D:

Alias of hipTexRefSetAddress2D

cuTexRefSetAddress2D_v2:

Alias of hipTexRefSetAddress2D

cuTexRefSetAddress2D_v3:

Alias of hipTexRefSetAddress2D

cuTexRefSetMaxAnisotropy:

Alias of hipTexRefSetMaxAnisotropy

cuTexRefSetBorderColor:

Alias of hipTexRefSetBorderColor

cuTexRefSetMipmapFilterMode:

Alias of hipTexRefSetMipmapFilterMode

cuTexRefSetMipmapLevelBias:

Alias of hipTexRefSetMipmapLevelBias

cuTexRefSetMipmapLevelClamp:

Alias of hipTexRefSetMipmapLevelClamp

cuTexRefSetMipmappedArray:

Alias of hipTexRefSetMipmappedArray

cuStreamBeginCapture:

Alias of hipStreamBeginCapture

cuStreamBeginCapture_v2:

Alias of hipStreamBeginCapture

cudaStreamBeginCapture:

Alias of hipStreamBeginCapture

cuStreamEndCapture:

Alias of hipStreamEndCapture

cudaStreamEndCapture:

Alias of hipStreamEndCapture

cuStreamGetCaptureInfo:

Alias of hipStreamGetCaptureInfo

cudaStreamGetCaptureInfo:

Alias of hipStreamGetCaptureInfo

cuStreamGetCaptureInfo_v2:

Alias of hipStreamGetCaptureInfo_v2

cuStreamIsCapturing:

Alias of hipStreamIsCapturing

cudaStreamIsCapturing:

Alias of hipStreamIsCapturing

cuStreamUpdateCaptureDependencies:

Alias of hipStreamUpdateCaptureDependencies

cuThreadExchangeStreamCaptureMode:

Alias of hipThreadExchangeStreamCaptureMode

cudaThreadExchangeStreamCaptureMode:

Alias of hipThreadExchangeStreamCaptureMode

cuGraphCreate:

Alias of hipGraphCreate

cudaGraphCreate:

Alias of hipGraphCreate

cuGraphDestroy:

Alias of hipGraphDestroy

cudaGraphDestroy:

Alias of hipGraphDestroy

cuGraphAddDependencies:

Alias of hipGraphAddDependencies

cudaGraphAddDependencies:

Alias of hipGraphAddDependencies

cuGraphRemoveDependencies:

Alias of hipGraphRemoveDependencies

cudaGraphRemoveDependencies:

Alias of hipGraphRemoveDependencies

cuGraphGetEdges:

Alias of hipGraphGetEdges

cudaGraphGetEdges:

Alias of hipGraphGetEdges

cuGraphGetNodes:

Alias of hipGraphGetNodes

cudaGraphGetNodes:

Alias of hipGraphGetNodes

cuGraphGetRootNodes:

Alias of hipGraphGetRootNodes

cudaGraphGetRootNodes:

Alias of hipGraphGetRootNodes

cuGraphNodeGetDependencies:

Alias of hipGraphNodeGetDependencies

cudaGraphNodeGetDependencies:

Alias of hipGraphNodeGetDependencies

cuGraphNodeGetDependentNodes:

Alias of hipGraphNodeGetDependentNodes

cudaGraphNodeGetDependentNodes:

Alias of hipGraphNodeGetDependentNodes

cuGraphNodeGetType:

Alias of hipGraphNodeGetType

cudaGraphNodeGetType:

Alias of hipGraphNodeGetType

cuGraphDestroyNode:

Alias of hipGraphDestroyNode

cudaGraphDestroyNode:

Alias of hipGraphDestroyNode

cuGraphClone:

Alias of hipGraphClone

cudaGraphClone:

Alias of hipGraphClone

cuGraphNodeFindInClone:

Alias of hipGraphNodeFindInClone

cudaGraphNodeFindInClone:

Alias of hipGraphNodeFindInClone

cuGraphInstantiate:

Alias of hipGraphInstantiate

cuGraphInstantiate_v2:

Alias of hipGraphInstantiate

cudaGraphInstantiate:

Alias of hipGraphInstantiate

cuGraphInstantiateWithFlags:

Alias of hipGraphInstantiateWithFlags

cudaGraphInstantiateWithFlags:

Alias of hipGraphInstantiateWithFlags

cuGraphLaunch:

Alias of hipGraphLaunch

cudaGraphLaunch:

Alias of hipGraphLaunch

cuGraphUpload:

Alias of hipGraphUpload

cudaGraphUpload:

Alias of hipGraphUpload

cuGraphExecDestroy:

Alias of hipGraphExecDestroy

cudaGraphExecDestroy:

Alias of hipGraphExecDestroy

cuGraphExecUpdate:

Alias of hipGraphExecUpdate

cudaGraphExecUpdate:

Alias of hipGraphExecUpdate

cuGraphAddKernelNode:

Alias of hipGraphAddKernelNode

cudaGraphAddKernelNode:

Alias of hipGraphAddKernelNode

cuGraphKernelNodeGetParams:

Alias of hipGraphKernelNodeGetParams

cudaGraphKernelNodeGetParams:

Alias of hipGraphKernelNodeGetParams

cuGraphKernelNodeSetParams:

Alias of hipGraphKernelNodeSetParams

cudaGraphKernelNodeSetParams:

Alias of hipGraphKernelNodeSetParams

cuGraphExecKernelNodeSetParams:

Alias of hipGraphExecKernelNodeSetParams

cudaGraphExecKernelNodeSetParams:

Alias of hipGraphExecKernelNodeSetParams

cuGraphAddMemcpyNode:

Alias of hipDrvGraphAddMemcpyNode

cudaGraphAddMemcpyNode:

Alias of hipGraphAddMemcpyNode

cuGraphMemcpyNodeGetParams:

Alias of hipGraphMemcpyNodeGetParams

cudaGraphMemcpyNodeGetParams:

Alias of hipGraphMemcpyNodeGetParams

cuGraphMemcpyNodeSetParams:

Alias of hipGraphMemcpyNodeSetParams

cudaGraphMemcpyNodeSetParams:

Alias of hipGraphMemcpyNodeSetParams

cuGraphKernelNodeSetAttribute:

Alias of hipGraphKernelNodeSetAttribute

cudaGraphKernelNodeSetAttribute:

Alias of hipGraphKernelNodeSetAttribute

cuGraphKernelNodeGetAttribute:

Alias of hipGraphKernelNodeGetAttribute

cudaGraphKernelNodeGetAttribute:

Alias of hipGraphKernelNodeGetAttribute

cudaGraphExecMemcpyNodeSetParams:

Alias of hipGraphExecMemcpyNodeSetParams

cudaGraphAddMemcpyNode1D:

Alias of hipGraphAddMemcpyNode1D

cudaGraphMemcpyNodeSetParams1D:

Alias of hipGraphMemcpyNodeSetParams1D

cudaGraphExecMemcpyNodeSetParams1D:

Alias of hipGraphExecMemcpyNodeSetParams1D

cudaGraphAddMemcpyNodeFromSymbol:

Alias of hipGraphAddMemcpyNodeFromSymbol

cudaGraphMemcpyNodeSetParamsFromSymbol:

Alias of hipGraphMemcpyNodeSetParamsFromSymbol

cudaGraphExecMemcpyNodeSetParamsFromSymbol:

Alias of hipGraphExecMemcpyNodeSetParamsFromSymbol

cudaGraphAddMemcpyNodeToSymbol:

Alias of hipGraphAddMemcpyNodeToSymbol

cudaGraphMemcpyNodeSetParamsToSymbol:

Alias of hipGraphMemcpyNodeSetParamsToSymbol

cudaGraphExecMemcpyNodeSetParamsToSymbol:

Alias of hipGraphExecMemcpyNodeSetParamsToSymbol

cudaGraphAddMemsetNode:

Alias of hipGraphAddMemsetNode

cuGraphMemsetNodeGetParams:

Alias of hipGraphMemsetNodeGetParams

cudaGraphMemsetNodeGetParams:

Alias of hipGraphMemsetNodeGetParams

cuGraphMemsetNodeSetParams:

Alias of hipGraphMemsetNodeSetParams

cudaGraphMemsetNodeSetParams:

Alias of hipGraphMemsetNodeSetParams

cudaGraphExecMemsetNodeSetParams:

Alias of hipGraphExecMemsetNodeSetParams

cuGraphAddHostNode:

Alias of hipGraphAddHostNode

cudaGraphAddHostNode:

Alias of hipGraphAddHostNode

cuGraphHostNodeGetParams:

Alias of hipGraphHostNodeGetParams

cudaGraphHostNodeGetParams:

Alias of hipGraphHostNodeGetParams

cuGraphHostNodeSetParams:

Alias of hipGraphHostNodeSetParams

cudaGraphHostNodeSetParams:

Alias of hipGraphHostNodeSetParams

cuGraphExecHostNodeSetParams:

Alias of hipGraphExecHostNodeSetParams

cudaGraphExecHostNodeSetParams:

Alias of hipGraphExecHostNodeSetParams

cuGraphAddChildGraphNode:

Alias of hipGraphAddChildGraphNode

cudaGraphAddChildGraphNode:

Alias of hipGraphAddChildGraphNode

cuGraphChildGraphNodeGetGraph:

Alias of hipGraphChildGraphNodeGetGraph

cudaGraphChildGraphNodeGetGraph:

Alias of hipGraphChildGraphNodeGetGraph

cuGraphExecChildGraphNodeSetParams:

Alias of hipGraphExecChildGraphNodeSetParams

cudaGraphExecChildGraphNodeSetParams:

Alias of hipGraphExecChildGraphNodeSetParams

cuGraphAddEmptyNode:

Alias of hipGraphAddEmptyNode

cudaGraphAddEmptyNode:

Alias of hipGraphAddEmptyNode

cuGraphAddEventRecordNode:

Alias of hipGraphAddEventRecordNode

cudaGraphAddEventRecordNode:

Alias of hipGraphAddEventRecordNode

cuGraphEventRecordNodeGetEvent:

Alias of hipGraphEventRecordNodeGetEvent

cudaGraphEventRecordNodeGetEvent:

Alias of hipGraphEventRecordNodeGetEvent

cuGraphEventRecordNodeSetEvent:

Alias of hipGraphEventRecordNodeSetEvent

cudaGraphEventRecordNodeSetEvent:

Alias of hipGraphEventRecordNodeSetEvent

cuGraphExecEventRecordNodeSetEvent:

Alias of hipGraphExecEventRecordNodeSetEvent

cudaGraphExecEventRecordNodeSetEvent:

Alias of hipGraphExecEventRecordNodeSetEvent

cuGraphAddEventWaitNode:

Alias of hipGraphAddEventWaitNode

cudaGraphAddEventWaitNode:

Alias of hipGraphAddEventWaitNode

cuGraphEventWaitNodeGetEvent:

Alias of hipGraphEventWaitNodeGetEvent

cudaGraphEventWaitNodeGetEvent:

Alias of hipGraphEventWaitNodeGetEvent

cuGraphEventWaitNodeSetEvent:

Alias of hipGraphEventWaitNodeSetEvent

cudaGraphEventWaitNodeSetEvent:

Alias of hipGraphEventWaitNodeSetEvent

cuGraphExecEventWaitNodeSetEvent:

Alias of hipGraphExecEventWaitNodeSetEvent

cudaGraphExecEventWaitNodeSetEvent:

Alias of hipGraphExecEventWaitNodeSetEvent

cuGraphAddMemAllocNode:

Alias of hipGraphAddMemAllocNode

cudaGraphAddMemAllocNode:

Alias of hipGraphAddMemAllocNode

cuGraphMemAllocNodeGetParams:

Alias of hipGraphMemAllocNodeGetParams

cudaGraphMemAllocNodeGetParams:

Alias of hipGraphMemAllocNodeGetParams

cuGraphAddMemFreeNode:

Alias of hipGraphAddMemFreeNode

cudaGraphAddMemFreeNode:

Alias of hipGraphAddMemFreeNode

cuGraphMemFreeNodeGetParams:

Alias of hipGraphMemFreeNodeGetParams

cudaGraphMemFreeNodeGetParams:

Alias of hipGraphMemFreeNodeGetParams

cuDeviceGetGraphMemAttribute:

Alias of hipDeviceGetGraphMemAttribute

cudaDeviceGetGraphMemAttribute:

Alias of hipDeviceGetGraphMemAttribute

cuDeviceSetGraphMemAttribute:

Alias of hipDeviceSetGraphMemAttribute

cudaDeviceSetGraphMemAttribute:

Alias of hipDeviceSetGraphMemAttribute

cuDeviceGraphMemTrim:

Alias of hipDeviceGraphMemTrim

cudaDeviceGraphMemTrim:

Alias of hipDeviceGraphMemTrim

cuUserObjectCreate:

Alias of hipUserObjectCreate

cudaUserObjectCreate:

Alias of hipUserObjectCreate

cuUserObjectRelease:

Alias of hipUserObjectRelease

cudaUserObjectRelease:

Alias of hipUserObjectRelease

cuUserObjectRetain:

Alias of hipUserObjectRetain

cudaUserObjectRetain:

Alias of hipUserObjectRetain

cuGraphRetainUserObject:

Alias of hipGraphRetainUserObject

cudaGraphRetainUserObject:

Alias of hipGraphRetainUserObject

cuGraphReleaseUserObject:

Alias of hipGraphReleaseUserObject

cudaGraphReleaseUserObject:

Alias of hipGraphReleaseUserObject

cuGraphDebugDotPrint:

Alias of hipGraphDebugDotPrint

cudaGraphDebugDotPrint:

Alias of hipGraphDebugDotPrint

cuGraphKernelNodeCopyAttributes:

Alias of hipGraphKernelNodeCopyAttributes

cudaGraphKernelNodeCopyAttributes:

Alias of hipGraphKernelNodeCopyAttributes

cuGraphNodeSetEnabled:

Alias of hipGraphNodeSetEnabled

cudaGraphNodeSetEnabled:

Alias of hipGraphNodeSetEnabled

cuGraphNodeGetEnabled:

Alias of hipGraphNodeGetEnabled

cudaGraphNodeGetEnabled:

Alias of hipGraphNodeGetEnabled

cuMemAddressFree:

Alias of hipMemAddressFree

cuMemAddressReserve:

Alias of hipMemAddressReserve

cuMemCreate:

Alias of hipMemCreate

cuMemExportToShareableHandle:

Alias of hipMemExportToShareableHandle

cuMemGetAccess:

Alias of hipMemGetAccess

cuMemGetAllocationGranularity:

Alias of hipMemGetAllocationGranularity

cuMemGetAllocationPropertiesFromHandle:

Alias of hipMemGetAllocationPropertiesFromHandle

cuMemImportFromShareableHandle:

Alias of hipMemImportFromShareableHandle

cuMemMap:

Alias of hipMemMap

cuMemMapArrayAsync:

Alias of hipMemMapArrayAsync

cuMemRelease:

Alias of hipMemRelease

cuMemRetainAllocationHandle:

Alias of hipMemRetainAllocationHandle

cuMemSetAccess:

Alias of hipMemSetAccess

cuMemUnmap:

Alias of hipMemUnmap

cuGraphicsMapResources:

Alias of hipGraphicsMapResources

cudaGraphicsMapResources:

Alias of hipGraphicsMapResources

cuGraphicsSubResourceGetMappedArray:

Alias of hipGraphicsSubResourceGetMappedArray

cudaGraphicsSubResourceGetMappedArray:

Alias of hipGraphicsSubResourceGetMappedArray

cuGraphicsResourceGetMappedPointer:

Alias of hipGraphicsResourceGetMappedPointer

cuGraphicsResourceGetMappedPointer_v2:

Alias of hipGraphicsResourceGetMappedPointer

cudaGraphicsResourceGetMappedPointer:

Alias of hipGraphicsResourceGetMappedPointer

cuGraphicsUnmapResources:

Alias of hipGraphicsUnmapResources

cudaGraphicsUnmapResources:

Alias of hipGraphicsUnmapResources

cuGraphicsUnregisterResource:

Alias of hipGraphicsUnregisterResource

cudaGraphicsUnregisterResource:

Alias of hipGraphicsUnregisterResource

cudaCreateSurfaceObject:

Alias of hipCreateSurfaceObject

cudaDestroySurfaceObject:

Alias of hipDestroySurfaceObject

HIP_PYTHON_cublasDataType_t_HALLUCINATE:

Make cublasDataType_t hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cublasDataType_t_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaDataType_HALLUCINATE:

Make cudaDataType hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaDataType_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

HIP_PYTHON_cudaDataType_t_HALLUCINATE:

Make cudaDataType_t hallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.

Default value can be set/unset via environment variable HIP_PYTHON_cudaDataType_t_HALLUCINATE.

  • Environment variable values that result in True are: yes, 1, y, true

  • Those that result in False are: no, 0, n, false.

class cuda.cuda.CUuuid_st

Bases: hipUUID_t

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipUUID_t.

Constructor for type hipUUID_t.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

bytes

(undocumented)

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipUUID_t from a Python object.

Derives a hipUUID_t from the given Python object pyobj. In case pyobj is itself an hipUUID_t reference, this method returns it directly. No new hipUUID_t is created in this case.

get_bytes(self, i)

Get value of bytes of (<chip.hipUUID_t*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

cuda.cuda.CUuuid

alias of hipUUID_t

cuda.cuda.cudaUUID_t

alias of hipUUID_t

class cuda.cuda.cudaDeviceProp

Bases: hipDeviceProp_t

ECCEnabled

Device has ECC support enabled

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipDeviceProp_t.

Constructor for type hipDeviceProp_t.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

accessPolicyMaxWindowSize

Max value of access policy window

arch

Architectural feature flags. New for HIP.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

asicRevision

Revision of the GPU in this device

asyncEngineCount

Number of async engines

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

canMapHostMemory

Check whether HIP can map host memory

canUseHostPointerForRegisteredMem

Device can access host registered memory with same address as the host

clockInstructionRate

Frequency in khz of the timer used by the device-side “clock*” instructions. New for HIP.

clockRate

Max clock frequency of the multiProcessors in khz.

clusterLaunch

Device supports cluster launch

computeMode

Compute mode.

computePreemptionSupported

Is compute preemption supported on the device

concurrentKernels

Device can possibly execute multiple kernels concurrently.

concurrentManagedAccess

Device can coherently access managed memory concurrently with the CPU

cooperativeLaunch

HIP device supports cooperative launch

cooperativeMultiDeviceLaunch

HIP device supports cooperative launch on multiple devices

cooperativeMultiDeviceUnmatchedBlockDim

HIP device supports cooperative launch on multiple

cooperativeMultiDeviceUnmatchedFunc

HIP device supports cooperative launch on multiple

cooperativeMultiDeviceUnmatchedGridDim

HIP device supports cooperative launch on multiple

cooperativeMultiDeviceUnmatchedSharedMem

HIP device supports cooperative launch on multiple

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

deferredMappingHipArraySupported

Device supports deferred mapping HIP arrays and HIP mipmapped arrays

deviceOverlap

Deprecated. Use asyncEngineCount instead

directManagedMemAccessFromHost

Host can directly access managed memory on the device without migration

static fromObj(pyobj)

Creates a hipDeviceProp_t from a Python object.

Derives a hipDeviceProp_t from the given Python object pyobj. In case pyobj is itself an hipDeviceProp_t reference, this method returns it directly. No new hipDeviceProp_t is created in this case.

gcnArchName

AMD GCN Arch Name. HIP Only.

get_ECCEnabled(self, i)

Get value ECCEnabled of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_accessPolicyMaxWindowSize(self, i)

Get value accessPolicyMaxWindowSize of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_arch(self, i)

Get value of arch of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_asicRevision(self, i)

Get value asicRevision of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_asyncEngineCount(self, i)

Get value asyncEngineCount of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_canMapHostMemory(self, i)

Get value canMapHostMemory of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_canUseHostPointerForRegisteredMem(self, i)

Get value canUseHostPointerForRegisteredMem of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_clockInstructionRate(self, i)

Get value clockInstructionRate of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_clockRate(self, i)

Get value clockRate of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_clusterLaunch(self, i)

Get value clusterLaunch of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_computeMode(self, i)

Get value computeMode of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_computePreemptionSupported(self, i)

Get value computePreemptionSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_concurrentKernels(self, i)

Get value concurrentKernels of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_concurrentManagedAccess(self, i)

Get value concurrentManagedAccess of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_cooperativeLaunch(self, i)

Get value cooperativeLaunch of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_cooperativeMultiDeviceLaunch(self, i)

Get value cooperativeMultiDeviceLaunch of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_cooperativeMultiDeviceUnmatchedBlockDim(self, i)

Get value cooperativeMultiDeviceUnmatchedBlockDim of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_cooperativeMultiDeviceUnmatchedFunc(self, i)

Get value cooperativeMultiDeviceUnmatchedFunc of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_cooperativeMultiDeviceUnmatchedGridDim(self, i)

Get value cooperativeMultiDeviceUnmatchedGridDim of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_cooperativeMultiDeviceUnmatchedSharedMem(self, i)

Get value cooperativeMultiDeviceUnmatchedSharedMem of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_deferredMappingHipArraySupported(self, i)

Get value deferredMappingHipArraySupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_deviceOverlap(self, i)

Get value deviceOverlap of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_directManagedMemAccessFromHost(self, i)

Get value directManagedMemAccessFromHost of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_gcnArchName(self, i)

Get value of gcnArchName of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_globalL1CacheSupported(self, i)

Get value globalL1CacheSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_gpuDirectRDMAFlushWritesOptions(self, i)

Get value gpuDirectRDMAFlushWritesOptions of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_gpuDirectRDMASupported(self, i)

Get value gpuDirectRDMASupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_gpuDirectRDMAWritesOrdering(self, i)

Get value gpuDirectRDMAWritesOrdering of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_hdpMemFlushCntl(self, i)

Get value hdpMemFlushCntl of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_hdpRegFlushCntl(self, i)

Get value hdpRegFlushCntl of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_hipReserved(self, i)

Get value of hipReserved of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_hostNativeAtomicSupported(self, i)

Get value hostNativeAtomicSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_hostRegisterReadOnlySupported(self, i)

Get value hostRegisterReadOnlySupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_hostRegisterSupported(self, i)

Get value hostRegisterSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_integrated(self, i)

Get value integrated of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_ipcEventSupported(self, i)

Get value ipcEventSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_isLargeBar(self, i)

Get value isLargeBar of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_isMultiGpuBoard(self, i)

Get value isMultiGpuBoard of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_kernelExecTimeoutEnabled(self, i)

Get value kernelExecTimeoutEnabled of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_l2CacheSize(self, i)

Get value l2CacheSize of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_localL1CacheSupported(self, i)

Get value localL1CacheSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_luid(self, i)

Get value of luid of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_luidDeviceNodeMask(self, i)

Get value luidDeviceNodeMask of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_major(self, i)

Get value major of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_managedMemory(self, i)

Get value managedMemory of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxBlocksPerMultiProcessor(self, i)

Get value maxBlocksPerMultiProcessor of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxGridSize(self, i)

Get value of maxGridSize of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxSharedMemoryPerMultiProcessor(self, i)

Get value maxSharedMemoryPerMultiProcessor of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxSurface1D(self, i)

Get value maxSurface1D of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxSurface1DLayered(self, i)

Get value of maxSurface1DLayered of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxSurface2D(self, i)

Get value of maxSurface2D of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxSurface2DLayered(self, i)

Get value of maxSurface2DLayered of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxSurface3D(self, i)

Get value of maxSurface3D of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxSurfaceCubemap(self, i)

Get value maxSurfaceCubemap of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxSurfaceCubemapLayered(self, i)

Get value of maxSurfaceCubemapLayered of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxTexture1D(self, i)

Get value maxTexture1D of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxTexture1DLayered(self, i)

Get value of maxTexture1DLayered of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxTexture1DLinear(self, i)

Get value maxTexture1DLinear of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxTexture1DMipmap(self, i)

Get value maxTexture1DMipmap of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxTexture2D(self, i)

Get value of maxTexture2D of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxTexture2DGather(self, i)

Get value of maxTexture2DGather of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxTexture2DLayered(self, i)

Get value of maxTexture2DLayered of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxTexture2DLinear(self, i)

Get value of maxTexture2DLinear of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxTexture2DMipmap(self, i)

Get value of maxTexture2DMipmap of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxTexture3D(self, i)

Get value of maxTexture3D of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxTexture3DAlt(self, i)

Get value of maxTexture3DAlt of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxTextureCubemap(self, i)

Get value maxTextureCubemap of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxTextureCubemapLayered(self, i)

Get value of maxTextureCubemapLayered of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxThreadsDim(self, i)

Get value of maxThreadsDim of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxThreadsPerBlock(self, i)

Get value maxThreadsPerBlock of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_maxThreadsPerMultiProcessor(self, i)

Get value maxThreadsPerMultiProcessor of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_memPitch(self, i)

Get value memPitch of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_memoryBusWidth(self, i)

Get value memoryBusWidth of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_memoryClockRate(self, i)

Get value memoryClockRate of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_memoryPoolSupportedHandleTypes(self, i)

Get value memoryPoolSupportedHandleTypes of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_memoryPoolsSupported(self, i)

Get value memoryPoolsSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_minor(self, i)

Get value minor of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_multiGpuBoardGroupID(self, i)

Get value multiGpuBoardGroupID of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_multiProcessorCount(self, i)

Get value multiProcessorCount of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_name(self, i)

Get value of name of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_pageableMemoryAccess(self, i)

Get value pageableMemoryAccess of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_pageableMemoryAccessUsesHostPageTables(self, i)

Get value pageableMemoryAccessUsesHostPageTables of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_pciBusID(self, i)

Get value pciBusID of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_pciDeviceID(self, i)

Get value pciDeviceID of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_pciDomainID(self, i)

Get value pciDomainID of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_persistingL2CacheMaxSize(self, i)

Get value persistingL2CacheMaxSize of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_regsPerBlock(self, i)

Get value regsPerBlock of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_regsPerMultiprocessor(self, i)

Get value regsPerMultiprocessor of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_reservedSharedMemPerBlock(self, i)

Get value reservedSharedMemPerBlock of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_sharedMemPerBlock(self, i)

Get value sharedMemPerBlock of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_sharedMemPerBlockOptin(self, i)

Get value sharedMemPerBlockOptin of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_sharedMemPerMultiprocessor(self, i)

Get value sharedMemPerMultiprocessor of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_singleToDoublePrecisionPerfRatio(self, i)

Get value singleToDoublePrecisionPerfRatio of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_sparseHipArraySupported(self, i)

Get value sparseHipArraySupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_streamPrioritiesSupported(self, i)

Get value streamPrioritiesSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_surfaceAlignment(self, i)

Get value surfaceAlignment of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_tccDriver(self, i)

Get value tccDriver of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_textureAlignment(self, i)

Get value textureAlignment of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_texturePitchAlignment(self, i)

Get value texturePitchAlignment of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_timelineSemaphoreInteropSupported(self, i)

Get value timelineSemaphoreInteropSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_totalConstMem(self, i)

Get value totalConstMem of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_totalGlobalMem(self, i)

Get value totalGlobalMem of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_unifiedAddressing(self, i)

Get value unifiedAddressing of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_unifiedFunctionPointers(self, i)

Get value unifiedFunctionPointers of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_uuid(self, i)

Get value of uuid of (<chip.hipDeviceProp_t*>self._ptr)[i].

get_warpSize(self, i)

Get value warpSize of (<chip.hipDeviceProp_t*>self._ptr)[i].

globalL1CacheSupported

Indicates globals are cached in L1

gpuDirectRDMAFlushWritesOptions

Bitmask to be interpreted according to hipFlushGPUDirectRDMAWritesOptions

gpuDirectRDMASupported

Indicates device support of RDMA APIs

gpuDirectRDMAWritesOrdering

value of hipGPUDirectRDMAWritesOrdering

hdpMemFlushCntl

Addres of HDP_MEM_COHERENCY_FLUSH_CNTL register Note:

Setting this hdpMemFlushCntl can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

hdpRegFlushCntl

Addres of HDP_REG_COHERENCY_FLUSH_CNTL register Note:

Setting this hdpRegFlushCntl can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

hipReserved

Reserved for adding new entries for HIP/CUDA.

hostNativeAtomicSupported

Link between host and device supports native atomics

hostRegisterReadOnlySupported

Device supports using the hipHostRegisterReadOnly flag with hipHostRegistger

hostRegisterSupported

Device supports hipHostRegister

integrated

APU vs dGPU

ipcEventSupported

Device supports IPC events

isLargeBar

1: if it is a large PCI bar device, else 0

isMultiGpuBoard

1 if device is on a multi-GPU board, 0 if not.

is_ptr_null

If data pointer is NULL.

kernelExecTimeoutEnabled

Run time limit for kernels executed on the device

l2CacheSize

L2 cache size.

localL1CacheSupported

Locals are cahced in L1

luid

8-byte unique identifier. Only valid on windows

luidDeviceNodeMask

LUID node mask

major

Major compute capability. On HCC, this is an approximation and features may differ from CUDA CC. See the arch feature flags for portable ways to query feature caps.

managedMemory

Device supports allocating managed memory on this system

maxBlocksPerMultiProcessor

Max number of blocks on CU

maxGridSize

Max grid dimensions (XYZ).

maxSharedMemoryPerMultiProcessor

Maximum Shared Memory Per CU. HIP Only.

maxSurface1D

Maximum 1D surface size

maxSurface1DLayered

Maximum 1D layered surface size

maxSurface2D

Maximum 2D surface size

maxSurface2DLayered

Maximum 2D layared surface size

maxSurface3D

Maximum 3D surface size

maxSurfaceCubemap

Maximum cubemap surface size

maxSurfaceCubemapLayered

Maximum cubemap layered surface size

maxTexture1D

Maximum number of elements in 1D images

maxTexture1DLayered

Maximum number of elements in 1D array images

maxTexture1DLinear

Maximum size for 1D textures bound to linear memory

maxTexture1DMipmap

Maximum 1D mipmap texture size

maxTexture2D

Maximum dimensions (width, height) of 2D images, in image elements

maxTexture2DGather

Maximum 2D tex dimensions if gather has to be performed

maxTexture2DLayered

Maximum number of elements in 2D array images

maxTexture2DLinear

Maximum 2D tex dimensions if tex are bound to pitched memory

maxTexture2DMipmap

Maximum number of elements in 2D array mipmap of images

maxTexture3D

Maximum dimensions (width, height, depth) of 3D images, in image elements

maxTexture3DAlt

Maximum alternate 3D texture dims

maxTextureCubemap

Maximum cubemap texture dims

maxTextureCubemapLayered

Maximum cubemaps layered texture dims

maxThreadsDim

Max number of threads in each dimension (XYZ) of a block.

maxThreadsPerBlock

Max work items per work group or workgroup max size.

maxThreadsPerMultiProcessor

Maximum resident threads per multi-processor.

memPitch

Maximum pitch in bytes allowed by memory copies pitched memory

memoryBusWidth

Global memory bus width in bits.

memoryClockRate

Max global memory clock frequency in khz.

memoryPoolSupportedHandleTypes

Bitmask of handle types support with mempool based IPC

memoryPoolsSupported

Indicates if device supports hipMallocAsync and hipMemPool APIs

minor

Minor compute capability. On HCC, this is an approximation and features may differ from CUDA CC. See the arch feature flags for portable ways to query feature caps.

multiGpuBoardGroupID

Unique identifier for a group of devices on same multiboard GPU

multiProcessorCount

Number of multi-processors (compute units).

name

Device name.

pageableMemoryAccess

Device supports coherently accessing pageable memory without calling hipHostRegister on it

pageableMemoryAccessUsesHostPageTables

Device accesses pageable memory via the host’s page tables

pciBusID

PCI Bus ID.

pciDeviceID

PCI Device ID.

pciDomainID

PCI Domain ID

persistingL2CacheMaxSize

Device’s max L2 persisting lines in bytes

regsPerBlock

Registers per block.

regsPerMultiprocessor

registers available per multiprocessor

reserved

CUDA Reserved.

reservedSharedMemPerBlock

Shared memory reserved by driver per block

set_ECCEnabled(self, i, int value)

Set value ECCEnabled of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_accessPolicyMaxWindowSize(self, i, int value)

Set value accessPolicyMaxWindowSize of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_asicRevision(self, i, int value)

Set value asicRevision of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_asyncEngineCount(self, i, int value)

Set value asyncEngineCount of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_canMapHostMemory(self, i, int value)

Set value canMapHostMemory of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_canUseHostPointerForRegisteredMem(self, i, int value)

Set value canUseHostPointerForRegisteredMem of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_clockInstructionRate(self, i, int value)

Set value clockInstructionRate of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_clockRate(self, i, int value)

Set value clockRate of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_clusterLaunch(self, i, int value)

Set value clusterLaunch of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_computeMode(self, i, int value)

Set value computeMode of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_computePreemptionSupported(self, i, int value)

Set value computePreemptionSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_concurrentKernels(self, i, int value)

Set value concurrentKernels of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_concurrentManagedAccess(self, i, int value)

Set value concurrentManagedAccess of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_cooperativeLaunch(self, i, int value)

Set value cooperativeLaunch of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_cooperativeMultiDeviceLaunch(self, i, int value)

Set value cooperativeMultiDeviceLaunch of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_cooperativeMultiDeviceUnmatchedBlockDim(self, i, int value)

Set value cooperativeMultiDeviceUnmatchedBlockDim of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_cooperativeMultiDeviceUnmatchedFunc(self, i, int value)

Set value cooperativeMultiDeviceUnmatchedFunc of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_cooperativeMultiDeviceUnmatchedGridDim(self, i, int value)

Set value cooperativeMultiDeviceUnmatchedGridDim of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_cooperativeMultiDeviceUnmatchedSharedMem(self, i, int value)

Set value cooperativeMultiDeviceUnmatchedSharedMem of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_deferredMappingHipArraySupported(self, i, int value)

Set value deferredMappingHipArraySupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_deviceOverlap(self, i, int value)

Set value deviceOverlap of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_directManagedMemAccessFromHost(self, i, int value)

Set value directManagedMemAccessFromHost of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_globalL1CacheSupported(self, i, int value)

Set value globalL1CacheSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_gpuDirectRDMAFlushWritesOptions(self, i, unsigned int value)

Set value gpuDirectRDMAFlushWritesOptions of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_gpuDirectRDMASupported(self, i, int value)

Set value gpuDirectRDMASupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_gpuDirectRDMAWritesOrdering(self, i, int value)

Set value gpuDirectRDMAWritesOrdering of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_hdpMemFlushCntl(self, i, value)

Set value hdpMemFlushCntl of (<chip.hipDeviceProp_t*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_hdpRegFlushCntl(self, i, value)

Set value hdpRegFlushCntl of (<chip.hipDeviceProp_t*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_hostNativeAtomicSupported(self, i, int value)

Set value hostNativeAtomicSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_hostRegisterReadOnlySupported(self, i, int value)

Set value hostRegisterReadOnlySupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_hostRegisterSupported(self, i, int value)

Set value hostRegisterSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_integrated(self, i, int value)

Set value integrated of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_ipcEventSupported(self, i, int value)

Set value ipcEventSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_isLargeBar(self, i, int value)

Set value isLargeBar of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_isMultiGpuBoard(self, i, int value)

Set value isMultiGpuBoard of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_kernelExecTimeoutEnabled(self, i, int value)

Set value kernelExecTimeoutEnabled of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_l2CacheSize(self, i, int value)

Set value l2CacheSize of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_localL1CacheSupported(self, i, int value)

Set value localL1CacheSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_luidDeviceNodeMask(self, i, unsigned int value)

Set value luidDeviceNodeMask of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_major(self, i, int value)

Set value major of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_managedMemory(self, i, int value)

Set value managedMemory of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_maxBlocksPerMultiProcessor(self, i, int value)

Set value maxBlocksPerMultiProcessor of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_maxSharedMemoryPerMultiProcessor(self, i, unsigned long value)

Set value maxSharedMemoryPerMultiProcessor of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_maxSurface1D(self, i, int value)

Set value maxSurface1D of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_maxSurfaceCubemap(self, i, int value)

Set value maxSurfaceCubemap of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_maxTexture1D(self, i, int value)

Set value maxTexture1D of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_maxTexture1DLinear(self, i, int value)

Set value maxTexture1DLinear of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_maxTexture1DMipmap(self, i, int value)

Set value maxTexture1DMipmap of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_maxTextureCubemap(self, i, int value)

Set value maxTextureCubemap of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_maxThreadsPerBlock(self, i, int value)

Set value maxThreadsPerBlock of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_maxThreadsPerMultiProcessor(self, i, int value)

Set value maxThreadsPerMultiProcessor of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_memPitch(self, i, unsigned long value)

Set value memPitch of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_memoryBusWidth(self, i, int value)

Set value memoryBusWidth of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_memoryClockRate(self, i, int value)

Set value memoryClockRate of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_memoryPoolSupportedHandleTypes(self, i, unsigned int value)

Set value memoryPoolSupportedHandleTypes of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_memoryPoolsSupported(self, i, int value)

Set value memoryPoolsSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_minor(self, i, int value)

Set value minor of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_multiGpuBoardGroupID(self, i, int value)

Set value multiGpuBoardGroupID of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_multiProcessorCount(self, i, int value)

Set value multiProcessorCount of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_pageableMemoryAccess(self, i, int value)

Set value pageableMemoryAccess of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_pageableMemoryAccessUsesHostPageTables(self, i, int value)

Set value pageableMemoryAccessUsesHostPageTables of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_pciBusID(self, i, int value)

Set value pciBusID of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_pciDeviceID(self, i, int value)

Set value pciDeviceID of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_pciDomainID(self, i, int value)

Set value pciDomainID of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_persistingL2CacheMaxSize(self, i, int value)

Set value persistingL2CacheMaxSize of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_regsPerBlock(self, i, int value)

Set value regsPerBlock of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_regsPerMultiprocessor(self, i, int value)

Set value regsPerMultiprocessor of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_reservedSharedMemPerBlock(self, i, unsigned long value)

Set value reservedSharedMemPerBlock of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_sharedMemPerBlock(self, i, unsigned long value)

Set value sharedMemPerBlock of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_sharedMemPerBlockOptin(self, i, unsigned long value)

Set value sharedMemPerBlockOptin of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_sharedMemPerMultiprocessor(self, i, unsigned long value)

Set value sharedMemPerMultiprocessor of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_singleToDoublePrecisionPerfRatio(self, i, int value)

Set value singleToDoublePrecisionPerfRatio of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_sparseHipArraySupported(self, i, int value)

Set value sparseHipArraySupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_streamPrioritiesSupported(self, i, int value)

Set value streamPrioritiesSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_surfaceAlignment(self, i, unsigned long value)

Set value surfaceAlignment of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_tccDriver(self, i, int value)

Set value tccDriver of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_textureAlignment(self, i, unsigned long value)

Set value textureAlignment of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_texturePitchAlignment(self, i, unsigned long value)

Set value texturePitchAlignment of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_timelineSemaphoreInteropSupported(self, i, int value)

Set value timelineSemaphoreInteropSupported of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_totalConstMem(self, i, unsigned long value)

Set value totalConstMem of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_totalGlobalMem(self, i, unsigned long value)

Set value totalGlobalMem of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_unifiedAddressing(self, i, int value)

Set value unifiedAddressing of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_unifiedFunctionPointers(self, i, int value)

Set value unifiedFunctionPointers of (<chip.hipDeviceProp_t*>self._ptr)[i].

set_warpSize(self, i, int value)

Set value warpSize of (<chip.hipDeviceProp_t*>self._ptr)[i].

sharedMemPerBlock

Size of shared memory region (in bytes).

sharedMemPerBlockOptin

Per device m ax shared mem per block usable by special opt in

sharedMemPerMultiprocessor

Amount of shared memory available per multiprocessor.

singleToDoublePrecisionPerfRatio

Deprecated. CUDA only.

sparseHipArraySupported

Indicates if device supports sparse hip arrays

streamPrioritiesSupported

Device supports stream priority

surfaceAlignment

Alignment requirement for surface

tccDriver

1:If device is Tesla device using TCC driver, else 0

textureAlignment

Alignment requirement for textures

texturePitchAlignment

Pitch alignment requirement for texture references bound to

timelineSemaphoreInteropSupported

Indicates external timeline semaphore support

totalConstMem

Size of shared memory region (in bytes).

totalGlobalMem

Size of global memory region (in bytes).

unifiedAddressing

Does device and host share unified address space

unifiedFunctionPointers

Indicates device supports unified function pointers

uuid

UUID of a device

warpSize

Warp size.

class cuda.cuda.CUmemorytype(value)

Bases: _hipMemoryType__Base

An enumeration.

hipMemoryTypeUnregistered = 0
hipMemoryTypeHost = 1
CU_MEMORYTYPE_HOST = 1
cudaMemoryTypeHost = 1
hipMemoryTypeDevice = 2
CU_MEMORYTYPE_DEVICE = 2
cudaMemoryTypeDevice = 2
hipMemoryTypeManaged = 3
cudaMemoryTypeManaged = 3
hipMemoryTypeArray = 10
CU_MEMORYTYPE_ARRAY = 10
hipMemoryTypeUnified = 11
CU_MEMORYTYPE_UNIFIED = 11
class cuda.cuda.CUmemorytype_enum(value)

Bases: _hipMemoryType__Base

An enumeration.

hipMemoryTypeUnregistered = 0
hipMemoryTypeHost = 1
CU_MEMORYTYPE_HOST = 1
cudaMemoryTypeHost = 1
hipMemoryTypeDevice = 2
CU_MEMORYTYPE_DEVICE = 2
cudaMemoryTypeDevice = 2
hipMemoryTypeManaged = 3
cudaMemoryTypeManaged = 3
hipMemoryTypeArray = 10
CU_MEMORYTYPE_ARRAY = 10
hipMemoryTypeUnified = 11
CU_MEMORYTYPE_UNIFIED = 11
class cuda.cuda.cudaMemoryType(value)

Bases: _hipMemoryType__Base

An enumeration.

hipMemoryTypeUnregistered = 0
hipMemoryTypeHost = 1
CU_MEMORYTYPE_HOST = 1
cudaMemoryTypeHost = 1
hipMemoryTypeDevice = 2
CU_MEMORYTYPE_DEVICE = 2
cudaMemoryTypeDevice = 2
hipMemoryTypeManaged = 3
cudaMemoryTypeManaged = 3
hipMemoryTypeArray = 10
CU_MEMORYTYPE_ARRAY = 10
hipMemoryTypeUnified = 11
CU_MEMORYTYPE_UNIFIED = 11
class cuda.cuda.cudaPointerAttributes

Bases: hipPointerAttribute_t

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipPointerAttribute_t.

Constructor for type hipPointerAttribute_t.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

allocationFlags

(undocumented)

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

device

(undocumented)

devicePointer

(undocumented) Note:

Setting this devicePointer can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipPointerAttribute_t from a Python object.

Derives a hipPointerAttribute_t from the given Python object pyobj. In case pyobj is itself an hipPointerAttribute_t reference, this method returns it directly. No new hipPointerAttribute_t is created in this case.

get_allocationFlags(self, i)

Get value allocationFlags of (<chip.hipPointerAttribute_t*>self._ptr)[i].

get_device(self, i)

Get value device of (<chip.hipPointerAttribute_t*>self._ptr)[i].

get_devicePointer(self, i)

Get value devicePointer of (<chip.hipPointerAttribute_t*>self._ptr)[i].

get_hostPointer(self, i)

Get value hostPointer of (<chip.hipPointerAttribute_t*>self._ptr)[i].

get_isManaged(self, i)

Get value isManaged of (<chip.hipPointerAttribute_t*>self._ptr)[i].

get_type(self, i)

Get value of type of (<chip.hipPointerAttribute_t*>self._ptr)[i].

hostPointer

(undocumented) Note:

Setting this hostPointer can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

isManaged

(undocumented)

is_ptr_null

If data pointer is NULL.

set_allocationFlags(self, i, unsigned int value)

Set value allocationFlags of (<chip.hipPointerAttribute_t*>self._ptr)[i].

set_device(self, i, int value)

Set value device of (<chip.hipPointerAttribute_t*>self._ptr)[i].

set_devicePointer(self, i, value)

Set value devicePointer of (<chip.hipPointerAttribute_t*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_hostPointer(self, i, value)

Set value hostPointer of (<chip.hipPointerAttribute_t*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_isManaged(self, i, int value)

Set value isManaged of (<chip.hipPointerAttribute_t*>self._ptr)[i].

set_type(self, i, value)

Set value type of (<chip.hipPointerAttribute_t*>self._ptr)[i].

type

(undocumented)

class cuda.cuda.CUresult(value)

Bases: _hipError_t__Base

An enumeration.

hipSuccess = 0
CUDA_SUCCESS = 0
cudaSuccess = 0
hipErrorInvalidValue = 1
CUDA_ERROR_INVALID_VALUE = 1
cudaErrorInvalidValue = 1
hipErrorOutOfMemory = 2
CUDA_ERROR_OUT_OF_MEMORY = 2
cudaErrorMemoryAllocation = 2
hipErrorMemoryAllocation = 2
hipErrorNotInitialized = 3
CUDA_ERROR_NOT_INITIALIZED = 3
cudaErrorInitializationError = 3
hipErrorInitializationError = 3
hipErrorDeinitialized = 4
CUDA_ERROR_DEINITIALIZED = 4
cudaErrorCudartUnloading = 4
hipErrorProfilerDisabled = 5
CUDA_ERROR_PROFILER_DISABLED = 5
cudaErrorProfilerDisabled = 5
hipErrorProfilerNotInitialized = 6
CUDA_ERROR_PROFILER_NOT_INITIALIZED = 6
cudaErrorProfilerNotInitialized = 6
hipErrorProfilerAlreadyStarted = 7
CUDA_ERROR_PROFILER_ALREADY_STARTED = 7
cudaErrorProfilerAlreadyStarted = 7
hipErrorProfilerAlreadyStopped = 8
CUDA_ERROR_PROFILER_ALREADY_STOPPED = 8
cudaErrorProfilerAlreadyStopped = 8
hipErrorInvalidConfiguration = 9
cudaErrorInvalidConfiguration = 9
hipErrorInvalidPitchValue = 12
cudaErrorInvalidPitchValue = 12
hipErrorInvalidSymbol = 13
cudaErrorInvalidSymbol = 13
hipErrorInvalidDevicePointer = 17
cudaErrorInvalidDevicePointer = 17
hipErrorInvalidMemcpyDirection = 21
cudaErrorInvalidMemcpyDirection = 21
hipErrorInsufficientDriver = 35
cudaErrorInsufficientDriver = 35
hipErrorMissingConfiguration = 52
cudaErrorMissingConfiguration = 52
hipErrorPriorLaunchFailure = 53
cudaErrorPriorLaunchFailure = 53
hipErrorInvalidDeviceFunction = 98
cudaErrorInvalidDeviceFunction = 98
hipErrorNoDevice = 100
CUDA_ERROR_NO_DEVICE = 100
cudaErrorNoDevice = 100
hipErrorInvalidDevice = 101
CUDA_ERROR_INVALID_DEVICE = 101
cudaErrorInvalidDevice = 101
hipErrorInvalidImage = 200
CUDA_ERROR_INVALID_IMAGE = 200
cudaErrorInvalidKernelImage = 200
hipErrorInvalidContext = 201
CUDA_ERROR_INVALID_CONTEXT = 201
cudaErrorDeviceUninitialized = 201
hipErrorContextAlreadyCurrent = 202
CUDA_ERROR_CONTEXT_ALREADY_CURRENT = 202
hipErrorMapFailed = 205
CUDA_ERROR_MAP_FAILED = 205
cudaErrorMapBufferObjectFailed = 205
hipErrorMapBufferObjectFailed = 205
hipErrorUnmapFailed = 206
CUDA_ERROR_UNMAP_FAILED = 206
cudaErrorUnmapBufferObjectFailed = 206
hipErrorArrayIsMapped = 207
CUDA_ERROR_ARRAY_IS_MAPPED = 207
cudaErrorArrayIsMapped = 207
hipErrorAlreadyMapped = 208
CUDA_ERROR_ALREADY_MAPPED = 208
cudaErrorAlreadyMapped = 208
hipErrorNoBinaryForGpu = 209
CUDA_ERROR_NO_BINARY_FOR_GPU = 209
cudaErrorNoKernelImageForDevice = 209
hipErrorAlreadyAcquired = 210
CUDA_ERROR_ALREADY_ACQUIRED = 210
cudaErrorAlreadyAcquired = 210
hipErrorNotMapped = 211
CUDA_ERROR_NOT_MAPPED = 211
cudaErrorNotMapped = 211
hipErrorNotMappedAsArray = 212
CUDA_ERROR_NOT_MAPPED_AS_ARRAY = 212
cudaErrorNotMappedAsArray = 212
hipErrorNotMappedAsPointer = 213
CUDA_ERROR_NOT_MAPPED_AS_POINTER = 213
cudaErrorNotMappedAsPointer = 213
hipErrorECCNotCorrectable = 214
CUDA_ERROR_ECC_UNCORRECTABLE = 214
cudaErrorECCUncorrectable = 214
hipErrorUnsupportedLimit = 215
CUDA_ERROR_UNSUPPORTED_LIMIT = 215
cudaErrorUnsupportedLimit = 215
hipErrorContextAlreadyInUse = 216
CUDA_ERROR_CONTEXT_ALREADY_IN_USE = 216
cudaErrorDeviceAlreadyInUse = 216
hipErrorPeerAccessUnsupported = 217
CUDA_ERROR_PEER_ACCESS_UNSUPPORTED = 217
cudaErrorPeerAccessUnsupported = 217
hipErrorInvalidKernelFile = 218
CUDA_ERROR_INVALID_PTX = 218
cudaErrorInvalidPtx = 218
hipErrorInvalidGraphicsContext = 219
CUDA_ERROR_INVALID_GRAPHICS_CONTEXT = 219
cudaErrorInvalidGraphicsContext = 219
hipErrorInvalidSource = 300
CUDA_ERROR_INVALID_SOURCE = 300
cudaErrorInvalidSource = 300
hipErrorFileNotFound = 301
CUDA_ERROR_FILE_NOT_FOUND = 301
cudaErrorFileNotFound = 301
hipErrorSharedObjectSymbolNotFound = 302
CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND = 302
cudaErrorSharedObjectSymbolNotFound = 302
hipErrorSharedObjectInitFailed = 303
CUDA_ERROR_SHARED_OBJECT_INIT_FAILED = 303
cudaErrorSharedObjectInitFailed = 303
hipErrorOperatingSystem = 304
CUDA_ERROR_OPERATING_SYSTEM = 304
cudaErrorOperatingSystem = 304
hipErrorInvalidHandle = 400
CUDA_ERROR_INVALID_HANDLE = 400
cudaErrorInvalidResourceHandle = 400
hipErrorInvalidResourceHandle = 400
hipErrorIllegalState = 401
CUDA_ERROR_ILLEGAL_STATE = 401
cudaErrorIllegalState = 401
hipErrorNotFound = 500
CUDA_ERROR_NOT_FOUND = 500
cudaErrorSymbolNotFound = 500
hipErrorNotReady = 600
CUDA_ERROR_NOT_READY = 600
cudaErrorNotReady = 600
hipErrorIllegalAddress = 700
CUDA_ERROR_ILLEGAL_ADDRESS = 700
cudaErrorIllegalAddress = 700
hipErrorLaunchOutOfResources = 701
CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES = 701
cudaErrorLaunchOutOfResources = 701
hipErrorLaunchTimeOut = 702
CUDA_ERROR_LAUNCH_TIMEOUT = 702
cudaErrorLaunchTimeout = 702
hipErrorPeerAccessAlreadyEnabled = 704
CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED = 704
cudaErrorPeerAccessAlreadyEnabled = 704
hipErrorPeerAccessNotEnabled = 705
CUDA_ERROR_PEER_ACCESS_NOT_ENABLED = 705
cudaErrorPeerAccessNotEnabled = 705
hipErrorSetOnActiveProcess = 708
CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE = 708
cudaErrorSetOnActiveProcess = 708
hipErrorContextIsDestroyed = 709
CUDA_ERROR_CONTEXT_IS_DESTROYED = 709
cudaErrorContextIsDestroyed = 709
hipErrorAssert = 710
CUDA_ERROR_ASSERT = 710
cudaErrorAssert = 710
hipErrorHostMemoryAlreadyRegistered = 712
CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED = 712
cudaErrorHostMemoryAlreadyRegistered = 712
hipErrorHostMemoryNotRegistered = 713
CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED = 713
cudaErrorHostMemoryNotRegistered = 713
hipErrorLaunchFailure = 719
CUDA_ERROR_LAUNCH_FAILED = 719
cudaErrorLaunchFailure = 719
hipErrorCooperativeLaunchTooLarge = 720
CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE = 720
cudaErrorCooperativeLaunchTooLarge = 720
hipErrorNotSupported = 801
CUDA_ERROR_NOT_SUPPORTED = 801
cudaErrorNotSupported = 801
hipErrorStreamCaptureUnsupported = 900
CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED = 900
cudaErrorStreamCaptureUnsupported = 900
hipErrorStreamCaptureInvalidated = 901
CUDA_ERROR_STREAM_CAPTURE_INVALIDATED = 901
cudaErrorStreamCaptureInvalidated = 901
hipErrorStreamCaptureMerge = 902
CUDA_ERROR_STREAM_CAPTURE_MERGE = 902
cudaErrorStreamCaptureMerge = 902
hipErrorStreamCaptureUnmatched = 903
CUDA_ERROR_STREAM_CAPTURE_UNMATCHED = 903
cudaErrorStreamCaptureUnmatched = 903
hipErrorStreamCaptureUnjoined = 904
CUDA_ERROR_STREAM_CAPTURE_UNJOINED = 904
cudaErrorStreamCaptureUnjoined = 904
hipErrorStreamCaptureIsolation = 905
CUDA_ERROR_STREAM_CAPTURE_ISOLATION = 905
cudaErrorStreamCaptureIsolation = 905
hipErrorStreamCaptureImplicit = 906
CUDA_ERROR_STREAM_CAPTURE_IMPLICIT = 906
cudaErrorStreamCaptureImplicit = 906
hipErrorCapturedEvent = 907
CUDA_ERROR_CAPTURED_EVENT = 907
cudaErrorCapturedEvent = 907
hipErrorStreamCaptureWrongThread = 908
CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD = 908
cudaErrorStreamCaptureWrongThread = 908
hipErrorGraphExecUpdateFailure = 910
CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE = 910
cudaErrorGraphExecUpdateFailure = 910
hipErrorUnknown = 999
CUDA_ERROR_UNKNOWN = 999
cudaErrorUnknown = 999
hipErrorRuntimeMemory = 1052
hipErrorRuntimeOther = 1053
hipErrorTbd = 1054
class cuda.cuda.cudaError(value)

Bases: _hipError_t__Base

An enumeration.

hipSuccess = 0
CUDA_SUCCESS = 0
cudaSuccess = 0
hipErrorInvalidValue = 1
CUDA_ERROR_INVALID_VALUE = 1
cudaErrorInvalidValue = 1
hipErrorOutOfMemory = 2
CUDA_ERROR_OUT_OF_MEMORY = 2
cudaErrorMemoryAllocation = 2
hipErrorMemoryAllocation = 2
hipErrorNotInitialized = 3
CUDA_ERROR_NOT_INITIALIZED = 3
cudaErrorInitializationError = 3
hipErrorInitializationError = 3
hipErrorDeinitialized = 4
CUDA_ERROR_DEINITIALIZED = 4
cudaErrorCudartUnloading = 4
hipErrorProfilerDisabled = 5
CUDA_ERROR_PROFILER_DISABLED = 5
cudaErrorProfilerDisabled = 5
hipErrorProfilerNotInitialized = 6
CUDA_ERROR_PROFILER_NOT_INITIALIZED = 6
cudaErrorProfilerNotInitialized = 6
hipErrorProfilerAlreadyStarted = 7
CUDA_ERROR_PROFILER_ALREADY_STARTED = 7
cudaErrorProfilerAlreadyStarted = 7
hipErrorProfilerAlreadyStopped = 8
CUDA_ERROR_PROFILER_ALREADY_STOPPED = 8
cudaErrorProfilerAlreadyStopped = 8
hipErrorInvalidConfiguration = 9
cudaErrorInvalidConfiguration = 9
hipErrorInvalidPitchValue = 12
cudaErrorInvalidPitchValue = 12
hipErrorInvalidSymbol = 13
cudaErrorInvalidSymbol = 13
hipErrorInvalidDevicePointer = 17
cudaErrorInvalidDevicePointer = 17
hipErrorInvalidMemcpyDirection = 21
cudaErrorInvalidMemcpyDirection = 21
hipErrorInsufficientDriver = 35
cudaErrorInsufficientDriver = 35
hipErrorMissingConfiguration = 52
cudaErrorMissingConfiguration = 52
hipErrorPriorLaunchFailure = 53
cudaErrorPriorLaunchFailure = 53
hipErrorInvalidDeviceFunction = 98
cudaErrorInvalidDeviceFunction = 98
hipErrorNoDevice = 100
CUDA_ERROR_NO_DEVICE = 100
cudaErrorNoDevice = 100
hipErrorInvalidDevice = 101
CUDA_ERROR_INVALID_DEVICE = 101
cudaErrorInvalidDevice = 101
hipErrorInvalidImage = 200
CUDA_ERROR_INVALID_IMAGE = 200
cudaErrorInvalidKernelImage = 200
hipErrorInvalidContext = 201
CUDA_ERROR_INVALID_CONTEXT = 201
cudaErrorDeviceUninitialized = 201
hipErrorContextAlreadyCurrent = 202
CUDA_ERROR_CONTEXT_ALREADY_CURRENT = 202
hipErrorMapFailed = 205
CUDA_ERROR_MAP_FAILED = 205
cudaErrorMapBufferObjectFailed = 205
hipErrorMapBufferObjectFailed = 205
hipErrorUnmapFailed = 206
CUDA_ERROR_UNMAP_FAILED = 206
cudaErrorUnmapBufferObjectFailed = 206
hipErrorArrayIsMapped = 207
CUDA_ERROR_ARRAY_IS_MAPPED = 207
cudaErrorArrayIsMapped = 207
hipErrorAlreadyMapped = 208
CUDA_ERROR_ALREADY_MAPPED = 208
cudaErrorAlreadyMapped = 208
hipErrorNoBinaryForGpu = 209
CUDA_ERROR_NO_BINARY_FOR_GPU = 209
cudaErrorNoKernelImageForDevice = 209
hipErrorAlreadyAcquired = 210
CUDA_ERROR_ALREADY_ACQUIRED = 210
cudaErrorAlreadyAcquired = 210
hipErrorNotMapped = 211
CUDA_ERROR_NOT_MAPPED = 211
cudaErrorNotMapped = 211
hipErrorNotMappedAsArray = 212
CUDA_ERROR_NOT_MAPPED_AS_ARRAY = 212
cudaErrorNotMappedAsArray = 212
hipErrorNotMappedAsPointer = 213
CUDA_ERROR_NOT_MAPPED_AS_POINTER = 213
cudaErrorNotMappedAsPointer = 213
hipErrorECCNotCorrectable = 214
CUDA_ERROR_ECC_UNCORRECTABLE = 214
cudaErrorECCUncorrectable = 214
hipErrorUnsupportedLimit = 215
CUDA_ERROR_UNSUPPORTED_LIMIT = 215
cudaErrorUnsupportedLimit = 215
hipErrorContextAlreadyInUse = 216
CUDA_ERROR_CONTEXT_ALREADY_IN_USE = 216
cudaErrorDeviceAlreadyInUse = 216
hipErrorPeerAccessUnsupported = 217
CUDA_ERROR_PEER_ACCESS_UNSUPPORTED = 217
cudaErrorPeerAccessUnsupported = 217
hipErrorInvalidKernelFile = 218
CUDA_ERROR_INVALID_PTX = 218
cudaErrorInvalidPtx = 218
hipErrorInvalidGraphicsContext = 219
CUDA_ERROR_INVALID_GRAPHICS_CONTEXT = 219
cudaErrorInvalidGraphicsContext = 219
hipErrorInvalidSource = 300
CUDA_ERROR_INVALID_SOURCE = 300
cudaErrorInvalidSource = 300
hipErrorFileNotFound = 301
CUDA_ERROR_FILE_NOT_FOUND = 301
cudaErrorFileNotFound = 301
hipErrorSharedObjectSymbolNotFound = 302
CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND = 302
cudaErrorSharedObjectSymbolNotFound = 302
hipErrorSharedObjectInitFailed = 303
CUDA_ERROR_SHARED_OBJECT_INIT_FAILED = 303
cudaErrorSharedObjectInitFailed = 303
hipErrorOperatingSystem = 304
CUDA_ERROR_OPERATING_SYSTEM = 304
cudaErrorOperatingSystem = 304
hipErrorInvalidHandle = 400
CUDA_ERROR_INVALID_HANDLE = 400
cudaErrorInvalidResourceHandle = 400
hipErrorInvalidResourceHandle = 400
hipErrorIllegalState = 401
CUDA_ERROR_ILLEGAL_STATE = 401
cudaErrorIllegalState = 401
hipErrorNotFound = 500
CUDA_ERROR_NOT_FOUND = 500
cudaErrorSymbolNotFound = 500
hipErrorNotReady = 600
CUDA_ERROR_NOT_READY = 600
cudaErrorNotReady = 600
hipErrorIllegalAddress = 700
CUDA_ERROR_ILLEGAL_ADDRESS = 700
cudaErrorIllegalAddress = 700
hipErrorLaunchOutOfResources = 701
CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES = 701
cudaErrorLaunchOutOfResources = 701
hipErrorLaunchTimeOut = 702
CUDA_ERROR_LAUNCH_TIMEOUT = 702
cudaErrorLaunchTimeout = 702
hipErrorPeerAccessAlreadyEnabled = 704
CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED = 704
cudaErrorPeerAccessAlreadyEnabled = 704
hipErrorPeerAccessNotEnabled = 705
CUDA_ERROR_PEER_ACCESS_NOT_ENABLED = 705
cudaErrorPeerAccessNotEnabled = 705
hipErrorSetOnActiveProcess = 708
CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE = 708
cudaErrorSetOnActiveProcess = 708
hipErrorContextIsDestroyed = 709
CUDA_ERROR_CONTEXT_IS_DESTROYED = 709
cudaErrorContextIsDestroyed = 709
hipErrorAssert = 710
CUDA_ERROR_ASSERT = 710
cudaErrorAssert = 710
hipErrorHostMemoryAlreadyRegistered = 712
CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED = 712
cudaErrorHostMemoryAlreadyRegistered = 712
hipErrorHostMemoryNotRegistered = 713
CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED = 713
cudaErrorHostMemoryNotRegistered = 713
hipErrorLaunchFailure = 719
CUDA_ERROR_LAUNCH_FAILED = 719
cudaErrorLaunchFailure = 719
hipErrorCooperativeLaunchTooLarge = 720
CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE = 720
cudaErrorCooperativeLaunchTooLarge = 720
hipErrorNotSupported = 801
CUDA_ERROR_NOT_SUPPORTED = 801
cudaErrorNotSupported = 801
hipErrorStreamCaptureUnsupported = 900
CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED = 900
cudaErrorStreamCaptureUnsupported = 900
hipErrorStreamCaptureInvalidated = 901
CUDA_ERROR_STREAM_CAPTURE_INVALIDATED = 901
cudaErrorStreamCaptureInvalidated = 901
hipErrorStreamCaptureMerge = 902
CUDA_ERROR_STREAM_CAPTURE_MERGE = 902
cudaErrorStreamCaptureMerge = 902
hipErrorStreamCaptureUnmatched = 903
CUDA_ERROR_STREAM_CAPTURE_UNMATCHED = 903
cudaErrorStreamCaptureUnmatched = 903
hipErrorStreamCaptureUnjoined = 904
CUDA_ERROR_STREAM_CAPTURE_UNJOINED = 904
cudaErrorStreamCaptureUnjoined = 904
hipErrorStreamCaptureIsolation = 905
CUDA_ERROR_STREAM_CAPTURE_ISOLATION = 905
cudaErrorStreamCaptureIsolation = 905
hipErrorStreamCaptureImplicit = 906
CUDA_ERROR_STREAM_CAPTURE_IMPLICIT = 906
cudaErrorStreamCaptureImplicit = 906
hipErrorCapturedEvent = 907
CUDA_ERROR_CAPTURED_EVENT = 907
cudaErrorCapturedEvent = 907
hipErrorStreamCaptureWrongThread = 908
CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD = 908
cudaErrorStreamCaptureWrongThread = 908
hipErrorGraphExecUpdateFailure = 910
CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE = 910
cudaErrorGraphExecUpdateFailure = 910
hipErrorUnknown = 999
CUDA_ERROR_UNKNOWN = 999
cudaErrorUnknown = 999
hipErrorRuntimeMemory = 1052
hipErrorRuntimeOther = 1053
hipErrorTbd = 1054
class cuda.cuda.cudaError_enum(value)

Bases: _hipError_t__Base

An enumeration.

hipSuccess = 0
CUDA_SUCCESS = 0
cudaSuccess = 0
hipErrorInvalidValue = 1
CUDA_ERROR_INVALID_VALUE = 1
cudaErrorInvalidValue = 1
hipErrorOutOfMemory = 2
CUDA_ERROR_OUT_OF_MEMORY = 2
cudaErrorMemoryAllocation = 2
hipErrorMemoryAllocation = 2
hipErrorNotInitialized = 3
CUDA_ERROR_NOT_INITIALIZED = 3
cudaErrorInitializationError = 3
hipErrorInitializationError = 3
hipErrorDeinitialized = 4
CUDA_ERROR_DEINITIALIZED = 4
cudaErrorCudartUnloading = 4
hipErrorProfilerDisabled = 5
CUDA_ERROR_PROFILER_DISABLED = 5
cudaErrorProfilerDisabled = 5
hipErrorProfilerNotInitialized = 6
CUDA_ERROR_PROFILER_NOT_INITIALIZED = 6
cudaErrorProfilerNotInitialized = 6
hipErrorProfilerAlreadyStarted = 7
CUDA_ERROR_PROFILER_ALREADY_STARTED = 7
cudaErrorProfilerAlreadyStarted = 7
hipErrorProfilerAlreadyStopped = 8
CUDA_ERROR_PROFILER_ALREADY_STOPPED = 8
cudaErrorProfilerAlreadyStopped = 8
hipErrorInvalidConfiguration = 9
cudaErrorInvalidConfiguration = 9
hipErrorInvalidPitchValue = 12
cudaErrorInvalidPitchValue = 12
hipErrorInvalidSymbol = 13
cudaErrorInvalidSymbol = 13
hipErrorInvalidDevicePointer = 17
cudaErrorInvalidDevicePointer = 17
hipErrorInvalidMemcpyDirection = 21
cudaErrorInvalidMemcpyDirection = 21
hipErrorInsufficientDriver = 35
cudaErrorInsufficientDriver = 35
hipErrorMissingConfiguration = 52
cudaErrorMissingConfiguration = 52
hipErrorPriorLaunchFailure = 53
cudaErrorPriorLaunchFailure = 53
hipErrorInvalidDeviceFunction = 98
cudaErrorInvalidDeviceFunction = 98
hipErrorNoDevice = 100
CUDA_ERROR_NO_DEVICE = 100
cudaErrorNoDevice = 100
hipErrorInvalidDevice = 101
CUDA_ERROR_INVALID_DEVICE = 101
cudaErrorInvalidDevice = 101
hipErrorInvalidImage = 200
CUDA_ERROR_INVALID_IMAGE = 200
cudaErrorInvalidKernelImage = 200
hipErrorInvalidContext = 201
CUDA_ERROR_INVALID_CONTEXT = 201
cudaErrorDeviceUninitialized = 201
hipErrorContextAlreadyCurrent = 202
CUDA_ERROR_CONTEXT_ALREADY_CURRENT = 202
hipErrorMapFailed = 205
CUDA_ERROR_MAP_FAILED = 205
cudaErrorMapBufferObjectFailed = 205
hipErrorMapBufferObjectFailed = 205
hipErrorUnmapFailed = 206
CUDA_ERROR_UNMAP_FAILED = 206
cudaErrorUnmapBufferObjectFailed = 206
hipErrorArrayIsMapped = 207
CUDA_ERROR_ARRAY_IS_MAPPED = 207
cudaErrorArrayIsMapped = 207
hipErrorAlreadyMapped = 208
CUDA_ERROR_ALREADY_MAPPED = 208
cudaErrorAlreadyMapped = 208
hipErrorNoBinaryForGpu = 209
CUDA_ERROR_NO_BINARY_FOR_GPU = 209
cudaErrorNoKernelImageForDevice = 209
hipErrorAlreadyAcquired = 210
CUDA_ERROR_ALREADY_ACQUIRED = 210
cudaErrorAlreadyAcquired = 210
hipErrorNotMapped = 211
CUDA_ERROR_NOT_MAPPED = 211
cudaErrorNotMapped = 211
hipErrorNotMappedAsArray = 212
CUDA_ERROR_NOT_MAPPED_AS_ARRAY = 212
cudaErrorNotMappedAsArray = 212
hipErrorNotMappedAsPointer = 213
CUDA_ERROR_NOT_MAPPED_AS_POINTER = 213
cudaErrorNotMappedAsPointer = 213
hipErrorECCNotCorrectable = 214
CUDA_ERROR_ECC_UNCORRECTABLE = 214
cudaErrorECCUncorrectable = 214
hipErrorUnsupportedLimit = 215
CUDA_ERROR_UNSUPPORTED_LIMIT = 215
cudaErrorUnsupportedLimit = 215
hipErrorContextAlreadyInUse = 216
CUDA_ERROR_CONTEXT_ALREADY_IN_USE = 216
cudaErrorDeviceAlreadyInUse = 216
hipErrorPeerAccessUnsupported = 217
CUDA_ERROR_PEER_ACCESS_UNSUPPORTED = 217
cudaErrorPeerAccessUnsupported = 217
hipErrorInvalidKernelFile = 218
CUDA_ERROR_INVALID_PTX = 218
cudaErrorInvalidPtx = 218
hipErrorInvalidGraphicsContext = 219
CUDA_ERROR_INVALID_GRAPHICS_CONTEXT = 219
cudaErrorInvalidGraphicsContext = 219
hipErrorInvalidSource = 300
CUDA_ERROR_INVALID_SOURCE = 300
cudaErrorInvalidSource = 300
hipErrorFileNotFound = 301
CUDA_ERROR_FILE_NOT_FOUND = 301
cudaErrorFileNotFound = 301
hipErrorSharedObjectSymbolNotFound = 302
CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND = 302
cudaErrorSharedObjectSymbolNotFound = 302
hipErrorSharedObjectInitFailed = 303
CUDA_ERROR_SHARED_OBJECT_INIT_FAILED = 303
cudaErrorSharedObjectInitFailed = 303
hipErrorOperatingSystem = 304
CUDA_ERROR_OPERATING_SYSTEM = 304
cudaErrorOperatingSystem = 304
hipErrorInvalidHandle = 400
CUDA_ERROR_INVALID_HANDLE = 400
cudaErrorInvalidResourceHandle = 400
hipErrorInvalidResourceHandle = 400
hipErrorIllegalState = 401
CUDA_ERROR_ILLEGAL_STATE = 401
cudaErrorIllegalState = 401
hipErrorNotFound = 500
CUDA_ERROR_NOT_FOUND = 500
cudaErrorSymbolNotFound = 500
hipErrorNotReady = 600
CUDA_ERROR_NOT_READY = 600
cudaErrorNotReady = 600
hipErrorIllegalAddress = 700
CUDA_ERROR_ILLEGAL_ADDRESS = 700
cudaErrorIllegalAddress = 700
hipErrorLaunchOutOfResources = 701
CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES = 701
cudaErrorLaunchOutOfResources = 701
hipErrorLaunchTimeOut = 702
CUDA_ERROR_LAUNCH_TIMEOUT = 702
cudaErrorLaunchTimeout = 702
hipErrorPeerAccessAlreadyEnabled = 704
CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED = 704
cudaErrorPeerAccessAlreadyEnabled = 704
hipErrorPeerAccessNotEnabled = 705
CUDA_ERROR_PEER_ACCESS_NOT_ENABLED = 705
cudaErrorPeerAccessNotEnabled = 705
hipErrorSetOnActiveProcess = 708
CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE = 708
cudaErrorSetOnActiveProcess = 708
hipErrorContextIsDestroyed = 709
CUDA_ERROR_CONTEXT_IS_DESTROYED = 709
cudaErrorContextIsDestroyed = 709
hipErrorAssert = 710
CUDA_ERROR_ASSERT = 710
cudaErrorAssert = 710
hipErrorHostMemoryAlreadyRegistered = 712
CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED = 712
cudaErrorHostMemoryAlreadyRegistered = 712
hipErrorHostMemoryNotRegistered = 713
CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED = 713
cudaErrorHostMemoryNotRegistered = 713
hipErrorLaunchFailure = 719
CUDA_ERROR_LAUNCH_FAILED = 719
cudaErrorLaunchFailure = 719
hipErrorCooperativeLaunchTooLarge = 720
CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE = 720
cudaErrorCooperativeLaunchTooLarge = 720
hipErrorNotSupported = 801
CUDA_ERROR_NOT_SUPPORTED = 801
cudaErrorNotSupported = 801
hipErrorStreamCaptureUnsupported = 900
CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED = 900
cudaErrorStreamCaptureUnsupported = 900
hipErrorStreamCaptureInvalidated = 901
CUDA_ERROR_STREAM_CAPTURE_INVALIDATED = 901
cudaErrorStreamCaptureInvalidated = 901
hipErrorStreamCaptureMerge = 902
CUDA_ERROR_STREAM_CAPTURE_MERGE = 902
cudaErrorStreamCaptureMerge = 902
hipErrorStreamCaptureUnmatched = 903
CUDA_ERROR_STREAM_CAPTURE_UNMATCHED = 903
cudaErrorStreamCaptureUnmatched = 903
hipErrorStreamCaptureUnjoined = 904
CUDA_ERROR_STREAM_CAPTURE_UNJOINED = 904
cudaErrorStreamCaptureUnjoined = 904
hipErrorStreamCaptureIsolation = 905
CUDA_ERROR_STREAM_CAPTURE_ISOLATION = 905
cudaErrorStreamCaptureIsolation = 905
hipErrorStreamCaptureImplicit = 906
CUDA_ERROR_STREAM_CAPTURE_IMPLICIT = 906
cudaErrorStreamCaptureImplicit = 906
hipErrorCapturedEvent = 907
CUDA_ERROR_CAPTURED_EVENT = 907
cudaErrorCapturedEvent = 907
hipErrorStreamCaptureWrongThread = 908
CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD = 908
cudaErrorStreamCaptureWrongThread = 908
hipErrorGraphExecUpdateFailure = 910
CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE = 910
cudaErrorGraphExecUpdateFailure = 910
hipErrorUnknown = 999
CUDA_ERROR_UNKNOWN = 999
cudaErrorUnknown = 999
hipErrorRuntimeMemory = 1052
hipErrorRuntimeOther = 1053
hipErrorTbd = 1054
class cuda.cuda.cudaError_t(value)

Bases: _hipError_t__Base

An enumeration.

hipSuccess = 0
CUDA_SUCCESS = 0
cudaSuccess = 0
hipErrorInvalidValue = 1
CUDA_ERROR_INVALID_VALUE = 1
cudaErrorInvalidValue = 1
hipErrorOutOfMemory = 2
CUDA_ERROR_OUT_OF_MEMORY = 2
cudaErrorMemoryAllocation = 2
hipErrorMemoryAllocation = 2
hipErrorNotInitialized = 3
CUDA_ERROR_NOT_INITIALIZED = 3
cudaErrorInitializationError = 3
hipErrorInitializationError = 3
hipErrorDeinitialized = 4
CUDA_ERROR_DEINITIALIZED = 4
cudaErrorCudartUnloading = 4
hipErrorProfilerDisabled = 5
CUDA_ERROR_PROFILER_DISABLED = 5
cudaErrorProfilerDisabled = 5
hipErrorProfilerNotInitialized = 6
CUDA_ERROR_PROFILER_NOT_INITIALIZED = 6
cudaErrorProfilerNotInitialized = 6
hipErrorProfilerAlreadyStarted = 7
CUDA_ERROR_PROFILER_ALREADY_STARTED = 7
cudaErrorProfilerAlreadyStarted = 7
hipErrorProfilerAlreadyStopped = 8
CUDA_ERROR_PROFILER_ALREADY_STOPPED = 8
cudaErrorProfilerAlreadyStopped = 8
hipErrorInvalidConfiguration = 9
cudaErrorInvalidConfiguration = 9
hipErrorInvalidPitchValue = 12
cudaErrorInvalidPitchValue = 12
hipErrorInvalidSymbol = 13
cudaErrorInvalidSymbol = 13
hipErrorInvalidDevicePointer = 17
cudaErrorInvalidDevicePointer = 17
hipErrorInvalidMemcpyDirection = 21
cudaErrorInvalidMemcpyDirection = 21
hipErrorInsufficientDriver = 35
cudaErrorInsufficientDriver = 35
hipErrorMissingConfiguration = 52
cudaErrorMissingConfiguration = 52
hipErrorPriorLaunchFailure = 53
cudaErrorPriorLaunchFailure = 53
hipErrorInvalidDeviceFunction = 98
cudaErrorInvalidDeviceFunction = 98
hipErrorNoDevice = 100
CUDA_ERROR_NO_DEVICE = 100
cudaErrorNoDevice = 100
hipErrorInvalidDevice = 101
CUDA_ERROR_INVALID_DEVICE = 101
cudaErrorInvalidDevice = 101
hipErrorInvalidImage = 200
CUDA_ERROR_INVALID_IMAGE = 200
cudaErrorInvalidKernelImage = 200
hipErrorInvalidContext = 201
CUDA_ERROR_INVALID_CONTEXT = 201
cudaErrorDeviceUninitialized = 201
hipErrorContextAlreadyCurrent = 202
CUDA_ERROR_CONTEXT_ALREADY_CURRENT = 202
hipErrorMapFailed = 205
CUDA_ERROR_MAP_FAILED = 205
cudaErrorMapBufferObjectFailed = 205
hipErrorMapBufferObjectFailed = 205
hipErrorUnmapFailed = 206
CUDA_ERROR_UNMAP_FAILED = 206
cudaErrorUnmapBufferObjectFailed = 206
hipErrorArrayIsMapped = 207
CUDA_ERROR_ARRAY_IS_MAPPED = 207
cudaErrorArrayIsMapped = 207
hipErrorAlreadyMapped = 208
CUDA_ERROR_ALREADY_MAPPED = 208
cudaErrorAlreadyMapped = 208
hipErrorNoBinaryForGpu = 209
CUDA_ERROR_NO_BINARY_FOR_GPU = 209
cudaErrorNoKernelImageForDevice = 209
hipErrorAlreadyAcquired = 210
CUDA_ERROR_ALREADY_ACQUIRED = 210
cudaErrorAlreadyAcquired = 210
hipErrorNotMapped = 211
CUDA_ERROR_NOT_MAPPED = 211
cudaErrorNotMapped = 211
hipErrorNotMappedAsArray = 212
CUDA_ERROR_NOT_MAPPED_AS_ARRAY = 212
cudaErrorNotMappedAsArray = 212
hipErrorNotMappedAsPointer = 213
CUDA_ERROR_NOT_MAPPED_AS_POINTER = 213
cudaErrorNotMappedAsPointer = 213
hipErrorECCNotCorrectable = 214
CUDA_ERROR_ECC_UNCORRECTABLE = 214
cudaErrorECCUncorrectable = 214
hipErrorUnsupportedLimit = 215
CUDA_ERROR_UNSUPPORTED_LIMIT = 215
cudaErrorUnsupportedLimit = 215
hipErrorContextAlreadyInUse = 216
CUDA_ERROR_CONTEXT_ALREADY_IN_USE = 216
cudaErrorDeviceAlreadyInUse = 216
hipErrorPeerAccessUnsupported = 217
CUDA_ERROR_PEER_ACCESS_UNSUPPORTED = 217
cudaErrorPeerAccessUnsupported = 217
hipErrorInvalidKernelFile = 218
CUDA_ERROR_INVALID_PTX = 218
cudaErrorInvalidPtx = 218
hipErrorInvalidGraphicsContext = 219
CUDA_ERROR_INVALID_GRAPHICS_CONTEXT = 219
cudaErrorInvalidGraphicsContext = 219
hipErrorInvalidSource = 300
CUDA_ERROR_INVALID_SOURCE = 300
cudaErrorInvalidSource = 300
hipErrorFileNotFound = 301
CUDA_ERROR_FILE_NOT_FOUND = 301
cudaErrorFileNotFound = 301
hipErrorSharedObjectSymbolNotFound = 302
CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND = 302
cudaErrorSharedObjectSymbolNotFound = 302
hipErrorSharedObjectInitFailed = 303
CUDA_ERROR_SHARED_OBJECT_INIT_FAILED = 303
cudaErrorSharedObjectInitFailed = 303
hipErrorOperatingSystem = 304
CUDA_ERROR_OPERATING_SYSTEM = 304
cudaErrorOperatingSystem = 304
hipErrorInvalidHandle = 400
CUDA_ERROR_INVALID_HANDLE = 400
cudaErrorInvalidResourceHandle = 400
hipErrorInvalidResourceHandle = 400
hipErrorIllegalState = 401
CUDA_ERROR_ILLEGAL_STATE = 401
cudaErrorIllegalState = 401
hipErrorNotFound = 500
CUDA_ERROR_NOT_FOUND = 500
cudaErrorSymbolNotFound = 500
hipErrorNotReady = 600
CUDA_ERROR_NOT_READY = 600
cudaErrorNotReady = 600
hipErrorIllegalAddress = 700
CUDA_ERROR_ILLEGAL_ADDRESS = 700
cudaErrorIllegalAddress = 700
hipErrorLaunchOutOfResources = 701
CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES = 701
cudaErrorLaunchOutOfResources = 701
hipErrorLaunchTimeOut = 702
CUDA_ERROR_LAUNCH_TIMEOUT = 702
cudaErrorLaunchTimeout = 702
hipErrorPeerAccessAlreadyEnabled = 704
CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED = 704
cudaErrorPeerAccessAlreadyEnabled = 704
hipErrorPeerAccessNotEnabled = 705
CUDA_ERROR_PEER_ACCESS_NOT_ENABLED = 705
cudaErrorPeerAccessNotEnabled = 705
hipErrorSetOnActiveProcess = 708
CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE = 708
cudaErrorSetOnActiveProcess = 708
hipErrorContextIsDestroyed = 709
CUDA_ERROR_CONTEXT_IS_DESTROYED = 709
cudaErrorContextIsDestroyed = 709
hipErrorAssert = 710
CUDA_ERROR_ASSERT = 710
cudaErrorAssert = 710
hipErrorHostMemoryAlreadyRegistered = 712
CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED = 712
cudaErrorHostMemoryAlreadyRegistered = 712
hipErrorHostMemoryNotRegistered = 713
CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED = 713
cudaErrorHostMemoryNotRegistered = 713
hipErrorLaunchFailure = 719
CUDA_ERROR_LAUNCH_FAILED = 719
cudaErrorLaunchFailure = 719
hipErrorCooperativeLaunchTooLarge = 720
CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE = 720
cudaErrorCooperativeLaunchTooLarge = 720
hipErrorNotSupported = 801
CUDA_ERROR_NOT_SUPPORTED = 801
cudaErrorNotSupported = 801
hipErrorStreamCaptureUnsupported = 900
CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED = 900
cudaErrorStreamCaptureUnsupported = 900
hipErrorStreamCaptureInvalidated = 901
CUDA_ERROR_STREAM_CAPTURE_INVALIDATED = 901
cudaErrorStreamCaptureInvalidated = 901
hipErrorStreamCaptureMerge = 902
CUDA_ERROR_STREAM_CAPTURE_MERGE = 902
cudaErrorStreamCaptureMerge = 902
hipErrorStreamCaptureUnmatched = 903
CUDA_ERROR_STREAM_CAPTURE_UNMATCHED = 903
cudaErrorStreamCaptureUnmatched = 903
hipErrorStreamCaptureUnjoined = 904
CUDA_ERROR_STREAM_CAPTURE_UNJOINED = 904
cudaErrorStreamCaptureUnjoined = 904
hipErrorStreamCaptureIsolation = 905
CUDA_ERROR_STREAM_CAPTURE_ISOLATION = 905
cudaErrorStreamCaptureIsolation = 905
hipErrorStreamCaptureImplicit = 906
CUDA_ERROR_STREAM_CAPTURE_IMPLICIT = 906
cudaErrorStreamCaptureImplicit = 906
hipErrorCapturedEvent = 907
CUDA_ERROR_CAPTURED_EVENT = 907
cudaErrorCapturedEvent = 907
hipErrorStreamCaptureWrongThread = 908
CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD = 908
cudaErrorStreamCaptureWrongThread = 908
hipErrorGraphExecUpdateFailure = 910
CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE = 910
cudaErrorGraphExecUpdateFailure = 910
hipErrorUnknown = 999
CUDA_ERROR_UNKNOWN = 999
cudaErrorUnknown = 999
hipErrorRuntimeMemory = 1052
hipErrorRuntimeOther = 1053
hipErrorTbd = 1054
class cuda.cuda.CUdevice_attribute(value)

Bases: _hipDeviceAttribute_t__Base

An enumeration.

hipDeviceAttributeCudaCompatibleBegin = 0
hipDeviceAttributeEccEnabled = 0
CU_DEVICE_ATTRIBUTE_ECC_ENABLED = 0
cudaDevAttrEccEnabled = 0
hipDeviceAttributeAccessPolicyMaxWindowSize = 1
hipDeviceAttributeAsyncEngineCount = 2
CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT = 2
CU_DEVICE_ATTRIBUTE_GPU_OVERLAP = 2
cudaDevAttrAsyncEngineCount = 2
cudaDevAttrGpuOverlap = 2
hipDeviceAttributeCanMapHostMemory = 3
CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY = 3
cudaDevAttrCanMapHostMemory = 3
hipDeviceAttributeCanUseHostPointerForRegisteredMem = 4
CU_DEVICE_ATTRIBUTE_CAN_USE_HOST_POINTER_FOR_REGISTERED_MEM = 4
cudaDevAttrCanUseHostPointerForRegisteredMem = 4
hipDeviceAttributeClockRate = 5
CU_DEVICE_ATTRIBUTE_CLOCK_RATE = 5
cudaDevAttrClockRate = 5
hipDeviceAttributeComputeMode = 6
CU_DEVICE_ATTRIBUTE_COMPUTE_MODE = 6
cudaDevAttrComputeMode = 6
hipDeviceAttributeComputePreemptionSupported = 7
CU_DEVICE_ATTRIBUTE_COMPUTE_PREEMPTION_SUPPORTED = 7
cudaDevAttrComputePreemptionSupported = 7
hipDeviceAttributeConcurrentKernels = 8
CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS = 8
cudaDevAttrConcurrentKernels = 8
hipDeviceAttributeConcurrentManagedAccess = 9
CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS = 9
cudaDevAttrConcurrentManagedAccess = 9
hipDeviceAttributeCooperativeLaunch = 10
CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH = 10
cudaDevAttrCooperativeLaunch = 10
hipDeviceAttributeCooperativeMultiDeviceLaunch = 11
CU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH = 11
cudaDevAttrCooperativeMultiDeviceLaunch = 11
hipDeviceAttributeDeviceOverlap = 12
hipDeviceAttributeDirectManagedMemAccessFromHost = 13
CU_DEVICE_ATTRIBUTE_DIRECT_MANAGED_MEM_ACCESS_FROM_HOST = 13
cudaDevAttrDirectManagedMemAccessFromHost = 13
hipDeviceAttributeGlobalL1CacheSupported = 14
CU_DEVICE_ATTRIBUTE_GLOBAL_L1_CACHE_SUPPORTED = 14
cudaDevAttrGlobalL1CacheSupported = 14
hipDeviceAttributeHostNativeAtomicSupported = 15
CU_DEVICE_ATTRIBUTE_HOST_NATIVE_ATOMIC_SUPPORTED = 15
cudaDevAttrHostNativeAtomicSupported = 15
hipDeviceAttributeIntegrated = 16
CU_DEVICE_ATTRIBUTE_INTEGRATED = 16
cudaDevAttrIntegrated = 16
hipDeviceAttributeIsMultiGpuBoard = 17
CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD = 17
cudaDevAttrIsMultiGpuBoard = 17
hipDeviceAttributeKernelExecTimeout = 18
CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT = 18
cudaDevAttrKernelExecTimeout = 18
hipDeviceAttributeL2CacheSize = 19
CU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE = 19
cudaDevAttrL2CacheSize = 19
hipDeviceAttributeLocalL1CacheSupported = 20
CU_DEVICE_ATTRIBUTE_LOCAL_L1_CACHE_SUPPORTED = 20
cudaDevAttrLocalL1CacheSupported = 20
hipDeviceAttributeLuid = 21
hipDeviceAttributeLuidDeviceNodeMask = 22
hipDeviceAttributeComputeCapabilityMajor = 23
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR = 23
cudaDevAttrComputeCapabilityMajor = 23
hipDeviceAttributeManagedMemory = 24
CU_DEVICE_ATTRIBUTE_MANAGED_MEMORY = 24
cudaDevAttrManagedMemory = 24
hipDeviceAttributeMaxBlocksPerMultiProcessor = 25
hipDeviceAttributeMaxBlockDimX = 26
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X = 26
cudaDevAttrMaxBlockDimX = 26
hipDeviceAttributeMaxBlockDimY = 27
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y = 27
cudaDevAttrMaxBlockDimY = 27
hipDeviceAttributeMaxBlockDimZ = 28
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z = 28
cudaDevAttrMaxBlockDimZ = 28
hipDeviceAttributeMaxGridDimX = 29
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X = 29
cudaDevAttrMaxGridDimX = 29
hipDeviceAttributeMaxGridDimY = 30
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y = 30
cudaDevAttrMaxGridDimY = 30
hipDeviceAttributeMaxGridDimZ = 31
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z = 31
cudaDevAttrMaxGridDimZ = 31
hipDeviceAttributeMaxSurface1D = 32
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_WIDTH = 32
cudaDevAttrMaxSurface1DWidth = 32
hipDeviceAttributeMaxSurface1DLayered = 33
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_WIDTH = 33
cudaDevAttrMaxSurface1DLayeredWidth = 33
hipDeviceAttributeMaxSurface2D = 34
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_HEIGHT = 34
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_WIDTH = 34
cudaDevAttrMaxSurface2DHeight = 34
cudaDevAttrMaxSurface2DWidth = 34
hipDeviceAttributeMaxSurface2DLayered = 35
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_HEIGHT = 35
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_WIDTH = 35
cudaDevAttrMaxSurface2DLayeredHeight = 35
cudaDevAttrMaxSurface2DLayeredWidth = 35
hipDeviceAttributeMaxSurface3D = 36
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_DEPTH = 36
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_HEIGHT = 36
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_WIDTH = 36
cudaDevAttrMaxSurface3DDepth = 36
cudaDevAttrMaxSurface3DHeight = 36
cudaDevAttrMaxSurface3DWidth = 36
hipDeviceAttributeMaxSurfaceCubemap = 37
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_WIDTH = 37
cudaDevAttrMaxSurfaceCubemapWidth = 37
hipDeviceAttributeMaxSurfaceCubemapLayered = 38
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_WIDTH = 38
cudaDevAttrMaxSurfaceCubemapLayeredWidth = 38
hipDeviceAttributeMaxTexture1DWidth = 39
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH = 39
cudaDevAttrMaxTexture1DWidth = 39
hipDeviceAttributeMaxTexture1DLayered = 40
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_WIDTH = 40
cudaDevAttrMaxTexture1DLayeredWidth = 40
hipDeviceAttributeMaxTexture1DLinear = 41
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LINEAR_WIDTH = 41
cudaDevAttrMaxTexture1DLinearWidth = 41
hipDeviceAttributeMaxTexture1DMipmap = 42
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_MIPMAPPED_WIDTH = 42
cudaDevAttrMaxTexture1DMipmappedWidth = 42
hipDeviceAttributeMaxTexture2DWidth = 43
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH = 43
cudaDevAttrMaxTexture2DWidth = 43
hipDeviceAttributeMaxTexture2DHeight = 44
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT = 44
cudaDevAttrMaxTexture2DHeight = 44
hipDeviceAttributeMaxTexture2DGather = 45
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_HEIGHT = 45
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_WIDTH = 45
cudaDevAttrMaxTexture2DGatherHeight = 45
cudaDevAttrMaxTexture2DGatherWidth = 45
hipDeviceAttributeMaxTexture2DLayered = 46
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT = 46
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH = 46
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT = 46
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH = 46
cudaDevAttrMaxTexture2DLayeredHeight = 46
cudaDevAttrMaxTexture2DLayeredWidth = 46
hipDeviceAttributeMaxTexture2DLinear = 47
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT = 47
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH = 47
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH = 47
cudaDevAttrMaxTexture2DLinearHeight = 47
cudaDevAttrMaxTexture2DLinearPitch = 47
cudaDevAttrMaxTexture2DLinearWidth = 47
hipDeviceAttributeMaxTexture2DMipmap = 48
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_HEIGHT = 48
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_WIDTH = 48
cudaDevAttrMaxTexture2DMipmappedHeight = 48
cudaDevAttrMaxTexture2DMipmappedWidth = 48
hipDeviceAttributeMaxTexture3DWidth = 49
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH = 49
cudaDevAttrMaxTexture3DWidth = 49
hipDeviceAttributeMaxTexture3DHeight = 50
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT = 50
cudaDevAttrMaxTexture3DHeight = 50
hipDeviceAttributeMaxTexture3DDepth = 51
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH = 51
cudaDevAttrMaxTexture3DDepth = 51
hipDeviceAttributeMaxTexture3DAlt = 52
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH_ALTERNATE = 52
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT_ALTERNATE = 52
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH_ALTERNATE = 52
cudaDevAttrMaxTexture3DDepthAlt = 52
cudaDevAttrMaxTexture3DHeightAlt = 52
cudaDevAttrMaxTexture3DWidthAlt = 52
hipDeviceAttributeMaxTextureCubemap = 53
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_WIDTH = 53
cudaDevAttrMaxTextureCubemapWidth = 53
hipDeviceAttributeMaxTextureCubemapLayered = 54
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_WIDTH = 54
cudaDevAttrMaxTextureCubemapLayeredWidth = 54
hipDeviceAttributeMaxThreadsDim = 55
hipDeviceAttributeMaxThreadsPerBlock = 56
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK = 56
cudaDevAttrMaxThreadsPerBlock = 56
hipDeviceAttributeMaxThreadsPerMultiProcessor = 57
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR = 57
cudaDevAttrMaxThreadsPerMultiProcessor = 57
hipDeviceAttributeMaxPitch = 58
CU_DEVICE_ATTRIBUTE_MAX_PITCH = 58
cudaDevAttrMaxPitch = 58
hipDeviceAttributeMemoryBusWidth = 59
CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH = 59
cudaDevAttrGlobalMemoryBusWidth = 59
hipDeviceAttributeMemoryClockRate = 60
CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE = 60
cudaDevAttrMemoryClockRate = 60
hipDeviceAttributeComputeCapabilityMinor = 61
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR = 61
cudaDevAttrComputeCapabilityMinor = 61
hipDeviceAttributeMultiGpuBoardGroupID = 62
cudaDevAttrMultiGpuBoardGroupID = 62
hipDeviceAttributeMultiprocessorCount = 63
CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT = 63
cudaDevAttrMultiProcessorCount = 63
hipDeviceAttributeUnused1 = 64
hipDeviceAttributePageableMemoryAccess = 65
CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS = 65
cudaDevAttrPageableMemoryAccess = 65
hipDeviceAttributePageableMemoryAccessUsesHostPageTables = 66
CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES = 66
cudaDevAttrPageableMemoryAccessUsesHostPageTables = 66
hipDeviceAttributePciBusId = 67
CU_DEVICE_ATTRIBUTE_PCI_BUS_ID = 67
cudaDevAttrPciBusId = 67
hipDeviceAttributePciDeviceId = 68
CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID = 68
cudaDevAttrPciDeviceId = 68
hipDeviceAttributePciDomainID = 69
CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID = 69
cudaDevAttrPciDomainId = 69
hipDeviceAttributePersistingL2CacheMaxSize = 70
hipDeviceAttributeMaxRegistersPerBlock = 71
CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK = 71
CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK = 71
cudaDevAttrMaxRegistersPerBlock = 71
hipDeviceAttributeMaxRegistersPerMultiprocessor = 72
CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR = 72
cudaDevAttrMaxRegistersPerMultiprocessor = 72
hipDeviceAttributeReservedSharedMemPerBlock = 73
hipDeviceAttributeMaxSharedMemoryPerBlock = 74
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK = 74
CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK = 74
cudaDevAttrMaxSharedMemoryPerBlock = 74
hipDeviceAttributeSharedMemPerBlockOptin = 75
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN = 75
cudaDevAttrMaxSharedMemoryPerBlockOptin = 75
hipDeviceAttributeSharedMemPerMultiprocessor = 76
hipDeviceAttributeSingleToDoublePrecisionPerfRatio = 77
CU_DEVICE_ATTRIBUTE_SINGLE_TO_DOUBLE_PRECISION_PERF_RATIO = 77
cudaDevAttrSingleToDoublePrecisionPerfRatio = 77
hipDeviceAttributeStreamPrioritiesSupported = 78
CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED = 78
cudaDevAttrStreamPrioritiesSupported = 78
hipDeviceAttributeSurfaceAlignment = 79
CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT = 79
cudaDevAttrSurfaceAlignment = 79
hipDeviceAttributeTccDriver = 80
CU_DEVICE_ATTRIBUTE_TCC_DRIVER = 80
cudaDevAttrTccDriver = 80
hipDeviceAttributeTextureAlignment = 81
CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT = 81
cudaDevAttrTextureAlignment = 81
hipDeviceAttributeTexturePitchAlignment = 82
CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT = 82
cudaDevAttrTexturePitchAlignment = 82
hipDeviceAttributeTotalConstantMemory = 83
CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY = 83
cudaDevAttrTotalConstantMemory = 83
hipDeviceAttributeTotalGlobalMem = 84
hipDeviceAttributeUnifiedAddressing = 85
CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING = 85
cudaDevAttrUnifiedAddressing = 85
hipDeviceAttributeUnused2 = 86
hipDeviceAttributeWarpSize = 87
CU_DEVICE_ATTRIBUTE_WARP_SIZE = 87
cudaDevAttrWarpSize = 87
hipDeviceAttributeMemoryPoolsSupported = 88
CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED = 88
cudaDevAttrMemoryPoolsSupported = 88
hipDeviceAttributeVirtualMemoryManagementSupported = 89
CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED = 89
hipDeviceAttributeHostRegisterSupported = 90
CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED = 90
cudaDevAttrHostRegisterSupported = 90
hipDeviceAttributeCudaCompatibleEnd = 9999
hipDeviceAttributeAmdSpecificBegin = 10000
hipDeviceAttributeClockInstructionRate = 10000
hipDeviceAttributeUnused3 = 10001
hipDeviceAttributeMaxSharedMemoryPerMultiprocessor = 10002
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR = 10002
cudaDevAttrMaxSharedMemoryPerMultiprocessor = 10002
hipDeviceAttributeUnused4 = 10003
hipDeviceAttributeUnused5 = 10004
hipDeviceAttributeHdpMemFlushCntl = 10005
hipDeviceAttributeHdpRegFlushCntl = 10006
hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc = 10007
hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim = 10008
hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim = 10009
hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem = 10010
hipDeviceAttributeIsLargeBar = 10011
hipDeviceAttributeAsicRevision = 10012
hipDeviceAttributeCanUseStreamWaitValue = 10013
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR = 10013
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR_V1 = 10013
cudaDevAttrReserved94 = 10013
hipDeviceAttributeImageSupport = 10014
hipDeviceAttributePhysicalMultiProcessorCount = 10015
hipDeviceAttributeFineGrainSupport = 10016
hipDeviceAttributeWallClockRate = 10017
hipDeviceAttributeAmdSpecificEnd = 19999
hipDeviceAttributeVendorSpecificBegin = 20000
class cuda.cuda.CUdevice_attribute_enum(value)

Bases: _hipDeviceAttribute_t__Base

An enumeration.

hipDeviceAttributeCudaCompatibleBegin = 0
hipDeviceAttributeEccEnabled = 0
CU_DEVICE_ATTRIBUTE_ECC_ENABLED = 0
cudaDevAttrEccEnabled = 0
hipDeviceAttributeAccessPolicyMaxWindowSize = 1
hipDeviceAttributeAsyncEngineCount = 2
CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT = 2
CU_DEVICE_ATTRIBUTE_GPU_OVERLAP = 2
cudaDevAttrAsyncEngineCount = 2
cudaDevAttrGpuOverlap = 2
hipDeviceAttributeCanMapHostMemory = 3
CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY = 3
cudaDevAttrCanMapHostMemory = 3
hipDeviceAttributeCanUseHostPointerForRegisteredMem = 4
CU_DEVICE_ATTRIBUTE_CAN_USE_HOST_POINTER_FOR_REGISTERED_MEM = 4
cudaDevAttrCanUseHostPointerForRegisteredMem = 4
hipDeviceAttributeClockRate = 5
CU_DEVICE_ATTRIBUTE_CLOCK_RATE = 5
cudaDevAttrClockRate = 5
hipDeviceAttributeComputeMode = 6
CU_DEVICE_ATTRIBUTE_COMPUTE_MODE = 6
cudaDevAttrComputeMode = 6
hipDeviceAttributeComputePreemptionSupported = 7
CU_DEVICE_ATTRIBUTE_COMPUTE_PREEMPTION_SUPPORTED = 7
cudaDevAttrComputePreemptionSupported = 7
hipDeviceAttributeConcurrentKernels = 8
CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS = 8
cudaDevAttrConcurrentKernels = 8
hipDeviceAttributeConcurrentManagedAccess = 9
CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS = 9
cudaDevAttrConcurrentManagedAccess = 9
hipDeviceAttributeCooperativeLaunch = 10
CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH = 10
cudaDevAttrCooperativeLaunch = 10
hipDeviceAttributeCooperativeMultiDeviceLaunch = 11
CU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH = 11
cudaDevAttrCooperativeMultiDeviceLaunch = 11
hipDeviceAttributeDeviceOverlap = 12
hipDeviceAttributeDirectManagedMemAccessFromHost = 13
CU_DEVICE_ATTRIBUTE_DIRECT_MANAGED_MEM_ACCESS_FROM_HOST = 13
cudaDevAttrDirectManagedMemAccessFromHost = 13
hipDeviceAttributeGlobalL1CacheSupported = 14
CU_DEVICE_ATTRIBUTE_GLOBAL_L1_CACHE_SUPPORTED = 14
cudaDevAttrGlobalL1CacheSupported = 14
hipDeviceAttributeHostNativeAtomicSupported = 15
CU_DEVICE_ATTRIBUTE_HOST_NATIVE_ATOMIC_SUPPORTED = 15
cudaDevAttrHostNativeAtomicSupported = 15
hipDeviceAttributeIntegrated = 16
CU_DEVICE_ATTRIBUTE_INTEGRATED = 16
cudaDevAttrIntegrated = 16
hipDeviceAttributeIsMultiGpuBoard = 17
CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD = 17
cudaDevAttrIsMultiGpuBoard = 17
hipDeviceAttributeKernelExecTimeout = 18
CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT = 18
cudaDevAttrKernelExecTimeout = 18
hipDeviceAttributeL2CacheSize = 19
CU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE = 19
cudaDevAttrL2CacheSize = 19
hipDeviceAttributeLocalL1CacheSupported = 20
CU_DEVICE_ATTRIBUTE_LOCAL_L1_CACHE_SUPPORTED = 20
cudaDevAttrLocalL1CacheSupported = 20
hipDeviceAttributeLuid = 21
hipDeviceAttributeLuidDeviceNodeMask = 22
hipDeviceAttributeComputeCapabilityMajor = 23
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR = 23
cudaDevAttrComputeCapabilityMajor = 23
hipDeviceAttributeManagedMemory = 24
CU_DEVICE_ATTRIBUTE_MANAGED_MEMORY = 24
cudaDevAttrManagedMemory = 24
hipDeviceAttributeMaxBlocksPerMultiProcessor = 25
hipDeviceAttributeMaxBlockDimX = 26
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X = 26
cudaDevAttrMaxBlockDimX = 26
hipDeviceAttributeMaxBlockDimY = 27
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y = 27
cudaDevAttrMaxBlockDimY = 27
hipDeviceAttributeMaxBlockDimZ = 28
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z = 28
cudaDevAttrMaxBlockDimZ = 28
hipDeviceAttributeMaxGridDimX = 29
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X = 29
cudaDevAttrMaxGridDimX = 29
hipDeviceAttributeMaxGridDimY = 30
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y = 30
cudaDevAttrMaxGridDimY = 30
hipDeviceAttributeMaxGridDimZ = 31
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z = 31
cudaDevAttrMaxGridDimZ = 31
hipDeviceAttributeMaxSurface1D = 32
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_WIDTH = 32
cudaDevAttrMaxSurface1DWidth = 32
hipDeviceAttributeMaxSurface1DLayered = 33
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_WIDTH = 33
cudaDevAttrMaxSurface1DLayeredWidth = 33
hipDeviceAttributeMaxSurface2D = 34
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_HEIGHT = 34
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_WIDTH = 34
cudaDevAttrMaxSurface2DHeight = 34
cudaDevAttrMaxSurface2DWidth = 34
hipDeviceAttributeMaxSurface2DLayered = 35
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_HEIGHT = 35
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_WIDTH = 35
cudaDevAttrMaxSurface2DLayeredHeight = 35
cudaDevAttrMaxSurface2DLayeredWidth = 35
hipDeviceAttributeMaxSurface3D = 36
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_DEPTH = 36
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_HEIGHT = 36
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_WIDTH = 36
cudaDevAttrMaxSurface3DDepth = 36
cudaDevAttrMaxSurface3DHeight = 36
cudaDevAttrMaxSurface3DWidth = 36
hipDeviceAttributeMaxSurfaceCubemap = 37
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_WIDTH = 37
cudaDevAttrMaxSurfaceCubemapWidth = 37
hipDeviceAttributeMaxSurfaceCubemapLayered = 38
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_WIDTH = 38
cudaDevAttrMaxSurfaceCubemapLayeredWidth = 38
hipDeviceAttributeMaxTexture1DWidth = 39
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH = 39
cudaDevAttrMaxTexture1DWidth = 39
hipDeviceAttributeMaxTexture1DLayered = 40
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_WIDTH = 40
cudaDevAttrMaxTexture1DLayeredWidth = 40
hipDeviceAttributeMaxTexture1DLinear = 41
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LINEAR_WIDTH = 41
cudaDevAttrMaxTexture1DLinearWidth = 41
hipDeviceAttributeMaxTexture1DMipmap = 42
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_MIPMAPPED_WIDTH = 42
cudaDevAttrMaxTexture1DMipmappedWidth = 42
hipDeviceAttributeMaxTexture2DWidth = 43
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH = 43
cudaDevAttrMaxTexture2DWidth = 43
hipDeviceAttributeMaxTexture2DHeight = 44
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT = 44
cudaDevAttrMaxTexture2DHeight = 44
hipDeviceAttributeMaxTexture2DGather = 45
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_HEIGHT = 45
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_WIDTH = 45
cudaDevAttrMaxTexture2DGatherHeight = 45
cudaDevAttrMaxTexture2DGatherWidth = 45
hipDeviceAttributeMaxTexture2DLayered = 46
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT = 46
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH = 46
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT = 46
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH = 46
cudaDevAttrMaxTexture2DLayeredHeight = 46
cudaDevAttrMaxTexture2DLayeredWidth = 46
hipDeviceAttributeMaxTexture2DLinear = 47
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT = 47
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH = 47
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH = 47
cudaDevAttrMaxTexture2DLinearHeight = 47
cudaDevAttrMaxTexture2DLinearPitch = 47
cudaDevAttrMaxTexture2DLinearWidth = 47
hipDeviceAttributeMaxTexture2DMipmap = 48
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_HEIGHT = 48
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_WIDTH = 48
cudaDevAttrMaxTexture2DMipmappedHeight = 48
cudaDevAttrMaxTexture2DMipmappedWidth = 48
hipDeviceAttributeMaxTexture3DWidth = 49
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH = 49
cudaDevAttrMaxTexture3DWidth = 49
hipDeviceAttributeMaxTexture3DHeight = 50
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT = 50
cudaDevAttrMaxTexture3DHeight = 50
hipDeviceAttributeMaxTexture3DDepth = 51
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH = 51
cudaDevAttrMaxTexture3DDepth = 51
hipDeviceAttributeMaxTexture3DAlt = 52
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH_ALTERNATE = 52
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT_ALTERNATE = 52
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH_ALTERNATE = 52
cudaDevAttrMaxTexture3DDepthAlt = 52
cudaDevAttrMaxTexture3DHeightAlt = 52
cudaDevAttrMaxTexture3DWidthAlt = 52
hipDeviceAttributeMaxTextureCubemap = 53
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_WIDTH = 53
cudaDevAttrMaxTextureCubemapWidth = 53
hipDeviceAttributeMaxTextureCubemapLayered = 54
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_WIDTH = 54
cudaDevAttrMaxTextureCubemapLayeredWidth = 54
hipDeviceAttributeMaxThreadsDim = 55
hipDeviceAttributeMaxThreadsPerBlock = 56
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK = 56
cudaDevAttrMaxThreadsPerBlock = 56
hipDeviceAttributeMaxThreadsPerMultiProcessor = 57
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR = 57
cudaDevAttrMaxThreadsPerMultiProcessor = 57
hipDeviceAttributeMaxPitch = 58
CU_DEVICE_ATTRIBUTE_MAX_PITCH = 58
cudaDevAttrMaxPitch = 58
hipDeviceAttributeMemoryBusWidth = 59
CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH = 59
cudaDevAttrGlobalMemoryBusWidth = 59
hipDeviceAttributeMemoryClockRate = 60
CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE = 60
cudaDevAttrMemoryClockRate = 60
hipDeviceAttributeComputeCapabilityMinor = 61
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR = 61
cudaDevAttrComputeCapabilityMinor = 61
hipDeviceAttributeMultiGpuBoardGroupID = 62
cudaDevAttrMultiGpuBoardGroupID = 62
hipDeviceAttributeMultiprocessorCount = 63
CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT = 63
cudaDevAttrMultiProcessorCount = 63
hipDeviceAttributeUnused1 = 64
hipDeviceAttributePageableMemoryAccess = 65
CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS = 65
cudaDevAttrPageableMemoryAccess = 65
hipDeviceAttributePageableMemoryAccessUsesHostPageTables = 66
CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES = 66
cudaDevAttrPageableMemoryAccessUsesHostPageTables = 66
hipDeviceAttributePciBusId = 67
CU_DEVICE_ATTRIBUTE_PCI_BUS_ID = 67
cudaDevAttrPciBusId = 67
hipDeviceAttributePciDeviceId = 68
CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID = 68
cudaDevAttrPciDeviceId = 68
hipDeviceAttributePciDomainID = 69
CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID = 69
cudaDevAttrPciDomainId = 69
hipDeviceAttributePersistingL2CacheMaxSize = 70
hipDeviceAttributeMaxRegistersPerBlock = 71
CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK = 71
CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK = 71
cudaDevAttrMaxRegistersPerBlock = 71
hipDeviceAttributeMaxRegistersPerMultiprocessor = 72
CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR = 72
cudaDevAttrMaxRegistersPerMultiprocessor = 72
hipDeviceAttributeReservedSharedMemPerBlock = 73
hipDeviceAttributeMaxSharedMemoryPerBlock = 74
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK = 74
CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK = 74
cudaDevAttrMaxSharedMemoryPerBlock = 74
hipDeviceAttributeSharedMemPerBlockOptin = 75
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN = 75
cudaDevAttrMaxSharedMemoryPerBlockOptin = 75
hipDeviceAttributeSharedMemPerMultiprocessor = 76
hipDeviceAttributeSingleToDoublePrecisionPerfRatio = 77
CU_DEVICE_ATTRIBUTE_SINGLE_TO_DOUBLE_PRECISION_PERF_RATIO = 77
cudaDevAttrSingleToDoublePrecisionPerfRatio = 77
hipDeviceAttributeStreamPrioritiesSupported = 78
CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED = 78
cudaDevAttrStreamPrioritiesSupported = 78
hipDeviceAttributeSurfaceAlignment = 79
CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT = 79
cudaDevAttrSurfaceAlignment = 79
hipDeviceAttributeTccDriver = 80
CU_DEVICE_ATTRIBUTE_TCC_DRIVER = 80
cudaDevAttrTccDriver = 80
hipDeviceAttributeTextureAlignment = 81
CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT = 81
cudaDevAttrTextureAlignment = 81
hipDeviceAttributeTexturePitchAlignment = 82
CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT = 82
cudaDevAttrTexturePitchAlignment = 82
hipDeviceAttributeTotalConstantMemory = 83
CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY = 83
cudaDevAttrTotalConstantMemory = 83
hipDeviceAttributeTotalGlobalMem = 84
hipDeviceAttributeUnifiedAddressing = 85
CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING = 85
cudaDevAttrUnifiedAddressing = 85
hipDeviceAttributeUnused2 = 86
hipDeviceAttributeWarpSize = 87
CU_DEVICE_ATTRIBUTE_WARP_SIZE = 87
cudaDevAttrWarpSize = 87
hipDeviceAttributeMemoryPoolsSupported = 88
CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED = 88
cudaDevAttrMemoryPoolsSupported = 88
hipDeviceAttributeVirtualMemoryManagementSupported = 89
CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED = 89
hipDeviceAttributeHostRegisterSupported = 90
CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED = 90
cudaDevAttrHostRegisterSupported = 90
hipDeviceAttributeCudaCompatibleEnd = 9999
hipDeviceAttributeAmdSpecificBegin = 10000
hipDeviceAttributeClockInstructionRate = 10000
hipDeviceAttributeUnused3 = 10001
hipDeviceAttributeMaxSharedMemoryPerMultiprocessor = 10002
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR = 10002
cudaDevAttrMaxSharedMemoryPerMultiprocessor = 10002
hipDeviceAttributeUnused4 = 10003
hipDeviceAttributeUnused5 = 10004
hipDeviceAttributeHdpMemFlushCntl = 10005
hipDeviceAttributeHdpRegFlushCntl = 10006
hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc = 10007
hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim = 10008
hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim = 10009
hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem = 10010
hipDeviceAttributeIsLargeBar = 10011
hipDeviceAttributeAsicRevision = 10012
hipDeviceAttributeCanUseStreamWaitValue = 10013
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR = 10013
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR_V1 = 10013
cudaDevAttrReserved94 = 10013
hipDeviceAttributeImageSupport = 10014
hipDeviceAttributePhysicalMultiProcessorCount = 10015
hipDeviceAttributeFineGrainSupport = 10016
hipDeviceAttributeWallClockRate = 10017
hipDeviceAttributeAmdSpecificEnd = 19999
hipDeviceAttributeVendorSpecificBegin = 20000
class cuda.cuda.cudaDeviceAttr(value)

Bases: _hipDeviceAttribute_t__Base

An enumeration.

hipDeviceAttributeCudaCompatibleBegin = 0
hipDeviceAttributeEccEnabled = 0
CU_DEVICE_ATTRIBUTE_ECC_ENABLED = 0
cudaDevAttrEccEnabled = 0
hipDeviceAttributeAccessPolicyMaxWindowSize = 1
hipDeviceAttributeAsyncEngineCount = 2
CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT = 2
CU_DEVICE_ATTRIBUTE_GPU_OVERLAP = 2
cudaDevAttrAsyncEngineCount = 2
cudaDevAttrGpuOverlap = 2
hipDeviceAttributeCanMapHostMemory = 3
CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY = 3
cudaDevAttrCanMapHostMemory = 3
hipDeviceAttributeCanUseHostPointerForRegisteredMem = 4
CU_DEVICE_ATTRIBUTE_CAN_USE_HOST_POINTER_FOR_REGISTERED_MEM = 4
cudaDevAttrCanUseHostPointerForRegisteredMem = 4
hipDeviceAttributeClockRate = 5
CU_DEVICE_ATTRIBUTE_CLOCK_RATE = 5
cudaDevAttrClockRate = 5
hipDeviceAttributeComputeMode = 6
CU_DEVICE_ATTRIBUTE_COMPUTE_MODE = 6
cudaDevAttrComputeMode = 6
hipDeviceAttributeComputePreemptionSupported = 7
CU_DEVICE_ATTRIBUTE_COMPUTE_PREEMPTION_SUPPORTED = 7
cudaDevAttrComputePreemptionSupported = 7
hipDeviceAttributeConcurrentKernels = 8
CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS = 8
cudaDevAttrConcurrentKernels = 8
hipDeviceAttributeConcurrentManagedAccess = 9
CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS = 9
cudaDevAttrConcurrentManagedAccess = 9
hipDeviceAttributeCooperativeLaunch = 10
CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH = 10
cudaDevAttrCooperativeLaunch = 10
hipDeviceAttributeCooperativeMultiDeviceLaunch = 11
CU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH = 11
cudaDevAttrCooperativeMultiDeviceLaunch = 11
hipDeviceAttributeDeviceOverlap = 12
hipDeviceAttributeDirectManagedMemAccessFromHost = 13
CU_DEVICE_ATTRIBUTE_DIRECT_MANAGED_MEM_ACCESS_FROM_HOST = 13
cudaDevAttrDirectManagedMemAccessFromHost = 13
hipDeviceAttributeGlobalL1CacheSupported = 14
CU_DEVICE_ATTRIBUTE_GLOBAL_L1_CACHE_SUPPORTED = 14
cudaDevAttrGlobalL1CacheSupported = 14
hipDeviceAttributeHostNativeAtomicSupported = 15
CU_DEVICE_ATTRIBUTE_HOST_NATIVE_ATOMIC_SUPPORTED = 15
cudaDevAttrHostNativeAtomicSupported = 15
hipDeviceAttributeIntegrated = 16
CU_DEVICE_ATTRIBUTE_INTEGRATED = 16
cudaDevAttrIntegrated = 16
hipDeviceAttributeIsMultiGpuBoard = 17
CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD = 17
cudaDevAttrIsMultiGpuBoard = 17
hipDeviceAttributeKernelExecTimeout = 18
CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT = 18
cudaDevAttrKernelExecTimeout = 18
hipDeviceAttributeL2CacheSize = 19
CU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE = 19
cudaDevAttrL2CacheSize = 19
hipDeviceAttributeLocalL1CacheSupported = 20
CU_DEVICE_ATTRIBUTE_LOCAL_L1_CACHE_SUPPORTED = 20
cudaDevAttrLocalL1CacheSupported = 20
hipDeviceAttributeLuid = 21
hipDeviceAttributeLuidDeviceNodeMask = 22
hipDeviceAttributeComputeCapabilityMajor = 23
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR = 23
cudaDevAttrComputeCapabilityMajor = 23
hipDeviceAttributeManagedMemory = 24
CU_DEVICE_ATTRIBUTE_MANAGED_MEMORY = 24
cudaDevAttrManagedMemory = 24
hipDeviceAttributeMaxBlocksPerMultiProcessor = 25
hipDeviceAttributeMaxBlockDimX = 26
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X = 26
cudaDevAttrMaxBlockDimX = 26
hipDeviceAttributeMaxBlockDimY = 27
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y = 27
cudaDevAttrMaxBlockDimY = 27
hipDeviceAttributeMaxBlockDimZ = 28
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z = 28
cudaDevAttrMaxBlockDimZ = 28
hipDeviceAttributeMaxGridDimX = 29
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X = 29
cudaDevAttrMaxGridDimX = 29
hipDeviceAttributeMaxGridDimY = 30
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y = 30
cudaDevAttrMaxGridDimY = 30
hipDeviceAttributeMaxGridDimZ = 31
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z = 31
cudaDevAttrMaxGridDimZ = 31
hipDeviceAttributeMaxSurface1D = 32
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_WIDTH = 32
cudaDevAttrMaxSurface1DWidth = 32
hipDeviceAttributeMaxSurface1DLayered = 33
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_WIDTH = 33
cudaDevAttrMaxSurface1DLayeredWidth = 33
hipDeviceAttributeMaxSurface2D = 34
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_HEIGHT = 34
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_WIDTH = 34
cudaDevAttrMaxSurface2DHeight = 34
cudaDevAttrMaxSurface2DWidth = 34
hipDeviceAttributeMaxSurface2DLayered = 35
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_HEIGHT = 35
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_WIDTH = 35
cudaDevAttrMaxSurface2DLayeredHeight = 35
cudaDevAttrMaxSurface2DLayeredWidth = 35
hipDeviceAttributeMaxSurface3D = 36
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_DEPTH = 36
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_HEIGHT = 36
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_WIDTH = 36
cudaDevAttrMaxSurface3DDepth = 36
cudaDevAttrMaxSurface3DHeight = 36
cudaDevAttrMaxSurface3DWidth = 36
hipDeviceAttributeMaxSurfaceCubemap = 37
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_WIDTH = 37
cudaDevAttrMaxSurfaceCubemapWidth = 37
hipDeviceAttributeMaxSurfaceCubemapLayered = 38
CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_WIDTH = 38
cudaDevAttrMaxSurfaceCubemapLayeredWidth = 38
hipDeviceAttributeMaxTexture1DWidth = 39
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH = 39
cudaDevAttrMaxTexture1DWidth = 39
hipDeviceAttributeMaxTexture1DLayered = 40
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_WIDTH = 40
cudaDevAttrMaxTexture1DLayeredWidth = 40
hipDeviceAttributeMaxTexture1DLinear = 41
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LINEAR_WIDTH = 41
cudaDevAttrMaxTexture1DLinearWidth = 41
hipDeviceAttributeMaxTexture1DMipmap = 42
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_MIPMAPPED_WIDTH = 42
cudaDevAttrMaxTexture1DMipmappedWidth = 42
hipDeviceAttributeMaxTexture2DWidth = 43
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH = 43
cudaDevAttrMaxTexture2DWidth = 43
hipDeviceAttributeMaxTexture2DHeight = 44
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT = 44
cudaDevAttrMaxTexture2DHeight = 44
hipDeviceAttributeMaxTexture2DGather = 45
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_HEIGHT = 45
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_WIDTH = 45
cudaDevAttrMaxTexture2DGatherHeight = 45
cudaDevAttrMaxTexture2DGatherWidth = 45
hipDeviceAttributeMaxTexture2DLayered = 46
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT = 46
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH = 46
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT = 46
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH = 46
cudaDevAttrMaxTexture2DLayeredHeight = 46
cudaDevAttrMaxTexture2DLayeredWidth = 46
hipDeviceAttributeMaxTexture2DLinear = 47
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT = 47
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH = 47
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH = 47
cudaDevAttrMaxTexture2DLinearHeight = 47
cudaDevAttrMaxTexture2DLinearPitch = 47
cudaDevAttrMaxTexture2DLinearWidth = 47
hipDeviceAttributeMaxTexture2DMipmap = 48
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_HEIGHT = 48
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_WIDTH = 48
cudaDevAttrMaxTexture2DMipmappedHeight = 48
cudaDevAttrMaxTexture2DMipmappedWidth = 48
hipDeviceAttributeMaxTexture3DWidth = 49
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH = 49
cudaDevAttrMaxTexture3DWidth = 49
hipDeviceAttributeMaxTexture3DHeight = 50
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT = 50
cudaDevAttrMaxTexture3DHeight = 50
hipDeviceAttributeMaxTexture3DDepth = 51
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH = 51
cudaDevAttrMaxTexture3DDepth = 51
hipDeviceAttributeMaxTexture3DAlt = 52
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH_ALTERNATE = 52
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT_ALTERNATE = 52
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH_ALTERNATE = 52
cudaDevAttrMaxTexture3DDepthAlt = 52
cudaDevAttrMaxTexture3DHeightAlt = 52
cudaDevAttrMaxTexture3DWidthAlt = 52
hipDeviceAttributeMaxTextureCubemap = 53
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_WIDTH = 53
cudaDevAttrMaxTextureCubemapWidth = 53
hipDeviceAttributeMaxTextureCubemapLayered = 54
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_WIDTH = 54
cudaDevAttrMaxTextureCubemapLayeredWidth = 54
hipDeviceAttributeMaxThreadsDim = 55
hipDeviceAttributeMaxThreadsPerBlock = 56
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK = 56
cudaDevAttrMaxThreadsPerBlock = 56
hipDeviceAttributeMaxThreadsPerMultiProcessor = 57
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR = 57
cudaDevAttrMaxThreadsPerMultiProcessor = 57
hipDeviceAttributeMaxPitch = 58
CU_DEVICE_ATTRIBUTE_MAX_PITCH = 58
cudaDevAttrMaxPitch = 58
hipDeviceAttributeMemoryBusWidth = 59
CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH = 59
cudaDevAttrGlobalMemoryBusWidth = 59
hipDeviceAttributeMemoryClockRate = 60
CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE = 60
cudaDevAttrMemoryClockRate = 60
hipDeviceAttributeComputeCapabilityMinor = 61
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR = 61
cudaDevAttrComputeCapabilityMinor = 61
hipDeviceAttributeMultiGpuBoardGroupID = 62
cudaDevAttrMultiGpuBoardGroupID = 62
hipDeviceAttributeMultiprocessorCount = 63
CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT = 63
cudaDevAttrMultiProcessorCount = 63
hipDeviceAttributeUnused1 = 64
hipDeviceAttributePageableMemoryAccess = 65
CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS = 65
cudaDevAttrPageableMemoryAccess = 65
hipDeviceAttributePageableMemoryAccessUsesHostPageTables = 66
CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES = 66
cudaDevAttrPageableMemoryAccessUsesHostPageTables = 66
hipDeviceAttributePciBusId = 67
CU_DEVICE_ATTRIBUTE_PCI_BUS_ID = 67
cudaDevAttrPciBusId = 67
hipDeviceAttributePciDeviceId = 68
CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID = 68
cudaDevAttrPciDeviceId = 68
hipDeviceAttributePciDomainID = 69
CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID = 69
cudaDevAttrPciDomainId = 69
hipDeviceAttributePersistingL2CacheMaxSize = 70
hipDeviceAttributeMaxRegistersPerBlock = 71
CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK = 71
CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK = 71
cudaDevAttrMaxRegistersPerBlock = 71
hipDeviceAttributeMaxRegistersPerMultiprocessor = 72
CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR = 72
cudaDevAttrMaxRegistersPerMultiprocessor = 72
hipDeviceAttributeReservedSharedMemPerBlock = 73
hipDeviceAttributeMaxSharedMemoryPerBlock = 74
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK = 74
CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK = 74
cudaDevAttrMaxSharedMemoryPerBlock = 74
hipDeviceAttributeSharedMemPerBlockOptin = 75
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN = 75
cudaDevAttrMaxSharedMemoryPerBlockOptin = 75
hipDeviceAttributeSharedMemPerMultiprocessor = 76
hipDeviceAttributeSingleToDoublePrecisionPerfRatio = 77
CU_DEVICE_ATTRIBUTE_SINGLE_TO_DOUBLE_PRECISION_PERF_RATIO = 77
cudaDevAttrSingleToDoublePrecisionPerfRatio = 77
hipDeviceAttributeStreamPrioritiesSupported = 78
CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED = 78
cudaDevAttrStreamPrioritiesSupported = 78
hipDeviceAttributeSurfaceAlignment = 79
CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT = 79
cudaDevAttrSurfaceAlignment = 79
hipDeviceAttributeTccDriver = 80
CU_DEVICE_ATTRIBUTE_TCC_DRIVER = 80
cudaDevAttrTccDriver = 80
hipDeviceAttributeTextureAlignment = 81
CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT = 81
cudaDevAttrTextureAlignment = 81
hipDeviceAttributeTexturePitchAlignment = 82
CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT = 82
cudaDevAttrTexturePitchAlignment = 82
hipDeviceAttributeTotalConstantMemory = 83
CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY = 83
cudaDevAttrTotalConstantMemory = 83
hipDeviceAttributeTotalGlobalMem = 84
hipDeviceAttributeUnifiedAddressing = 85
CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING = 85
cudaDevAttrUnifiedAddressing = 85
hipDeviceAttributeUnused2 = 86
hipDeviceAttributeWarpSize = 87
CU_DEVICE_ATTRIBUTE_WARP_SIZE = 87
cudaDevAttrWarpSize = 87
hipDeviceAttributeMemoryPoolsSupported = 88
CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED = 88
cudaDevAttrMemoryPoolsSupported = 88
hipDeviceAttributeVirtualMemoryManagementSupported = 89
CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED = 89
hipDeviceAttributeHostRegisterSupported = 90
CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED = 90
cudaDevAttrHostRegisterSupported = 90
hipDeviceAttributeCudaCompatibleEnd = 9999
hipDeviceAttributeAmdSpecificBegin = 10000
hipDeviceAttributeClockInstructionRate = 10000
hipDeviceAttributeUnused3 = 10001
hipDeviceAttributeMaxSharedMemoryPerMultiprocessor = 10002
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR = 10002
cudaDevAttrMaxSharedMemoryPerMultiprocessor = 10002
hipDeviceAttributeUnused4 = 10003
hipDeviceAttributeUnused5 = 10004
hipDeviceAttributeHdpMemFlushCntl = 10005
hipDeviceAttributeHdpRegFlushCntl = 10006
hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc = 10007
hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim = 10008
hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim = 10009
hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem = 10010
hipDeviceAttributeIsLargeBar = 10011
hipDeviceAttributeAsicRevision = 10012
hipDeviceAttributeCanUseStreamWaitValue = 10013
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR = 10013
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR_V1 = 10013
cudaDevAttrReserved94 = 10013
hipDeviceAttributeImageSupport = 10014
hipDeviceAttributePhysicalMultiProcessorCount = 10015
hipDeviceAttributeFineGrainSupport = 10016
hipDeviceAttributeWallClockRate = 10017
hipDeviceAttributeAmdSpecificEnd = 19999
hipDeviceAttributeVendorSpecificBegin = 20000
class cuda.cuda.CUcomputemode(value)

Bases: _hipComputeMode__Base

An enumeration.

hipComputeModeDefault = 0
CU_COMPUTEMODE_DEFAULT = 0
cudaComputeModeDefault = 0
hipComputeModeExclusive = 1
CU_COMPUTEMODE_EXCLUSIVE = 1
cudaComputeModeExclusive = 1
hipComputeModeProhibited = 2
CU_COMPUTEMODE_PROHIBITED = 2
cudaComputeModeProhibited = 2
hipComputeModeExclusiveProcess = 3
CU_COMPUTEMODE_EXCLUSIVE_PROCESS = 3
cudaComputeModeExclusiveProcess = 3
class cuda.cuda.CUcomputemode_enum(value)

Bases: _hipComputeMode__Base

An enumeration.

hipComputeModeDefault = 0
CU_COMPUTEMODE_DEFAULT = 0
cudaComputeModeDefault = 0
hipComputeModeExclusive = 1
CU_COMPUTEMODE_EXCLUSIVE = 1
cudaComputeModeExclusive = 1
hipComputeModeProhibited = 2
CU_COMPUTEMODE_PROHIBITED = 2
cudaComputeModeProhibited = 2
hipComputeModeExclusiveProcess = 3
CU_COMPUTEMODE_EXCLUSIVE_PROCESS = 3
cudaComputeModeExclusiveProcess = 3
class cuda.cuda.cudaComputeMode(value)

Bases: _hipComputeMode__Base

An enumeration.

hipComputeModeDefault = 0
CU_COMPUTEMODE_DEFAULT = 0
cudaComputeModeDefault = 0
hipComputeModeExclusive = 1
CU_COMPUTEMODE_EXCLUSIVE = 1
cudaComputeModeExclusive = 1
hipComputeModeProhibited = 2
CU_COMPUTEMODE_PROHIBITED = 2
cudaComputeModeProhibited = 2
hipComputeModeExclusiveProcess = 3
CU_COMPUTEMODE_EXCLUSIVE_PROCESS = 3
cudaComputeModeExclusiveProcess = 3
cuda.cuda.CUdeviceptr

alias of hipDeviceptr_t

cuda.cuda.CUdeviceptr_v1

alias of hipDeviceptr_t

cuda.cuda.CUdeviceptr_v2

alias of hipDeviceptr_t

class cuda.cuda.cudaChannelFormatKind(value)

Bases: _hipChannelFormatKind__Base

An enumeration.

hipChannelFormatKindSigned = 0
cudaChannelFormatKindSigned = 0
hipChannelFormatKindUnsigned = 1
cudaChannelFormatKindUnsigned = 1
hipChannelFormatKindFloat = 2
cudaChannelFormatKindFloat = 2
hipChannelFormatKindNone = 3
cudaChannelFormatKindNone = 3
class cuda.cuda.cudaChannelFormatDesc

Bases: hipChannelFormatDesc

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipChannelFormatDesc.

Constructor for type hipChannelFormatDesc.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

f

(undocumented)

static fromObj(pyobj)

Creates a hipChannelFormatDesc from a Python object.

Derives a hipChannelFormatDesc from the given Python object pyobj. In case pyobj is itself an hipChannelFormatDesc reference, this method returns it directly. No new hipChannelFormatDesc is created in this case.

get_f(self, i)

Get value of f of (<chip.hipChannelFormatDesc*>self._ptr)[i].

get_w(self, i)

Get value w of (<chip.hipChannelFormatDesc*>self._ptr)[i].

get_x(self, i)

Get value x of (<chip.hipChannelFormatDesc*>self._ptr)[i].

get_y(self, i)

Get value y of (<chip.hipChannelFormatDesc*>self._ptr)[i].

get_z(self, i)

Get value z of (<chip.hipChannelFormatDesc*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_f(self, i, value)

Set value f of (<chip.hipChannelFormatDesc*>self._ptr)[i].

set_w(self, i, int value)

Set value w of (<chip.hipChannelFormatDesc*>self._ptr)[i].

set_x(self, i, int value)

Set value x of (<chip.hipChannelFormatDesc*>self._ptr)[i].

set_y(self, i, int value)

Set value y of (<chip.hipChannelFormatDesc*>self._ptr)[i].

set_z(self, i, int value)

Set value z of (<chip.hipChannelFormatDesc*>self._ptr)[i].

w

(undocumented)

x

(undocumented)

y

(undocumented)

z

(undocumented)

class cuda.cuda.CUarray_st

Bases: hipArray

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipArray from a Python object.

Derives a hipArray from the given Python object pyobj. In case pyobj is itself an hipArray reference, this method returns it directly. No new hipArray is created in this case.

is_ptr_null

If data pointer is NULL.

class cuda.cuda.cudaArray

Bases: hipArray

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipArray from a Python object.

Derives a hipArray from the given Python object pyobj. In case pyobj is itself an hipArray reference, this method returns it directly. No new hipArray is created in this case.

is_ptr_null

If data pointer is NULL.

cuda.cuda.CUarray

alias of hipArray

cuda.cuda.cudaArray_t

alias of hipArray

cuda.cuda.cudaArray_const_t

alias of hipArray

class cuda.cuda.CUarray_format(value)

Bases: _hipArray_Format__Base

An enumeration.

HIP_AD_FORMAT_UNSIGNED_INT8 = 1
CU_AD_FORMAT_UNSIGNED_INT8 = 1
HIP_AD_FORMAT_UNSIGNED_INT16 = 2
CU_AD_FORMAT_UNSIGNED_INT16 = 2
HIP_AD_FORMAT_UNSIGNED_INT32 = 3
CU_AD_FORMAT_UNSIGNED_INT32 = 3
HIP_AD_FORMAT_SIGNED_INT8 = 8
CU_AD_FORMAT_SIGNED_INT8 = 8
HIP_AD_FORMAT_SIGNED_INT16 = 9
CU_AD_FORMAT_SIGNED_INT16 = 9
HIP_AD_FORMAT_SIGNED_INT32 = 10
CU_AD_FORMAT_SIGNED_INT32 = 10
HIP_AD_FORMAT_HALF = 16
CU_AD_FORMAT_HALF = 16
HIP_AD_FORMAT_FLOAT = 32
CU_AD_FORMAT_FLOAT = 32
class cuda.cuda.CUarray_format_enum(value)

Bases: _hipArray_Format__Base

An enumeration.

HIP_AD_FORMAT_UNSIGNED_INT8 = 1
CU_AD_FORMAT_UNSIGNED_INT8 = 1
HIP_AD_FORMAT_UNSIGNED_INT16 = 2
CU_AD_FORMAT_UNSIGNED_INT16 = 2
HIP_AD_FORMAT_UNSIGNED_INT32 = 3
CU_AD_FORMAT_UNSIGNED_INT32 = 3
HIP_AD_FORMAT_SIGNED_INT8 = 8
CU_AD_FORMAT_SIGNED_INT8 = 8
HIP_AD_FORMAT_SIGNED_INT16 = 9
CU_AD_FORMAT_SIGNED_INT16 = 9
HIP_AD_FORMAT_SIGNED_INT32 = 10
CU_AD_FORMAT_SIGNED_INT32 = 10
HIP_AD_FORMAT_HALF = 16
CU_AD_FORMAT_HALF = 16
HIP_AD_FORMAT_FLOAT = 32
CU_AD_FORMAT_FLOAT = 32
class cuda.cuda.CUDA_ARRAY_DESCRIPTOR

Bases: HIP_ARRAY_DESCRIPTOR

Format

(undocumented)

Height

(undocumented)

NumChannels

(undocumented)

static PROPERTIES()
Width

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_ARRAY_DESCRIPTOR.

Constructor for type HIP_ARRAY_DESCRIPTOR.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a HIP_ARRAY_DESCRIPTOR from a Python object.

Derives a HIP_ARRAY_DESCRIPTOR from the given Python object pyobj. In case pyobj is itself an HIP_ARRAY_DESCRIPTOR reference, this method returns it directly. No new HIP_ARRAY_DESCRIPTOR is created in this case.

get_Format(self, i)

Get value of Format of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_Height(self, i)

Get value Height of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_NumChannels(self, i)

Get value NumChannels of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_Width(self, i)

Get value Width of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Format(self, i, value)

Set value Format of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_Height(self, i, unsigned long value)

Set value Height of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_NumChannels(self, i, unsigned int value)

Set value NumChannels of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_Width(self, i, unsigned long value)

Set value Width of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

class cuda.cuda.CUDA_ARRAY_DESCRIPTOR_st

Bases: HIP_ARRAY_DESCRIPTOR

Format

(undocumented)

Height

(undocumented)

NumChannels

(undocumented)

static PROPERTIES()
Width

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_ARRAY_DESCRIPTOR.

Constructor for type HIP_ARRAY_DESCRIPTOR.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a HIP_ARRAY_DESCRIPTOR from a Python object.

Derives a HIP_ARRAY_DESCRIPTOR from the given Python object pyobj. In case pyobj is itself an HIP_ARRAY_DESCRIPTOR reference, this method returns it directly. No new HIP_ARRAY_DESCRIPTOR is created in this case.

get_Format(self, i)

Get value of Format of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_Height(self, i)

Get value Height of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_NumChannels(self, i)

Get value NumChannels of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_Width(self, i)

Get value Width of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Format(self, i, value)

Set value Format of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_Height(self, i, unsigned long value)

Set value Height of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_NumChannels(self, i, unsigned int value)

Set value NumChannels of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_Width(self, i, unsigned long value)

Set value Width of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

class cuda.cuda.CUDA_ARRAY_DESCRIPTOR_v1

Bases: HIP_ARRAY_DESCRIPTOR

Format

(undocumented)

Height

(undocumented)

NumChannels

(undocumented)

static PROPERTIES()
Width

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_ARRAY_DESCRIPTOR.

Constructor for type HIP_ARRAY_DESCRIPTOR.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a HIP_ARRAY_DESCRIPTOR from a Python object.

Derives a HIP_ARRAY_DESCRIPTOR from the given Python object pyobj. In case pyobj is itself an HIP_ARRAY_DESCRIPTOR reference, this method returns it directly. No new HIP_ARRAY_DESCRIPTOR is created in this case.

get_Format(self, i)

Get value of Format of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_Height(self, i)

Get value Height of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_NumChannels(self, i)

Get value NumChannels of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_Width(self, i)

Get value Width of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Format(self, i, value)

Set value Format of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_Height(self, i, unsigned long value)

Set value Height of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_NumChannels(self, i, unsigned int value)

Set value NumChannels of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_Width(self, i, unsigned long value)

Set value Width of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

class cuda.cuda.CUDA_ARRAY_DESCRIPTOR_v1_st

Bases: HIP_ARRAY_DESCRIPTOR

Format

(undocumented)

Height

(undocumented)

NumChannels

(undocumented)

static PROPERTIES()
Width

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_ARRAY_DESCRIPTOR.

Constructor for type HIP_ARRAY_DESCRIPTOR.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a HIP_ARRAY_DESCRIPTOR from a Python object.

Derives a HIP_ARRAY_DESCRIPTOR from the given Python object pyobj. In case pyobj is itself an HIP_ARRAY_DESCRIPTOR reference, this method returns it directly. No new HIP_ARRAY_DESCRIPTOR is created in this case.

get_Format(self, i)

Get value of Format of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_Height(self, i)

Get value Height of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_NumChannels(self, i)

Get value NumChannels of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_Width(self, i)

Get value Width of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Format(self, i, value)

Set value Format of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_Height(self, i, unsigned long value)

Set value Height of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_NumChannels(self, i, unsigned int value)

Set value NumChannels of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_Width(self, i, unsigned long value)

Set value Width of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

class cuda.cuda.CUDA_ARRAY_DESCRIPTOR_v2

Bases: HIP_ARRAY_DESCRIPTOR

Format

(undocumented)

Height

(undocumented)

NumChannels

(undocumented)

static PROPERTIES()
Width

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_ARRAY_DESCRIPTOR.

Constructor for type HIP_ARRAY_DESCRIPTOR.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a HIP_ARRAY_DESCRIPTOR from a Python object.

Derives a HIP_ARRAY_DESCRIPTOR from the given Python object pyobj. In case pyobj is itself an HIP_ARRAY_DESCRIPTOR reference, this method returns it directly. No new HIP_ARRAY_DESCRIPTOR is created in this case.

get_Format(self, i)

Get value of Format of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_Height(self, i)

Get value Height of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_NumChannels(self, i)

Get value NumChannels of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

get_Width(self, i)

Get value Width of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Format(self, i, value)

Set value Format of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_Height(self, i, unsigned long value)

Set value Height of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_NumChannels(self, i, unsigned int value)

Set value NumChannels of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

set_Width(self, i, unsigned long value)

Set value Width of (<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].

class cuda.cuda.CUDA_ARRAY3D_DESCRIPTOR

Bases: HIP_ARRAY3D_DESCRIPTOR

Depth

(undocumented)

Flags

(undocumented)

Format

(undocumented)

Height

(undocumented)

NumChannels

(undocumented)

static PROPERTIES()
Width

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_ARRAY3D_DESCRIPTOR.

Constructor for type HIP_ARRAY3D_DESCRIPTOR.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a HIP_ARRAY3D_DESCRIPTOR from a Python object.

Derives a HIP_ARRAY3D_DESCRIPTOR from the given Python object pyobj. In case pyobj is itself an HIP_ARRAY3D_DESCRIPTOR reference, this method returns it directly. No new HIP_ARRAY3D_DESCRIPTOR is created in this case.

get_Depth(self, i)

Get value Depth of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_Flags(self, i)

Get value Flags of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_Format(self, i)

Get value of Format of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_Height(self, i)

Get value Height of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_NumChannels(self, i)

Get value NumChannels of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_Width(self, i)

Get value Width of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Depth(self, i, unsigned long value)

Set value Depth of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_Flags(self, i, unsigned int value)

Set value Flags of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_Format(self, i, value)

Set value Format of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_Height(self, i, unsigned long value)

Set value Height of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_NumChannels(self, i, unsigned int value)

Set value NumChannels of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_Width(self, i, unsigned long value)

Set value Width of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

class cuda.cuda.CUDA_ARRAY3D_DESCRIPTOR_st

Bases: HIP_ARRAY3D_DESCRIPTOR

Depth

(undocumented)

Flags

(undocumented)

Format

(undocumented)

Height

(undocumented)

NumChannels

(undocumented)

static PROPERTIES()
Width

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_ARRAY3D_DESCRIPTOR.

Constructor for type HIP_ARRAY3D_DESCRIPTOR.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a HIP_ARRAY3D_DESCRIPTOR from a Python object.

Derives a HIP_ARRAY3D_DESCRIPTOR from the given Python object pyobj. In case pyobj is itself an HIP_ARRAY3D_DESCRIPTOR reference, this method returns it directly. No new HIP_ARRAY3D_DESCRIPTOR is created in this case.

get_Depth(self, i)

Get value Depth of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_Flags(self, i)

Get value Flags of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_Format(self, i)

Get value of Format of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_Height(self, i)

Get value Height of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_NumChannels(self, i)

Get value NumChannels of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_Width(self, i)

Get value Width of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Depth(self, i, unsigned long value)

Set value Depth of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_Flags(self, i, unsigned int value)

Set value Flags of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_Format(self, i, value)

Set value Format of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_Height(self, i, unsigned long value)

Set value Height of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_NumChannels(self, i, unsigned int value)

Set value NumChannels of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_Width(self, i, unsigned long value)

Set value Width of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

class cuda.cuda.CUDA_ARRAY3D_DESCRIPTOR_v2

Bases: HIP_ARRAY3D_DESCRIPTOR

Depth

(undocumented)

Flags

(undocumented)

Format

(undocumented)

Height

(undocumented)

NumChannels

(undocumented)

static PROPERTIES()
Width

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_ARRAY3D_DESCRIPTOR.

Constructor for type HIP_ARRAY3D_DESCRIPTOR.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a HIP_ARRAY3D_DESCRIPTOR from a Python object.

Derives a HIP_ARRAY3D_DESCRIPTOR from the given Python object pyobj. In case pyobj is itself an HIP_ARRAY3D_DESCRIPTOR reference, this method returns it directly. No new HIP_ARRAY3D_DESCRIPTOR is created in this case.

get_Depth(self, i)

Get value Depth of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_Flags(self, i)

Get value Flags of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_Format(self, i)

Get value of Format of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_Height(self, i)

Get value Height of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_NumChannels(self, i)

Get value NumChannels of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

get_Width(self, i)

Get value Width of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Depth(self, i, unsigned long value)

Set value Depth of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_Flags(self, i, unsigned int value)

Set value Flags of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_Format(self, i, value)

Set value Format of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_Height(self, i, unsigned long value)

Set value Height of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_NumChannels(self, i, unsigned int value)

Set value NumChannels of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

set_Width(self, i, unsigned long value)

Set value Width of (<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].

class cuda.cuda.CUDA_MEMCPY2D

Bases: hip_Memcpy2D

Height

(undocumented)

static PROPERTIES()
WidthInBytes

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type hip_Memcpy2D.

Constructor for type hip_Memcpy2D.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dstDevice

(undocumented) Note:

Setting this dstDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstHost

(undocumented) Note:

Setting this dstHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstMemoryType

(undocumented)

dstPitch

(undocumented)

dstXInBytes

(undocumented)

dstY

(undocumented)

static fromObj(pyobj)

Creates a hip_Memcpy2D from a Python object.

Derives a hip_Memcpy2D from the given Python object pyobj. In case pyobj is itself an hip_Memcpy2D reference, this method returns it directly. No new hip_Memcpy2D is created in this case.

get_Height(self, i)

Get value Height of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_WidthInBytes(self, i)

Get value WidthInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstDevice(self, i)

Get value dstDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstHost(self, i)

Get value dstHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstMemoryType(self, i)

Get value of dstMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstPitch(self, i)

Get value dstPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstXInBytes(self, i)

Get value dstXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstY(self, i)

Get value dstY of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcDevice(self, i)

Get value srcDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcHost(self, i)

Get value srcHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcMemoryType(self, i)

Get value of srcMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcPitch(self, i)

Get value srcPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcXInBytes(self, i)

Get value srcXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcY(self, i)

Get value srcY of (<chip.hip_Memcpy2D*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Height(self, i, unsigned long value)

Set value Height of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_WidthInBytes(self, i, unsigned long value)

Set value WidthInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstDevice(self, i, value)

Set value dstDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstHost(self, i, value)

Set value dstHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstMemoryType(self, i, value)

Set value dstMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstPitch(self, i, unsigned long value)

Set value dstPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstXInBytes(self, i, unsigned long value)

Set value dstXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstY(self, i, unsigned long value)

Set value dstY of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcDevice(self, i, value)

Set value srcDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcHost(self, i, value)

Set value srcHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcMemoryType(self, i, value)

Set value srcMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcPitch(self, i, unsigned long value)

Set value srcPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcXInBytes(self, i, unsigned long value)

Set value srcXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcY(self, i, unsigned long value)

Set value srcY of (<chip.hip_Memcpy2D*>self._ptr)[i].

srcDevice

(undocumented) Note:

Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcHost

(undocumented) Note:

Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcMemoryType

(undocumented)

srcPitch

(undocumented)

srcXInBytes

(undocumented)

srcY

(undocumented)

class cuda.cuda.CUDA_MEMCPY2D_st

Bases: hip_Memcpy2D

Height

(undocumented)

static PROPERTIES()
WidthInBytes

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type hip_Memcpy2D.

Constructor for type hip_Memcpy2D.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dstDevice

(undocumented) Note:

Setting this dstDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstHost

(undocumented) Note:

Setting this dstHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstMemoryType

(undocumented)

dstPitch

(undocumented)

dstXInBytes

(undocumented)

dstY

(undocumented)

static fromObj(pyobj)

Creates a hip_Memcpy2D from a Python object.

Derives a hip_Memcpy2D from the given Python object pyobj. In case pyobj is itself an hip_Memcpy2D reference, this method returns it directly. No new hip_Memcpy2D is created in this case.

get_Height(self, i)

Get value Height of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_WidthInBytes(self, i)

Get value WidthInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstDevice(self, i)

Get value dstDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstHost(self, i)

Get value dstHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstMemoryType(self, i)

Get value of dstMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstPitch(self, i)

Get value dstPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstXInBytes(self, i)

Get value dstXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstY(self, i)

Get value dstY of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcDevice(self, i)

Get value srcDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcHost(self, i)

Get value srcHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcMemoryType(self, i)

Get value of srcMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcPitch(self, i)

Get value srcPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcXInBytes(self, i)

Get value srcXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcY(self, i)

Get value srcY of (<chip.hip_Memcpy2D*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Height(self, i, unsigned long value)

Set value Height of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_WidthInBytes(self, i, unsigned long value)

Set value WidthInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstDevice(self, i, value)

Set value dstDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstHost(self, i, value)

Set value dstHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstMemoryType(self, i, value)

Set value dstMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstPitch(self, i, unsigned long value)

Set value dstPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstXInBytes(self, i, unsigned long value)

Set value dstXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstY(self, i, unsigned long value)

Set value dstY of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcDevice(self, i, value)

Set value srcDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcHost(self, i, value)

Set value srcHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcMemoryType(self, i, value)

Set value srcMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcPitch(self, i, unsigned long value)

Set value srcPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcXInBytes(self, i, unsigned long value)

Set value srcXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcY(self, i, unsigned long value)

Set value srcY of (<chip.hip_Memcpy2D*>self._ptr)[i].

srcDevice

(undocumented) Note:

Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcHost

(undocumented) Note:

Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcMemoryType

(undocumented)

srcPitch

(undocumented)

srcXInBytes

(undocumented)

srcY

(undocumented)

class cuda.cuda.CUDA_MEMCPY2D_v1

Bases: hip_Memcpy2D

Height

(undocumented)

static PROPERTIES()
WidthInBytes

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type hip_Memcpy2D.

Constructor for type hip_Memcpy2D.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dstDevice

(undocumented) Note:

Setting this dstDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstHost

(undocumented) Note:

Setting this dstHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstMemoryType

(undocumented)

dstPitch

(undocumented)

dstXInBytes

(undocumented)

dstY

(undocumented)

static fromObj(pyobj)

Creates a hip_Memcpy2D from a Python object.

Derives a hip_Memcpy2D from the given Python object pyobj. In case pyobj is itself an hip_Memcpy2D reference, this method returns it directly. No new hip_Memcpy2D is created in this case.

get_Height(self, i)

Get value Height of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_WidthInBytes(self, i)

Get value WidthInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstDevice(self, i)

Get value dstDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstHost(self, i)

Get value dstHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstMemoryType(self, i)

Get value of dstMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstPitch(self, i)

Get value dstPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstXInBytes(self, i)

Get value dstXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstY(self, i)

Get value dstY of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcDevice(self, i)

Get value srcDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcHost(self, i)

Get value srcHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcMemoryType(self, i)

Get value of srcMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcPitch(self, i)

Get value srcPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcXInBytes(self, i)

Get value srcXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcY(self, i)

Get value srcY of (<chip.hip_Memcpy2D*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Height(self, i, unsigned long value)

Set value Height of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_WidthInBytes(self, i, unsigned long value)

Set value WidthInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstDevice(self, i, value)

Set value dstDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstHost(self, i, value)

Set value dstHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstMemoryType(self, i, value)

Set value dstMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstPitch(self, i, unsigned long value)

Set value dstPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstXInBytes(self, i, unsigned long value)

Set value dstXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstY(self, i, unsigned long value)

Set value dstY of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcDevice(self, i, value)

Set value srcDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcHost(self, i, value)

Set value srcHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcMemoryType(self, i, value)

Set value srcMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcPitch(self, i, unsigned long value)

Set value srcPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcXInBytes(self, i, unsigned long value)

Set value srcXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcY(self, i, unsigned long value)

Set value srcY of (<chip.hip_Memcpy2D*>self._ptr)[i].

srcDevice

(undocumented) Note:

Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcHost

(undocumented) Note:

Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcMemoryType

(undocumented)

srcPitch

(undocumented)

srcXInBytes

(undocumented)

srcY

(undocumented)

class cuda.cuda.CUDA_MEMCPY2D_v1_st

Bases: hip_Memcpy2D

Height

(undocumented)

static PROPERTIES()
WidthInBytes

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type hip_Memcpy2D.

Constructor for type hip_Memcpy2D.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dstDevice

(undocumented) Note:

Setting this dstDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstHost

(undocumented) Note:

Setting this dstHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstMemoryType

(undocumented)

dstPitch

(undocumented)

dstXInBytes

(undocumented)

dstY

(undocumented)

static fromObj(pyobj)

Creates a hip_Memcpy2D from a Python object.

Derives a hip_Memcpy2D from the given Python object pyobj. In case pyobj is itself an hip_Memcpy2D reference, this method returns it directly. No new hip_Memcpy2D is created in this case.

get_Height(self, i)

Get value Height of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_WidthInBytes(self, i)

Get value WidthInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstDevice(self, i)

Get value dstDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstHost(self, i)

Get value dstHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstMemoryType(self, i)

Get value of dstMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstPitch(self, i)

Get value dstPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstXInBytes(self, i)

Get value dstXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstY(self, i)

Get value dstY of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcDevice(self, i)

Get value srcDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcHost(self, i)

Get value srcHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcMemoryType(self, i)

Get value of srcMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcPitch(self, i)

Get value srcPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcXInBytes(self, i)

Get value srcXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcY(self, i)

Get value srcY of (<chip.hip_Memcpy2D*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Height(self, i, unsigned long value)

Set value Height of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_WidthInBytes(self, i, unsigned long value)

Set value WidthInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstDevice(self, i, value)

Set value dstDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstHost(self, i, value)

Set value dstHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstMemoryType(self, i, value)

Set value dstMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstPitch(self, i, unsigned long value)

Set value dstPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstXInBytes(self, i, unsigned long value)

Set value dstXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstY(self, i, unsigned long value)

Set value dstY of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcDevice(self, i, value)

Set value srcDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcHost(self, i, value)

Set value srcHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcMemoryType(self, i, value)

Set value srcMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcPitch(self, i, unsigned long value)

Set value srcPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcXInBytes(self, i, unsigned long value)

Set value srcXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcY(self, i, unsigned long value)

Set value srcY of (<chip.hip_Memcpy2D*>self._ptr)[i].

srcDevice

(undocumented) Note:

Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcHost

(undocumented) Note:

Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcMemoryType

(undocumented)

srcPitch

(undocumented)

srcXInBytes

(undocumented)

srcY

(undocumented)

class cuda.cuda.CUDA_MEMCPY2D_v2

Bases: hip_Memcpy2D

Height

(undocumented)

static PROPERTIES()
WidthInBytes

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type hip_Memcpy2D.

Constructor for type hip_Memcpy2D.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dstDevice

(undocumented) Note:

Setting this dstDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstHost

(undocumented) Note:

Setting this dstHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstMemoryType

(undocumented)

dstPitch

(undocumented)

dstXInBytes

(undocumented)

dstY

(undocumented)

static fromObj(pyobj)

Creates a hip_Memcpy2D from a Python object.

Derives a hip_Memcpy2D from the given Python object pyobj. In case pyobj is itself an hip_Memcpy2D reference, this method returns it directly. No new hip_Memcpy2D is created in this case.

get_Height(self, i)

Get value Height of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_WidthInBytes(self, i)

Get value WidthInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstDevice(self, i)

Get value dstDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstHost(self, i)

Get value dstHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstMemoryType(self, i)

Get value of dstMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstPitch(self, i)

Get value dstPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstXInBytes(self, i)

Get value dstXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_dstY(self, i)

Get value dstY of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcDevice(self, i)

Get value srcDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcHost(self, i)

Get value srcHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcMemoryType(self, i)

Get value of srcMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcPitch(self, i)

Get value srcPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcXInBytes(self, i)

Get value srcXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

get_srcY(self, i)

Get value srcY of (<chip.hip_Memcpy2D*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Height(self, i, unsigned long value)

Set value Height of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_WidthInBytes(self, i, unsigned long value)

Set value WidthInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstDevice(self, i, value)

Set value dstDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstHost(self, i, value)

Set value dstHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstMemoryType(self, i, value)

Set value dstMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstPitch(self, i, unsigned long value)

Set value dstPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstXInBytes(self, i, unsigned long value)

Set value dstXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_dstY(self, i, unsigned long value)

Set value dstY of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcDevice(self, i, value)

Set value srcDevice of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcHost(self, i, value)

Set value srcHost of (<chip.hip_Memcpy2D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcMemoryType(self, i, value)

Set value srcMemoryType of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcPitch(self, i, unsigned long value)

Set value srcPitch of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcXInBytes(self, i, unsigned long value)

Set value srcXInBytes of (<chip.hip_Memcpy2D*>self._ptr)[i].

set_srcY(self, i, unsigned long value)

Set value srcY of (<chip.hip_Memcpy2D*>self._ptr)[i].

srcDevice

(undocumented) Note:

Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcHost

(undocumented) Note:

Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcMemoryType

(undocumented)

srcPitch

(undocumented)

srcXInBytes

(undocumented)

srcY

(undocumented)

class cuda.cuda.CUmipmappedArray_st

Bases: hipMipmappedArray

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMipmappedArray.

Constructor for type hipMipmappedArray.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

data

(undocumented) Note:

Setting this data can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

depth

(undocumented)

desc

(undocumented)

flags

(undocumented)

format

(undocumented)

static fromObj(pyobj)

Creates a hipMipmappedArray from a Python object.

Derives a hipMipmappedArray from the given Python object pyobj. In case pyobj is itself an hipMipmappedArray reference, this method returns it directly. No new hipMipmappedArray is created in this case.

get_data(self, i)

Get value data of (<chip.hipMipmappedArray*>self._ptr)[i].

get_depth(self, i)

Get value depth of (<chip.hipMipmappedArray*>self._ptr)[i].

get_desc(self, i)

Get value of desc of (<chip.hipMipmappedArray*>self._ptr)[i].

get_flags(self, i)

Get value flags of (<chip.hipMipmappedArray*>self._ptr)[i].

get_format(self, i)

Get value of format of (<chip.hipMipmappedArray*>self._ptr)[i].

get_height(self, i)

Get value height of (<chip.hipMipmappedArray*>self._ptr)[i].

get_max_mipmap_level(self, i)

Get value max_mipmap_level of (<chip.hipMipmappedArray*>self._ptr)[i].

get_min_mipmap_level(self, i)

Get value min_mipmap_level of (<chip.hipMipmappedArray*>self._ptr)[i].

get_num_channels(self, i)

Get value num_channels of (<chip.hipMipmappedArray*>self._ptr)[i].

get_type(self, i)

Get value type of (<chip.hipMipmappedArray*>self._ptr)[i].

get_width(self, i)

Get value width of (<chip.hipMipmappedArray*>self._ptr)[i].

height

(undocumented)

is_ptr_null

If data pointer is NULL.

max_mipmap_level

(undocumented)

min_mipmap_level

(undocumented)

num_channels

(undocumented)

set_data(self, i, value)

Set value data of (<chip.hipMipmappedArray*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_depth(self, i, unsigned int value)

Set value depth of (<chip.hipMipmappedArray*>self._ptr)[i].

set_flags(self, i, unsigned int value)

Set value flags of (<chip.hipMipmappedArray*>self._ptr)[i].

set_format(self, i, value)

Set value format of (<chip.hipMipmappedArray*>self._ptr)[i].

set_height(self, i, unsigned int value)

Set value height of (<chip.hipMipmappedArray*>self._ptr)[i].

set_max_mipmap_level(self, i, unsigned int value)

Set value max_mipmap_level of (<chip.hipMipmappedArray*>self._ptr)[i].

set_min_mipmap_level(self, i, unsigned int value)

Set value min_mipmap_level of (<chip.hipMipmappedArray*>self._ptr)[i].

set_num_channels(self, i, unsigned int value)

Set value num_channels of (<chip.hipMipmappedArray*>self._ptr)[i].

set_type(self, i, unsigned int value)

Set value type of (<chip.hipMipmappedArray*>self._ptr)[i].

set_width(self, i, unsigned int value)

Set value width of (<chip.hipMipmappedArray*>self._ptr)[i].

type

(undocumented)

width

(undocumented)

class cuda.cuda.cudaMipmappedArray

Bases: hipMipmappedArray

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMipmappedArray.

Constructor for type hipMipmappedArray.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

data

(undocumented) Note:

Setting this data can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

depth

(undocumented)

desc

(undocumented)

flags

(undocumented)

format

(undocumented)

static fromObj(pyobj)

Creates a hipMipmappedArray from a Python object.

Derives a hipMipmappedArray from the given Python object pyobj. In case pyobj is itself an hipMipmappedArray reference, this method returns it directly. No new hipMipmappedArray is created in this case.

get_data(self, i)

Get value data of (<chip.hipMipmappedArray*>self._ptr)[i].

get_depth(self, i)

Get value depth of (<chip.hipMipmappedArray*>self._ptr)[i].

get_desc(self, i)

Get value of desc of (<chip.hipMipmappedArray*>self._ptr)[i].

get_flags(self, i)

Get value flags of (<chip.hipMipmappedArray*>self._ptr)[i].

get_format(self, i)

Get value of format of (<chip.hipMipmappedArray*>self._ptr)[i].

get_height(self, i)

Get value height of (<chip.hipMipmappedArray*>self._ptr)[i].

get_max_mipmap_level(self, i)

Get value max_mipmap_level of (<chip.hipMipmappedArray*>self._ptr)[i].

get_min_mipmap_level(self, i)

Get value min_mipmap_level of (<chip.hipMipmappedArray*>self._ptr)[i].

get_num_channels(self, i)

Get value num_channels of (<chip.hipMipmappedArray*>self._ptr)[i].

get_type(self, i)

Get value type of (<chip.hipMipmappedArray*>self._ptr)[i].

get_width(self, i)

Get value width of (<chip.hipMipmappedArray*>self._ptr)[i].

height

(undocumented)

is_ptr_null

If data pointer is NULL.

max_mipmap_level

(undocumented)

min_mipmap_level

(undocumented)

num_channels

(undocumented)

set_data(self, i, value)

Set value data of (<chip.hipMipmappedArray*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_depth(self, i, unsigned int value)

Set value depth of (<chip.hipMipmappedArray*>self._ptr)[i].

set_flags(self, i, unsigned int value)

Set value flags of (<chip.hipMipmappedArray*>self._ptr)[i].

set_format(self, i, value)

Set value format of (<chip.hipMipmappedArray*>self._ptr)[i].

set_height(self, i, unsigned int value)

Set value height of (<chip.hipMipmappedArray*>self._ptr)[i].

set_max_mipmap_level(self, i, unsigned int value)

Set value max_mipmap_level of (<chip.hipMipmappedArray*>self._ptr)[i].

set_min_mipmap_level(self, i, unsigned int value)

Set value min_mipmap_level of (<chip.hipMipmappedArray*>self._ptr)[i].

set_num_channels(self, i, unsigned int value)

Set value num_channels of (<chip.hipMipmappedArray*>self._ptr)[i].

set_type(self, i, unsigned int value)

Set value type of (<chip.hipMipmappedArray*>self._ptr)[i].

set_width(self, i, unsigned int value)

Set value width of (<chip.hipMipmappedArray*>self._ptr)[i].

type

(undocumented)

width

(undocumented)

cuda.cuda.CUmipmappedArray

alias of hipMipmappedArray

cuda.cuda.cudaMipmappedArray_t

alias of hipMipmappedArray

cuda.cuda.cudaMipmappedArray_const_t

alias of hipMipmappedArray

class cuda.cuda.cudaResourceType(value)

Bases: _hipResourceType__Base

An enumeration.

hipResourceTypeArray = 0
cudaResourceTypeArray = 0
hipResourceTypeMipmappedArray = 1
cudaResourceTypeMipmappedArray = 1
hipResourceTypeLinear = 2
cudaResourceTypeLinear = 2
hipResourceTypePitch2D = 3
cudaResourceTypePitch2D = 3
class cuda.cuda.CUresourcetype_enum(value)

Bases: _HIPresourcetype_enum__Base

An enumeration.

HIP_RESOURCE_TYPE_ARRAY = 0
CU_RESOURCE_TYPE_ARRAY = 0
HIP_RESOURCE_TYPE_MIPMAPPED_ARRAY = 1
CU_RESOURCE_TYPE_MIPMAPPED_ARRAY = 1
HIP_RESOURCE_TYPE_LINEAR = 2
CU_RESOURCE_TYPE_LINEAR = 2
HIP_RESOURCE_TYPE_PITCH2D = 3
CU_RESOURCE_TYPE_PITCH2D = 3
class cuda.cuda.CUresourcetype(value)

Bases: _HIPresourcetype_enum__Base

An enumeration.

HIP_RESOURCE_TYPE_ARRAY = 0
CU_RESOURCE_TYPE_ARRAY = 0
HIP_RESOURCE_TYPE_MIPMAPPED_ARRAY = 1
CU_RESOURCE_TYPE_MIPMAPPED_ARRAY = 1
HIP_RESOURCE_TYPE_LINEAR = 2
CU_RESOURCE_TYPE_LINEAR = 2
HIP_RESOURCE_TYPE_PITCH2D = 3
CU_RESOURCE_TYPE_PITCH2D = 3
class cuda.cuda.CUaddress_mode_enum(value)

Bases: _HIPaddress_mode_enum__Base

An enumeration.

HIP_TR_ADDRESS_MODE_WRAP = 0
CU_TR_ADDRESS_MODE_WRAP = 0
HIP_TR_ADDRESS_MODE_CLAMP = 1
CU_TR_ADDRESS_MODE_CLAMP = 1
HIP_TR_ADDRESS_MODE_MIRROR = 2
CU_TR_ADDRESS_MODE_MIRROR = 2
HIP_TR_ADDRESS_MODE_BORDER = 3
CU_TR_ADDRESS_MODE_BORDER = 3
class cuda.cuda.CUaddress_mode(value)

Bases: _HIPaddress_mode_enum__Base

An enumeration.

HIP_TR_ADDRESS_MODE_WRAP = 0
CU_TR_ADDRESS_MODE_WRAP = 0
HIP_TR_ADDRESS_MODE_CLAMP = 1
CU_TR_ADDRESS_MODE_CLAMP = 1
HIP_TR_ADDRESS_MODE_MIRROR = 2
CU_TR_ADDRESS_MODE_MIRROR = 2
HIP_TR_ADDRESS_MODE_BORDER = 3
CU_TR_ADDRESS_MODE_BORDER = 3
class cuda.cuda.CUfilter_mode_enum(value)

Bases: _HIPfilter_mode_enum__Base

An enumeration.

HIP_TR_FILTER_MODE_POINT = 0
CU_TR_FILTER_MODE_POINT = 0
HIP_TR_FILTER_MODE_LINEAR = 1
CU_TR_FILTER_MODE_LINEAR = 1
class cuda.cuda.CUfilter_mode(value)

Bases: _HIPfilter_mode_enum__Base

An enumeration.

HIP_TR_FILTER_MODE_POINT = 0
CU_TR_FILTER_MODE_POINT = 0
HIP_TR_FILTER_MODE_LINEAR = 1
CU_TR_FILTER_MODE_LINEAR = 1
class cuda.cuda.CUDA_TEXTURE_DESC_st

Bases: HIP_TEXTURE_DESC_st

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_TEXTURE_DESC_st.

Constructor for type HIP_TEXTURE_DESC_st.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

borderColor

Border Color

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

filterMode

Filter mode

flags

Flags

static fromObj(pyobj)

Creates a HIP_TEXTURE_DESC_st from a Python object.

Derives a HIP_TEXTURE_DESC_st from the given Python object pyobj. In case pyobj is itself an HIP_TEXTURE_DESC_st reference, this method returns it directly. No new HIP_TEXTURE_DESC_st is created in this case.

get_borderColor(self, i)

Get value of borderColor of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

get_filterMode(self, i)

Get value of filterMode of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

get_flags(self, i)

Get value flags of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

get_maxAnisotropy(self, i)

Get value maxAnisotropy of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

get_maxMipmapLevelClamp(self, i)

Get value maxMipmapLevelClamp of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

get_minMipmapLevelClamp(self, i)

Get value minMipmapLevelClamp of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

get_mipmapFilterMode(self, i)

Get value of mipmapFilterMode of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

get_mipmapLevelBias(self, i)

Get value mipmapLevelBias of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

maxAnisotropy

Maximum anisotropy ratio

maxMipmapLevelClamp

Mipmap maximum level clamp

minMipmapLevelClamp

Mipmap minimum level clamp

mipmapFilterMode

Mipmap filter mode

mipmapLevelBias

Mipmap level bias

reserved

(undocumented)

set_filterMode(self, i, value)

Set value filterMode of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

set_flags(self, i, unsigned int value)

Set value flags of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

set_maxAnisotropy(self, i, unsigned int value)

Set value maxAnisotropy of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

set_maxMipmapLevelClamp(self, i, float value)

Set value maxMipmapLevelClamp of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

set_minMipmapLevelClamp(self, i, float value)

Set value minMipmapLevelClamp of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

set_mipmapFilterMode(self, i, value)

Set value mipmapFilterMode of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

set_mipmapLevelBias(self, i, float value)

Set value mipmapLevelBias of (<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].

cuda.cuda.CUDA_TEXTURE_DESC

alias of HIP_TEXTURE_DESC_st

cuda.cuda.CUDA_TEXTURE_DESC_v1

alias of HIP_TEXTURE_DESC_st

class cuda.cuda.cudaResourceViewFormat(value)

Bases: _hipResourceViewFormat__Base

An enumeration.

hipResViewFormatNone = 0
cudaResViewFormatNone = 0
hipResViewFormatUnsignedChar1 = 1
cudaResViewFormatUnsignedChar1 = 1
hipResViewFormatUnsignedChar2 = 2
cudaResViewFormatUnsignedChar2 = 2
hipResViewFormatUnsignedChar4 = 3
cudaResViewFormatUnsignedChar4 = 3
hipResViewFormatSignedChar1 = 4
cudaResViewFormatSignedChar1 = 4
hipResViewFormatSignedChar2 = 5
cudaResViewFormatSignedChar2 = 5
hipResViewFormatSignedChar4 = 6
cudaResViewFormatSignedChar4 = 6
hipResViewFormatUnsignedShort1 = 7
cudaResViewFormatUnsignedShort1 = 7
hipResViewFormatUnsignedShort2 = 8
cudaResViewFormatUnsignedShort2 = 8
hipResViewFormatUnsignedShort4 = 9
cudaResViewFormatUnsignedShort4 = 9
hipResViewFormatSignedShort1 = 10
cudaResViewFormatSignedShort1 = 10
hipResViewFormatSignedShort2 = 11
cudaResViewFormatSignedShort2 = 11
hipResViewFormatSignedShort4 = 12
cudaResViewFormatSignedShort4 = 12
hipResViewFormatUnsignedInt1 = 13
cudaResViewFormatUnsignedInt1 = 13
hipResViewFormatUnsignedInt2 = 14
cudaResViewFormatUnsignedInt2 = 14
hipResViewFormatUnsignedInt4 = 15
cudaResViewFormatUnsignedInt4 = 15
hipResViewFormatSignedInt1 = 16
cudaResViewFormatSignedInt1 = 16
hipResViewFormatSignedInt2 = 17
cudaResViewFormatSignedInt2 = 17
hipResViewFormatSignedInt4 = 18
cudaResViewFormatSignedInt4 = 18
hipResViewFormatHalf1 = 19
cudaResViewFormatHalf1 = 19
hipResViewFormatHalf2 = 20
cudaResViewFormatHalf2 = 20
hipResViewFormatHalf4 = 21
cudaResViewFormatHalf4 = 21
hipResViewFormatFloat1 = 22
cudaResViewFormatFloat1 = 22
hipResViewFormatFloat2 = 23
cudaResViewFormatFloat2 = 23
hipResViewFormatFloat4 = 24
cudaResViewFormatFloat4 = 24
hipResViewFormatUnsignedBlockCompressed1 = 25
cudaResViewFormatUnsignedBlockCompressed1 = 25
hipResViewFormatUnsignedBlockCompressed2 = 26
cudaResViewFormatUnsignedBlockCompressed2 = 26
hipResViewFormatUnsignedBlockCompressed3 = 27
cudaResViewFormatUnsignedBlockCompressed3 = 27
hipResViewFormatUnsignedBlockCompressed4 = 28
cudaResViewFormatUnsignedBlockCompressed4 = 28
hipResViewFormatSignedBlockCompressed4 = 29
cudaResViewFormatSignedBlockCompressed4 = 29
hipResViewFormatUnsignedBlockCompressed5 = 30
cudaResViewFormatUnsignedBlockCompressed5 = 30
hipResViewFormatSignedBlockCompressed5 = 31
cudaResViewFormatSignedBlockCompressed5 = 31
hipResViewFormatUnsignedBlockCompressed6H = 32
cudaResViewFormatUnsignedBlockCompressed6H = 32
hipResViewFormatSignedBlockCompressed6H = 33
cudaResViewFormatSignedBlockCompressed6H = 33
hipResViewFormatUnsignedBlockCompressed7 = 34
cudaResViewFormatUnsignedBlockCompressed7 = 34
class cuda.cuda.CUresourceViewFormat_enum(value)

Bases: _HIPresourceViewFormat_enum__Base

An enumeration.

HIP_RES_VIEW_FORMAT_NONE = 0
CU_RES_VIEW_FORMAT_NONE = 0
HIP_RES_VIEW_FORMAT_UINT_1X8 = 1
CU_RES_VIEW_FORMAT_UINT_1X8 = 1
HIP_RES_VIEW_FORMAT_UINT_2X8 = 2
CU_RES_VIEW_FORMAT_UINT_2X8 = 2
HIP_RES_VIEW_FORMAT_UINT_4X8 = 3
CU_RES_VIEW_FORMAT_UINT_4X8 = 3
HIP_RES_VIEW_FORMAT_SINT_1X8 = 4
CU_RES_VIEW_FORMAT_SINT_1X8 = 4
HIP_RES_VIEW_FORMAT_SINT_2X8 = 5
CU_RES_VIEW_FORMAT_SINT_2X8 = 5
HIP_RES_VIEW_FORMAT_SINT_4X8 = 6
CU_RES_VIEW_FORMAT_SINT_4X8 = 6
HIP_RES_VIEW_FORMAT_UINT_1X16 = 7
CU_RES_VIEW_FORMAT_UINT_1X16 = 7
HIP_RES_VIEW_FORMAT_UINT_2X16 = 8
CU_RES_VIEW_FORMAT_UINT_2X16 = 8
HIP_RES_VIEW_FORMAT_UINT_4X16 = 9
CU_RES_VIEW_FORMAT_UINT_4X16 = 9
HIP_RES_VIEW_FORMAT_SINT_1X16 = 10
CU_RES_VIEW_FORMAT_SINT_1X16 = 10
HIP_RES_VIEW_FORMAT_SINT_2X16 = 11
CU_RES_VIEW_FORMAT_SINT_2X16 = 11
HIP_RES_VIEW_FORMAT_SINT_4X16 = 12
CU_RES_VIEW_FORMAT_SINT_4X16 = 12
HIP_RES_VIEW_FORMAT_UINT_1X32 = 13
CU_RES_VIEW_FORMAT_UINT_1X32 = 13
HIP_RES_VIEW_FORMAT_UINT_2X32 = 14
CU_RES_VIEW_FORMAT_UINT_2X32 = 14
HIP_RES_VIEW_FORMAT_UINT_4X32 = 15
CU_RES_VIEW_FORMAT_UINT_4X32 = 15
HIP_RES_VIEW_FORMAT_SINT_1X32 = 16
CU_RES_VIEW_FORMAT_SINT_1X32 = 16
HIP_RES_VIEW_FORMAT_SINT_2X32 = 17
CU_RES_VIEW_FORMAT_SINT_2X32 = 17
HIP_RES_VIEW_FORMAT_SINT_4X32 = 18
CU_RES_VIEW_FORMAT_SINT_4X32 = 18
HIP_RES_VIEW_FORMAT_FLOAT_1X16 = 19
CU_RES_VIEW_FORMAT_FLOAT_1X16 = 19
HIP_RES_VIEW_FORMAT_FLOAT_2X16 = 20
CU_RES_VIEW_FORMAT_FLOAT_2X16 = 20
HIP_RES_VIEW_FORMAT_FLOAT_4X16 = 21
CU_RES_VIEW_FORMAT_FLOAT_4X16 = 21
HIP_RES_VIEW_FORMAT_FLOAT_1X32 = 22
CU_RES_VIEW_FORMAT_FLOAT_1X32 = 22
HIP_RES_VIEW_FORMAT_FLOAT_2X32 = 23
CU_RES_VIEW_FORMAT_FLOAT_2X32 = 23
HIP_RES_VIEW_FORMAT_FLOAT_4X32 = 24
CU_RES_VIEW_FORMAT_FLOAT_4X32 = 24
HIP_RES_VIEW_FORMAT_UNSIGNED_BC1 = 25
CU_RES_VIEW_FORMAT_UNSIGNED_BC1 = 25
HIP_RES_VIEW_FORMAT_UNSIGNED_BC2 = 26
CU_RES_VIEW_FORMAT_UNSIGNED_BC2 = 26
HIP_RES_VIEW_FORMAT_UNSIGNED_BC3 = 27
CU_RES_VIEW_FORMAT_UNSIGNED_BC3 = 27
HIP_RES_VIEW_FORMAT_UNSIGNED_BC4 = 28
CU_RES_VIEW_FORMAT_UNSIGNED_BC4 = 28
HIP_RES_VIEW_FORMAT_SIGNED_BC4 = 29
CU_RES_VIEW_FORMAT_SIGNED_BC4 = 29
HIP_RES_VIEW_FORMAT_UNSIGNED_BC5 = 30
CU_RES_VIEW_FORMAT_UNSIGNED_BC5 = 30
HIP_RES_VIEW_FORMAT_SIGNED_BC5 = 31
CU_RES_VIEW_FORMAT_SIGNED_BC5 = 31
HIP_RES_VIEW_FORMAT_UNSIGNED_BC6H = 32
CU_RES_VIEW_FORMAT_UNSIGNED_BC6H = 32
HIP_RES_VIEW_FORMAT_SIGNED_BC6H = 33
CU_RES_VIEW_FORMAT_SIGNED_BC6H = 33
HIP_RES_VIEW_FORMAT_UNSIGNED_BC7 = 34
CU_RES_VIEW_FORMAT_UNSIGNED_BC7 = 34
class cuda.cuda.CUresourceViewFormat(value)

Bases: _HIPresourceViewFormat_enum__Base

An enumeration.

HIP_RES_VIEW_FORMAT_NONE = 0
CU_RES_VIEW_FORMAT_NONE = 0
HIP_RES_VIEW_FORMAT_UINT_1X8 = 1
CU_RES_VIEW_FORMAT_UINT_1X8 = 1
HIP_RES_VIEW_FORMAT_UINT_2X8 = 2
CU_RES_VIEW_FORMAT_UINT_2X8 = 2
HIP_RES_VIEW_FORMAT_UINT_4X8 = 3
CU_RES_VIEW_FORMAT_UINT_4X8 = 3
HIP_RES_VIEW_FORMAT_SINT_1X8 = 4
CU_RES_VIEW_FORMAT_SINT_1X8 = 4
HIP_RES_VIEW_FORMAT_SINT_2X8 = 5
CU_RES_VIEW_FORMAT_SINT_2X8 = 5
HIP_RES_VIEW_FORMAT_SINT_4X8 = 6
CU_RES_VIEW_FORMAT_SINT_4X8 = 6
HIP_RES_VIEW_FORMAT_UINT_1X16 = 7
CU_RES_VIEW_FORMAT_UINT_1X16 = 7
HIP_RES_VIEW_FORMAT_UINT_2X16 = 8
CU_RES_VIEW_FORMAT_UINT_2X16 = 8
HIP_RES_VIEW_FORMAT_UINT_4X16 = 9
CU_RES_VIEW_FORMAT_UINT_4X16 = 9
HIP_RES_VIEW_FORMAT_SINT_1X16 = 10
CU_RES_VIEW_FORMAT_SINT_1X16 = 10
HIP_RES_VIEW_FORMAT_SINT_2X16 = 11
CU_RES_VIEW_FORMAT_SINT_2X16 = 11
HIP_RES_VIEW_FORMAT_SINT_4X16 = 12
CU_RES_VIEW_FORMAT_SINT_4X16 = 12
HIP_RES_VIEW_FORMAT_UINT_1X32 = 13
CU_RES_VIEW_FORMAT_UINT_1X32 = 13
HIP_RES_VIEW_FORMAT_UINT_2X32 = 14
CU_RES_VIEW_FORMAT_UINT_2X32 = 14
HIP_RES_VIEW_FORMAT_UINT_4X32 = 15
CU_RES_VIEW_FORMAT_UINT_4X32 = 15
HIP_RES_VIEW_FORMAT_SINT_1X32 = 16
CU_RES_VIEW_FORMAT_SINT_1X32 = 16
HIP_RES_VIEW_FORMAT_SINT_2X32 = 17
CU_RES_VIEW_FORMAT_SINT_2X32 = 17
HIP_RES_VIEW_FORMAT_SINT_4X32 = 18
CU_RES_VIEW_FORMAT_SINT_4X32 = 18
HIP_RES_VIEW_FORMAT_FLOAT_1X16 = 19
CU_RES_VIEW_FORMAT_FLOAT_1X16 = 19
HIP_RES_VIEW_FORMAT_FLOAT_2X16 = 20
CU_RES_VIEW_FORMAT_FLOAT_2X16 = 20
HIP_RES_VIEW_FORMAT_FLOAT_4X16 = 21
CU_RES_VIEW_FORMAT_FLOAT_4X16 = 21
HIP_RES_VIEW_FORMAT_FLOAT_1X32 = 22
CU_RES_VIEW_FORMAT_FLOAT_1X32 = 22
HIP_RES_VIEW_FORMAT_FLOAT_2X32 = 23
CU_RES_VIEW_FORMAT_FLOAT_2X32 = 23
HIP_RES_VIEW_FORMAT_FLOAT_4X32 = 24
CU_RES_VIEW_FORMAT_FLOAT_4X32 = 24
HIP_RES_VIEW_FORMAT_UNSIGNED_BC1 = 25
CU_RES_VIEW_FORMAT_UNSIGNED_BC1 = 25
HIP_RES_VIEW_FORMAT_UNSIGNED_BC2 = 26
CU_RES_VIEW_FORMAT_UNSIGNED_BC2 = 26
HIP_RES_VIEW_FORMAT_UNSIGNED_BC3 = 27
CU_RES_VIEW_FORMAT_UNSIGNED_BC3 = 27
HIP_RES_VIEW_FORMAT_UNSIGNED_BC4 = 28
CU_RES_VIEW_FORMAT_UNSIGNED_BC4 = 28
HIP_RES_VIEW_FORMAT_SIGNED_BC4 = 29
CU_RES_VIEW_FORMAT_SIGNED_BC4 = 29
HIP_RES_VIEW_FORMAT_UNSIGNED_BC5 = 30
CU_RES_VIEW_FORMAT_UNSIGNED_BC5 = 30
HIP_RES_VIEW_FORMAT_SIGNED_BC5 = 31
CU_RES_VIEW_FORMAT_SIGNED_BC5 = 31
HIP_RES_VIEW_FORMAT_UNSIGNED_BC6H = 32
CU_RES_VIEW_FORMAT_UNSIGNED_BC6H = 32
HIP_RES_VIEW_FORMAT_SIGNED_BC6H = 33
CU_RES_VIEW_FORMAT_SIGNED_BC6H = 33
HIP_RES_VIEW_FORMAT_UNSIGNED_BC7 = 34
CU_RES_VIEW_FORMAT_UNSIGNED_BC7 = 34
class cuda.cuda.cudaResourceDesc

Bases: hipResourceDesc

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipResourceDesc.

Constructor for type hipResourceDesc.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipResourceDesc from a Python object.

Derives a hipResourceDesc from the given Python object pyobj. In case pyobj is itself an hipResourceDesc reference, this method returns it directly. No new hipResourceDesc is created in this case.

get_res(self, i)

Get value of res of (<chip.hipResourceDesc*>self._ptr)[i].

get_resType(self, i)

Get value of resType of (<chip.hipResourceDesc*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

res

(undocumented)

resType

(undocumented)

set_resType(self, i, value)

Set value resType of (<chip.hipResourceDesc*>self._ptr)[i].

class cuda.cuda.CUDA_RESOURCE_DESC_st

Bases: HIP_RESOURCE_DESC_st

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_RESOURCE_DESC_st.

Constructor for type HIP_RESOURCE_DESC_st.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

flags

Flags (must be zero)

static fromObj(pyobj)

Creates a HIP_RESOURCE_DESC_st from a Python object.

Derives a HIP_RESOURCE_DESC_st from the given Python object pyobj. In case pyobj is itself an HIP_RESOURCE_DESC_st reference, this method returns it directly. No new HIP_RESOURCE_DESC_st is created in this case.

get_flags(self, i)

Get value flags of (<chip.HIP_RESOURCE_DESC_st*>self._ptr)[i].

get_res(self, i)

Get value of res of (<chip.HIP_RESOURCE_DESC_st*>self._ptr)[i].

get_resType(self, i)

Get value of resType of (<chip.HIP_RESOURCE_DESC_st*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

res

(undocumented)

resType

Resource type

set_flags(self, i, unsigned int value)

Set value flags of (<chip.HIP_RESOURCE_DESC_st*>self._ptr)[i].

set_resType(self, i, value)

Set value resType of (<chip.HIP_RESOURCE_DESC_st*>self._ptr)[i].

cuda.cuda.CUDA_RESOURCE_DESC

alias of HIP_RESOURCE_DESC_st

cuda.cuda.CUDA_RESOURCE_DESC_v1

alias of HIP_RESOURCE_DESC_st

class cuda.cuda.cudaResourceViewDesc

Bases: hipResourceViewDesc

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipResourceViewDesc.

Constructor for type hipResourceViewDesc.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

depth

(undocumented)

firstLayer

(undocumented)

firstMipmapLevel

(undocumented)

format

(undocumented)

static fromObj(pyobj)

Creates a hipResourceViewDesc from a Python object.

Derives a hipResourceViewDesc from the given Python object pyobj. In case pyobj is itself an hipResourceViewDesc reference, this method returns it directly. No new hipResourceViewDesc is created in this case.

get_depth(self, i)

Get value depth of (<chip.hipResourceViewDesc*>self._ptr)[i].

get_firstLayer(self, i)

Get value firstLayer of (<chip.hipResourceViewDesc*>self._ptr)[i].

get_firstMipmapLevel(self, i)

Get value firstMipmapLevel of (<chip.hipResourceViewDesc*>self._ptr)[i].

get_format(self, i)

Get value of format of (<chip.hipResourceViewDesc*>self._ptr)[i].

get_height(self, i)

Get value height of (<chip.hipResourceViewDesc*>self._ptr)[i].

get_lastLayer(self, i)

Get value lastLayer of (<chip.hipResourceViewDesc*>self._ptr)[i].

get_lastMipmapLevel(self, i)

Get value lastMipmapLevel of (<chip.hipResourceViewDesc*>self._ptr)[i].

get_width(self, i)

Get value width of (<chip.hipResourceViewDesc*>self._ptr)[i].

height

(undocumented)

is_ptr_null

If data pointer is NULL.

lastLayer

(undocumented)

lastMipmapLevel

(undocumented)

set_depth(self, i, unsigned long value)

Set value depth of (<chip.hipResourceViewDesc*>self._ptr)[i].

set_firstLayer(self, i, unsigned int value)

Set value firstLayer of (<chip.hipResourceViewDesc*>self._ptr)[i].

set_firstMipmapLevel(self, i, unsigned int value)

Set value firstMipmapLevel of (<chip.hipResourceViewDesc*>self._ptr)[i].

set_format(self, i, value)

Set value format of (<chip.hipResourceViewDesc*>self._ptr)[i].

set_height(self, i, unsigned long value)

Set value height of (<chip.hipResourceViewDesc*>self._ptr)[i].

set_lastLayer(self, i, unsigned int value)

Set value lastLayer of (<chip.hipResourceViewDesc*>self._ptr)[i].

set_lastMipmapLevel(self, i, unsigned int value)

Set value lastMipmapLevel of (<chip.hipResourceViewDesc*>self._ptr)[i].

set_width(self, i, unsigned long value)

Set value width of (<chip.hipResourceViewDesc*>self._ptr)[i].

width

(undocumented)

class cuda.cuda.CUDA_RESOURCE_VIEW_DESC_st

Bases: HIP_RESOURCE_VIEW_DESC_st

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_RESOURCE_VIEW_DESC_st.

Constructor for type HIP_RESOURCE_VIEW_DESC_st.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

depth

Depth of the resource view

firstLayer

First layer index

firstMipmapLevel

First defined mipmap level

format

Resource view format

static fromObj(pyobj)

Creates a HIP_RESOURCE_VIEW_DESC_st from a Python object.

Derives a HIP_RESOURCE_VIEW_DESC_st from the given Python object pyobj. In case pyobj is itself an HIP_RESOURCE_VIEW_DESC_st reference, this method returns it directly. No new HIP_RESOURCE_VIEW_DESC_st is created in this case.

get_depth(self, i)

Get value depth of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

get_firstLayer(self, i)

Get value firstLayer of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

get_firstMipmapLevel(self, i)

Get value firstMipmapLevel of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

get_format(self, i)

Get value of format of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

get_height(self, i)

Get value height of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

get_lastLayer(self, i)

Get value lastLayer of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

get_lastMipmapLevel(self, i)

Get value lastMipmapLevel of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

get_width(self, i)

Get value width of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

height

Height of the resource view

is_ptr_null

If data pointer is NULL.

lastLayer

Last layer index

lastMipmapLevel

Last defined mipmap level

reserved

(undocumented)

set_depth(self, i, unsigned long value)

Set value depth of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

set_firstLayer(self, i, unsigned int value)

Set value firstLayer of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

set_firstMipmapLevel(self, i, unsigned int value)

Set value firstMipmapLevel of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

set_format(self, i, value)

Set value format of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

set_height(self, i, unsigned long value)

Set value height of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

set_lastLayer(self, i, unsigned int value)

Set value lastLayer of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

set_lastMipmapLevel(self, i, unsigned int value)

Set value lastMipmapLevel of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

set_width(self, i, unsigned long value)

Set value width of (<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].

width

Width of the resource view

cuda.cuda.CUDA_RESOURCE_VIEW_DESC

alias of HIP_RESOURCE_VIEW_DESC_st

cuda.cuda.CUDA_RESOURCE_VIEW_DESC_v1

alias of HIP_RESOURCE_VIEW_DESC_st

class cuda.cuda.cudaMemcpyKind(value)

Bases: _hipMemcpyKind__Base

An enumeration.

hipMemcpyHostToHost = 0
cudaMemcpyHostToHost = 0
hipMemcpyHostToDevice = 1
cudaMemcpyHostToDevice = 1
hipMemcpyDeviceToHost = 2
cudaMemcpyDeviceToHost = 2
hipMemcpyDeviceToDevice = 3
cudaMemcpyDeviceToDevice = 3
hipMemcpyDefault = 4
cudaMemcpyDefault = 4
class cuda.cuda.cudaPitchedPtr

Bases: hipPitchedPtr

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipPitchedPtr.

Constructor for type hipPitchedPtr.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipPitchedPtr from a Python object.

Derives a hipPitchedPtr from the given Python object pyobj. In case pyobj is itself an hipPitchedPtr reference, this method returns it directly. No new hipPitchedPtr is created in this case.

get_pitch(self, i)

Get value pitch of (<chip.hipPitchedPtr*>self._ptr)[i].

get_ptr(self, i)

Get value ptr of (<chip.hipPitchedPtr*>self._ptr)[i].

get_xsize(self, i)

Get value xsize of (<chip.hipPitchedPtr*>self._ptr)[i].

get_ysize(self, i)

Get value ysize of (<chip.hipPitchedPtr*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

pitch

(undocumented)

ptr

(undocumented) Note:

Setting this ptr can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

set_pitch(self, i, unsigned long value)

Set value pitch of (<chip.hipPitchedPtr*>self._ptr)[i].

set_ptr(self, i, value)

Set value ptr of (<chip.hipPitchedPtr*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_xsize(self, i, unsigned long value)

Set value xsize of (<chip.hipPitchedPtr*>self._ptr)[i].

set_ysize(self, i, unsigned long value)

Set value ysize of (<chip.hipPitchedPtr*>self._ptr)[i].

xsize

(undocumented)

ysize

(undocumented)

class cuda.cuda.cudaExtent

Bases: hipExtent

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExtent.

Constructor for type hipExtent.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

depth

(undocumented)

static fromObj(pyobj)

Creates a hipExtent from a Python object.

Derives a hipExtent from the given Python object pyobj. In case pyobj is itself an hipExtent reference, this method returns it directly. No new hipExtent is created in this case.

get_depth(self, i)

Get value depth of (<chip.hipExtent*>self._ptr)[i].

get_height(self, i)

Get value height of (<chip.hipExtent*>self._ptr)[i].

get_width(self, i)

Get value width of (<chip.hipExtent*>self._ptr)[i].

height

(undocumented)

is_ptr_null

If data pointer is NULL.

set_depth(self, i, unsigned long value)

Set value depth of (<chip.hipExtent*>self._ptr)[i].

set_height(self, i, unsigned long value)

Set value height of (<chip.hipExtent*>self._ptr)[i].

set_width(self, i, unsigned long value)

Set value width of (<chip.hipExtent*>self._ptr)[i].

width

(undocumented)

class cuda.cuda.cudaPos

Bases: hipPos

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipPos.

Constructor for type hipPos.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipPos from a Python object.

Derives a hipPos from the given Python object pyobj. In case pyobj is itself an hipPos reference, this method returns it directly. No new hipPos is created in this case.

get_x(self, i)

Get value x of (<chip.hipPos*>self._ptr)[i].

get_y(self, i)

Get value y of (<chip.hipPos*>self._ptr)[i].

get_z(self, i)

Get value z of (<chip.hipPos*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_x(self, i, unsigned long value)

Set value x of (<chip.hipPos*>self._ptr)[i].

set_y(self, i, unsigned long value)

Set value y of (<chip.hipPos*>self._ptr)[i].

set_z(self, i, unsigned long value)

Set value z of (<chip.hipPos*>self._ptr)[i].

x

(undocumented)

y

(undocumented)

z

(undocumented)

class cuda.cuda.cudaMemcpy3DParms

Bases: hipMemcpy3DParms

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemcpy3DParms.

Constructor for type hipMemcpy3DParms.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dstPos

(undocumented)

dstPtr

(undocumented)

extent

(undocumented)

static fromObj(pyobj)

Creates a hipMemcpy3DParms from a Python object.

Derives a hipMemcpy3DParms from the given Python object pyobj. In case pyobj is itself an hipMemcpy3DParms reference, this method returns it directly. No new hipMemcpy3DParms is created in this case.

get_dstPos(self, i)

Get value of dstPos of (<chip.hipMemcpy3DParms*>self._ptr)[i].

get_dstPtr(self, i)

Get value of dstPtr of (<chip.hipMemcpy3DParms*>self._ptr)[i].

get_extent(self, i)

Get value of extent of (<chip.hipMemcpy3DParms*>self._ptr)[i].

get_kind(self, i)

Get value of kind of (<chip.hipMemcpy3DParms*>self._ptr)[i].

get_srcPos(self, i)

Get value of srcPos of (<chip.hipMemcpy3DParms*>self._ptr)[i].

get_srcPtr(self, i)

Get value of srcPtr of (<chip.hipMemcpy3DParms*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

kind

(undocumented)

set_kind(self, i, value)

Set value kind of (<chip.hipMemcpy3DParms*>self._ptr)[i].

srcPos

(undocumented)

srcPtr

(undocumented)

class cuda.cuda.CUDA_MEMCPY3D

Bases: HIP_MEMCPY3D

Depth

(undocumented)

Height

(undocumented)

static PROPERTIES()
WidthInBytes

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_MEMCPY3D.

Constructor for type HIP_MEMCPY3D.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dstDevice

(undocumented) Note:

Setting this dstDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstHeight

(undocumented)

dstHost

(undocumented) Note:

Setting this dstHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstLOD

(undocumented)

dstMemoryType

(undocumented)

dstPitch

(undocumented)

dstXInBytes

(undocumented)

dstY

(undocumented)

dstZ

(undocumented)

static fromObj(pyobj)

Creates a HIP_MEMCPY3D from a Python object.

Derives a HIP_MEMCPY3D from the given Python object pyobj. In case pyobj is itself an HIP_MEMCPY3D reference, this method returns it directly. No new HIP_MEMCPY3D is created in this case.

get_Depth(self, i)

Get value Depth of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_Height(self, i)

Get value Height of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_WidthInBytes(self, i)

Get value WidthInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstDevice(self, i)

Get value dstDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstHeight(self, i)

Get value dstHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstHost(self, i)

Get value dstHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstLOD(self, i)

Get value dstLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstMemoryType(self, i)

Get value of dstMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstPitch(self, i)

Get value dstPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstXInBytes(self, i)

Get value dstXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstY(self, i)

Get value dstY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstZ(self, i)

Get value dstZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcDevice(self, i)

Get value srcDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcHeight(self, i)

Get value srcHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcHost(self, i)

Get value srcHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcLOD(self, i)

Get value srcLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcMemoryType(self, i)

Get value of srcMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcPitch(self, i)

Get value srcPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcXInBytes(self, i)

Get value srcXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcY(self, i)

Get value srcY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcZ(self, i)

Get value srcZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Depth(self, i, unsigned long value)

Set value Depth of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_Height(self, i, unsigned long value)

Set value Height of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_WidthInBytes(self, i, unsigned long value)

Set value WidthInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstDevice(self, i, value)

Set value dstDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstHeight(self, i, unsigned long value)

Set value dstHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstHost(self, i, value)

Set value dstHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstLOD(self, i, unsigned long value)

Set value dstLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstMemoryType(self, i, value)

Set value dstMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstPitch(self, i, unsigned long value)

Set value dstPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstXInBytes(self, i, unsigned long value)

Set value dstXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstY(self, i, unsigned long value)

Set value dstY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstZ(self, i, unsigned long value)

Set value dstZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcDevice(self, i, value)

Set value srcDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcHeight(self, i, unsigned long value)

Set value srcHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcHost(self, i, value)

Set value srcHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcLOD(self, i, unsigned long value)

Set value srcLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcMemoryType(self, i, value)

Set value srcMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcPitch(self, i, unsigned long value)

Set value srcPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcXInBytes(self, i, unsigned long value)

Set value srcXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcY(self, i, unsigned long value)

Set value srcY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcZ(self, i, unsigned long value)

Set value srcZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

srcDevice

(undocumented) Note:

Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcHeight

(undocumented)

srcHost

(undocumented) Note:

Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcLOD

(undocumented)

srcMemoryType

(undocumented)

srcPitch

(undocumented)

srcXInBytes

(undocumented)

srcY

(undocumented)

srcZ

(undocumented)

class cuda.cuda.CUDA_MEMCPY3D_st

Bases: HIP_MEMCPY3D

Depth

(undocumented)

Height

(undocumented)

static PROPERTIES()
WidthInBytes

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_MEMCPY3D.

Constructor for type HIP_MEMCPY3D.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dstDevice

(undocumented) Note:

Setting this dstDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstHeight

(undocumented)

dstHost

(undocumented) Note:

Setting this dstHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstLOD

(undocumented)

dstMemoryType

(undocumented)

dstPitch

(undocumented)

dstXInBytes

(undocumented)

dstY

(undocumented)

dstZ

(undocumented)

static fromObj(pyobj)

Creates a HIP_MEMCPY3D from a Python object.

Derives a HIP_MEMCPY3D from the given Python object pyobj. In case pyobj is itself an HIP_MEMCPY3D reference, this method returns it directly. No new HIP_MEMCPY3D is created in this case.

get_Depth(self, i)

Get value Depth of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_Height(self, i)

Get value Height of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_WidthInBytes(self, i)

Get value WidthInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstDevice(self, i)

Get value dstDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstHeight(self, i)

Get value dstHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstHost(self, i)

Get value dstHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstLOD(self, i)

Get value dstLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstMemoryType(self, i)

Get value of dstMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstPitch(self, i)

Get value dstPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstXInBytes(self, i)

Get value dstXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstY(self, i)

Get value dstY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstZ(self, i)

Get value dstZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcDevice(self, i)

Get value srcDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcHeight(self, i)

Get value srcHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcHost(self, i)

Get value srcHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcLOD(self, i)

Get value srcLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcMemoryType(self, i)

Get value of srcMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcPitch(self, i)

Get value srcPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcXInBytes(self, i)

Get value srcXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcY(self, i)

Get value srcY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcZ(self, i)

Get value srcZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Depth(self, i, unsigned long value)

Set value Depth of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_Height(self, i, unsigned long value)

Set value Height of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_WidthInBytes(self, i, unsigned long value)

Set value WidthInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstDevice(self, i, value)

Set value dstDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstHeight(self, i, unsigned long value)

Set value dstHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstHost(self, i, value)

Set value dstHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstLOD(self, i, unsigned long value)

Set value dstLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstMemoryType(self, i, value)

Set value dstMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstPitch(self, i, unsigned long value)

Set value dstPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstXInBytes(self, i, unsigned long value)

Set value dstXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstY(self, i, unsigned long value)

Set value dstY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstZ(self, i, unsigned long value)

Set value dstZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcDevice(self, i, value)

Set value srcDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcHeight(self, i, unsigned long value)

Set value srcHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcHost(self, i, value)

Set value srcHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcLOD(self, i, unsigned long value)

Set value srcLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcMemoryType(self, i, value)

Set value srcMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcPitch(self, i, unsigned long value)

Set value srcPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcXInBytes(self, i, unsigned long value)

Set value srcXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcY(self, i, unsigned long value)

Set value srcY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcZ(self, i, unsigned long value)

Set value srcZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

srcDevice

(undocumented) Note:

Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcHeight

(undocumented)

srcHost

(undocumented) Note:

Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcLOD

(undocumented)

srcMemoryType

(undocumented)

srcPitch

(undocumented)

srcXInBytes

(undocumented)

srcY

(undocumented)

srcZ

(undocumented)

class cuda.cuda.CUDA_MEMCPY3D_v1

Bases: HIP_MEMCPY3D

Depth

(undocumented)

Height

(undocumented)

static PROPERTIES()
WidthInBytes

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_MEMCPY3D.

Constructor for type HIP_MEMCPY3D.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dstDevice

(undocumented) Note:

Setting this dstDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstHeight

(undocumented)

dstHost

(undocumented) Note:

Setting this dstHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstLOD

(undocumented)

dstMemoryType

(undocumented)

dstPitch

(undocumented)

dstXInBytes

(undocumented)

dstY

(undocumented)

dstZ

(undocumented)

static fromObj(pyobj)

Creates a HIP_MEMCPY3D from a Python object.

Derives a HIP_MEMCPY3D from the given Python object pyobj. In case pyobj is itself an HIP_MEMCPY3D reference, this method returns it directly. No new HIP_MEMCPY3D is created in this case.

get_Depth(self, i)

Get value Depth of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_Height(self, i)

Get value Height of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_WidthInBytes(self, i)

Get value WidthInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstDevice(self, i)

Get value dstDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstHeight(self, i)

Get value dstHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstHost(self, i)

Get value dstHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstLOD(self, i)

Get value dstLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstMemoryType(self, i)

Get value of dstMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstPitch(self, i)

Get value dstPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstXInBytes(self, i)

Get value dstXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstY(self, i)

Get value dstY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstZ(self, i)

Get value dstZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcDevice(self, i)

Get value srcDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcHeight(self, i)

Get value srcHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcHost(self, i)

Get value srcHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcLOD(self, i)

Get value srcLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcMemoryType(self, i)

Get value of srcMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcPitch(self, i)

Get value srcPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcXInBytes(self, i)

Get value srcXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcY(self, i)

Get value srcY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcZ(self, i)

Get value srcZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Depth(self, i, unsigned long value)

Set value Depth of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_Height(self, i, unsigned long value)

Set value Height of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_WidthInBytes(self, i, unsigned long value)

Set value WidthInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstDevice(self, i, value)

Set value dstDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstHeight(self, i, unsigned long value)

Set value dstHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstHost(self, i, value)

Set value dstHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstLOD(self, i, unsigned long value)

Set value dstLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstMemoryType(self, i, value)

Set value dstMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstPitch(self, i, unsigned long value)

Set value dstPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstXInBytes(self, i, unsigned long value)

Set value dstXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstY(self, i, unsigned long value)

Set value dstY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstZ(self, i, unsigned long value)

Set value dstZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcDevice(self, i, value)

Set value srcDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcHeight(self, i, unsigned long value)

Set value srcHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcHost(self, i, value)

Set value srcHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcLOD(self, i, unsigned long value)

Set value srcLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcMemoryType(self, i, value)

Set value srcMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcPitch(self, i, unsigned long value)

Set value srcPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcXInBytes(self, i, unsigned long value)

Set value srcXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcY(self, i, unsigned long value)

Set value srcY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcZ(self, i, unsigned long value)

Set value srcZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

srcDevice

(undocumented) Note:

Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcHeight

(undocumented)

srcHost

(undocumented) Note:

Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcLOD

(undocumented)

srcMemoryType

(undocumented)

srcPitch

(undocumented)

srcXInBytes

(undocumented)

srcY

(undocumented)

srcZ

(undocumented)

class cuda.cuda.CUDA_MEMCPY3D_v1_st

Bases: HIP_MEMCPY3D

Depth

(undocumented)

Height

(undocumented)

static PROPERTIES()
WidthInBytes

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_MEMCPY3D.

Constructor for type HIP_MEMCPY3D.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dstDevice

(undocumented) Note:

Setting this dstDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstHeight

(undocumented)

dstHost

(undocumented) Note:

Setting this dstHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstLOD

(undocumented)

dstMemoryType

(undocumented)

dstPitch

(undocumented)

dstXInBytes

(undocumented)

dstY

(undocumented)

dstZ

(undocumented)

static fromObj(pyobj)

Creates a HIP_MEMCPY3D from a Python object.

Derives a HIP_MEMCPY3D from the given Python object pyobj. In case pyobj is itself an HIP_MEMCPY3D reference, this method returns it directly. No new HIP_MEMCPY3D is created in this case.

get_Depth(self, i)

Get value Depth of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_Height(self, i)

Get value Height of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_WidthInBytes(self, i)

Get value WidthInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstDevice(self, i)

Get value dstDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstHeight(self, i)

Get value dstHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstHost(self, i)

Get value dstHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstLOD(self, i)

Get value dstLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstMemoryType(self, i)

Get value of dstMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstPitch(self, i)

Get value dstPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstXInBytes(self, i)

Get value dstXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstY(self, i)

Get value dstY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstZ(self, i)

Get value dstZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcDevice(self, i)

Get value srcDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcHeight(self, i)

Get value srcHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcHost(self, i)

Get value srcHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcLOD(self, i)

Get value srcLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcMemoryType(self, i)

Get value of srcMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcPitch(self, i)

Get value srcPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcXInBytes(self, i)

Get value srcXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcY(self, i)

Get value srcY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcZ(self, i)

Get value srcZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Depth(self, i, unsigned long value)

Set value Depth of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_Height(self, i, unsigned long value)

Set value Height of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_WidthInBytes(self, i, unsigned long value)

Set value WidthInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstDevice(self, i, value)

Set value dstDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstHeight(self, i, unsigned long value)

Set value dstHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstHost(self, i, value)

Set value dstHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstLOD(self, i, unsigned long value)

Set value dstLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstMemoryType(self, i, value)

Set value dstMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstPitch(self, i, unsigned long value)

Set value dstPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstXInBytes(self, i, unsigned long value)

Set value dstXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstY(self, i, unsigned long value)

Set value dstY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstZ(self, i, unsigned long value)

Set value dstZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcDevice(self, i, value)

Set value srcDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcHeight(self, i, unsigned long value)

Set value srcHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcHost(self, i, value)

Set value srcHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcLOD(self, i, unsigned long value)

Set value srcLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcMemoryType(self, i, value)

Set value srcMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcPitch(self, i, unsigned long value)

Set value srcPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcXInBytes(self, i, unsigned long value)

Set value srcXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcY(self, i, unsigned long value)

Set value srcY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcZ(self, i, unsigned long value)

Set value srcZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

srcDevice

(undocumented) Note:

Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcHeight

(undocumented)

srcHost

(undocumented) Note:

Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcLOD

(undocumented)

srcMemoryType

(undocumented)

srcPitch

(undocumented)

srcXInBytes

(undocumented)

srcY

(undocumented)

srcZ

(undocumented)

class cuda.cuda.CUDA_MEMCPY3D_v2

Bases: HIP_MEMCPY3D

Depth

(undocumented)

Height

(undocumented)

static PROPERTIES()
WidthInBytes

(undocumented)

__getitem__(key, /)

Return self[key].

__init__()

Constructor type HIP_MEMCPY3D.

Constructor for type HIP_MEMCPY3D.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dstDevice

(undocumented) Note:

Setting this dstDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstHeight

(undocumented)

dstHost

(undocumented) Note:

Setting this dstHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

dstLOD

(undocumented)

dstMemoryType

(undocumented)

dstPitch

(undocumented)

dstXInBytes

(undocumented)

dstY

(undocumented)

dstZ

(undocumented)

static fromObj(pyobj)

Creates a HIP_MEMCPY3D from a Python object.

Derives a HIP_MEMCPY3D from the given Python object pyobj. In case pyobj is itself an HIP_MEMCPY3D reference, this method returns it directly. No new HIP_MEMCPY3D is created in this case.

get_Depth(self, i)

Get value Depth of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_Height(self, i)

Get value Height of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_WidthInBytes(self, i)

Get value WidthInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstDevice(self, i)

Get value dstDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstHeight(self, i)

Get value dstHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstHost(self, i)

Get value dstHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstLOD(self, i)

Get value dstLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstMemoryType(self, i)

Get value of dstMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstPitch(self, i)

Get value dstPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstXInBytes(self, i)

Get value dstXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstY(self, i)

Get value dstY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_dstZ(self, i)

Get value dstZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcDevice(self, i)

Get value srcDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcHeight(self, i)

Get value srcHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcHost(self, i)

Get value srcHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcLOD(self, i)

Get value srcLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcMemoryType(self, i)

Get value of srcMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcPitch(self, i)

Get value srcPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcXInBytes(self, i)

Get value srcXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcY(self, i)

Get value srcY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

get_srcZ(self, i)

Get value srcZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_Depth(self, i, unsigned long value)

Set value Depth of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_Height(self, i, unsigned long value)

Set value Height of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_WidthInBytes(self, i, unsigned long value)

Set value WidthInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstDevice(self, i, value)

Set value dstDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstHeight(self, i, unsigned long value)

Set value dstHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstHost(self, i, value)

Set value dstHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_dstLOD(self, i, unsigned long value)

Set value dstLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstMemoryType(self, i, value)

Set value dstMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstPitch(self, i, unsigned long value)

Set value dstPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstXInBytes(self, i, unsigned long value)

Set value dstXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstY(self, i, unsigned long value)

Set value dstY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_dstZ(self, i, unsigned long value)

Set value dstZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcDevice(self, i, value)

Set value srcDevice of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcHeight(self, i, unsigned long value)

Set value srcHeight of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcHost(self, i, value)

Set value srcHost of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_srcLOD(self, i, unsigned long value)

Set value srcLOD of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcMemoryType(self, i, value)

Set value srcMemoryType of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcPitch(self, i, unsigned long value)

Set value srcPitch of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcXInBytes(self, i, unsigned long value)

Set value srcXInBytes of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcY(self, i, unsigned long value)

Set value srcY of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

set_srcZ(self, i, unsigned long value)

Set value srcZ of (<chip.HIP_MEMCPY3D*>self._ptr)[i].

srcDevice

(undocumented) Note:

Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcHeight

(undocumented)

srcHost

(undocumented) Note:

Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

srcLOD

(undocumented)

srcMemoryType

(undocumented)

srcPitch

(undocumented)

srcXInBytes

(undocumented)

srcY

(undocumented)

srcZ

(undocumented)

class cuda.cuda.CUfunction_attribute(value)

Bases: _hipFunction_attribute__Base

An enumeration.

HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK = 0
CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK = 0
HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES = 1
CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES = 1
HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES = 2
CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES = 2
HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES = 3
CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES = 3
HIP_FUNC_ATTRIBUTE_NUM_REGS = 4
CU_FUNC_ATTRIBUTE_NUM_REGS = 4
HIP_FUNC_ATTRIBUTE_PTX_VERSION = 5
CU_FUNC_ATTRIBUTE_PTX_VERSION = 5
HIP_FUNC_ATTRIBUTE_BINARY_VERSION = 6
CU_FUNC_ATTRIBUTE_BINARY_VERSION = 6
HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA = 7
CU_FUNC_ATTRIBUTE_CACHE_MODE_CA = 7
HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES = 8
CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES = 8
HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = 9
CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = 9
HIP_FUNC_ATTRIBUTE_MAX = 10
CU_FUNC_ATTRIBUTE_MAX = 10
class cuda.cuda.CUfunction_attribute_enum(value)

Bases: _hipFunction_attribute__Base

An enumeration.

HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK = 0
CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK = 0
HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES = 1
CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES = 1
HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES = 2
CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES = 2
HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES = 3
CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES = 3
HIP_FUNC_ATTRIBUTE_NUM_REGS = 4
CU_FUNC_ATTRIBUTE_NUM_REGS = 4
HIP_FUNC_ATTRIBUTE_PTX_VERSION = 5
CU_FUNC_ATTRIBUTE_PTX_VERSION = 5
HIP_FUNC_ATTRIBUTE_BINARY_VERSION = 6
CU_FUNC_ATTRIBUTE_BINARY_VERSION = 6
HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA = 7
CU_FUNC_ATTRIBUTE_CACHE_MODE_CA = 7
HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES = 8
CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES = 8
HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = 9
CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = 9
HIP_FUNC_ATTRIBUTE_MAX = 10
CU_FUNC_ATTRIBUTE_MAX = 10
class cuda.cuda.CUpointer_attribute(value)

Bases: _hipPointer_attribute__Base

An enumeration.

HIP_POINTER_ATTRIBUTE_CONTEXT = 1
CU_POINTER_ATTRIBUTE_CONTEXT = 1
HIP_POINTER_ATTRIBUTE_MEMORY_TYPE = 2
CU_POINTER_ATTRIBUTE_MEMORY_TYPE = 2
HIP_POINTER_ATTRIBUTE_DEVICE_POINTER = 3
CU_POINTER_ATTRIBUTE_DEVICE_POINTER = 3
HIP_POINTER_ATTRIBUTE_HOST_POINTER = 4
CU_POINTER_ATTRIBUTE_HOST_POINTER = 4
HIP_POINTER_ATTRIBUTE_P2P_TOKENS = 5
CU_POINTER_ATTRIBUTE_P2P_TOKENS = 5
HIP_POINTER_ATTRIBUTE_SYNC_MEMOPS = 6
CU_POINTER_ATTRIBUTE_SYNC_MEMOPS = 6
HIP_POINTER_ATTRIBUTE_BUFFER_ID = 7
CU_POINTER_ATTRIBUTE_BUFFER_ID = 7
HIP_POINTER_ATTRIBUTE_IS_MANAGED = 8
CU_POINTER_ATTRIBUTE_IS_MANAGED = 8
HIP_POINTER_ATTRIBUTE_DEVICE_ORDINAL = 9
CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL = 9
HIP_POINTER_ATTRIBUTE_IS_LEGACY_HIP_IPC_CAPABLE = 10
CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE = 10
HIP_POINTER_ATTRIBUTE_RANGE_START_ADDR = 11
CU_POINTER_ATTRIBUTE_RANGE_START_ADDR = 11
HIP_POINTER_ATTRIBUTE_RANGE_SIZE = 12
CU_POINTER_ATTRIBUTE_RANGE_SIZE = 12
HIP_POINTER_ATTRIBUTE_MAPPED = 13
CU_POINTER_ATTRIBUTE_MAPPED = 13
HIP_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES = 14
CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES = 14
HIP_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE = 15
CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE = 15
HIP_POINTER_ATTRIBUTE_ACCESS_FLAGS = 16
CU_POINTER_ATTRIBUTE_ACCESS_FLAGS = 16
HIP_POINTER_ATTRIBUTE_MEMPOOL_HANDLE = 17
CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE = 17
class cuda.cuda.CUpointer_attribute_enum(value)

Bases: _hipPointer_attribute__Base

An enumeration.

HIP_POINTER_ATTRIBUTE_CONTEXT = 1
CU_POINTER_ATTRIBUTE_CONTEXT = 1
HIP_POINTER_ATTRIBUTE_MEMORY_TYPE = 2
CU_POINTER_ATTRIBUTE_MEMORY_TYPE = 2
HIP_POINTER_ATTRIBUTE_DEVICE_POINTER = 3
CU_POINTER_ATTRIBUTE_DEVICE_POINTER = 3
HIP_POINTER_ATTRIBUTE_HOST_POINTER = 4
CU_POINTER_ATTRIBUTE_HOST_POINTER = 4
HIP_POINTER_ATTRIBUTE_P2P_TOKENS = 5
CU_POINTER_ATTRIBUTE_P2P_TOKENS = 5
HIP_POINTER_ATTRIBUTE_SYNC_MEMOPS = 6
CU_POINTER_ATTRIBUTE_SYNC_MEMOPS = 6
HIP_POINTER_ATTRIBUTE_BUFFER_ID = 7
CU_POINTER_ATTRIBUTE_BUFFER_ID = 7
HIP_POINTER_ATTRIBUTE_IS_MANAGED = 8
CU_POINTER_ATTRIBUTE_IS_MANAGED = 8
HIP_POINTER_ATTRIBUTE_DEVICE_ORDINAL = 9
CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL = 9
HIP_POINTER_ATTRIBUTE_IS_LEGACY_HIP_IPC_CAPABLE = 10
CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE = 10
HIP_POINTER_ATTRIBUTE_RANGE_START_ADDR = 11
CU_POINTER_ATTRIBUTE_RANGE_START_ADDR = 11
HIP_POINTER_ATTRIBUTE_RANGE_SIZE = 12
CU_POINTER_ATTRIBUTE_RANGE_SIZE = 12
HIP_POINTER_ATTRIBUTE_MAPPED = 13
CU_POINTER_ATTRIBUTE_MAPPED = 13
HIP_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES = 14
CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES = 14
HIP_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE = 15
CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE = 15
HIP_POINTER_ATTRIBUTE_ACCESS_FLAGS = 16
CU_POINTER_ATTRIBUTE_ACCESS_FLAGS = 16
HIP_POINTER_ATTRIBUTE_MEMPOOL_HANDLE = 17
CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE = 17
cuda.cuda.cudaCreateChannelDesc(x, y, z, w, f)

hipCreateChannelDesc(int x, int y, int z, int w, f) (No short description, might be part of a group.)

Args:
x (int):

(undocumented)

y (int):

(undocumented)

z (int):

(undocumented)

w (int):

(undocumented)

f (hipChannelFormatKind):

(undocumented)

Returns:

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

cuda.cuda.CUtexObject

alias of __hip_texture

cuda.cuda.CUtexObject_v1

alias of __hip_texture

cuda.cuda.cudaTextureObject_t

alias of __hip_texture

class cuda.cuda.cudaTextureAddressMode(value)

Bases: _hipTextureAddressMode__Base

An enumeration.

hipAddressModeWrap = 0
cudaAddressModeWrap = 0
hipAddressModeClamp = 1
cudaAddressModeClamp = 1
hipAddressModeMirror = 2
cudaAddressModeMirror = 2
hipAddressModeBorder = 3
cudaAddressModeBorder = 3
class cuda.cuda.cudaTextureFilterMode(value)

Bases: _hipTextureFilterMode__Base

An enumeration.

hipFilterModePoint = 0
cudaFilterModePoint = 0
hipFilterModeLinear = 1
cudaFilterModeLinear = 1
class cuda.cuda.cudaTextureReadMode(value)

Bases: _hipTextureReadMode__Base

An enumeration.

hipReadModeElementType = 0
cudaReadModeElementType = 0
hipReadModeNormalizedFloat = 1
cudaReadModeNormalizedFloat = 1
class cuda.cuda.CUtexref_st

Bases: textureReference

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type textureReference.

Constructor for type textureReference.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

channelDesc

(undocumented)

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

filterMode

(undocumented)

format

(undocumented)

static fromObj(pyobj)

Creates a textureReference from a Python object.

Derives a textureReference from the given Python object pyobj. In case pyobj is itself an textureReference reference, this method returns it directly. No new textureReference is created in this case.

get_channelDesc(self, i)

Get value of channelDesc of (<chip.textureReference*>self._ptr)[i].

get_filterMode(self, i)

Get value of filterMode of (<chip.textureReference*>self._ptr)[i].

get_format(self, i)

Get value of format of (<chip.textureReference*>self._ptr)[i].

get_maxAnisotropy(self, i)

Get value maxAnisotropy of (<chip.textureReference*>self._ptr)[i].

get_maxMipmapLevelClamp(self, i)

Get value maxMipmapLevelClamp of (<chip.textureReference*>self._ptr)[i].

get_minMipmapLevelClamp(self, i)

Get value minMipmapLevelClamp of (<chip.textureReference*>self._ptr)[i].

get_mipmapFilterMode(self, i)

Get value of mipmapFilterMode of (<chip.textureReference*>self._ptr)[i].

get_mipmapLevelBias(self, i)

Get value mipmapLevelBias of (<chip.textureReference*>self._ptr)[i].

get_normalized(self, i)

Get value normalized of (<chip.textureReference*>self._ptr)[i].

get_numChannels(self, i)

Get value numChannels of (<chip.textureReference*>self._ptr)[i].

get_readMode(self, i)

Get value of readMode of (<chip.textureReference*>self._ptr)[i].

get_sRGB(self, i)

Get value sRGB of (<chip.textureReference*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

maxAnisotropy

(undocumented)

maxMipmapLevelClamp

(undocumented)

minMipmapLevelClamp

(undocumented)

mipmapFilterMode

(undocumented)

mipmapLevelBias

(undocumented)

normalized

(undocumented)

numChannels

(undocumented)

readMode

(undocumented)

sRGB

(undocumented)

set_filterMode(self, i, value)

Set value filterMode of (<chip.textureReference*>self._ptr)[i].

set_format(self, i, value)

Set value format of (<chip.textureReference*>self._ptr)[i].

set_maxAnisotropy(self, i, unsigned int value)

Set value maxAnisotropy of (<chip.textureReference*>self._ptr)[i].

set_maxMipmapLevelClamp(self, i, float value)

Set value maxMipmapLevelClamp of (<chip.textureReference*>self._ptr)[i].

set_minMipmapLevelClamp(self, i, float value)

Set value minMipmapLevelClamp of (<chip.textureReference*>self._ptr)[i].

set_mipmapFilterMode(self, i, value)

Set value mipmapFilterMode of (<chip.textureReference*>self._ptr)[i].

set_mipmapLevelBias(self, i, float value)

Set value mipmapLevelBias of (<chip.textureReference*>self._ptr)[i].

set_normalized(self, i, int value)

Set value normalized of (<chip.textureReference*>self._ptr)[i].

set_numChannels(self, i, int value)

Set value numChannels of (<chip.textureReference*>self._ptr)[i].

set_readMode(self, i, value)

Set value readMode of (<chip.textureReference*>self._ptr)[i].

set_sRGB(self, i, int value)

Set value sRGB of (<chip.textureReference*>self._ptr)[i].

class cuda.cuda.textureReference

Bases: textureReference

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type textureReference.

Constructor for type textureReference.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

channelDesc

(undocumented)

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

filterMode

(undocumented)

format

(undocumented)

static fromObj(pyobj)

Creates a textureReference from a Python object.

Derives a textureReference from the given Python object pyobj. In case pyobj is itself an textureReference reference, this method returns it directly. No new textureReference is created in this case.

get_channelDesc(self, i)

Get value of channelDesc of (<chip.textureReference*>self._ptr)[i].

get_filterMode(self, i)

Get value of filterMode of (<chip.textureReference*>self._ptr)[i].

get_format(self, i)

Get value of format of (<chip.textureReference*>self._ptr)[i].

get_maxAnisotropy(self, i)

Get value maxAnisotropy of (<chip.textureReference*>self._ptr)[i].

get_maxMipmapLevelClamp(self, i)

Get value maxMipmapLevelClamp of (<chip.textureReference*>self._ptr)[i].

get_minMipmapLevelClamp(self, i)

Get value minMipmapLevelClamp of (<chip.textureReference*>self._ptr)[i].

get_mipmapFilterMode(self, i)

Get value of mipmapFilterMode of (<chip.textureReference*>self._ptr)[i].

get_mipmapLevelBias(self, i)

Get value mipmapLevelBias of (<chip.textureReference*>self._ptr)[i].

get_normalized(self, i)

Get value normalized of (<chip.textureReference*>self._ptr)[i].

get_numChannels(self, i)

Get value numChannels of (<chip.textureReference*>self._ptr)[i].

get_readMode(self, i)

Get value of readMode of (<chip.textureReference*>self._ptr)[i].

get_sRGB(self, i)

Get value sRGB of (<chip.textureReference*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

maxAnisotropy

(undocumented)

maxMipmapLevelClamp

(undocumented)

minMipmapLevelClamp

(undocumented)

mipmapFilterMode

(undocumented)

mipmapLevelBias

(undocumented)

normalized

(undocumented)

numChannels

(undocumented)

readMode

(undocumented)

sRGB

(undocumented)

set_filterMode(self, i, value)

Set value filterMode of (<chip.textureReference*>self._ptr)[i].

set_format(self, i, value)

Set value format of (<chip.textureReference*>self._ptr)[i].

set_maxAnisotropy(self, i, unsigned int value)

Set value maxAnisotropy of (<chip.textureReference*>self._ptr)[i].

set_maxMipmapLevelClamp(self, i, float value)

Set value maxMipmapLevelClamp of (<chip.textureReference*>self._ptr)[i].

set_minMipmapLevelClamp(self, i, float value)

Set value minMipmapLevelClamp of (<chip.textureReference*>self._ptr)[i].

set_mipmapFilterMode(self, i, value)

Set value mipmapFilterMode of (<chip.textureReference*>self._ptr)[i].

set_mipmapLevelBias(self, i, float value)

Set value mipmapLevelBias of (<chip.textureReference*>self._ptr)[i].

set_normalized(self, i, int value)

Set value normalized of (<chip.textureReference*>self._ptr)[i].

set_numChannels(self, i, int value)

Set value numChannels of (<chip.textureReference*>self._ptr)[i].

set_readMode(self, i, value)

Set value readMode of (<chip.textureReference*>self._ptr)[i].

set_sRGB(self, i, int value)

Set value sRGB of (<chip.textureReference*>self._ptr)[i].

class cuda.cuda.cudaTextureDesc

Bases: hipTextureDesc

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipTextureDesc.

Constructor for type hipTextureDesc.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

borderColor

(undocumented)

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

filterMode

(undocumented)

static fromObj(pyobj)

Creates a hipTextureDesc from a Python object.

Derives a hipTextureDesc from the given Python object pyobj. In case pyobj is itself an hipTextureDesc reference, this method returns it directly. No new hipTextureDesc is created in this case.

get_borderColor(self, i)

Get value of borderColor of (<chip.hipTextureDesc*>self._ptr)[i].

get_filterMode(self, i)

Get value of filterMode of (<chip.hipTextureDesc*>self._ptr)[i].

get_maxAnisotropy(self, i)

Get value maxAnisotropy of (<chip.hipTextureDesc*>self._ptr)[i].

get_maxMipmapLevelClamp(self, i)

Get value maxMipmapLevelClamp of (<chip.hipTextureDesc*>self._ptr)[i].

get_minMipmapLevelClamp(self, i)

Get value minMipmapLevelClamp of (<chip.hipTextureDesc*>self._ptr)[i].

get_mipmapFilterMode(self, i)

Get value of mipmapFilterMode of (<chip.hipTextureDesc*>self._ptr)[i].

get_mipmapLevelBias(self, i)

Get value mipmapLevelBias of (<chip.hipTextureDesc*>self._ptr)[i].

get_normalizedCoords(self, i)

Get value normalizedCoords of (<chip.hipTextureDesc*>self._ptr)[i].

get_readMode(self, i)

Get value of readMode of (<chip.hipTextureDesc*>self._ptr)[i].

get_sRGB(self, i)

Get value sRGB of (<chip.hipTextureDesc*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

maxAnisotropy

(undocumented)

maxMipmapLevelClamp

(undocumented)

minMipmapLevelClamp

(undocumented)

mipmapFilterMode

(undocumented)

mipmapLevelBias

(undocumented)

normalizedCoords

(undocumented)

readMode

(undocumented)

sRGB

(undocumented)

set_filterMode(self, i, value)

Set value filterMode of (<chip.hipTextureDesc*>self._ptr)[i].

set_maxAnisotropy(self, i, unsigned int value)

Set value maxAnisotropy of (<chip.hipTextureDesc*>self._ptr)[i].

set_maxMipmapLevelClamp(self, i, float value)

Set value maxMipmapLevelClamp of (<chip.hipTextureDesc*>self._ptr)[i].

set_minMipmapLevelClamp(self, i, float value)

Set value minMipmapLevelClamp of (<chip.hipTextureDesc*>self._ptr)[i].

set_mipmapFilterMode(self, i, value)

Set value mipmapFilterMode of (<chip.hipTextureDesc*>self._ptr)[i].

set_mipmapLevelBias(self, i, float value)

Set value mipmapLevelBias of (<chip.hipTextureDesc*>self._ptr)[i].

set_normalizedCoords(self, i, int value)

Set value normalizedCoords of (<chip.hipTextureDesc*>self._ptr)[i].

set_readMode(self, i, value)

Set value readMode of (<chip.hipTextureDesc*>self._ptr)[i].

set_sRGB(self, i, int value)

Set value sRGB of (<chip.hipTextureDesc*>self._ptr)[i].

cuda.cuda.CUsurfObject

alias of __hip_surface

cuda.cuda.CUsurfObject_v1

alias of __hip_surface

cuda.cuda.cudaSurfaceObject_t

alias of __hip_surface

class cuda.cuda.surfaceReference

Bases: surfaceReference

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type surfaceReference.

Constructor for type surfaceReference.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a surfaceReference from a Python object.

Derives a surfaceReference from the given Python object pyobj. In case pyobj is itself an surfaceReference reference, this method returns it directly. No new surfaceReference is created in this case.

is_ptr_null

If data pointer is NULL.

class cuda.cuda.cudaSurfaceBoundaryMode(value)

Bases: _hipSurfaceBoundaryMode__Base

An enumeration.

hipBoundaryModeZero = 0
cudaBoundaryModeZero = 0
hipBoundaryModeTrap = 1
cudaBoundaryModeTrap = 1
hipBoundaryModeClamp = 2
cudaBoundaryModeClamp = 2
class cuda.cuda.CUctx_st

Bases: ihipCtx_t

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a ihipCtx_t from a Python object.

Derives a ihipCtx_t from the given Python object pyobj. In case pyobj is itself an ihipCtx_t reference, this method returns it directly. No new ihipCtx_t is created in this case.

is_ptr_null

If data pointer is NULL.

cuda.cuda.CUcontext

alias of ihipCtx_t

class cuda.cuda.CUdevice_P2PAttribute(value)

Bases: _hipDeviceP2PAttr__Base

An enumeration.

hipDevP2PAttrPerformanceRank = 0
CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK = 0
cudaDevP2PAttrPerformanceRank = 0
hipDevP2PAttrAccessSupported = 1
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED = 1
cudaDevP2PAttrAccessSupported = 1
hipDevP2PAttrNativeAtomicSupported = 2
CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED = 2
cudaDevP2PAttrNativeAtomicSupported = 2
hipDevP2PAttrHipArrayAccessSupported = 3
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED = 3
CU_DEVICE_P2P_ATTRIBUTE_ARRAY_ACCESS_ACCESS_SUPPORTED = 3
CU_DEVICE_P2P_ATTRIBUTE_CUDA_ARRAY_ACCESS_SUPPORTED = 3
cudaDevP2PAttrCudaArrayAccessSupported = 3
class cuda.cuda.CUdevice_P2PAttribute_enum(value)

Bases: _hipDeviceP2PAttr__Base

An enumeration.

hipDevP2PAttrPerformanceRank = 0
CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK = 0
cudaDevP2PAttrPerformanceRank = 0
hipDevP2PAttrAccessSupported = 1
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED = 1
cudaDevP2PAttrAccessSupported = 1
hipDevP2PAttrNativeAtomicSupported = 2
CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED = 2
cudaDevP2PAttrNativeAtomicSupported = 2
hipDevP2PAttrHipArrayAccessSupported = 3
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED = 3
CU_DEVICE_P2P_ATTRIBUTE_ARRAY_ACCESS_ACCESS_SUPPORTED = 3
CU_DEVICE_P2P_ATTRIBUTE_CUDA_ARRAY_ACCESS_SUPPORTED = 3
cudaDevP2PAttrCudaArrayAccessSupported = 3
class cuda.cuda.cudaDeviceP2PAttr(value)

Bases: _hipDeviceP2PAttr__Base

An enumeration.

hipDevP2PAttrPerformanceRank = 0
CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK = 0
cudaDevP2PAttrPerformanceRank = 0
hipDevP2PAttrAccessSupported = 1
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED = 1
cudaDevP2PAttrAccessSupported = 1
hipDevP2PAttrNativeAtomicSupported = 2
CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED = 2
cudaDevP2PAttrNativeAtomicSupported = 2
hipDevP2PAttrHipArrayAccessSupported = 3
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED = 3
CU_DEVICE_P2P_ATTRIBUTE_ARRAY_ACCESS_ACCESS_SUPPORTED = 3
CU_DEVICE_P2P_ATTRIBUTE_CUDA_ARRAY_ACCESS_SUPPORTED = 3
cudaDevP2PAttrCudaArrayAccessSupported = 3
class cuda.cuda.CUstream_st

Bases: ihipStream_t

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a ihipStream_t from a Python object.

Derives a ihipStream_t from the given Python object pyobj. In case pyobj is itself an ihipStream_t reference, this method returns it directly. No new ihipStream_t is created in this case.

is_ptr_null

If data pointer is NULL.

cuda.cuda.CUstream

alias of ihipStream_t

cuda.cuda.cudaStream_t

alias of ihipStream_t

class cuda.cuda.CUipcMemHandle_st

Bases: hipIpcMemHandle_st

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipIpcMemHandle_st.

Constructor for type hipIpcMemHandle_st.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipIpcMemHandle_st from a Python object.

Derives a hipIpcMemHandle_st from the given Python object pyobj. In case pyobj is itself an hipIpcMemHandle_st reference, this method returns it directly. No new hipIpcMemHandle_st is created in this case.

get_reserved(self, i)

Get value of reserved of (<chip.hipIpcMemHandle_st*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

reserved

(undocumented)

class cuda.cuda.cudaIpcMemHandle_st

Bases: hipIpcMemHandle_st

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipIpcMemHandle_st.

Constructor for type hipIpcMemHandle_st.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipIpcMemHandle_st from a Python object.

Derives a hipIpcMemHandle_st from the given Python object pyobj. In case pyobj is itself an hipIpcMemHandle_st reference, this method returns it directly. No new hipIpcMemHandle_st is created in this case.

get_reserved(self, i)

Get value of reserved of (<chip.hipIpcMemHandle_st*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

reserved

(undocumented)

cuda.cuda.CUipcMemHandle

alias of hipIpcMemHandle_st

cuda.cuda.CUipcMemHandle_v1

alias of hipIpcMemHandle_st

cuda.cuda.cudaIpcMemHandle_t

alias of hipIpcMemHandle_st

class cuda.cuda.CUipcEventHandle_st

Bases: hipIpcEventHandle_st

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipIpcEventHandle_st.

Constructor for type hipIpcEventHandle_st.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipIpcEventHandle_st from a Python object.

Derives a hipIpcEventHandle_st from the given Python object pyobj. In case pyobj is itself an hipIpcEventHandle_st reference, this method returns it directly. No new hipIpcEventHandle_st is created in this case.

get_reserved(self, i)

Get value of reserved of (<chip.hipIpcEventHandle_st*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

reserved

(undocumented)

class cuda.cuda.cudaIpcEventHandle_st

Bases: hipIpcEventHandle_st

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipIpcEventHandle_st.

Constructor for type hipIpcEventHandle_st.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipIpcEventHandle_st from a Python object.

Derives a hipIpcEventHandle_st from the given Python object pyobj. In case pyobj is itself an hipIpcEventHandle_st reference, this method returns it directly. No new hipIpcEventHandle_st is created in this case.

get_reserved(self, i)

Get value of reserved of (<chip.hipIpcEventHandle_st*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

reserved

(undocumented)

cuda.cuda.CUipcEventHandle

alias of hipIpcEventHandle_st

cuda.cuda.CUipcEventHandle_v1

alias of hipIpcEventHandle_st

cuda.cuda.cudaIpcEventHandle_t

alias of hipIpcEventHandle_st

class cuda.cuda.CUmod_st

Bases: ihipModule_t

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a ihipModule_t from a Python object.

Derives a ihipModule_t from the given Python object pyobj. In case pyobj is itself an ihipModule_t reference, this method returns it directly. No new ihipModule_t is created in this case.

is_ptr_null

If data pointer is NULL.

cuda.cuda.CUmodule

alias of ihipModule_t

class cuda.cuda.CUfunc_st

Bases: ihipModuleSymbol_t

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a ihipModuleSymbol_t from a Python object.

Derives a ihipModuleSymbol_t from the given Python object pyobj. In case pyobj is itself an ihipModuleSymbol_t reference, this method returns it directly. No new ihipModuleSymbol_t is created in this case.

is_ptr_null

If data pointer is NULL.

cuda.cuda.CUfunction

alias of ihipModuleSymbol_t

cuda.cuda.cudaFunction_t

alias of ihipModuleSymbol_t

class cuda.cuda.CUmemPoolHandle_st

Bases: ihipMemPoolHandle_t

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a ihipMemPoolHandle_t from a Python object.

Derives a ihipMemPoolHandle_t from the given Python object pyobj. In case pyobj is itself an ihipMemPoolHandle_t reference, this method returns it directly. No new ihipMemPoolHandle_t is created in this case.

is_ptr_null

If data pointer is NULL.

cuda.cuda.CUmemoryPool

alias of ihipMemPoolHandle_t

cuda.cuda.cudaMemPool_t

alias of ihipMemPoolHandle_t

class cuda.cuda.cudaFuncAttributes

Bases: hipFuncAttributes

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipFuncAttributes.

Constructor for type hipFuncAttributes.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

binaryVersion

(undocumented)

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

cacheModeCA

(undocumented)

constSizeBytes

(undocumented)

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipFuncAttributes from a Python object.

Derives a hipFuncAttributes from the given Python object pyobj. In case pyobj is itself an hipFuncAttributes reference, this method returns it directly. No new hipFuncAttributes is created in this case.

get_binaryVersion(self, i)

Get value binaryVersion of (<chip.hipFuncAttributes*>self._ptr)[i].

get_cacheModeCA(self, i)

Get value cacheModeCA of (<chip.hipFuncAttributes*>self._ptr)[i].

get_constSizeBytes(self, i)

Get value constSizeBytes of (<chip.hipFuncAttributes*>self._ptr)[i].

get_localSizeBytes(self, i)

Get value localSizeBytes of (<chip.hipFuncAttributes*>self._ptr)[i].

get_maxDynamicSharedSizeBytes(self, i)

Get value maxDynamicSharedSizeBytes of (<chip.hipFuncAttributes*>self._ptr)[i].

get_maxThreadsPerBlock(self, i)

Get value maxThreadsPerBlock of (<chip.hipFuncAttributes*>self._ptr)[i].

get_numRegs(self, i)

Get value numRegs of (<chip.hipFuncAttributes*>self._ptr)[i].

get_preferredShmemCarveout(self, i)

Get value preferredShmemCarveout of (<chip.hipFuncAttributes*>self._ptr)[i].

get_ptxVersion(self, i)

Get value ptxVersion of (<chip.hipFuncAttributes*>self._ptr)[i].

get_sharedSizeBytes(self, i)

Get value sharedSizeBytes of (<chip.hipFuncAttributes*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

localSizeBytes

(undocumented)

maxDynamicSharedSizeBytes

(undocumented)

maxThreadsPerBlock

(undocumented)

numRegs

(undocumented)

preferredShmemCarveout

(undocumented)

ptxVersion

(undocumented)

set_binaryVersion(self, i, int value)

Set value binaryVersion of (<chip.hipFuncAttributes*>self._ptr)[i].

set_cacheModeCA(self, i, int value)

Set value cacheModeCA of (<chip.hipFuncAttributes*>self._ptr)[i].

set_constSizeBytes(self, i, unsigned long value)

Set value constSizeBytes of (<chip.hipFuncAttributes*>self._ptr)[i].

set_localSizeBytes(self, i, unsigned long value)

Set value localSizeBytes of (<chip.hipFuncAttributes*>self._ptr)[i].

set_maxDynamicSharedSizeBytes(self, i, int value)

Set value maxDynamicSharedSizeBytes of (<chip.hipFuncAttributes*>self._ptr)[i].

set_maxThreadsPerBlock(self, i, int value)

Set value maxThreadsPerBlock of (<chip.hipFuncAttributes*>self._ptr)[i].

set_numRegs(self, i, int value)

Set value numRegs of (<chip.hipFuncAttributes*>self._ptr)[i].

set_preferredShmemCarveout(self, i, int value)

Set value preferredShmemCarveout of (<chip.hipFuncAttributes*>self._ptr)[i].

set_ptxVersion(self, i, int value)

Set value ptxVersion of (<chip.hipFuncAttributes*>self._ptr)[i].

set_sharedSizeBytes(self, i, unsigned long value)

Set value sharedSizeBytes of (<chip.hipFuncAttributes*>self._ptr)[i].

sharedSizeBytes

(undocumented)

class cuda.cuda.CUevent_st

Bases: ihipEvent_t

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a ihipEvent_t from a Python object.

Derives a ihipEvent_t from the given Python object pyobj. In case pyobj is itself an ihipEvent_t reference, this method returns it directly. No new ihipEvent_t is created in this case.

is_ptr_null

If data pointer is NULL.

cuda.cuda.CUevent

alias of ihipEvent_t

cuda.cuda.cudaEvent_t

alias of ihipEvent_t

class cuda.cuda.CUlimit(value)

Bases: _hipLimit_t__Base

An enumeration.

hipLimitStackSize = 0
CU_LIMIT_STACK_SIZE = 0
cudaLimitStackSize = 0
hipLimitPrintfFifoSize = 1
CU_LIMIT_PRINTF_FIFO_SIZE = 1
cudaLimitPrintfFifoSize = 1
hipLimitMallocHeapSize = 2
CU_LIMIT_MALLOC_HEAP_SIZE = 2
cudaLimitMallocHeapSize = 2
hipLimitRange = 3
class cuda.cuda.CUlimit_enum(value)

Bases: _hipLimit_t__Base

An enumeration.

hipLimitStackSize = 0
CU_LIMIT_STACK_SIZE = 0
cudaLimitStackSize = 0
hipLimitPrintfFifoSize = 1
CU_LIMIT_PRINTF_FIFO_SIZE = 1
cudaLimitPrintfFifoSize = 1
hipLimitMallocHeapSize = 2
CU_LIMIT_MALLOC_HEAP_SIZE = 2
cudaLimitMallocHeapSize = 2
hipLimitRange = 3
class cuda.cuda.cudaLimit(value)

Bases: _hipLimit_t__Base

An enumeration.

hipLimitStackSize = 0
CU_LIMIT_STACK_SIZE = 0
cudaLimitStackSize = 0
hipLimitPrintfFifoSize = 1
CU_LIMIT_PRINTF_FIFO_SIZE = 1
cudaLimitPrintfFifoSize = 1
hipLimitMallocHeapSize = 2
CU_LIMIT_MALLOC_HEAP_SIZE = 2
cudaLimitMallocHeapSize = 2
hipLimitRange = 3
class cuda.cuda.CUmem_advise(value)

Bases: _hipMemoryAdvise__Base

An enumeration.

hipMemAdviseSetReadMostly = 1
CU_MEM_ADVISE_SET_READ_MOSTLY = 1
cudaMemAdviseSetReadMostly = 1
hipMemAdviseUnsetReadMostly = 2
CU_MEM_ADVISE_UNSET_READ_MOSTLY = 2
cudaMemAdviseUnsetReadMostly = 2
hipMemAdviseSetPreferredLocation = 3
CU_MEM_ADVISE_SET_PREFERRED_LOCATION = 3
cudaMemAdviseSetPreferredLocation = 3
hipMemAdviseUnsetPreferredLocation = 4
CU_MEM_ADVISE_UNSET_PREFERRED_LOCATION = 4
cudaMemAdviseUnsetPreferredLocation = 4
hipMemAdviseSetAccessedBy = 5
CU_MEM_ADVISE_SET_ACCESSED_BY = 5
cudaMemAdviseSetAccessedBy = 5
hipMemAdviseUnsetAccessedBy = 6
CU_MEM_ADVISE_UNSET_ACCESSED_BY = 6
cudaMemAdviseUnsetAccessedBy = 6
hipMemAdviseSetCoarseGrain = 100
hipMemAdviseUnsetCoarseGrain = 101
class cuda.cuda.CUmem_advise_enum(value)

Bases: _hipMemoryAdvise__Base

An enumeration.

hipMemAdviseSetReadMostly = 1
CU_MEM_ADVISE_SET_READ_MOSTLY = 1
cudaMemAdviseSetReadMostly = 1
hipMemAdviseUnsetReadMostly = 2
CU_MEM_ADVISE_UNSET_READ_MOSTLY = 2
cudaMemAdviseUnsetReadMostly = 2
hipMemAdviseSetPreferredLocation = 3
CU_MEM_ADVISE_SET_PREFERRED_LOCATION = 3
cudaMemAdviseSetPreferredLocation = 3
hipMemAdviseUnsetPreferredLocation = 4
CU_MEM_ADVISE_UNSET_PREFERRED_LOCATION = 4
cudaMemAdviseUnsetPreferredLocation = 4
hipMemAdviseSetAccessedBy = 5
CU_MEM_ADVISE_SET_ACCESSED_BY = 5
cudaMemAdviseSetAccessedBy = 5
hipMemAdviseUnsetAccessedBy = 6
CU_MEM_ADVISE_UNSET_ACCESSED_BY = 6
cudaMemAdviseUnsetAccessedBy = 6
hipMemAdviseSetCoarseGrain = 100
hipMemAdviseUnsetCoarseGrain = 101
class cuda.cuda.cudaMemoryAdvise(value)

Bases: _hipMemoryAdvise__Base

An enumeration.

hipMemAdviseSetReadMostly = 1
CU_MEM_ADVISE_SET_READ_MOSTLY = 1
cudaMemAdviseSetReadMostly = 1
hipMemAdviseUnsetReadMostly = 2
CU_MEM_ADVISE_UNSET_READ_MOSTLY = 2
cudaMemAdviseUnsetReadMostly = 2
hipMemAdviseSetPreferredLocation = 3
CU_MEM_ADVISE_SET_PREFERRED_LOCATION = 3
cudaMemAdviseSetPreferredLocation = 3
hipMemAdviseUnsetPreferredLocation = 4
CU_MEM_ADVISE_UNSET_PREFERRED_LOCATION = 4
cudaMemAdviseUnsetPreferredLocation = 4
hipMemAdviseSetAccessedBy = 5
CU_MEM_ADVISE_SET_ACCESSED_BY = 5
cudaMemAdviseSetAccessedBy = 5
hipMemAdviseUnsetAccessedBy = 6
CU_MEM_ADVISE_UNSET_ACCESSED_BY = 6
cudaMemAdviseUnsetAccessedBy = 6
hipMemAdviseSetCoarseGrain = 100
hipMemAdviseUnsetCoarseGrain = 101
class cuda.cuda.CUmem_range_attribute(value)

Bases: _hipMemRangeAttribute__Base

An enumeration.

hipMemRangeAttributeReadMostly = 1
CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY = 1
cudaMemRangeAttributeReadMostly = 1
hipMemRangeAttributePreferredLocation = 2
CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION = 2
cudaMemRangeAttributePreferredLocation = 2
hipMemRangeAttributeAccessedBy = 3
CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY = 3
cudaMemRangeAttributeAccessedBy = 3
hipMemRangeAttributeLastPrefetchLocation = 4
CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION = 4
cudaMemRangeAttributeLastPrefetchLocation = 4
hipMemRangeAttributeCoherencyMode = 100
class cuda.cuda.CUmem_range_attribute_enum(value)

Bases: _hipMemRangeAttribute__Base

An enumeration.

hipMemRangeAttributeReadMostly = 1
CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY = 1
cudaMemRangeAttributeReadMostly = 1
hipMemRangeAttributePreferredLocation = 2
CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION = 2
cudaMemRangeAttributePreferredLocation = 2
hipMemRangeAttributeAccessedBy = 3
CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY = 3
cudaMemRangeAttributeAccessedBy = 3
hipMemRangeAttributeLastPrefetchLocation = 4
CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION = 4
cudaMemRangeAttributeLastPrefetchLocation = 4
hipMemRangeAttributeCoherencyMode = 100
class cuda.cuda.cudaMemRangeAttribute(value)

Bases: _hipMemRangeAttribute__Base

An enumeration.

hipMemRangeAttributeReadMostly = 1
CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY = 1
cudaMemRangeAttributeReadMostly = 1
hipMemRangeAttributePreferredLocation = 2
CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION = 2
cudaMemRangeAttributePreferredLocation = 2
hipMemRangeAttributeAccessedBy = 3
CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY = 3
cudaMemRangeAttributeAccessedBy = 3
hipMemRangeAttributeLastPrefetchLocation = 4
CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION = 4
cudaMemRangeAttributeLastPrefetchLocation = 4
hipMemRangeAttributeCoherencyMode = 100
class cuda.cuda.CUmemPool_attribute(value)

Bases: _hipMemPoolAttr__Base

An enumeration.

hipMemPoolReuseFollowEventDependencies = 1
CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES = 1
cudaMemPoolReuseFollowEventDependencies = 1
hipMemPoolReuseAllowOpportunistic = 2
CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC = 2
cudaMemPoolReuseAllowOpportunistic = 2
hipMemPoolReuseAllowInternalDependencies = 3
CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES = 3
cudaMemPoolReuseAllowInternalDependencies = 3
hipMemPoolAttrReleaseThreshold = 4
CU_MEMPOOL_ATTR_RELEASE_THRESHOLD = 4
cudaMemPoolAttrReleaseThreshold = 4
hipMemPoolAttrReservedMemCurrent = 5
CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT = 5
cudaMemPoolAttrReservedMemCurrent = 5
hipMemPoolAttrReservedMemHigh = 6
CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH = 6
cudaMemPoolAttrReservedMemHigh = 6
hipMemPoolAttrUsedMemCurrent = 7
CU_MEMPOOL_ATTR_USED_MEM_CURRENT = 7
cudaMemPoolAttrUsedMemCurrent = 7
hipMemPoolAttrUsedMemHigh = 8
CU_MEMPOOL_ATTR_USED_MEM_HIGH = 8
cudaMemPoolAttrUsedMemHigh = 8
class cuda.cuda.CUmemPool_attribute_enum(value)

Bases: _hipMemPoolAttr__Base

An enumeration.

hipMemPoolReuseFollowEventDependencies = 1
CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES = 1
cudaMemPoolReuseFollowEventDependencies = 1
hipMemPoolReuseAllowOpportunistic = 2
CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC = 2
cudaMemPoolReuseAllowOpportunistic = 2
hipMemPoolReuseAllowInternalDependencies = 3
CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES = 3
cudaMemPoolReuseAllowInternalDependencies = 3
hipMemPoolAttrReleaseThreshold = 4
CU_MEMPOOL_ATTR_RELEASE_THRESHOLD = 4
cudaMemPoolAttrReleaseThreshold = 4
hipMemPoolAttrReservedMemCurrent = 5
CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT = 5
cudaMemPoolAttrReservedMemCurrent = 5
hipMemPoolAttrReservedMemHigh = 6
CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH = 6
cudaMemPoolAttrReservedMemHigh = 6
hipMemPoolAttrUsedMemCurrent = 7
CU_MEMPOOL_ATTR_USED_MEM_CURRENT = 7
cudaMemPoolAttrUsedMemCurrent = 7
hipMemPoolAttrUsedMemHigh = 8
CU_MEMPOOL_ATTR_USED_MEM_HIGH = 8
cudaMemPoolAttrUsedMemHigh = 8
class cuda.cuda.cudaMemPoolAttr(value)

Bases: _hipMemPoolAttr__Base

An enumeration.

hipMemPoolReuseFollowEventDependencies = 1
CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES = 1
cudaMemPoolReuseFollowEventDependencies = 1
hipMemPoolReuseAllowOpportunistic = 2
CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC = 2
cudaMemPoolReuseAllowOpportunistic = 2
hipMemPoolReuseAllowInternalDependencies = 3
CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES = 3
cudaMemPoolReuseAllowInternalDependencies = 3
hipMemPoolAttrReleaseThreshold = 4
CU_MEMPOOL_ATTR_RELEASE_THRESHOLD = 4
cudaMemPoolAttrReleaseThreshold = 4
hipMemPoolAttrReservedMemCurrent = 5
CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT = 5
cudaMemPoolAttrReservedMemCurrent = 5
hipMemPoolAttrReservedMemHigh = 6
CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH = 6
cudaMemPoolAttrReservedMemHigh = 6
hipMemPoolAttrUsedMemCurrent = 7
CU_MEMPOOL_ATTR_USED_MEM_CURRENT = 7
cudaMemPoolAttrUsedMemCurrent = 7
hipMemPoolAttrUsedMemHigh = 8
CU_MEMPOOL_ATTR_USED_MEM_HIGH = 8
cudaMemPoolAttrUsedMemHigh = 8
class cuda.cuda.CUmemLocationType(value)

Bases: _hipMemLocationType__Base

An enumeration.

hipMemLocationTypeInvalid = 0
CU_MEM_LOCATION_TYPE_INVALID = 0
cudaMemLocationTypeInvalid = 0
hipMemLocationTypeDevice = 1
CU_MEM_LOCATION_TYPE_DEVICE = 1
cudaMemLocationTypeDevice = 1
class cuda.cuda.CUmemLocationType_enum(value)

Bases: _hipMemLocationType__Base

An enumeration.

hipMemLocationTypeInvalid = 0
CU_MEM_LOCATION_TYPE_INVALID = 0
cudaMemLocationTypeInvalid = 0
hipMemLocationTypeDevice = 1
CU_MEM_LOCATION_TYPE_DEVICE = 1
cudaMemLocationTypeDevice = 1
class cuda.cuda.cudaMemLocationType(value)

Bases: _hipMemLocationType__Base

An enumeration.

hipMemLocationTypeInvalid = 0
CU_MEM_LOCATION_TYPE_INVALID = 0
cudaMemLocationTypeInvalid = 0
hipMemLocationTypeDevice = 1
CU_MEM_LOCATION_TYPE_DEVICE = 1
cudaMemLocationTypeDevice = 1
class cuda.cuda.CUmemLocation

Bases: hipMemLocation

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemLocation.

Constructor for type hipMemLocation.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemLocation from a Python object.

Derives a hipMemLocation from the given Python object pyobj. In case pyobj is itself an hipMemLocation reference, this method returns it directly. No new hipMemLocation is created in this case.

get_id(self, i)

Get value id of (<chip.hipMemLocation*>self._ptr)[i].

get_type(self, i)

Get value of type of (<chip.hipMemLocation*>self._ptr)[i].

id

Identifier for the provided location type hipMemLocationType

is_ptr_null

If data pointer is NULL.

set_id(self, i, int value)

Set value id of (<chip.hipMemLocation*>self._ptr)[i].

set_type(self, i, value)

Set value type of (<chip.hipMemLocation*>self._ptr)[i].

type

Specifies the location type, which describes the meaning of id

class cuda.cuda.CUmemLocation_st

Bases: hipMemLocation

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemLocation.

Constructor for type hipMemLocation.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemLocation from a Python object.

Derives a hipMemLocation from the given Python object pyobj. In case pyobj is itself an hipMemLocation reference, this method returns it directly. No new hipMemLocation is created in this case.

get_id(self, i)

Get value id of (<chip.hipMemLocation*>self._ptr)[i].

get_type(self, i)

Get value of type of (<chip.hipMemLocation*>self._ptr)[i].

id

Identifier for the provided location type hipMemLocationType

is_ptr_null

If data pointer is NULL.

set_id(self, i, int value)

Set value id of (<chip.hipMemLocation*>self._ptr)[i].

set_type(self, i, value)

Set value type of (<chip.hipMemLocation*>self._ptr)[i].

type

Specifies the location type, which describes the meaning of id

class cuda.cuda.CUmemLocation_v1

Bases: hipMemLocation

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemLocation.

Constructor for type hipMemLocation.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemLocation from a Python object.

Derives a hipMemLocation from the given Python object pyobj. In case pyobj is itself an hipMemLocation reference, this method returns it directly. No new hipMemLocation is created in this case.

get_id(self, i)

Get value id of (<chip.hipMemLocation*>self._ptr)[i].

get_type(self, i)

Get value of type of (<chip.hipMemLocation*>self._ptr)[i].

id

Identifier for the provided location type hipMemLocationType

is_ptr_null

If data pointer is NULL.

set_id(self, i, int value)

Set value id of (<chip.hipMemLocation*>self._ptr)[i].

set_type(self, i, value)

Set value type of (<chip.hipMemLocation*>self._ptr)[i].

type

Specifies the location type, which describes the meaning of id

class cuda.cuda.cudaMemLocation

Bases: hipMemLocation

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemLocation.

Constructor for type hipMemLocation.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemLocation from a Python object.

Derives a hipMemLocation from the given Python object pyobj. In case pyobj is itself an hipMemLocation reference, this method returns it directly. No new hipMemLocation is created in this case.

get_id(self, i)

Get value id of (<chip.hipMemLocation*>self._ptr)[i].

get_type(self, i)

Get value of type of (<chip.hipMemLocation*>self._ptr)[i].

id

Identifier for the provided location type hipMemLocationType

is_ptr_null

If data pointer is NULL.

set_id(self, i, int value)

Set value id of (<chip.hipMemLocation*>self._ptr)[i].

set_type(self, i, value)

Set value type of (<chip.hipMemLocation*>self._ptr)[i].

type

Specifies the location type, which describes the meaning of id

class cuda.cuda.CUmemAccess_flags(value)

Bases: _hipMemAccessFlags__Base

An enumeration.

hipMemAccessFlagsProtNone = 0
CU_MEM_ACCESS_FLAGS_PROT_NONE = 0
cudaMemAccessFlagsProtNone = 0
hipMemAccessFlagsProtRead = 1
CU_MEM_ACCESS_FLAGS_PROT_READ = 1
cudaMemAccessFlagsProtRead = 1
hipMemAccessFlagsProtReadWrite = 3
CU_MEM_ACCESS_FLAGS_PROT_READWRITE = 3
cudaMemAccessFlagsProtReadWrite = 3
class cuda.cuda.CUmemAccess_flags_enum(value)

Bases: _hipMemAccessFlags__Base

An enumeration.

hipMemAccessFlagsProtNone = 0
CU_MEM_ACCESS_FLAGS_PROT_NONE = 0
cudaMemAccessFlagsProtNone = 0
hipMemAccessFlagsProtRead = 1
CU_MEM_ACCESS_FLAGS_PROT_READ = 1
cudaMemAccessFlagsProtRead = 1
hipMemAccessFlagsProtReadWrite = 3
CU_MEM_ACCESS_FLAGS_PROT_READWRITE = 3
cudaMemAccessFlagsProtReadWrite = 3
class cuda.cuda.cudaMemAccessFlags(value)

Bases: _hipMemAccessFlags__Base

An enumeration.

hipMemAccessFlagsProtNone = 0
CU_MEM_ACCESS_FLAGS_PROT_NONE = 0
cudaMemAccessFlagsProtNone = 0
hipMemAccessFlagsProtRead = 1
CU_MEM_ACCESS_FLAGS_PROT_READ = 1
cudaMemAccessFlagsProtRead = 1
hipMemAccessFlagsProtReadWrite = 3
CU_MEM_ACCESS_FLAGS_PROT_READWRITE = 3
cudaMemAccessFlagsProtReadWrite = 3
class cuda.cuda.CUmemAccessDesc

Bases: hipMemAccessDesc

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemAccessDesc.

Constructor for type hipMemAccessDesc.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

flags

Accessibility flags to set

static fromObj(pyobj)

Creates a hipMemAccessDesc from a Python object.

Derives a hipMemAccessDesc from the given Python object pyobj. In case pyobj is itself an hipMemAccessDesc reference, this method returns it directly. No new hipMemAccessDesc is created in this case.

get_flags(self, i)

Get value of flags of (<chip.hipMemAccessDesc*>self._ptr)[i].

get_location(self, i)

Get value of location of (<chip.hipMemAccessDesc*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

location

Location on which the accessibility has to change

set_flags(self, i, value)

Set value flags of (<chip.hipMemAccessDesc*>self._ptr)[i].

class cuda.cuda.CUmemAccessDesc_st

Bases: hipMemAccessDesc

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemAccessDesc.

Constructor for type hipMemAccessDesc.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

flags

Accessibility flags to set

static fromObj(pyobj)

Creates a hipMemAccessDesc from a Python object.

Derives a hipMemAccessDesc from the given Python object pyobj. In case pyobj is itself an hipMemAccessDesc reference, this method returns it directly. No new hipMemAccessDesc is created in this case.

get_flags(self, i)

Get value of flags of (<chip.hipMemAccessDesc*>self._ptr)[i].

get_location(self, i)

Get value of location of (<chip.hipMemAccessDesc*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

location

Location on which the accessibility has to change

set_flags(self, i, value)

Set value flags of (<chip.hipMemAccessDesc*>self._ptr)[i].

class cuda.cuda.CUmemAccessDesc_v1

Bases: hipMemAccessDesc

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemAccessDesc.

Constructor for type hipMemAccessDesc.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

flags

Accessibility flags to set

static fromObj(pyobj)

Creates a hipMemAccessDesc from a Python object.

Derives a hipMemAccessDesc from the given Python object pyobj. In case pyobj is itself an hipMemAccessDesc reference, this method returns it directly. No new hipMemAccessDesc is created in this case.

get_flags(self, i)

Get value of flags of (<chip.hipMemAccessDesc*>self._ptr)[i].

get_location(self, i)

Get value of location of (<chip.hipMemAccessDesc*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

location

Location on which the accessibility has to change

set_flags(self, i, value)

Set value flags of (<chip.hipMemAccessDesc*>self._ptr)[i].

class cuda.cuda.cudaMemAccessDesc

Bases: hipMemAccessDesc

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemAccessDesc.

Constructor for type hipMemAccessDesc.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

flags

Accessibility flags to set

static fromObj(pyobj)

Creates a hipMemAccessDesc from a Python object.

Derives a hipMemAccessDesc from the given Python object pyobj. In case pyobj is itself an hipMemAccessDesc reference, this method returns it directly. No new hipMemAccessDesc is created in this case.

get_flags(self, i)

Get value of flags of (<chip.hipMemAccessDesc*>self._ptr)[i].

get_location(self, i)

Get value of location of (<chip.hipMemAccessDesc*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

location

Location on which the accessibility has to change

set_flags(self, i, value)

Set value flags of (<chip.hipMemAccessDesc*>self._ptr)[i].

class cuda.cuda.CUmemAllocationType(value)

Bases: _hipMemAllocationType__Base

An enumeration.

hipMemAllocationTypeInvalid = 0
CU_MEM_ALLOCATION_TYPE_INVALID = 0
cudaMemAllocationTypeInvalid = 0
hipMemAllocationTypePinned = 1
CU_MEM_ALLOCATION_TYPE_PINNED = 1
cudaMemAllocationTypePinned = 1
hipMemAllocationTypeMax = 2147483647
CU_MEM_ALLOCATION_TYPE_MAX = 2147483647
cudaMemAllocationTypeMax = 2147483647
class cuda.cuda.CUmemAllocationType_enum(value)

Bases: _hipMemAllocationType__Base

An enumeration.

hipMemAllocationTypeInvalid = 0
CU_MEM_ALLOCATION_TYPE_INVALID = 0
cudaMemAllocationTypeInvalid = 0
hipMemAllocationTypePinned = 1
CU_MEM_ALLOCATION_TYPE_PINNED = 1
cudaMemAllocationTypePinned = 1
hipMemAllocationTypeMax = 2147483647
CU_MEM_ALLOCATION_TYPE_MAX = 2147483647
cudaMemAllocationTypeMax = 2147483647
class cuda.cuda.cudaMemAllocationType(value)

Bases: _hipMemAllocationType__Base

An enumeration.

hipMemAllocationTypeInvalid = 0
CU_MEM_ALLOCATION_TYPE_INVALID = 0
cudaMemAllocationTypeInvalid = 0
hipMemAllocationTypePinned = 1
CU_MEM_ALLOCATION_TYPE_PINNED = 1
cudaMemAllocationTypePinned = 1
hipMemAllocationTypeMax = 2147483647
CU_MEM_ALLOCATION_TYPE_MAX = 2147483647
cudaMemAllocationTypeMax = 2147483647
class cuda.cuda.CUmemAllocationHandleType(value)

Bases: _hipMemAllocationHandleType__Base

An enumeration.

hipMemHandleTypeNone = 0
CU_MEM_HANDLE_TYPE_NONE = 0
cudaMemHandleTypeNone = 0
hipMemHandleTypePosixFileDescriptor = 1
CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR = 1
cudaMemHandleTypePosixFileDescriptor = 1
hipMemHandleTypeWin32 = 2
CU_MEM_HANDLE_TYPE_WIN32 = 2
cudaMemHandleTypeWin32 = 2
hipMemHandleTypeWin32Kmt = 4
CU_MEM_HANDLE_TYPE_WIN32_KMT = 4
cudaMemHandleTypeWin32Kmt = 4
class cuda.cuda.CUmemAllocationHandleType_enum(value)

Bases: _hipMemAllocationHandleType__Base

An enumeration.

hipMemHandleTypeNone = 0
CU_MEM_HANDLE_TYPE_NONE = 0
cudaMemHandleTypeNone = 0
hipMemHandleTypePosixFileDescriptor = 1
CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR = 1
cudaMemHandleTypePosixFileDescriptor = 1
hipMemHandleTypeWin32 = 2
CU_MEM_HANDLE_TYPE_WIN32 = 2
cudaMemHandleTypeWin32 = 2
hipMemHandleTypeWin32Kmt = 4
CU_MEM_HANDLE_TYPE_WIN32_KMT = 4
cudaMemHandleTypeWin32Kmt = 4
class cuda.cuda.cudaMemAllocationHandleType(value)

Bases: _hipMemAllocationHandleType__Base

An enumeration.

hipMemHandleTypeNone = 0
CU_MEM_HANDLE_TYPE_NONE = 0
cudaMemHandleTypeNone = 0
hipMemHandleTypePosixFileDescriptor = 1
CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR = 1
cudaMemHandleTypePosixFileDescriptor = 1
hipMemHandleTypeWin32 = 2
CU_MEM_HANDLE_TYPE_WIN32 = 2
cudaMemHandleTypeWin32 = 2
hipMemHandleTypeWin32Kmt = 4
CU_MEM_HANDLE_TYPE_WIN32_KMT = 4
cudaMemHandleTypeWin32Kmt = 4
class cuda.cuda.CUmemPoolProps

Bases: hipMemPoolProps

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemPoolProps.

Constructor for type hipMemPoolProps.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

allocType

Allocation type. Currently must be specified as hipMemAllocationTypePinned

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemPoolProps from a Python object.

Derives a hipMemPoolProps from the given Python object pyobj. In case pyobj is itself an hipMemPoolProps reference, this method returns it directly. No new hipMemPoolProps is created in this case.

get_allocType(self, i)

Get value of allocType of (<chip.hipMemPoolProps*>self._ptr)[i].

get_handleTypes(self, i)

Get value of handleTypes of (<chip.hipMemPoolProps*>self._ptr)[i].

get_location(self, i)

Get value of location of (<chip.hipMemPoolProps*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.hipMemPoolProps*>self._ptr)[i].

get_win32SecurityAttributes(self, i)

Get value win32SecurityAttributes of (<chip.hipMemPoolProps*>self._ptr)[i].

handleTypes

Handle types that will be supported by allocations from the pool

is_ptr_null

If data pointer is NULL.

location

Location where allocations should reside

reserved

Reserved for future use, must be 0

set_allocType(self, i, value)

Set value allocType of (<chip.hipMemPoolProps*>self._ptr)[i].

set_handleTypes(self, i, value)

Set value handleTypes of (<chip.hipMemPoolProps*>self._ptr)[i].

set_win32SecurityAttributes(self, i, value)

Set value win32SecurityAttributes of (<chip.hipMemPoolProps*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

win32SecurityAttributes

Windows-specific LPSECURITYATTRIBUTES required when hipMemHandleTypeWin32 is specified Note:

Setting this win32SecurityAttributes can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

class cuda.cuda.CUmemPoolProps_st

Bases: hipMemPoolProps

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemPoolProps.

Constructor for type hipMemPoolProps.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

allocType

Allocation type. Currently must be specified as hipMemAllocationTypePinned

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemPoolProps from a Python object.

Derives a hipMemPoolProps from the given Python object pyobj. In case pyobj is itself an hipMemPoolProps reference, this method returns it directly. No new hipMemPoolProps is created in this case.

get_allocType(self, i)

Get value of allocType of (<chip.hipMemPoolProps*>self._ptr)[i].

get_handleTypes(self, i)

Get value of handleTypes of (<chip.hipMemPoolProps*>self._ptr)[i].

get_location(self, i)

Get value of location of (<chip.hipMemPoolProps*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.hipMemPoolProps*>self._ptr)[i].

get_win32SecurityAttributes(self, i)

Get value win32SecurityAttributes of (<chip.hipMemPoolProps*>self._ptr)[i].

handleTypes

Handle types that will be supported by allocations from the pool

is_ptr_null

If data pointer is NULL.

location

Location where allocations should reside

reserved

Reserved for future use, must be 0

set_allocType(self, i, value)

Set value allocType of (<chip.hipMemPoolProps*>self._ptr)[i].

set_handleTypes(self, i, value)

Set value handleTypes of (<chip.hipMemPoolProps*>self._ptr)[i].

set_win32SecurityAttributes(self, i, value)

Set value win32SecurityAttributes of (<chip.hipMemPoolProps*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

win32SecurityAttributes

Windows-specific LPSECURITYATTRIBUTES required when hipMemHandleTypeWin32 is specified Note:

Setting this win32SecurityAttributes can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

class cuda.cuda.CUmemPoolProps_v1

Bases: hipMemPoolProps

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemPoolProps.

Constructor for type hipMemPoolProps.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

allocType

Allocation type. Currently must be specified as hipMemAllocationTypePinned

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemPoolProps from a Python object.

Derives a hipMemPoolProps from the given Python object pyobj. In case pyobj is itself an hipMemPoolProps reference, this method returns it directly. No new hipMemPoolProps is created in this case.

get_allocType(self, i)

Get value of allocType of (<chip.hipMemPoolProps*>self._ptr)[i].

get_handleTypes(self, i)

Get value of handleTypes of (<chip.hipMemPoolProps*>self._ptr)[i].

get_location(self, i)

Get value of location of (<chip.hipMemPoolProps*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.hipMemPoolProps*>self._ptr)[i].

get_win32SecurityAttributes(self, i)

Get value win32SecurityAttributes of (<chip.hipMemPoolProps*>self._ptr)[i].

handleTypes

Handle types that will be supported by allocations from the pool

is_ptr_null

If data pointer is NULL.

location

Location where allocations should reside

reserved

Reserved for future use, must be 0

set_allocType(self, i, value)

Set value allocType of (<chip.hipMemPoolProps*>self._ptr)[i].

set_handleTypes(self, i, value)

Set value handleTypes of (<chip.hipMemPoolProps*>self._ptr)[i].

set_win32SecurityAttributes(self, i, value)

Set value win32SecurityAttributes of (<chip.hipMemPoolProps*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

win32SecurityAttributes

Windows-specific LPSECURITYATTRIBUTES required when hipMemHandleTypeWin32 is specified Note:

Setting this win32SecurityAttributes can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

class cuda.cuda.cudaMemPoolProps

Bases: hipMemPoolProps

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemPoolProps.

Constructor for type hipMemPoolProps.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

allocType

Allocation type. Currently must be specified as hipMemAllocationTypePinned

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemPoolProps from a Python object.

Derives a hipMemPoolProps from the given Python object pyobj. In case pyobj is itself an hipMemPoolProps reference, this method returns it directly. No new hipMemPoolProps is created in this case.

get_allocType(self, i)

Get value of allocType of (<chip.hipMemPoolProps*>self._ptr)[i].

get_handleTypes(self, i)

Get value of handleTypes of (<chip.hipMemPoolProps*>self._ptr)[i].

get_location(self, i)

Get value of location of (<chip.hipMemPoolProps*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.hipMemPoolProps*>self._ptr)[i].

get_win32SecurityAttributes(self, i)

Get value win32SecurityAttributes of (<chip.hipMemPoolProps*>self._ptr)[i].

handleTypes

Handle types that will be supported by allocations from the pool

is_ptr_null

If data pointer is NULL.

location

Location where allocations should reside

reserved

Reserved for future use, must be 0

set_allocType(self, i, value)

Set value allocType of (<chip.hipMemPoolProps*>self._ptr)[i].

set_handleTypes(self, i, value)

Set value handleTypes of (<chip.hipMemPoolProps*>self._ptr)[i].

set_win32SecurityAttributes(self, i, value)

Set value win32SecurityAttributes of (<chip.hipMemPoolProps*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

win32SecurityAttributes

Windows-specific LPSECURITYATTRIBUTES required when hipMemHandleTypeWin32 is specified Note:

Setting this win32SecurityAttributes can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

class cuda.cuda.CUmemPoolPtrExportData

Bases: hipMemPoolPtrExportData

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemPoolPtrExportData.

Constructor for type hipMemPoolPtrExportData.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemPoolPtrExportData from a Python object.

Derives a hipMemPoolPtrExportData from the given Python object pyobj. In case pyobj is itself an hipMemPoolPtrExportData reference, this method returns it directly. No new hipMemPoolPtrExportData is created in this case.

get_reserved(self, i)

Get value of reserved of (<chip.hipMemPoolPtrExportData*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

reserved

(undocumented)

class cuda.cuda.CUmemPoolPtrExportData_st

Bases: hipMemPoolPtrExportData

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemPoolPtrExportData.

Constructor for type hipMemPoolPtrExportData.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemPoolPtrExportData from a Python object.

Derives a hipMemPoolPtrExportData from the given Python object pyobj. In case pyobj is itself an hipMemPoolPtrExportData reference, this method returns it directly. No new hipMemPoolPtrExportData is created in this case.

get_reserved(self, i)

Get value of reserved of (<chip.hipMemPoolPtrExportData*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

reserved

(undocumented)

class cuda.cuda.CUmemPoolPtrExportData_v1

Bases: hipMemPoolPtrExportData

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemPoolPtrExportData.

Constructor for type hipMemPoolPtrExportData.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemPoolPtrExportData from a Python object.

Derives a hipMemPoolPtrExportData from the given Python object pyobj. In case pyobj is itself an hipMemPoolPtrExportData reference, this method returns it directly. No new hipMemPoolPtrExportData is created in this case.

get_reserved(self, i)

Get value of reserved of (<chip.hipMemPoolPtrExportData*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

reserved

(undocumented)

class cuda.cuda.cudaMemPoolPtrExportData

Bases: hipMemPoolPtrExportData

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemPoolPtrExportData.

Constructor for type hipMemPoolPtrExportData.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemPoolPtrExportData from a Python object.

Derives a hipMemPoolPtrExportData from the given Python object pyobj. In case pyobj is itself an hipMemPoolPtrExportData reference, this method returns it directly. No new hipMemPoolPtrExportData is created in this case.

get_reserved(self, i)

Get value of reserved of (<chip.hipMemPoolPtrExportData*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

reserved

(undocumented)

class cuda.cuda.CUjit_option(value)

Bases: _hipJitOption__Base

An enumeration.

hipJitOptionMaxRegisters = 0
hipJitOptionThreadsPerBlock = 1
hipJitOptionWallTime = 2
hipJitOptionInfoLogBuffer = 3
hipJitOptionInfoLogBufferSizeBytes = 4
hipJitOptionErrorLogBuffer = 5
hipJitOptionErrorLogBufferSizeBytes = 6
hipJitOptionOptimizationLevel = 7
hipJitOptionTargetFromContext = 8
hipJitOptionTarget = 9
hipJitOptionFallbackStrategy = 10
hipJitOptionGenerateDebugInfo = 11
hipJitOptionLogVerbose = 12
hipJitOptionGenerateLineInfo = 13
hipJitOptionCacheMode = 14
hipJitOptionSm3xOpt = 15
hipJitOptionFastCompile = 16
hipJitOptionNumOptions = 17
class cuda.cuda.CUjit_option_enum(value)

Bases: _hipJitOption__Base

An enumeration.

hipJitOptionMaxRegisters = 0
hipJitOptionThreadsPerBlock = 1
hipJitOptionWallTime = 2
hipJitOptionInfoLogBuffer = 3
hipJitOptionInfoLogBufferSizeBytes = 4
hipJitOptionErrorLogBuffer = 5
hipJitOptionErrorLogBufferSizeBytes = 6
hipJitOptionOptimizationLevel = 7
hipJitOptionTargetFromContext = 8
hipJitOptionTarget = 9
hipJitOptionFallbackStrategy = 10
hipJitOptionGenerateDebugInfo = 11
hipJitOptionLogVerbose = 12
hipJitOptionGenerateLineInfo = 13
hipJitOptionCacheMode = 14
hipJitOptionSm3xOpt = 15
hipJitOptionFastCompile = 16
hipJitOptionNumOptions = 17
class cuda.cuda.cudaFuncAttribute(value)

Bases: _hipFuncAttribute__Base

An enumeration.

hipFuncAttributeMaxDynamicSharedMemorySize = 8
cudaFuncAttributeMaxDynamicSharedMemorySize = 8
hipFuncAttributePreferredSharedMemoryCarveout = 9
cudaFuncAttributePreferredSharedMemoryCarveout = 9
hipFuncAttributeMax = 10
cudaFuncAttributeMax = 10
class cuda.cuda.CUfunc_cache(value)

Bases: _hipFuncCache_t__Base

An enumeration.

hipFuncCachePreferNone = 0
CU_FUNC_CACHE_PREFER_NONE = 0
cudaFuncCachePreferNone = 0
hipFuncCachePreferShared = 1
CU_FUNC_CACHE_PREFER_SHARED = 1
cudaFuncCachePreferShared = 1
hipFuncCachePreferL1 = 2
CU_FUNC_CACHE_PREFER_L1 = 2
cudaFuncCachePreferL1 = 2
hipFuncCachePreferEqual = 3
CU_FUNC_CACHE_PREFER_EQUAL = 3
cudaFuncCachePreferEqual = 3
class cuda.cuda.CUfunc_cache_enum(value)

Bases: _hipFuncCache_t__Base

An enumeration.

hipFuncCachePreferNone = 0
CU_FUNC_CACHE_PREFER_NONE = 0
cudaFuncCachePreferNone = 0
hipFuncCachePreferShared = 1
CU_FUNC_CACHE_PREFER_SHARED = 1
cudaFuncCachePreferShared = 1
hipFuncCachePreferL1 = 2
CU_FUNC_CACHE_PREFER_L1 = 2
cudaFuncCachePreferL1 = 2
hipFuncCachePreferEqual = 3
CU_FUNC_CACHE_PREFER_EQUAL = 3
cudaFuncCachePreferEqual = 3
class cuda.cuda.cudaFuncCache(value)

Bases: _hipFuncCache_t__Base

An enumeration.

hipFuncCachePreferNone = 0
CU_FUNC_CACHE_PREFER_NONE = 0
cudaFuncCachePreferNone = 0
hipFuncCachePreferShared = 1
CU_FUNC_CACHE_PREFER_SHARED = 1
cudaFuncCachePreferShared = 1
hipFuncCachePreferL1 = 2
CU_FUNC_CACHE_PREFER_L1 = 2
cudaFuncCachePreferL1 = 2
hipFuncCachePreferEqual = 3
CU_FUNC_CACHE_PREFER_EQUAL = 3
cudaFuncCachePreferEqual = 3
class cuda.cuda.CUsharedconfig(value)

Bases: _hipSharedMemConfig__Base

An enumeration.

hipSharedMemBankSizeDefault = 0
CU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE = 0
cudaSharedMemBankSizeDefault = 0
hipSharedMemBankSizeFourByte = 1
CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE = 1
cudaSharedMemBankSizeFourByte = 1
hipSharedMemBankSizeEightByte = 2
CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE = 2
cudaSharedMemBankSizeEightByte = 2
class cuda.cuda.CUsharedconfig_enum(value)

Bases: _hipSharedMemConfig__Base

An enumeration.

hipSharedMemBankSizeDefault = 0
CU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE = 0
cudaSharedMemBankSizeDefault = 0
hipSharedMemBankSizeFourByte = 1
CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE = 1
cudaSharedMemBankSizeFourByte = 1
hipSharedMemBankSizeEightByte = 2
CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE = 2
cudaSharedMemBankSizeEightByte = 2
class cuda.cuda.cudaSharedMemConfig(value)

Bases: _hipSharedMemConfig__Base

An enumeration.

hipSharedMemBankSizeDefault = 0
CU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE = 0
cudaSharedMemBankSizeDefault = 0
hipSharedMemBankSizeFourByte = 1
CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE = 1
cudaSharedMemBankSizeFourByte = 1
hipSharedMemBankSizeEightByte = 2
CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE = 2
cudaSharedMemBankSizeEightByte = 2
cuda.cuda.cudaLaunchParams

alias of hipLaunchParams_t

class cuda.cuda.CUDA_LAUNCH_PARAMS_st

Bases: hipFunctionLaunchParams_t

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipFunctionLaunchParams_t.

Constructor for type hipFunctionLaunchParams_t.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

blockDimX

X dimension of each thread block

blockDimY

Y dimension of each thread block

blockDimZ

Z dimension of each thread block

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipFunctionLaunchParams_t from a Python object.

Derives a hipFunctionLaunchParams_t from the given Python object pyobj. In case pyobj is itself an hipFunctionLaunchParams_t reference, this method returns it directly. No new hipFunctionLaunchParams_t is created in this case.

get_blockDimX(self, i)

Get value blockDimX of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

get_blockDimY(self, i)

Get value blockDimY of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

get_blockDimZ(self, i)

Get value blockDimZ of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

get_gridDimX(self, i)

Get value gridDimX of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

get_gridDimY(self, i)

Get value gridDimY of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

get_gridDimZ(self, i)

Get value gridDimZ of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

get_kernelParams(self, i)

Get value kernelParams of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

get_sharedMemBytes(self, i)

Get value sharedMemBytes of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

gridDimX

Width(X) of grid in blocks

gridDimY

Height(Y) of grid in blocks

gridDimZ

Depth(Z) of grid in blocks

is_ptr_null

If data pointer is NULL.

kernelParams

Kernel parameters Note:

Setting this kernelParams can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

set_blockDimX(self, i, unsigned int value)

Set value blockDimX of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

set_blockDimY(self, i, unsigned int value)

Set value blockDimY of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

set_blockDimZ(self, i, unsigned int value)

Set value blockDimZ of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

set_gridDimX(self, i, unsigned int value)

Set value gridDimX of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

set_gridDimY(self, i, unsigned int value)

Set value gridDimY of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

set_gridDimZ(self, i, unsigned int value)

Set value gridDimZ of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

set_kernelParams(self, i, value)

Set value kernelParams of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_sharedMemBytes(self, i, unsigned int value)

Set value sharedMemBytes of (<chip.hipFunctionLaunchParams_t*>self._ptr)[i].

sharedMemBytes

Shared memory

cuda.cuda.CUDA_LAUNCH_PARAMS

alias of hipFunctionLaunchParams_t

cuda.cuda.CUDA_LAUNCH_PARAMS_v1

alias of hipFunctionLaunchParams_t

class cuda.cuda.CUexternalMemoryHandleType_enum(value)

Bases: _hipExternalMemoryHandleType_enum__Base

An enumeration.

hipExternalMemoryHandleTypeOpaqueFd = 1
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD = 1
cudaExternalMemoryHandleTypeOpaqueFd = 1
hipExternalMemoryHandleTypeOpaqueWin32 = 2
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32 = 2
cudaExternalMemoryHandleTypeOpaqueWin32 = 2
hipExternalMemoryHandleTypeOpaqueWin32Kmt = 3
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT = 3
cudaExternalMemoryHandleTypeOpaqueWin32Kmt = 3
hipExternalMemoryHandleTypeD3D12Heap = 4
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP = 4
cudaExternalMemoryHandleTypeD3D12Heap = 4
hipExternalMemoryHandleTypeD3D12Resource = 5
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE = 5
cudaExternalMemoryHandleTypeD3D12Resource = 5
hipExternalMemoryHandleTypeD3D11Resource = 6
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE = 6
cudaExternalMemoryHandleTypeD3D11Resource = 6
hipExternalMemoryHandleTypeD3D11ResourceKmt = 7
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE_KMT = 7
cudaExternalMemoryHandleTypeD3D11ResourceKmt = 7
hipExternalMemoryHandleTypeNvSciBuf = 8
class cuda.cuda.CUexternalMemoryHandleType(value)

Bases: _hipExternalMemoryHandleType_enum__Base

An enumeration.

hipExternalMemoryHandleTypeOpaqueFd = 1
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD = 1
cudaExternalMemoryHandleTypeOpaqueFd = 1
hipExternalMemoryHandleTypeOpaqueWin32 = 2
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32 = 2
cudaExternalMemoryHandleTypeOpaqueWin32 = 2
hipExternalMemoryHandleTypeOpaqueWin32Kmt = 3
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT = 3
cudaExternalMemoryHandleTypeOpaqueWin32Kmt = 3
hipExternalMemoryHandleTypeD3D12Heap = 4
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP = 4
cudaExternalMemoryHandleTypeD3D12Heap = 4
hipExternalMemoryHandleTypeD3D12Resource = 5
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE = 5
cudaExternalMemoryHandleTypeD3D12Resource = 5
hipExternalMemoryHandleTypeD3D11Resource = 6
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE = 6
cudaExternalMemoryHandleTypeD3D11Resource = 6
hipExternalMemoryHandleTypeD3D11ResourceKmt = 7
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE_KMT = 7
cudaExternalMemoryHandleTypeD3D11ResourceKmt = 7
hipExternalMemoryHandleTypeNvSciBuf = 8
class cuda.cuda.cudaExternalMemoryHandleType(value)

Bases: _hipExternalMemoryHandleType_enum__Base

An enumeration.

hipExternalMemoryHandleTypeOpaqueFd = 1
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD = 1
cudaExternalMemoryHandleTypeOpaqueFd = 1
hipExternalMemoryHandleTypeOpaqueWin32 = 2
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32 = 2
cudaExternalMemoryHandleTypeOpaqueWin32 = 2
hipExternalMemoryHandleTypeOpaqueWin32Kmt = 3
CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT = 3
cudaExternalMemoryHandleTypeOpaqueWin32Kmt = 3
hipExternalMemoryHandleTypeD3D12Heap = 4
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP = 4
cudaExternalMemoryHandleTypeD3D12Heap = 4
hipExternalMemoryHandleTypeD3D12Resource = 5
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE = 5
cudaExternalMemoryHandleTypeD3D12Resource = 5
hipExternalMemoryHandleTypeD3D11Resource = 6
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE = 6
cudaExternalMemoryHandleTypeD3D11Resource = 6
hipExternalMemoryHandleTypeD3D11ResourceKmt = 7
CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE_KMT = 7
cudaExternalMemoryHandleTypeD3D11ResourceKmt = 7
hipExternalMemoryHandleTypeNvSciBuf = 8
class cuda.cuda.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st

Bases: hipExternalMemoryHandleDesc_st

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalMemoryHandleDesc_st.

Constructor for type hipExternalMemoryHandleDesc_st.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

flags

(undocumented)

static fromObj(pyobj)

Creates a hipExternalMemoryHandleDesc_st from a Python object.

Derives a hipExternalMemoryHandleDesc_st from the given Python object pyobj. In case pyobj is itself an hipExternalMemoryHandleDesc_st reference, this method returns it directly. No new hipExternalMemoryHandleDesc_st is created in this case.

get_flags(self, i)

Get value flags of (<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].

get_handle(self, i)

Get value of handle of (<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].

get_size(self, i)

Get value size of (<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].

get_type(self, i)

Get value of type of (<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].

handle

(undocumented)

is_ptr_null

If data pointer is NULL.

reserved

(undocumented)

set_flags(self, i, unsigned int value)

Set value flags of (<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].

set_size(self, i, unsigned long long value)

Set value size of (<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].

set_type(self, i, value)

Set value type of (<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].

size

(undocumented)

type

(undocumented)

cuda.cuda.CUDA_EXTERNAL_MEMORY_HANDLE_DESC

alias of hipExternalMemoryHandleDesc_st

cuda.cuda.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1

alias of hipExternalMemoryHandleDesc_st

cuda.cuda.cudaExternalMemoryHandleDesc

alias of hipExternalMemoryHandleDesc_st

class cuda.cuda.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st

Bases: hipExternalMemoryBufferDesc_st

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalMemoryBufferDesc_st.

Constructor for type hipExternalMemoryBufferDesc_st.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

flags

(undocumented)

static fromObj(pyobj)

Creates a hipExternalMemoryBufferDesc_st from a Python object.

Derives a hipExternalMemoryBufferDesc_st from the given Python object pyobj. In case pyobj is itself an hipExternalMemoryBufferDesc_st reference, this method returns it directly. No new hipExternalMemoryBufferDesc_st is created in this case.

get_flags(self, i)

Get value flags of (<chip.hipExternalMemoryBufferDesc_st*>self._ptr)[i].

get_offset(self, i)

Get value offset of (<chip.hipExternalMemoryBufferDesc_st*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.hipExternalMemoryBufferDesc_st*>self._ptr)[i].

get_size(self, i)

Get value size of (<chip.hipExternalMemoryBufferDesc_st*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

offset

(undocumented)

reserved

(undocumented)

set_flags(self, i, unsigned int value)

Set value flags of (<chip.hipExternalMemoryBufferDesc_st*>self._ptr)[i].

set_offset(self, i, unsigned long long value)

Set value offset of (<chip.hipExternalMemoryBufferDesc_st*>self._ptr)[i].

set_size(self, i, unsigned long long value)

Set value size of (<chip.hipExternalMemoryBufferDesc_st*>self._ptr)[i].

size

(undocumented)

cuda.cuda.CUDA_EXTERNAL_MEMORY_BUFFER_DESC

alias of hipExternalMemoryBufferDesc_st

cuda.cuda.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1

alias of hipExternalMemoryBufferDesc_st

cuda.cuda.cudaExternalMemoryBufferDesc

alias of hipExternalMemoryBufferDesc_st

cuda.cuda.CUexternalMemory

alias of hipExternalMemory_t

cuda.cuda.cudaExternalMemory_t

alias of hipExternalMemory_t

class cuda.cuda.CUexternalSemaphoreHandleType_enum(value)

Bases: _hipExternalSemaphoreHandleType_enum__Base

An enumeration.

hipExternalSemaphoreHandleTypeOpaqueFd = 1
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD = 1
cudaExternalSemaphoreHandleTypeOpaqueFd = 1
hipExternalSemaphoreHandleTypeOpaqueWin32 = 2
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32 = 2
cudaExternalSemaphoreHandleTypeOpaqueWin32 = 2
hipExternalSemaphoreHandleTypeOpaqueWin32Kmt = 3
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT = 3
cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt = 3
hipExternalSemaphoreHandleTypeD3D12Fence = 4
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE = 4
cudaExternalSemaphoreHandleTypeD3D12Fence = 4
hipExternalSemaphoreHandleTypeD3D11Fence = 5
hipExternalSemaphoreHandleTypeNvSciSync = 6
hipExternalSemaphoreHandleTypeKeyedMutex = 7
hipExternalSemaphoreHandleTypeKeyedMutexKmt = 8
hipExternalSemaphoreHandleTypeTimelineSemaphoreFd = 9
hipExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = 10
class cuda.cuda.CUexternalSemaphoreHandleType(value)

Bases: _hipExternalSemaphoreHandleType_enum__Base

An enumeration.

hipExternalSemaphoreHandleTypeOpaqueFd = 1
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD = 1
cudaExternalSemaphoreHandleTypeOpaqueFd = 1
hipExternalSemaphoreHandleTypeOpaqueWin32 = 2
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32 = 2
cudaExternalSemaphoreHandleTypeOpaqueWin32 = 2
hipExternalSemaphoreHandleTypeOpaqueWin32Kmt = 3
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT = 3
cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt = 3
hipExternalSemaphoreHandleTypeD3D12Fence = 4
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE = 4
cudaExternalSemaphoreHandleTypeD3D12Fence = 4
hipExternalSemaphoreHandleTypeD3D11Fence = 5
hipExternalSemaphoreHandleTypeNvSciSync = 6
hipExternalSemaphoreHandleTypeKeyedMutex = 7
hipExternalSemaphoreHandleTypeKeyedMutexKmt = 8
hipExternalSemaphoreHandleTypeTimelineSemaphoreFd = 9
hipExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = 10
class cuda.cuda.cudaExternalSemaphoreHandleType(value)

Bases: _hipExternalSemaphoreHandleType_enum__Base

An enumeration.

hipExternalSemaphoreHandleTypeOpaqueFd = 1
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD = 1
cudaExternalSemaphoreHandleTypeOpaqueFd = 1
hipExternalSemaphoreHandleTypeOpaqueWin32 = 2
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32 = 2
cudaExternalSemaphoreHandleTypeOpaqueWin32 = 2
hipExternalSemaphoreHandleTypeOpaqueWin32Kmt = 3
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT = 3
cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt = 3
hipExternalSemaphoreHandleTypeD3D12Fence = 4
CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE = 4
cudaExternalSemaphoreHandleTypeD3D12Fence = 4
hipExternalSemaphoreHandleTypeD3D11Fence = 5
hipExternalSemaphoreHandleTypeNvSciSync = 6
hipExternalSemaphoreHandleTypeKeyedMutex = 7
hipExternalSemaphoreHandleTypeKeyedMutexKmt = 8
hipExternalSemaphoreHandleTypeTimelineSemaphoreFd = 9
hipExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = 10
class cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st

Bases: hipExternalSemaphoreHandleDesc_st

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreHandleDesc_st.

Constructor for type hipExternalSemaphoreHandleDesc_st.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

flags

(undocumented)

static fromObj(pyobj)

Creates a hipExternalSemaphoreHandleDesc_st from a Python object.

Derives a hipExternalSemaphoreHandleDesc_st from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreHandleDesc_st reference, this method returns it directly. No new hipExternalSemaphoreHandleDesc_st is created in this case.

get_flags(self, i)

Get value flags of (<chip.hipExternalSemaphoreHandleDesc_st*>self._ptr)[i].

get_handle(self, i)

Get value of handle of (<chip.hipExternalSemaphoreHandleDesc_st*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.hipExternalSemaphoreHandleDesc_st*>self._ptr)[i].

get_type(self, i)

Get value of type of (<chip.hipExternalSemaphoreHandleDesc_st*>self._ptr)[i].

handle

(undocumented)

is_ptr_null

If data pointer is NULL.

reserved

(undocumented)

set_flags(self, i, unsigned int value)

Set value flags of (<chip.hipExternalSemaphoreHandleDesc_st*>self._ptr)[i].

set_type(self, i, value)

Set value type of (<chip.hipExternalSemaphoreHandleDesc_st*>self._ptr)[i].

type

(undocumented)

cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC

alias of hipExternalSemaphoreHandleDesc_st

cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1

alias of hipExternalSemaphoreHandleDesc_st

cuda.cuda.cudaExternalSemaphoreHandleDesc

alias of hipExternalSemaphoreHandleDesc_st

cuda.cuda.CUexternalSemaphore

alias of hipExternalSemaphore_t

cuda.cuda.cudaExternalSemaphore_t

alias of hipExternalSemaphore_t

class cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st

Bases: hipExternalSemaphoreSignalParams_st

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreSignalParams_st.

Constructor for type hipExternalSemaphoreSignalParams_st.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

flags

(undocumented)

static fromObj(pyobj)

Creates a hipExternalSemaphoreSignalParams_st from a Python object.

Derives a hipExternalSemaphoreSignalParams_st from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreSignalParams_st reference, this method returns it directly. No new hipExternalSemaphoreSignalParams_st is created in this case.

get_flags(self, i)

Get value flags of (<chip.hipExternalSemaphoreSignalParams_st*>self._ptr)[i].

get_params(self, i)

Get value of params of (<chip.hipExternalSemaphoreSignalParams_st*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.hipExternalSemaphoreSignalParams_st*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

params

(undocumented)

reserved

(undocumented)

set_flags(self, i, unsigned int value)

Set value flags of (<chip.hipExternalSemaphoreSignalParams_st*>self._ptr)[i].

cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS

alias of hipExternalSemaphoreSignalParams_st

cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1

alias of hipExternalSemaphoreSignalParams_st

cuda.cuda.cudaExternalSemaphoreSignalParams

alias of hipExternalSemaphoreSignalParams_st

cuda.cuda.cudaExternalSemaphoreSignalParams_v1

alias of hipExternalSemaphoreSignalParams_st

class cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st

Bases: hipExternalSemaphoreWaitParams_st

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreWaitParams_st.

Constructor for type hipExternalSemaphoreWaitParams_st.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

flags

(undocumented)

static fromObj(pyobj)

Creates a hipExternalSemaphoreWaitParams_st from a Python object.

Derives a hipExternalSemaphoreWaitParams_st from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreWaitParams_st reference, this method returns it directly. No new hipExternalSemaphoreWaitParams_st is created in this case.

get_flags(self, i)

Get value flags of (<chip.hipExternalSemaphoreWaitParams_st*>self._ptr)[i].

get_params(self, i)

Get value of params of (<chip.hipExternalSemaphoreWaitParams_st*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.hipExternalSemaphoreWaitParams_st*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

params

(undocumented)

reserved

(undocumented)

set_flags(self, i, unsigned int value)

Set value flags of (<chip.hipExternalSemaphoreWaitParams_st*>self._ptr)[i].

cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS

alias of hipExternalSemaphoreWaitParams_st

cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1

alias of hipExternalSemaphoreWaitParams_st

cuda.cuda.cudaExternalSemaphoreWaitParams

alias of hipExternalSemaphoreWaitParams_st

cuda.cuda.cudaExternalSemaphoreWaitParams_v1

alias of hipExternalSemaphoreWaitParams_st

class cuda.cuda.CUgraphicsRegisterFlags(value)

Bases: _hipGraphicsRegisterFlags__Base

An enumeration.

hipGraphicsRegisterFlagsNone = 0
CU_GRAPHICS_REGISTER_FLAGS_NONE = 0
cudaGraphicsRegisterFlagsNone = 0
hipGraphicsRegisterFlagsReadOnly = 1
CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY = 1
cudaGraphicsRegisterFlagsReadOnly = 1
hipGraphicsRegisterFlagsWriteDiscard = 2
CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD = 2
cudaGraphicsRegisterFlagsWriteDiscard = 2
hipGraphicsRegisterFlagsSurfaceLoadStore = 4
CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST = 4
cudaGraphicsRegisterFlagsSurfaceLoadStore = 4
hipGraphicsRegisterFlagsTextureGather = 8
CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER = 8
cudaGraphicsRegisterFlagsTextureGather = 8
class cuda.cuda.CUgraphicsRegisterFlags_enum(value)

Bases: _hipGraphicsRegisterFlags__Base

An enumeration.

hipGraphicsRegisterFlagsNone = 0
CU_GRAPHICS_REGISTER_FLAGS_NONE = 0
cudaGraphicsRegisterFlagsNone = 0
hipGraphicsRegisterFlagsReadOnly = 1
CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY = 1
cudaGraphicsRegisterFlagsReadOnly = 1
hipGraphicsRegisterFlagsWriteDiscard = 2
CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD = 2
cudaGraphicsRegisterFlagsWriteDiscard = 2
hipGraphicsRegisterFlagsSurfaceLoadStore = 4
CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST = 4
cudaGraphicsRegisterFlagsSurfaceLoadStore = 4
hipGraphicsRegisterFlagsTextureGather = 8
CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER = 8
cudaGraphicsRegisterFlagsTextureGather = 8
class cuda.cuda.cudaGraphicsRegisterFlags(value)

Bases: _hipGraphicsRegisterFlags__Base

An enumeration.

hipGraphicsRegisterFlagsNone = 0
CU_GRAPHICS_REGISTER_FLAGS_NONE = 0
cudaGraphicsRegisterFlagsNone = 0
hipGraphicsRegisterFlagsReadOnly = 1
CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY = 1
cudaGraphicsRegisterFlagsReadOnly = 1
hipGraphicsRegisterFlagsWriteDiscard = 2
CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD = 2
cudaGraphicsRegisterFlagsWriteDiscard = 2
hipGraphicsRegisterFlagsSurfaceLoadStore = 4
CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST = 4
cudaGraphicsRegisterFlagsSurfaceLoadStore = 4
hipGraphicsRegisterFlagsTextureGather = 8
CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER = 8
cudaGraphicsRegisterFlagsTextureGather = 8
cuda.cuda.CUgraphicsResource_st

alias of _hipGraphicsResource

cuda.cuda.cudaGraphicsResource

alias of _hipGraphicsResource

cuda.cuda.CUgraphicsResource

alias of _hipGraphicsResource

cuda.cuda.cudaGraphicsResource_t

alias of _hipGraphicsResource

class cuda.cuda.CUgraph_st

Bases: ihipGraph

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a ihipGraph from a Python object.

Derives a ihipGraph from the given Python object pyobj. In case pyobj is itself an ihipGraph reference, this method returns it directly. No new ihipGraph is created in this case.

is_ptr_null

If data pointer is NULL.

cuda.cuda.CUgraph

alias of ihipGraph

cuda.cuda.cudaGraph_t

alias of ihipGraph

class cuda.cuda.CUgraphNode_st

Bases: hipGraphNode

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipGraphNode from a Python object.

Derives a hipGraphNode from the given Python object pyobj. In case pyobj is itself an hipGraphNode reference, this method returns it directly. No new hipGraphNode is created in this case.

is_ptr_null

If data pointer is NULL.

cuda.cuda.CUgraphNode

alias of hipGraphNode

cuda.cuda.cudaGraphNode_t

alias of hipGraphNode

class cuda.cuda.CUgraphExec_st

Bases: hipGraphExec

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipGraphExec from a Python object.

Derives a hipGraphExec from the given Python object pyobj. In case pyobj is itself an hipGraphExec reference, this method returns it directly. No new hipGraphExec is created in this case.

is_ptr_null

If data pointer is NULL.

cuda.cuda.CUgraphExec

alias of hipGraphExec

cuda.cuda.cudaGraphExec_t

alias of hipGraphExec

class cuda.cuda.CUuserObject_st

Bases: hipUserObject

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipUserObject from a Python object.

Derives a hipUserObject from the given Python object pyobj. In case pyobj is itself an hipUserObject reference, this method returns it directly. No new hipUserObject is created in this case.

is_ptr_null

If data pointer is NULL.

cuda.cuda.CUuserObject

alias of hipUserObject

cuda.cuda.cudaUserObject_t

alias of hipUserObject

class cuda.cuda.CUgraphNodeType(value)

Bases: _hipGraphNodeType__Base

An enumeration.

hipGraphNodeTypeKernel = 0
CU_GRAPH_NODE_TYPE_KERNEL = 0
cudaGraphNodeTypeKernel = 0
hipGraphNodeTypeMemcpy = 1
CU_GRAPH_NODE_TYPE_MEMCPY = 1
cudaGraphNodeTypeMemcpy = 1
hipGraphNodeTypeMemset = 2
CU_GRAPH_NODE_TYPE_MEMSET = 2
cudaGraphNodeTypeMemset = 2
hipGraphNodeTypeHost = 3
CU_GRAPH_NODE_TYPE_HOST = 3
cudaGraphNodeTypeHost = 3
hipGraphNodeTypeGraph = 4
CU_GRAPH_NODE_TYPE_GRAPH = 4
cudaGraphNodeTypeGraph = 4
hipGraphNodeTypeEmpty = 5
CU_GRAPH_NODE_TYPE_EMPTY = 5
cudaGraphNodeTypeEmpty = 5
hipGraphNodeTypeWaitEvent = 6
CU_GRAPH_NODE_TYPE_WAIT_EVENT = 6
cudaGraphNodeTypeWaitEvent = 6
hipGraphNodeTypeEventRecord = 7
CU_GRAPH_NODE_TYPE_EVENT_RECORD = 7
cudaGraphNodeTypeEventRecord = 7
hipGraphNodeTypeExtSemaphoreSignal = 8
CU_GRAPH_NODE_TYPE_EXT_SEMAS_SIGNAL = 8
cudaGraphNodeTypeExtSemaphoreSignal = 8
hipGraphNodeTypeExtSemaphoreWait = 9
CU_GRAPH_NODE_TYPE_EXT_SEMAS_WAIT = 9
cudaGraphNodeTypeExtSemaphoreWait = 9
hipGraphNodeTypeMemAlloc = 10
CU_GRAPH_NODE_TYPE_MEM_ALLOC = 10
cudaGraphNodeTypeMemAlloc = 10
hipGraphNodeTypeMemFree = 11
CU_GRAPH_NODE_TYPE_MEM_FREE = 11
cudaGraphNodeTypeMemFree = 11
hipGraphNodeTypeMemcpyFromSymbol = 12
hipGraphNodeTypeMemcpyToSymbol = 13
hipGraphNodeTypeCount = 14
CU_GRAPH_NODE_TYPE_COUNT = 14
cudaGraphNodeTypeCount = 14
class cuda.cuda.CUgraphNodeType_enum(value)

Bases: _hipGraphNodeType__Base

An enumeration.

hipGraphNodeTypeKernel = 0
CU_GRAPH_NODE_TYPE_KERNEL = 0
cudaGraphNodeTypeKernel = 0
hipGraphNodeTypeMemcpy = 1
CU_GRAPH_NODE_TYPE_MEMCPY = 1
cudaGraphNodeTypeMemcpy = 1
hipGraphNodeTypeMemset = 2
CU_GRAPH_NODE_TYPE_MEMSET = 2
cudaGraphNodeTypeMemset = 2
hipGraphNodeTypeHost = 3
CU_GRAPH_NODE_TYPE_HOST = 3
cudaGraphNodeTypeHost = 3
hipGraphNodeTypeGraph = 4
CU_GRAPH_NODE_TYPE_GRAPH = 4
cudaGraphNodeTypeGraph = 4
hipGraphNodeTypeEmpty = 5
CU_GRAPH_NODE_TYPE_EMPTY = 5
cudaGraphNodeTypeEmpty = 5
hipGraphNodeTypeWaitEvent = 6
CU_GRAPH_NODE_TYPE_WAIT_EVENT = 6
cudaGraphNodeTypeWaitEvent = 6
hipGraphNodeTypeEventRecord = 7
CU_GRAPH_NODE_TYPE_EVENT_RECORD = 7
cudaGraphNodeTypeEventRecord = 7
hipGraphNodeTypeExtSemaphoreSignal = 8
CU_GRAPH_NODE_TYPE_EXT_SEMAS_SIGNAL = 8
cudaGraphNodeTypeExtSemaphoreSignal = 8
hipGraphNodeTypeExtSemaphoreWait = 9
CU_GRAPH_NODE_TYPE_EXT_SEMAS_WAIT = 9
cudaGraphNodeTypeExtSemaphoreWait = 9
hipGraphNodeTypeMemAlloc = 10
CU_GRAPH_NODE_TYPE_MEM_ALLOC = 10
cudaGraphNodeTypeMemAlloc = 10
hipGraphNodeTypeMemFree = 11
CU_GRAPH_NODE_TYPE_MEM_FREE = 11
cudaGraphNodeTypeMemFree = 11
hipGraphNodeTypeMemcpyFromSymbol = 12
hipGraphNodeTypeMemcpyToSymbol = 13
hipGraphNodeTypeCount = 14
CU_GRAPH_NODE_TYPE_COUNT = 14
cudaGraphNodeTypeCount = 14
class cuda.cuda.cudaGraphNodeType(value)

Bases: _hipGraphNodeType__Base

An enumeration.

hipGraphNodeTypeKernel = 0
CU_GRAPH_NODE_TYPE_KERNEL = 0
cudaGraphNodeTypeKernel = 0
hipGraphNodeTypeMemcpy = 1
CU_GRAPH_NODE_TYPE_MEMCPY = 1
cudaGraphNodeTypeMemcpy = 1
hipGraphNodeTypeMemset = 2
CU_GRAPH_NODE_TYPE_MEMSET = 2
cudaGraphNodeTypeMemset = 2
hipGraphNodeTypeHost = 3
CU_GRAPH_NODE_TYPE_HOST = 3
cudaGraphNodeTypeHost = 3
hipGraphNodeTypeGraph = 4
CU_GRAPH_NODE_TYPE_GRAPH = 4
cudaGraphNodeTypeGraph = 4
hipGraphNodeTypeEmpty = 5
CU_GRAPH_NODE_TYPE_EMPTY = 5
cudaGraphNodeTypeEmpty = 5
hipGraphNodeTypeWaitEvent = 6
CU_GRAPH_NODE_TYPE_WAIT_EVENT = 6
cudaGraphNodeTypeWaitEvent = 6
hipGraphNodeTypeEventRecord = 7
CU_GRAPH_NODE_TYPE_EVENT_RECORD = 7
cudaGraphNodeTypeEventRecord = 7
hipGraphNodeTypeExtSemaphoreSignal = 8
CU_GRAPH_NODE_TYPE_EXT_SEMAS_SIGNAL = 8
cudaGraphNodeTypeExtSemaphoreSignal = 8
hipGraphNodeTypeExtSemaphoreWait = 9
CU_GRAPH_NODE_TYPE_EXT_SEMAS_WAIT = 9
cudaGraphNodeTypeExtSemaphoreWait = 9
hipGraphNodeTypeMemAlloc = 10
CU_GRAPH_NODE_TYPE_MEM_ALLOC = 10
cudaGraphNodeTypeMemAlloc = 10
hipGraphNodeTypeMemFree = 11
CU_GRAPH_NODE_TYPE_MEM_FREE = 11
cudaGraphNodeTypeMemFree = 11
hipGraphNodeTypeMemcpyFromSymbol = 12
hipGraphNodeTypeMemcpyToSymbol = 13
hipGraphNodeTypeCount = 14
CU_GRAPH_NODE_TYPE_COUNT = 14
cudaGraphNodeTypeCount = 14
class cuda.cuda.CUhostFn

Bases: hipHostFn_t

__getitem__()

Returns a new Pointer whose pointer is this instance’s pointer offsetted by offset.

Args:

offset (int): Offset (in bytes) to add to this instance’s pointer.

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipHostFn_t from a Python object.

Derives a hipHostFn_t from the given Python object pyobj. In case pyobj is itself an hipHostFn_t reference, this method returns it directly. No new hipHostFn_t is created in this case.

is_ptr_null

If data pointer is NULL.

class cuda.cuda.cudaHostFn_t

Bases: hipHostFn_t

__getitem__()

Returns a new Pointer whose pointer is this instance’s pointer offsetted by offset.

Args:

offset (int): Offset (in bytes) to add to this instance’s pointer.

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipHostFn_t from a Python object.

Derives a hipHostFn_t from the given Python object pyobj. In case pyobj is itself an hipHostFn_t reference, this method returns it directly. No new hipHostFn_t is created in this case.

is_ptr_null

If data pointer is NULL.

class cuda.cuda.CUDA_HOST_NODE_PARAMS

Bases: hipHostNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipHostNodeParams.

Constructor for type hipHostNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipHostNodeParams from a Python object.

Derives a hipHostNodeParams from the given Python object pyobj. In case pyobj is itself an hipHostNodeParams reference, this method returns it directly. No new hipHostNodeParams is created in this case.

get_userData(self, i)

Get value userData of (<chip.hipHostNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_userData(self, i, value)

Set value userData of (<chip.hipHostNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

userData

(undocumented) Note:

Setting this userData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

class cuda.cuda.CUDA_HOST_NODE_PARAMS_st

Bases: hipHostNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipHostNodeParams.

Constructor for type hipHostNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipHostNodeParams from a Python object.

Derives a hipHostNodeParams from the given Python object pyobj. In case pyobj is itself an hipHostNodeParams reference, this method returns it directly. No new hipHostNodeParams is created in this case.

get_userData(self, i)

Get value userData of (<chip.hipHostNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_userData(self, i, value)

Set value userData of (<chip.hipHostNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

userData

(undocumented) Note:

Setting this userData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

class cuda.cuda.CUDA_HOST_NODE_PARAMS_v1

Bases: hipHostNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipHostNodeParams.

Constructor for type hipHostNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipHostNodeParams from a Python object.

Derives a hipHostNodeParams from the given Python object pyobj. In case pyobj is itself an hipHostNodeParams reference, this method returns it directly. No new hipHostNodeParams is created in this case.

get_userData(self, i)

Get value userData of (<chip.hipHostNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_userData(self, i, value)

Set value userData of (<chip.hipHostNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

userData

(undocumented) Note:

Setting this userData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

class cuda.cuda.cudaHostNodeParams

Bases: hipHostNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipHostNodeParams.

Constructor for type hipHostNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipHostNodeParams from a Python object.

Derives a hipHostNodeParams from the given Python object pyobj. In case pyobj is itself an hipHostNodeParams reference, this method returns it directly. No new hipHostNodeParams is created in this case.

get_userData(self, i)

Get value userData of (<chip.hipHostNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_userData(self, i, value)

Set value userData of (<chip.hipHostNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

userData

(undocumented) Note:

Setting this userData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

class cuda.cuda.CUDA_KERNEL_NODE_PARAMS

Bases: hipKernelNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipKernelNodeParams.

Constructor for type hipKernelNodeParams.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

blockDim

(undocumented)

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extra

(undocumented) Note:

Setting this extra can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipKernelNodeParams from a Python object.

Derives a hipKernelNodeParams from the given Python object pyobj. In case pyobj is itself an hipKernelNodeParams reference, this method returns it directly. No new hipKernelNodeParams is created in this case.

func

(undocumented) Note:

Setting this func can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

get_blockDim(self, i)

Get value of blockDim of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_extra(self, i)

Get value extra of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_func(self, i)

Get value func of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_gridDim(self, i)

Get value of gridDim of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_kernelParams(self, i)

Get value kernelParams of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_sharedMemBytes(self, i)

Get value sharedMemBytes of (<chip.hipKernelNodeParams*>self._ptr)[i].

gridDim

(undocumented)

is_ptr_null

If data pointer is NULL.

kernelParams

(undocumented) Note:

Setting this kernelParams can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

set_extra(self, i, value)

Set value extra of (<chip.hipKernelNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_func(self, i, value)

Set value func of (<chip.hipKernelNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_kernelParams(self, i, value)

Set value kernelParams of (<chip.hipKernelNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_sharedMemBytes(self, i, unsigned int value)

Set value sharedMemBytes of (<chip.hipKernelNodeParams*>self._ptr)[i].

sharedMemBytes

(undocumented)

class cuda.cuda.CUDA_KERNEL_NODE_PARAMS_st

Bases: hipKernelNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipKernelNodeParams.

Constructor for type hipKernelNodeParams.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

blockDim

(undocumented)

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extra

(undocumented) Note:

Setting this extra can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipKernelNodeParams from a Python object.

Derives a hipKernelNodeParams from the given Python object pyobj. In case pyobj is itself an hipKernelNodeParams reference, this method returns it directly. No new hipKernelNodeParams is created in this case.

func

(undocumented) Note:

Setting this func can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

get_blockDim(self, i)

Get value of blockDim of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_extra(self, i)

Get value extra of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_func(self, i)

Get value func of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_gridDim(self, i)

Get value of gridDim of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_kernelParams(self, i)

Get value kernelParams of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_sharedMemBytes(self, i)

Get value sharedMemBytes of (<chip.hipKernelNodeParams*>self._ptr)[i].

gridDim

(undocumented)

is_ptr_null

If data pointer is NULL.

kernelParams

(undocumented) Note:

Setting this kernelParams can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

set_extra(self, i, value)

Set value extra of (<chip.hipKernelNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_func(self, i, value)

Set value func of (<chip.hipKernelNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_kernelParams(self, i, value)

Set value kernelParams of (<chip.hipKernelNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_sharedMemBytes(self, i, unsigned int value)

Set value sharedMemBytes of (<chip.hipKernelNodeParams*>self._ptr)[i].

sharedMemBytes

(undocumented)

class cuda.cuda.CUDA_KERNEL_NODE_PARAMS_v1

Bases: hipKernelNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipKernelNodeParams.

Constructor for type hipKernelNodeParams.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

blockDim

(undocumented)

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extra

(undocumented) Note:

Setting this extra can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipKernelNodeParams from a Python object.

Derives a hipKernelNodeParams from the given Python object pyobj. In case pyobj is itself an hipKernelNodeParams reference, this method returns it directly. No new hipKernelNodeParams is created in this case.

func

(undocumented) Note:

Setting this func can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

get_blockDim(self, i)

Get value of blockDim of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_extra(self, i)

Get value extra of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_func(self, i)

Get value func of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_gridDim(self, i)

Get value of gridDim of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_kernelParams(self, i)

Get value kernelParams of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_sharedMemBytes(self, i)

Get value sharedMemBytes of (<chip.hipKernelNodeParams*>self._ptr)[i].

gridDim

(undocumented)

is_ptr_null

If data pointer is NULL.

kernelParams

(undocumented) Note:

Setting this kernelParams can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

set_extra(self, i, value)

Set value extra of (<chip.hipKernelNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_func(self, i, value)

Set value func of (<chip.hipKernelNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_kernelParams(self, i, value)

Set value kernelParams of (<chip.hipKernelNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_sharedMemBytes(self, i, unsigned int value)

Set value sharedMemBytes of (<chip.hipKernelNodeParams*>self._ptr)[i].

sharedMemBytes

(undocumented)

class cuda.cuda.cudaKernelNodeParams

Bases: hipKernelNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipKernelNodeParams.

Constructor for type hipKernelNodeParams.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

blockDim

(undocumented)

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extra

(undocumented) Note:

Setting this extra can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipKernelNodeParams from a Python object.

Derives a hipKernelNodeParams from the given Python object pyobj. In case pyobj is itself an hipKernelNodeParams reference, this method returns it directly. No new hipKernelNodeParams is created in this case.

func

(undocumented) Note:

Setting this func can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

get_blockDim(self, i)

Get value of blockDim of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_extra(self, i)

Get value extra of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_func(self, i)

Get value func of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_gridDim(self, i)

Get value of gridDim of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_kernelParams(self, i)

Get value kernelParams of (<chip.hipKernelNodeParams*>self._ptr)[i].

get_sharedMemBytes(self, i)

Get value sharedMemBytes of (<chip.hipKernelNodeParams*>self._ptr)[i].

gridDim

(undocumented)

is_ptr_null

If data pointer is NULL.

kernelParams

(undocumented) Note:

Setting this kernelParams can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

set_extra(self, i, value)

Set value extra of (<chip.hipKernelNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_func(self, i, value)

Set value func of (<chip.hipKernelNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_kernelParams(self, i, value)

Set value kernelParams of (<chip.hipKernelNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_sharedMemBytes(self, i, unsigned int value)

Set value sharedMemBytes of (<chip.hipKernelNodeParams*>self._ptr)[i].

sharedMemBytes

(undocumented)

class cuda.cuda.CUDA_MEMSET_NODE_PARAMS

Bases: hipMemsetParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemsetParams.

Constructor for type hipMemsetParams.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dst

(undocumented) Note:

Setting this dst can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

elementSize

(undocumented)

static fromObj(pyobj)

Creates a hipMemsetParams from a Python object.

Derives a hipMemsetParams from the given Python object pyobj. In case pyobj is itself an hipMemsetParams reference, this method returns it directly. No new hipMemsetParams is created in this case.

get_dst(self, i)

Get value dst of (<chip.hipMemsetParams*>self._ptr)[i].

get_elementSize(self, i)

Get value elementSize of (<chip.hipMemsetParams*>self._ptr)[i].

get_height(self, i)

Get value height of (<chip.hipMemsetParams*>self._ptr)[i].

get_pitch(self, i)

Get value pitch of (<chip.hipMemsetParams*>self._ptr)[i].

get_value(self, i)

Get value value of (<chip.hipMemsetParams*>self._ptr)[i].

get_width(self, i)

Get value width of (<chip.hipMemsetParams*>self._ptr)[i].

height

(undocumented)

is_ptr_null

If data pointer is NULL.

pitch

(undocumented)

set_dst(self, i, value)

Set value dst of (<chip.hipMemsetParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_elementSize(self, i, unsigned int value)

Set value elementSize of (<chip.hipMemsetParams*>self._ptr)[i].

set_height(self, i, unsigned long value)

Set value height of (<chip.hipMemsetParams*>self._ptr)[i].

set_pitch(self, i, unsigned long value)

Set value pitch of (<chip.hipMemsetParams*>self._ptr)[i].

set_value(self, i, unsigned int value)

Set value value of (<chip.hipMemsetParams*>self._ptr)[i].

set_width(self, i, unsigned long value)

Set value width of (<chip.hipMemsetParams*>self._ptr)[i].

value

(undocumented)

width

(undocumented)

class cuda.cuda.CUDA_MEMSET_NODE_PARAMS_st

Bases: hipMemsetParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemsetParams.

Constructor for type hipMemsetParams.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dst

(undocumented) Note:

Setting this dst can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

elementSize

(undocumented)

static fromObj(pyobj)

Creates a hipMemsetParams from a Python object.

Derives a hipMemsetParams from the given Python object pyobj. In case pyobj is itself an hipMemsetParams reference, this method returns it directly. No new hipMemsetParams is created in this case.

get_dst(self, i)

Get value dst of (<chip.hipMemsetParams*>self._ptr)[i].

get_elementSize(self, i)

Get value elementSize of (<chip.hipMemsetParams*>self._ptr)[i].

get_height(self, i)

Get value height of (<chip.hipMemsetParams*>self._ptr)[i].

get_pitch(self, i)

Get value pitch of (<chip.hipMemsetParams*>self._ptr)[i].

get_value(self, i)

Get value value of (<chip.hipMemsetParams*>self._ptr)[i].

get_width(self, i)

Get value width of (<chip.hipMemsetParams*>self._ptr)[i].

height

(undocumented)

is_ptr_null

If data pointer is NULL.

pitch

(undocumented)

set_dst(self, i, value)

Set value dst of (<chip.hipMemsetParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_elementSize(self, i, unsigned int value)

Set value elementSize of (<chip.hipMemsetParams*>self._ptr)[i].

set_height(self, i, unsigned long value)

Set value height of (<chip.hipMemsetParams*>self._ptr)[i].

set_pitch(self, i, unsigned long value)

Set value pitch of (<chip.hipMemsetParams*>self._ptr)[i].

set_value(self, i, unsigned int value)

Set value value of (<chip.hipMemsetParams*>self._ptr)[i].

set_width(self, i, unsigned long value)

Set value width of (<chip.hipMemsetParams*>self._ptr)[i].

value

(undocumented)

width

(undocumented)

class cuda.cuda.CUDA_MEMSET_NODE_PARAMS_v1

Bases: hipMemsetParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemsetParams.

Constructor for type hipMemsetParams.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dst

(undocumented) Note:

Setting this dst can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

elementSize

(undocumented)

static fromObj(pyobj)

Creates a hipMemsetParams from a Python object.

Derives a hipMemsetParams from the given Python object pyobj. In case pyobj is itself an hipMemsetParams reference, this method returns it directly. No new hipMemsetParams is created in this case.

get_dst(self, i)

Get value dst of (<chip.hipMemsetParams*>self._ptr)[i].

get_elementSize(self, i)

Get value elementSize of (<chip.hipMemsetParams*>self._ptr)[i].

get_height(self, i)

Get value height of (<chip.hipMemsetParams*>self._ptr)[i].

get_pitch(self, i)

Get value pitch of (<chip.hipMemsetParams*>self._ptr)[i].

get_value(self, i)

Get value value of (<chip.hipMemsetParams*>self._ptr)[i].

get_width(self, i)

Get value width of (<chip.hipMemsetParams*>self._ptr)[i].

height

(undocumented)

is_ptr_null

If data pointer is NULL.

pitch

(undocumented)

set_dst(self, i, value)

Set value dst of (<chip.hipMemsetParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_elementSize(self, i, unsigned int value)

Set value elementSize of (<chip.hipMemsetParams*>self._ptr)[i].

set_height(self, i, unsigned long value)

Set value height of (<chip.hipMemsetParams*>self._ptr)[i].

set_pitch(self, i, unsigned long value)

Set value pitch of (<chip.hipMemsetParams*>self._ptr)[i].

set_value(self, i, unsigned int value)

Set value value of (<chip.hipMemsetParams*>self._ptr)[i].

set_width(self, i, unsigned long value)

Set value width of (<chip.hipMemsetParams*>self._ptr)[i].

value

(undocumented)

width

(undocumented)

class cuda.cuda.cudaMemsetParams

Bases: hipMemsetParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemsetParams.

Constructor for type hipMemsetParams.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dst

(undocumented) Note:

Setting this dst can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

elementSize

(undocumented)

static fromObj(pyobj)

Creates a hipMemsetParams from a Python object.

Derives a hipMemsetParams from the given Python object pyobj. In case pyobj is itself an hipMemsetParams reference, this method returns it directly. No new hipMemsetParams is created in this case.

get_dst(self, i)

Get value dst of (<chip.hipMemsetParams*>self._ptr)[i].

get_elementSize(self, i)

Get value elementSize of (<chip.hipMemsetParams*>self._ptr)[i].

get_height(self, i)

Get value height of (<chip.hipMemsetParams*>self._ptr)[i].

get_pitch(self, i)

Get value pitch of (<chip.hipMemsetParams*>self._ptr)[i].

get_value(self, i)

Get value value of (<chip.hipMemsetParams*>self._ptr)[i].

get_width(self, i)

Get value width of (<chip.hipMemsetParams*>self._ptr)[i].

height

(undocumented)

is_ptr_null

If data pointer is NULL.

pitch

(undocumented)

set_dst(self, i, value)

Set value dst of (<chip.hipMemsetParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_elementSize(self, i, unsigned int value)

Set value elementSize of (<chip.hipMemsetParams*>self._ptr)[i].

set_height(self, i, unsigned long value)

Set value height of (<chip.hipMemsetParams*>self._ptr)[i].

set_pitch(self, i, unsigned long value)

Set value pitch of (<chip.hipMemsetParams*>self._ptr)[i].

set_value(self, i, unsigned int value)

Set value value of (<chip.hipMemsetParams*>self._ptr)[i].

set_width(self, i, unsigned long value)

Set value width of (<chip.hipMemsetParams*>self._ptr)[i].

value

(undocumented)

width

(undocumented)

class cuda.cuda.CUDA_MEM_ALLOC_NODE_PARAMS

Bases: hipMemAllocNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemAllocNodeParams.

Constructor for type hipMemAllocNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

accessDescCount

The number of access descriptors

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

bytesize

The size of the requested allocation in bytes

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dptr

Returned device address of the allocation Note:

Setting this dptr can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipMemAllocNodeParams from a Python object.

Derives a hipMemAllocNodeParams from the given Python object pyobj. In case pyobj is itself an hipMemAllocNodeParams reference, this method returns it directly. No new hipMemAllocNodeParams is created in this case.

get_accessDescCount(self, i)

Get value accessDescCount of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_bytesize(self, i)

Get value bytesize of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_dptr(self, i)

Get value dptr of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_poolProps(self, i)

Get value of poolProps of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

poolProps

Pool properties, which contain where the location should reside

set_accessDescCount(self, i, unsigned long value)

Set value accessDescCount of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

set_bytesize(self, i, unsigned long value)

Set value bytesize of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

set_dptr(self, i, value)

Set value dptr of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

class cuda.cuda.CUDA_MEM_ALLOC_NODE_PARAMS_st

Bases: hipMemAllocNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemAllocNodeParams.

Constructor for type hipMemAllocNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

accessDescCount

The number of access descriptors

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

bytesize

The size of the requested allocation in bytes

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dptr

Returned device address of the allocation Note:

Setting this dptr can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipMemAllocNodeParams from a Python object.

Derives a hipMemAllocNodeParams from the given Python object pyobj. In case pyobj is itself an hipMemAllocNodeParams reference, this method returns it directly. No new hipMemAllocNodeParams is created in this case.

get_accessDescCount(self, i)

Get value accessDescCount of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_bytesize(self, i)

Get value bytesize of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_dptr(self, i)

Get value dptr of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_poolProps(self, i)

Get value of poolProps of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

poolProps

Pool properties, which contain where the location should reside

set_accessDescCount(self, i, unsigned long value)

Set value accessDescCount of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

set_bytesize(self, i, unsigned long value)

Set value bytesize of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

set_dptr(self, i, value)

Set value dptr of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

class cuda.cuda.CUDA_MEM_ALLOC_NODE_PARAMS_v1

Bases: hipMemAllocNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemAllocNodeParams.

Constructor for type hipMemAllocNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

accessDescCount

The number of access descriptors

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

bytesize

The size of the requested allocation in bytes

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dptr

Returned device address of the allocation Note:

Setting this dptr can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipMemAllocNodeParams from a Python object.

Derives a hipMemAllocNodeParams from the given Python object pyobj. In case pyobj is itself an hipMemAllocNodeParams reference, this method returns it directly. No new hipMemAllocNodeParams is created in this case.

get_accessDescCount(self, i)

Get value accessDescCount of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_bytesize(self, i)

Get value bytesize of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_dptr(self, i)

Get value dptr of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_poolProps(self, i)

Get value of poolProps of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

poolProps

Pool properties, which contain where the location should reside

set_accessDescCount(self, i, unsigned long value)

Set value accessDescCount of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

set_bytesize(self, i, unsigned long value)

Set value bytesize of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

set_dptr(self, i, value)

Set value dptr of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

class cuda.cuda.CUDA_MEM_ALLOC_NODE_PARAMS_v1_st

Bases: hipMemAllocNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemAllocNodeParams.

Constructor for type hipMemAllocNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

accessDescCount

The number of access descriptors

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

bytesize

The size of the requested allocation in bytes

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dptr

Returned device address of the allocation Note:

Setting this dptr can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipMemAllocNodeParams from a Python object.

Derives a hipMemAllocNodeParams from the given Python object pyobj. In case pyobj is itself an hipMemAllocNodeParams reference, this method returns it directly. No new hipMemAllocNodeParams is created in this case.

get_accessDescCount(self, i)

Get value accessDescCount of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_bytesize(self, i)

Get value bytesize of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_dptr(self, i)

Get value dptr of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_poolProps(self, i)

Get value of poolProps of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

poolProps

Pool properties, which contain where the location should reside

set_accessDescCount(self, i, unsigned long value)

Set value accessDescCount of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

set_bytesize(self, i, unsigned long value)

Set value bytesize of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

set_dptr(self, i, value)

Set value dptr of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

class cuda.cuda.cudaMemAllocNodeParams

Bases: hipMemAllocNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemAllocNodeParams.

Constructor for type hipMemAllocNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

accessDescCount

The number of access descriptors

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

bytesize

The size of the requested allocation in bytes

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

dptr

Returned device address of the allocation Note:

Setting this dptr can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipMemAllocNodeParams from a Python object.

Derives a hipMemAllocNodeParams from the given Python object pyobj. In case pyobj is itself an hipMemAllocNodeParams reference, this method returns it directly. No new hipMemAllocNodeParams is created in this case.

get_accessDescCount(self, i)

Get value accessDescCount of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_bytesize(self, i)

Get value bytesize of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_dptr(self, i)

Get value dptr of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

get_poolProps(self, i)

Get value of poolProps of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

poolProps

Pool properties, which contain where the location should reside

set_accessDescCount(self, i, unsigned long value)

Set value accessDescCount of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

set_bytesize(self, i, unsigned long value)

Set value bytesize of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

set_dptr(self, i, value)

Set value dptr of (<chip.hipMemAllocNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

class cuda.cuda.CUkernelNodeAttrID(value)

Bases: _hipKernelNodeAttrID__Base

An enumeration.

hipKernelNodeAttributeAccessPolicyWindow = 1
CU_KERNEL_NODE_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1
cudaKernelNodeAttributeAccessPolicyWindow = 1
hipKernelNodeAttributeCooperative = 2
CU_KERNEL_NODE_ATTRIBUTE_COOPERATIVE = 2
cudaKernelNodeAttributeCooperative = 2
class cuda.cuda.CUkernelNodeAttrID_enum(value)

Bases: _hipKernelNodeAttrID__Base

An enumeration.

hipKernelNodeAttributeAccessPolicyWindow = 1
CU_KERNEL_NODE_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1
cudaKernelNodeAttributeAccessPolicyWindow = 1
hipKernelNodeAttributeCooperative = 2
CU_KERNEL_NODE_ATTRIBUTE_COOPERATIVE = 2
cudaKernelNodeAttributeCooperative = 2
class cuda.cuda.cudaKernelNodeAttrID(value)

Bases: _hipKernelNodeAttrID__Base

An enumeration.

hipKernelNodeAttributeAccessPolicyWindow = 1
CU_KERNEL_NODE_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1
cudaKernelNodeAttributeAccessPolicyWindow = 1
hipKernelNodeAttributeCooperative = 2
CU_KERNEL_NODE_ATTRIBUTE_COOPERATIVE = 2
cudaKernelNodeAttributeCooperative = 2
class cuda.cuda.CUaccessProperty(value)

Bases: _hipAccessProperty__Base

An enumeration.

hipAccessPropertyNormal = 0
CU_ACCESS_PROPERTY_NORMAL = 0
cudaAccessPropertyNormal = 0
hipAccessPropertyStreaming = 1
CU_ACCESS_PROPERTY_STREAMING = 1
cudaAccessPropertyStreaming = 1
hipAccessPropertyPersisting = 2
CU_ACCESS_PROPERTY_PERSISTING = 2
cudaAccessPropertyPersisting = 2
class cuda.cuda.CUaccessProperty_enum(value)

Bases: _hipAccessProperty__Base

An enumeration.

hipAccessPropertyNormal = 0
CU_ACCESS_PROPERTY_NORMAL = 0
cudaAccessPropertyNormal = 0
hipAccessPropertyStreaming = 1
CU_ACCESS_PROPERTY_STREAMING = 1
cudaAccessPropertyStreaming = 1
hipAccessPropertyPersisting = 2
CU_ACCESS_PROPERTY_PERSISTING = 2
cudaAccessPropertyPersisting = 2
class cuda.cuda.cudaAccessProperty(value)

Bases: _hipAccessProperty__Base

An enumeration.

hipAccessPropertyNormal = 0
CU_ACCESS_PROPERTY_NORMAL = 0
cudaAccessPropertyNormal = 0
hipAccessPropertyStreaming = 1
CU_ACCESS_PROPERTY_STREAMING = 1
cudaAccessPropertyStreaming = 1
hipAccessPropertyPersisting = 2
CU_ACCESS_PROPERTY_PERSISTING = 2
cudaAccessPropertyPersisting = 2
class cuda.cuda.CUaccessPolicyWindow

Bases: hipAccessPolicyWindow

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipAccessPolicyWindow.

Constructor for type hipAccessPolicyWindow.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

base_ptr

(undocumented) Note:

Setting this base_ptr can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipAccessPolicyWindow from a Python object.

Derives a hipAccessPolicyWindow from the given Python object pyobj. In case pyobj is itself an hipAccessPolicyWindow reference, this method returns it directly. No new hipAccessPolicyWindow is created in this case.

get_base_ptr(self, i)

Get value base_ptr of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

get_hitProp(self, i)

Get value of hitProp of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

get_hitRatio(self, i)

Get value hitRatio of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

get_missProp(self, i)

Get value of missProp of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

get_num_bytes(self, i)

Get value num_bytes of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

hitProp

(undocumented)

hitRatio

(undocumented)

is_ptr_null

If data pointer is NULL.

missProp

(undocumented)

num_bytes

(undocumented)

set_base_ptr(self, i, value)

Set value base_ptr of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_hitProp(self, i, value)

Set value hitProp of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

set_hitRatio(self, i, float value)

Set value hitRatio of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

set_missProp(self, i, value)

Set value missProp of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

set_num_bytes(self, i, unsigned long value)

Set value num_bytes of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

class cuda.cuda.CUaccessPolicyWindow_st

Bases: hipAccessPolicyWindow

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipAccessPolicyWindow.

Constructor for type hipAccessPolicyWindow.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

base_ptr

(undocumented) Note:

Setting this base_ptr can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipAccessPolicyWindow from a Python object.

Derives a hipAccessPolicyWindow from the given Python object pyobj. In case pyobj is itself an hipAccessPolicyWindow reference, this method returns it directly. No new hipAccessPolicyWindow is created in this case.

get_base_ptr(self, i)

Get value base_ptr of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

get_hitProp(self, i)

Get value of hitProp of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

get_hitRatio(self, i)

Get value hitRatio of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

get_missProp(self, i)

Get value of missProp of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

get_num_bytes(self, i)

Get value num_bytes of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

hitProp

(undocumented)

hitRatio

(undocumented)

is_ptr_null

If data pointer is NULL.

missProp

(undocumented)

num_bytes

(undocumented)

set_base_ptr(self, i, value)

Set value base_ptr of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_hitProp(self, i, value)

Set value hitProp of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

set_hitRatio(self, i, float value)

Set value hitRatio of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

set_missProp(self, i, value)

Set value missProp of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

set_num_bytes(self, i, unsigned long value)

Set value num_bytes of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

class cuda.cuda.cudaAccessPolicyWindow

Bases: hipAccessPolicyWindow

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipAccessPolicyWindow.

Constructor for type hipAccessPolicyWindow.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

base_ptr

(undocumented) Note:

Setting this base_ptr can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipAccessPolicyWindow from a Python object.

Derives a hipAccessPolicyWindow from the given Python object pyobj. In case pyobj is itself an hipAccessPolicyWindow reference, this method returns it directly. No new hipAccessPolicyWindow is created in this case.

get_base_ptr(self, i)

Get value base_ptr of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

get_hitProp(self, i)

Get value of hitProp of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

get_hitRatio(self, i)

Get value hitRatio of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

get_missProp(self, i)

Get value of missProp of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

get_num_bytes(self, i)

Get value num_bytes of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

hitProp

(undocumented)

hitRatio

(undocumented)

is_ptr_null

If data pointer is NULL.

missProp

(undocumented)

num_bytes

(undocumented)

set_base_ptr(self, i, value)

Set value base_ptr of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_hitProp(self, i, value)

Set value hitProp of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

set_hitRatio(self, i, float value)

Set value hitRatio of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

set_missProp(self, i, value)

Set value missProp of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

set_num_bytes(self, i, unsigned long value)

Set value num_bytes of (<chip.hipAccessPolicyWindow*>self._ptr)[i].

class cuda.cuda.CUkernelNodeAttrValue

Bases: hipKernelNodeAttrValue

static PROPERTIES()
__getitem__()

Returns a new Pointer whose pointer is this instance’s pointer offsetted by offset.

Args:

offset (int): Offset (in bytes) to add to this instance’s pointer.

__init__()

Constructor type hipKernelNodeAttrValue.

Constructor for type hipKernelNodeAttrValue.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

accessPolicyWindow

(undocumented)

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

cooperative

(undocumented)

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipKernelNodeAttrValue from a Python object.

Derives a hipKernelNodeAttrValue from the given Python object pyobj. In case pyobj is itself an hipKernelNodeAttrValue reference, this method returns it directly. No new hipKernelNodeAttrValue is created in this case.

get_accessPolicyWindow(self, i)

Get value of accessPolicyWindow of (<chip.hipKernelNodeAttrValue*>self._ptr)[i].

get_cooperative(self, i)

Get value cooperative of (<chip.hipKernelNodeAttrValue*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_cooperative(self, i, int value)

Set value cooperative of (<chip.hipKernelNodeAttrValue*>self._ptr)[i].

class cuda.cuda.CUkernelNodeAttrValue_union

Bases: hipKernelNodeAttrValue

static PROPERTIES()
__getitem__()

Returns a new Pointer whose pointer is this instance’s pointer offsetted by offset.

Args:

offset (int): Offset (in bytes) to add to this instance’s pointer.

__init__()

Constructor type hipKernelNodeAttrValue.

Constructor for type hipKernelNodeAttrValue.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

accessPolicyWindow

(undocumented)

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

cooperative

(undocumented)

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipKernelNodeAttrValue from a Python object.

Derives a hipKernelNodeAttrValue from the given Python object pyobj. In case pyobj is itself an hipKernelNodeAttrValue reference, this method returns it directly. No new hipKernelNodeAttrValue is created in this case.

get_accessPolicyWindow(self, i)

Get value of accessPolicyWindow of (<chip.hipKernelNodeAttrValue*>self._ptr)[i].

get_cooperative(self, i)

Get value cooperative of (<chip.hipKernelNodeAttrValue*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_cooperative(self, i, int value)

Set value cooperative of (<chip.hipKernelNodeAttrValue*>self._ptr)[i].

class cuda.cuda.CUkernelNodeAttrValue_v1

Bases: hipKernelNodeAttrValue

static PROPERTIES()
__getitem__()

Returns a new Pointer whose pointer is this instance’s pointer offsetted by offset.

Args:

offset (int): Offset (in bytes) to add to this instance’s pointer.

__init__()

Constructor type hipKernelNodeAttrValue.

Constructor for type hipKernelNodeAttrValue.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

accessPolicyWindow

(undocumented)

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

cooperative

(undocumented)

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipKernelNodeAttrValue from a Python object.

Derives a hipKernelNodeAttrValue from the given Python object pyobj. In case pyobj is itself an hipKernelNodeAttrValue reference, this method returns it directly. No new hipKernelNodeAttrValue is created in this case.

get_accessPolicyWindow(self, i)

Get value of accessPolicyWindow of (<chip.hipKernelNodeAttrValue*>self._ptr)[i].

get_cooperative(self, i)

Get value cooperative of (<chip.hipKernelNodeAttrValue*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_cooperative(self, i, int value)

Set value cooperative of (<chip.hipKernelNodeAttrValue*>self._ptr)[i].

class cuda.cuda.cudaKernelNodeAttrValue

Bases: hipKernelNodeAttrValue

static PROPERTIES()
__getitem__()

Returns a new Pointer whose pointer is this instance’s pointer offsetted by offset.

Args:

offset (int): Offset (in bytes) to add to this instance’s pointer.

__init__()

Constructor type hipKernelNodeAttrValue.

Constructor for type hipKernelNodeAttrValue.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

accessPolicyWindow

(undocumented)

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

cooperative

(undocumented)

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipKernelNodeAttrValue from a Python object.

Derives a hipKernelNodeAttrValue from the given Python object pyobj. In case pyobj is itself an hipKernelNodeAttrValue reference, this method returns it directly. No new hipKernelNodeAttrValue is created in this case.

get_accessPolicyWindow(self, i)

Get value of accessPolicyWindow of (<chip.hipKernelNodeAttrValue*>self._ptr)[i].

get_cooperative(self, i)

Get value cooperative of (<chip.hipKernelNodeAttrValue*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

set_cooperative(self, i, int value)

Set value cooperative of (<chip.hipKernelNodeAttrValue*>self._ptr)[i].

class cuda.cuda.CUgraphExecUpdateResult(value)

Bases: _hipGraphExecUpdateResult__Base

An enumeration.

hipGraphExecUpdateSuccess = 0
CU_GRAPH_EXEC_UPDATE_SUCCESS = 0
cudaGraphExecUpdateSuccess = 0
hipGraphExecUpdateError = 1
CU_GRAPH_EXEC_UPDATE_ERROR = 1
cudaGraphExecUpdateError = 1
hipGraphExecUpdateErrorTopologyChanged = 2
CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED = 2
cudaGraphExecUpdateErrorTopologyChanged = 2
hipGraphExecUpdateErrorNodeTypeChanged = 3
CU_GRAPH_EXEC_UPDATE_ERROR_NODE_TYPE_CHANGED = 3
cudaGraphExecUpdateErrorNodeTypeChanged = 3
hipGraphExecUpdateErrorFunctionChanged = 4
CU_GRAPH_EXEC_UPDATE_ERROR_FUNCTION_CHANGED = 4
cudaGraphExecUpdateErrorFunctionChanged = 4
hipGraphExecUpdateErrorParametersChanged = 5
CU_GRAPH_EXEC_UPDATE_ERROR_PARAMETERS_CHANGED = 5
cudaGraphExecUpdateErrorParametersChanged = 5
hipGraphExecUpdateErrorNotSupported = 6
CU_GRAPH_EXEC_UPDATE_ERROR_NOT_SUPPORTED = 6
cudaGraphExecUpdateErrorNotSupported = 6
hipGraphExecUpdateErrorUnsupportedFunctionChange = 7
CU_GRAPH_EXEC_UPDATE_ERROR_UNSUPPORTED_FUNCTION_CHANGE = 7
cudaGraphExecUpdateErrorUnsupportedFunctionChange = 7
class cuda.cuda.CUgraphExecUpdateResult_enum(value)

Bases: _hipGraphExecUpdateResult__Base

An enumeration.

hipGraphExecUpdateSuccess = 0
CU_GRAPH_EXEC_UPDATE_SUCCESS = 0
cudaGraphExecUpdateSuccess = 0
hipGraphExecUpdateError = 1
CU_GRAPH_EXEC_UPDATE_ERROR = 1
cudaGraphExecUpdateError = 1
hipGraphExecUpdateErrorTopologyChanged = 2
CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED = 2
cudaGraphExecUpdateErrorTopologyChanged = 2
hipGraphExecUpdateErrorNodeTypeChanged = 3
CU_GRAPH_EXEC_UPDATE_ERROR_NODE_TYPE_CHANGED = 3
cudaGraphExecUpdateErrorNodeTypeChanged = 3
hipGraphExecUpdateErrorFunctionChanged = 4
CU_GRAPH_EXEC_UPDATE_ERROR_FUNCTION_CHANGED = 4
cudaGraphExecUpdateErrorFunctionChanged = 4
hipGraphExecUpdateErrorParametersChanged = 5
CU_GRAPH_EXEC_UPDATE_ERROR_PARAMETERS_CHANGED = 5
cudaGraphExecUpdateErrorParametersChanged = 5
hipGraphExecUpdateErrorNotSupported = 6
CU_GRAPH_EXEC_UPDATE_ERROR_NOT_SUPPORTED = 6
cudaGraphExecUpdateErrorNotSupported = 6
hipGraphExecUpdateErrorUnsupportedFunctionChange = 7
CU_GRAPH_EXEC_UPDATE_ERROR_UNSUPPORTED_FUNCTION_CHANGE = 7
cudaGraphExecUpdateErrorUnsupportedFunctionChange = 7
class cuda.cuda.cudaGraphExecUpdateResult(value)

Bases: _hipGraphExecUpdateResult__Base

An enumeration.

hipGraphExecUpdateSuccess = 0
CU_GRAPH_EXEC_UPDATE_SUCCESS = 0
cudaGraphExecUpdateSuccess = 0
hipGraphExecUpdateError = 1
CU_GRAPH_EXEC_UPDATE_ERROR = 1
cudaGraphExecUpdateError = 1
hipGraphExecUpdateErrorTopologyChanged = 2
CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED = 2
cudaGraphExecUpdateErrorTopologyChanged = 2
hipGraphExecUpdateErrorNodeTypeChanged = 3
CU_GRAPH_EXEC_UPDATE_ERROR_NODE_TYPE_CHANGED = 3
cudaGraphExecUpdateErrorNodeTypeChanged = 3
hipGraphExecUpdateErrorFunctionChanged = 4
CU_GRAPH_EXEC_UPDATE_ERROR_FUNCTION_CHANGED = 4
cudaGraphExecUpdateErrorFunctionChanged = 4
hipGraphExecUpdateErrorParametersChanged = 5
CU_GRAPH_EXEC_UPDATE_ERROR_PARAMETERS_CHANGED = 5
cudaGraphExecUpdateErrorParametersChanged = 5
hipGraphExecUpdateErrorNotSupported = 6
CU_GRAPH_EXEC_UPDATE_ERROR_NOT_SUPPORTED = 6
cudaGraphExecUpdateErrorNotSupported = 6
hipGraphExecUpdateErrorUnsupportedFunctionChange = 7
CU_GRAPH_EXEC_UPDATE_ERROR_UNSUPPORTED_FUNCTION_CHANGE = 7
cudaGraphExecUpdateErrorUnsupportedFunctionChange = 7
class cuda.cuda.CUstreamCaptureMode(value)

Bases: _hipStreamCaptureMode__Base

An enumeration.

hipStreamCaptureModeGlobal = 0
CU_STREAM_CAPTURE_MODE_GLOBAL = 0
cudaStreamCaptureModeGlobal = 0
hipStreamCaptureModeThreadLocal = 1
CU_STREAM_CAPTURE_MODE_THREAD_LOCAL = 1
cudaStreamCaptureModeThreadLocal = 1
hipStreamCaptureModeRelaxed = 2
CU_STREAM_CAPTURE_MODE_RELAXED = 2
cudaStreamCaptureModeRelaxed = 2
class cuda.cuda.CUstreamCaptureMode_enum(value)

Bases: _hipStreamCaptureMode__Base

An enumeration.

hipStreamCaptureModeGlobal = 0
CU_STREAM_CAPTURE_MODE_GLOBAL = 0
cudaStreamCaptureModeGlobal = 0
hipStreamCaptureModeThreadLocal = 1
CU_STREAM_CAPTURE_MODE_THREAD_LOCAL = 1
cudaStreamCaptureModeThreadLocal = 1
hipStreamCaptureModeRelaxed = 2
CU_STREAM_CAPTURE_MODE_RELAXED = 2
cudaStreamCaptureModeRelaxed = 2
class cuda.cuda.cudaStreamCaptureMode(value)

Bases: _hipStreamCaptureMode__Base

An enumeration.

hipStreamCaptureModeGlobal = 0
CU_STREAM_CAPTURE_MODE_GLOBAL = 0
cudaStreamCaptureModeGlobal = 0
hipStreamCaptureModeThreadLocal = 1
CU_STREAM_CAPTURE_MODE_THREAD_LOCAL = 1
cudaStreamCaptureModeThreadLocal = 1
hipStreamCaptureModeRelaxed = 2
CU_STREAM_CAPTURE_MODE_RELAXED = 2
cudaStreamCaptureModeRelaxed = 2
class cuda.cuda.CUstreamCaptureStatus(value)

Bases: _hipStreamCaptureStatus__Base

An enumeration.

hipStreamCaptureStatusNone = 0
CU_STREAM_CAPTURE_STATUS_NONE = 0
cudaStreamCaptureStatusNone = 0
hipStreamCaptureStatusActive = 1
CU_STREAM_CAPTURE_STATUS_ACTIVE = 1
cudaStreamCaptureStatusActive = 1
hipStreamCaptureStatusInvalidated = 2
CU_STREAM_CAPTURE_STATUS_INVALIDATED = 2
cudaStreamCaptureStatusInvalidated = 2
class cuda.cuda.CUstreamCaptureStatus_enum(value)

Bases: _hipStreamCaptureStatus__Base

An enumeration.

hipStreamCaptureStatusNone = 0
CU_STREAM_CAPTURE_STATUS_NONE = 0
cudaStreamCaptureStatusNone = 0
hipStreamCaptureStatusActive = 1
CU_STREAM_CAPTURE_STATUS_ACTIVE = 1
cudaStreamCaptureStatusActive = 1
hipStreamCaptureStatusInvalidated = 2
CU_STREAM_CAPTURE_STATUS_INVALIDATED = 2
cudaStreamCaptureStatusInvalidated = 2
class cuda.cuda.cudaStreamCaptureStatus(value)

Bases: _hipStreamCaptureStatus__Base

An enumeration.

hipStreamCaptureStatusNone = 0
CU_STREAM_CAPTURE_STATUS_NONE = 0
cudaStreamCaptureStatusNone = 0
hipStreamCaptureStatusActive = 1
CU_STREAM_CAPTURE_STATUS_ACTIVE = 1
cudaStreamCaptureStatusActive = 1
hipStreamCaptureStatusInvalidated = 2
CU_STREAM_CAPTURE_STATUS_INVALIDATED = 2
cudaStreamCaptureStatusInvalidated = 2
class cuda.cuda.CUstreamUpdateCaptureDependencies_flags(value)

Bases: _hipStreamUpdateCaptureDependenciesFlags__Base

An enumeration.

hipStreamAddCaptureDependencies = 0
CU_STREAM_ADD_CAPTURE_DEPENDENCIES = 0
cudaStreamAddCaptureDependencies = 0
hipStreamSetCaptureDependencies = 1
CU_STREAM_SET_CAPTURE_DEPENDENCIES = 1
cudaStreamSetCaptureDependencies = 1
class cuda.cuda.CUstreamUpdateCaptureDependencies_flags_enum(value)

Bases: _hipStreamUpdateCaptureDependenciesFlags__Base

An enumeration.

hipStreamAddCaptureDependencies = 0
CU_STREAM_ADD_CAPTURE_DEPENDENCIES = 0
cudaStreamAddCaptureDependencies = 0
hipStreamSetCaptureDependencies = 1
CU_STREAM_SET_CAPTURE_DEPENDENCIES = 1
cudaStreamSetCaptureDependencies = 1
class cuda.cuda.cudaStreamUpdateCaptureDependenciesFlags(value)

Bases: _hipStreamUpdateCaptureDependenciesFlags__Base

An enumeration.

hipStreamAddCaptureDependencies = 0
CU_STREAM_ADD_CAPTURE_DEPENDENCIES = 0
cudaStreamAddCaptureDependencies = 0
hipStreamSetCaptureDependencies = 1
CU_STREAM_SET_CAPTURE_DEPENDENCIES = 1
cudaStreamSetCaptureDependencies = 1
class cuda.cuda.CUgraphMem_attribute(value)

Bases: _hipGraphMemAttributeType__Base

An enumeration.

hipGraphMemAttrUsedMemCurrent = 0
CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT = 0
cudaGraphMemAttrUsedMemCurrent = 0
hipGraphMemAttrUsedMemHigh = 1
CU_GRAPH_MEM_ATTR_USED_MEM_HIGH = 1
cudaGraphMemAttrUsedMemHigh = 1
hipGraphMemAttrReservedMemCurrent = 2
CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT = 2
cudaGraphMemAttrReservedMemCurrent = 2
hipGraphMemAttrReservedMemHigh = 3
CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH = 3
cudaGraphMemAttrReservedMemHigh = 3
class cuda.cuda.CUgraphMem_attribute_enum(value)

Bases: _hipGraphMemAttributeType__Base

An enumeration.

hipGraphMemAttrUsedMemCurrent = 0
CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT = 0
cudaGraphMemAttrUsedMemCurrent = 0
hipGraphMemAttrUsedMemHigh = 1
CU_GRAPH_MEM_ATTR_USED_MEM_HIGH = 1
cudaGraphMemAttrUsedMemHigh = 1
hipGraphMemAttrReservedMemCurrent = 2
CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT = 2
cudaGraphMemAttrReservedMemCurrent = 2
hipGraphMemAttrReservedMemHigh = 3
CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH = 3
cudaGraphMemAttrReservedMemHigh = 3
class cuda.cuda.cudaGraphMemAttributeType(value)

Bases: _hipGraphMemAttributeType__Base

An enumeration.

hipGraphMemAttrUsedMemCurrent = 0
CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT = 0
cudaGraphMemAttrUsedMemCurrent = 0
hipGraphMemAttrUsedMemHigh = 1
CU_GRAPH_MEM_ATTR_USED_MEM_HIGH = 1
cudaGraphMemAttrUsedMemHigh = 1
hipGraphMemAttrReservedMemCurrent = 2
CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT = 2
cudaGraphMemAttrReservedMemCurrent = 2
hipGraphMemAttrReservedMemHigh = 3
CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH = 3
cudaGraphMemAttrReservedMemHigh = 3
class cuda.cuda.CUuserObject_flags(value)

Bases: _hipUserObjectFlags__Base

An enumeration.

hipUserObjectNoDestructorSync = 1
CU_USER_OBJECT_NO_DESTRUCTOR_SYNC = 1
cudaUserObjectNoDestructorSync = 1
class cuda.cuda.CUuserObject_flags_enum(value)

Bases: _hipUserObjectFlags__Base

An enumeration.

hipUserObjectNoDestructorSync = 1
CU_USER_OBJECT_NO_DESTRUCTOR_SYNC = 1
cudaUserObjectNoDestructorSync = 1
class cuda.cuda.cudaUserObjectFlags(value)

Bases: _hipUserObjectFlags__Base

An enumeration.

hipUserObjectNoDestructorSync = 1
CU_USER_OBJECT_NO_DESTRUCTOR_SYNC = 1
cudaUserObjectNoDestructorSync = 1
class cuda.cuda.CUuserObjectRetain_flags(value)

Bases: _hipUserObjectRetainFlags__Base

An enumeration.

hipGraphUserObjectMove = 1
CU_GRAPH_USER_OBJECT_MOVE = 1
cudaGraphUserObjectMove = 1
class cuda.cuda.CUuserObjectRetain_flags_enum(value)

Bases: _hipUserObjectRetainFlags__Base

An enumeration.

hipGraphUserObjectMove = 1
CU_GRAPH_USER_OBJECT_MOVE = 1
cudaGraphUserObjectMove = 1
class cuda.cuda.cudaUserObjectRetainFlags(value)

Bases: _hipUserObjectRetainFlags__Base

An enumeration.

hipGraphUserObjectMove = 1
CU_GRAPH_USER_OBJECT_MOVE = 1
cudaGraphUserObjectMove = 1
class cuda.cuda.CUgraphInstantiate_flags(value)

Bases: _hipGraphInstantiateFlags__Base

An enumeration.

hipGraphInstantiateFlagAutoFreeOnLaunch = 1
CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH = 1
cudaGraphInstantiateFlagAutoFreeOnLaunch = 1
hipGraphInstantiateFlagUpload = 2
CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD = 2
cudaGraphInstantiateFlagUpload = 2
hipGraphInstantiateFlagDeviceLaunch = 4
CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH = 4
cudaGraphInstantiateFlagDeviceLaunch = 4
hipGraphInstantiateFlagUseNodePriority = 8
CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY = 8
cudaGraphInstantiateFlagUseNodePriority = 8
class cuda.cuda.CUgraphInstantiate_flags_enum(value)

Bases: _hipGraphInstantiateFlags__Base

An enumeration.

hipGraphInstantiateFlagAutoFreeOnLaunch = 1
CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH = 1
cudaGraphInstantiateFlagAutoFreeOnLaunch = 1
hipGraphInstantiateFlagUpload = 2
CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD = 2
cudaGraphInstantiateFlagUpload = 2
hipGraphInstantiateFlagDeviceLaunch = 4
CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH = 4
cudaGraphInstantiateFlagDeviceLaunch = 4
hipGraphInstantiateFlagUseNodePriority = 8
CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY = 8
cudaGraphInstantiateFlagUseNodePriority = 8
class cuda.cuda.cudaGraphInstantiateFlags(value)

Bases: _hipGraphInstantiateFlags__Base

An enumeration.

hipGraphInstantiateFlagAutoFreeOnLaunch = 1
CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH = 1
cudaGraphInstantiateFlagAutoFreeOnLaunch = 1
hipGraphInstantiateFlagUpload = 2
CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD = 2
cudaGraphInstantiateFlagUpload = 2
hipGraphInstantiateFlagDeviceLaunch = 4
CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH = 4
cudaGraphInstantiateFlagDeviceLaunch = 4
hipGraphInstantiateFlagUseNodePriority = 8
CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY = 8
cudaGraphInstantiateFlagUseNodePriority = 8
class cuda.cuda.CUgraphDebugDot_flags(value)

Bases: _hipGraphDebugDotFlags__Base

An enumeration.

hipGraphDebugDotFlagsVerbose = 1
CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE = 1
cudaGraphDebugDotFlagsVerbose = 1
hipGraphDebugDotFlagsKernelNodeParams = 4
CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_PARAMS = 4
cudaGraphDebugDotFlagsKernelNodeParams = 4
hipGraphDebugDotFlagsMemcpyNodeParams = 8
CU_GRAPH_DEBUG_DOT_FLAGS_MEMCPY_NODE_PARAMS = 8
cudaGraphDebugDotFlagsMemcpyNodeParams = 8
hipGraphDebugDotFlagsMemsetNodeParams = 16
CU_GRAPH_DEBUG_DOT_FLAGS_MEMSET_NODE_PARAMS = 16
cudaGraphDebugDotFlagsMemsetNodeParams = 16
hipGraphDebugDotFlagsHostNodeParams = 32
CU_GRAPH_DEBUG_DOT_FLAGS_HOST_NODE_PARAMS = 32
cudaGraphDebugDotFlagsHostNodeParams = 32
hipGraphDebugDotFlagsEventNodeParams = 64
CU_GRAPH_DEBUG_DOT_FLAGS_EVENT_NODE_PARAMS = 64
cudaGraphDebugDotFlagsEventNodeParams = 64
hipGraphDebugDotFlagsExtSemasSignalNodeParams = 128
CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_SIGNAL_NODE_PARAMS = 128
cudaGraphDebugDotFlagsExtSemasSignalNodeParams = 128
hipGraphDebugDotFlagsExtSemasWaitNodeParams = 256
CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_WAIT_NODE_PARAMS = 256
cudaGraphDebugDotFlagsExtSemasWaitNodeParams = 256
hipGraphDebugDotFlagsKernelNodeAttributes = 512
CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_ATTRIBUTES = 512
cudaGraphDebugDotFlagsKernelNodeAttributes = 512
hipGraphDebugDotFlagsHandles = 1024
CU_GRAPH_DEBUG_DOT_FLAGS_HANDLES = 1024
cudaGraphDebugDotFlagsHandles = 1024
class cuda.cuda.CUgraphDebugDot_flags_enum(value)

Bases: _hipGraphDebugDotFlags__Base

An enumeration.

hipGraphDebugDotFlagsVerbose = 1
CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE = 1
cudaGraphDebugDotFlagsVerbose = 1
hipGraphDebugDotFlagsKernelNodeParams = 4
CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_PARAMS = 4
cudaGraphDebugDotFlagsKernelNodeParams = 4
hipGraphDebugDotFlagsMemcpyNodeParams = 8
CU_GRAPH_DEBUG_DOT_FLAGS_MEMCPY_NODE_PARAMS = 8
cudaGraphDebugDotFlagsMemcpyNodeParams = 8
hipGraphDebugDotFlagsMemsetNodeParams = 16
CU_GRAPH_DEBUG_DOT_FLAGS_MEMSET_NODE_PARAMS = 16
cudaGraphDebugDotFlagsMemsetNodeParams = 16
hipGraphDebugDotFlagsHostNodeParams = 32
CU_GRAPH_DEBUG_DOT_FLAGS_HOST_NODE_PARAMS = 32
cudaGraphDebugDotFlagsHostNodeParams = 32
hipGraphDebugDotFlagsEventNodeParams = 64
CU_GRAPH_DEBUG_DOT_FLAGS_EVENT_NODE_PARAMS = 64
cudaGraphDebugDotFlagsEventNodeParams = 64
hipGraphDebugDotFlagsExtSemasSignalNodeParams = 128
CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_SIGNAL_NODE_PARAMS = 128
cudaGraphDebugDotFlagsExtSemasSignalNodeParams = 128
hipGraphDebugDotFlagsExtSemasWaitNodeParams = 256
CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_WAIT_NODE_PARAMS = 256
cudaGraphDebugDotFlagsExtSemasWaitNodeParams = 256
hipGraphDebugDotFlagsKernelNodeAttributes = 512
CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_ATTRIBUTES = 512
cudaGraphDebugDotFlagsKernelNodeAttributes = 512
hipGraphDebugDotFlagsHandles = 1024
CU_GRAPH_DEBUG_DOT_FLAGS_HANDLES = 1024
cudaGraphDebugDotFlagsHandles = 1024
class cuda.cuda.cudaGraphDebugDotFlags(value)

Bases: _hipGraphDebugDotFlags__Base

An enumeration.

hipGraphDebugDotFlagsVerbose = 1
CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE = 1
cudaGraphDebugDotFlagsVerbose = 1
hipGraphDebugDotFlagsKernelNodeParams = 4
CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_PARAMS = 4
cudaGraphDebugDotFlagsKernelNodeParams = 4
hipGraphDebugDotFlagsMemcpyNodeParams = 8
CU_GRAPH_DEBUG_DOT_FLAGS_MEMCPY_NODE_PARAMS = 8
cudaGraphDebugDotFlagsMemcpyNodeParams = 8
hipGraphDebugDotFlagsMemsetNodeParams = 16
CU_GRAPH_DEBUG_DOT_FLAGS_MEMSET_NODE_PARAMS = 16
cudaGraphDebugDotFlagsMemsetNodeParams = 16
hipGraphDebugDotFlagsHostNodeParams = 32
CU_GRAPH_DEBUG_DOT_FLAGS_HOST_NODE_PARAMS = 32
cudaGraphDebugDotFlagsHostNodeParams = 32
hipGraphDebugDotFlagsEventNodeParams = 64
CU_GRAPH_DEBUG_DOT_FLAGS_EVENT_NODE_PARAMS = 64
cudaGraphDebugDotFlagsEventNodeParams = 64
hipGraphDebugDotFlagsExtSemasSignalNodeParams = 128
CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_SIGNAL_NODE_PARAMS = 128
cudaGraphDebugDotFlagsExtSemasSignalNodeParams = 128
hipGraphDebugDotFlagsExtSemasWaitNodeParams = 256
CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_WAIT_NODE_PARAMS = 256
cudaGraphDebugDotFlagsExtSemasWaitNodeParams = 256
hipGraphDebugDotFlagsKernelNodeAttributes = 512
CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_ATTRIBUTES = 512
cudaGraphDebugDotFlagsKernelNodeAttributes = 512
hipGraphDebugDotFlagsHandles = 1024
CU_GRAPH_DEBUG_DOT_FLAGS_HANDLES = 1024
cudaGraphDebugDotFlagsHandles = 1024
class cuda.cuda.CUmemAllocationProp

Bases: hipMemAllocationProp

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemAllocationProp.

Constructor for type hipMemAllocationProp.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

allocFlags

(undocumented)

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemAllocationProp from a Python object.

Derives a hipMemAllocationProp from the given Python object pyobj. In case pyobj is itself an hipMemAllocationProp reference, this method returns it directly. No new hipMemAllocationProp is created in this case.

get_allocFlags(self, i)

Get value of allocFlags of (<chip.hipMemAllocationProp*>self._ptr)[i].

get_location(self, i)

Get value of location of (<chip.hipMemAllocationProp*>self._ptr)[i].

get_requestedHandleType(self, i)

Get value of requestedHandleType of (<chip.hipMemAllocationProp*>self._ptr)[i].

get_type(self, i)

Get value of type of (<chip.hipMemAllocationProp*>self._ptr)[i].

get_win32HandleMetaData(self, i)

Get value win32HandleMetaData of (<chip.hipMemAllocationProp*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

location

Memory location

requestedHandleType

Requested handle type

set_requestedHandleType(self, i, value)

Set value requestedHandleType of (<chip.hipMemAllocationProp*>self._ptr)[i].

set_type(self, i, value)

Set value type of (<chip.hipMemAllocationProp*>self._ptr)[i].

set_win32HandleMetaData(self, i, value)

Set value win32HandleMetaData of (<chip.hipMemAllocationProp*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

type

Memory allocation type

win32HandleMetaData

Metadata for Win32 handles Note:

Setting this win32HandleMetaData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

class cuda.cuda.CUmemAllocationProp_st

Bases: hipMemAllocationProp

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemAllocationProp.

Constructor for type hipMemAllocationProp.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

allocFlags

(undocumented)

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemAllocationProp from a Python object.

Derives a hipMemAllocationProp from the given Python object pyobj. In case pyobj is itself an hipMemAllocationProp reference, this method returns it directly. No new hipMemAllocationProp is created in this case.

get_allocFlags(self, i)

Get value of allocFlags of (<chip.hipMemAllocationProp*>self._ptr)[i].

get_location(self, i)

Get value of location of (<chip.hipMemAllocationProp*>self._ptr)[i].

get_requestedHandleType(self, i)

Get value of requestedHandleType of (<chip.hipMemAllocationProp*>self._ptr)[i].

get_type(self, i)

Get value of type of (<chip.hipMemAllocationProp*>self._ptr)[i].

get_win32HandleMetaData(self, i)

Get value win32HandleMetaData of (<chip.hipMemAllocationProp*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

location

Memory location

requestedHandleType

Requested handle type

set_requestedHandleType(self, i, value)

Set value requestedHandleType of (<chip.hipMemAllocationProp*>self._ptr)[i].

set_type(self, i, value)

Set value type of (<chip.hipMemAllocationProp*>self._ptr)[i].

set_win32HandleMetaData(self, i, value)

Set value win32HandleMetaData of (<chip.hipMemAllocationProp*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

type

Memory allocation type

win32HandleMetaData

Metadata for Win32 handles Note:

Setting this win32HandleMetaData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

class cuda.cuda.CUmemAllocationProp_v1

Bases: hipMemAllocationProp

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipMemAllocationProp.

Constructor for type hipMemAllocationProp.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

allocFlags

(undocumented)

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipMemAllocationProp from a Python object.

Derives a hipMemAllocationProp from the given Python object pyobj. In case pyobj is itself an hipMemAllocationProp reference, this method returns it directly. No new hipMemAllocationProp is created in this case.

get_allocFlags(self, i)

Get value of allocFlags of (<chip.hipMemAllocationProp*>self._ptr)[i].

get_location(self, i)

Get value of location of (<chip.hipMemAllocationProp*>self._ptr)[i].

get_requestedHandleType(self, i)

Get value of requestedHandleType of (<chip.hipMemAllocationProp*>self._ptr)[i].

get_type(self, i)

Get value of type of (<chip.hipMemAllocationProp*>self._ptr)[i].

get_win32HandleMetaData(self, i)

Get value win32HandleMetaData of (<chip.hipMemAllocationProp*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

location

Memory location

requestedHandleType

Requested handle type

set_requestedHandleType(self, i, value)

Set value requestedHandleType of (<chip.hipMemAllocationProp*>self._ptr)[i].

set_type(self, i, value)

Set value type of (<chip.hipMemAllocationProp*>self._ptr)[i].

set_win32HandleMetaData(self, i, value)

Set value win32HandleMetaData of (<chip.hipMemAllocationProp*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

type

Memory allocation type

win32HandleMetaData

Metadata for Win32 handles Note:

Setting this win32HandleMetaData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

class cuda.cuda.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS

Bases: hipExternalSemaphoreSignalNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreSignalNodeParams.

Constructor for type hipExternalSemaphoreSignalNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreSignalNodeParams from a Python object.

Derives a hipExternalSemaphoreSignalNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreSignalNodeParams reference, this method returns it directly. No new hipExternalSemaphoreSignalNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

class cuda.cuda.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st

Bases: hipExternalSemaphoreSignalNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreSignalNodeParams.

Constructor for type hipExternalSemaphoreSignalNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreSignalNodeParams from a Python object.

Derives a hipExternalSemaphoreSignalNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreSignalNodeParams reference, this method returns it directly. No new hipExternalSemaphoreSignalNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

class cuda.cuda.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1

Bases: hipExternalSemaphoreSignalNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreSignalNodeParams.

Constructor for type hipExternalSemaphoreSignalNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreSignalNodeParams from a Python object.

Derives a hipExternalSemaphoreSignalNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreSignalNodeParams reference, this method returns it directly. No new hipExternalSemaphoreSignalNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

class cuda.cuda.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2

Bases: hipExternalSemaphoreSignalNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreSignalNodeParams.

Constructor for type hipExternalSemaphoreSignalNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreSignalNodeParams from a Python object.

Derives a hipExternalSemaphoreSignalNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreSignalNodeParams reference, this method returns it directly. No new hipExternalSemaphoreSignalNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

class cuda.cuda.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st

Bases: hipExternalSemaphoreSignalNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreSignalNodeParams.

Constructor for type hipExternalSemaphoreSignalNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreSignalNodeParams from a Python object.

Derives a hipExternalSemaphoreSignalNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreSignalNodeParams reference, this method returns it directly. No new hipExternalSemaphoreSignalNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

class cuda.cuda.cudaExternalSemaphoreSignalNodeParams

Bases: hipExternalSemaphoreSignalNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreSignalNodeParams.

Constructor for type hipExternalSemaphoreSignalNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreSignalNodeParams from a Python object.

Derives a hipExternalSemaphoreSignalNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreSignalNodeParams reference, this method returns it directly. No new hipExternalSemaphoreSignalNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

class cuda.cuda.cudaExternalSemaphoreSignalNodeParamsV2

Bases: hipExternalSemaphoreSignalNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreSignalNodeParams.

Constructor for type hipExternalSemaphoreSignalNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreSignalNodeParams from a Python object.

Derives a hipExternalSemaphoreSignalNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreSignalNodeParams reference, this method returns it directly. No new hipExternalSemaphoreSignalNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].

class cuda.cuda.CUDA_EXT_SEM_WAIT_NODE_PARAMS

Bases: hipExternalSemaphoreWaitNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreWaitNodeParams.

Constructor for type hipExternalSemaphoreWaitNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreWaitNodeParams from a Python object.

Derives a hipExternalSemaphoreWaitNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreWaitNodeParams reference, this method returns it directly. No new hipExternalSemaphoreWaitNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

class cuda.cuda.CUDA_EXT_SEM_WAIT_NODE_PARAMS_st

Bases: hipExternalSemaphoreWaitNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreWaitNodeParams.

Constructor for type hipExternalSemaphoreWaitNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreWaitNodeParams from a Python object.

Derives a hipExternalSemaphoreWaitNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreWaitNodeParams reference, this method returns it directly. No new hipExternalSemaphoreWaitNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

class cuda.cuda.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1

Bases: hipExternalSemaphoreWaitNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreWaitNodeParams.

Constructor for type hipExternalSemaphoreWaitNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreWaitNodeParams from a Python object.

Derives a hipExternalSemaphoreWaitNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreWaitNodeParams reference, this method returns it directly. No new hipExternalSemaphoreWaitNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

class cuda.cuda.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2

Bases: hipExternalSemaphoreWaitNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreWaitNodeParams.

Constructor for type hipExternalSemaphoreWaitNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreWaitNodeParams from a Python object.

Derives a hipExternalSemaphoreWaitNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreWaitNodeParams reference, this method returns it directly. No new hipExternalSemaphoreWaitNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

class cuda.cuda.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st

Bases: hipExternalSemaphoreWaitNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreWaitNodeParams.

Constructor for type hipExternalSemaphoreWaitNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreWaitNodeParams from a Python object.

Derives a hipExternalSemaphoreWaitNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreWaitNodeParams reference, this method returns it directly. No new hipExternalSemaphoreWaitNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

class cuda.cuda.cudaExternalSemaphoreWaitNodeParams

Bases: hipExternalSemaphoreWaitNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreWaitNodeParams.

Constructor for type hipExternalSemaphoreWaitNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreWaitNodeParams from a Python object.

Derives a hipExternalSemaphoreWaitNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreWaitNodeParams reference, this method returns it directly. No new hipExternalSemaphoreWaitNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

class cuda.cuda.cudaExternalSemaphoreWaitNodeParamsV2

Bases: hipExternalSemaphoreWaitNodeParams

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipExternalSemaphoreWaitNodeParams.

Constructor for type hipExternalSemaphoreWaitNodeParams.

Args:
**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

extSemArray

(undocumented) Note:

Setting this extSemArray can be dangerous if the underlying pointer is from a python object that is later on garbage collected.

static fromObj(pyobj)

Creates a hipExternalSemaphoreWaitNodeParams from a Python object.

Derives a hipExternalSemaphoreWaitNodeParams from the given Python object pyobj. In case pyobj is itself an hipExternalSemaphoreWaitNodeParams reference, this method returns it directly. No new hipExternalSemaphoreWaitNodeParams is created in this case.

get_extSemArray(self, i)

Get value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

get_numExtSems(self, i)

Get value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

numExtSems

(undocumented)

set_extSemArray(self, i, value)

Set value extSemArray of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

Note:

This can be dangerous if the pointer is from a python object that is later on garbage collected.

set_numExtSems(self, i, unsigned int value)

Set value numExtSems of (<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].

cuda.cuda.CUmemGenericAllocationHandle

alias of ihipMemGenericAllocationHandle

cuda.cuda.CUmemGenericAllocationHandle_v1

alias of ihipMemGenericAllocationHandle

class cuda.cuda.CUmemAllocationGranularity_flags(value)

Bases: _hipMemAllocationGranularity_flags__Base

An enumeration.

hipMemAllocationGranularityMinimum = 0
CU_MEM_ALLOC_GRANULARITY_MINIMUM = 0
hipMemAllocationGranularityRecommended = 1
CU_MEM_ALLOC_GRANULARITY_RECOMMENDED = 1
class cuda.cuda.CUmemAllocationGranularity_flags_enum(value)

Bases: _hipMemAllocationGranularity_flags__Base

An enumeration.

hipMemAllocationGranularityMinimum = 0
CU_MEM_ALLOC_GRANULARITY_MINIMUM = 0
hipMemAllocationGranularityRecommended = 1
CU_MEM_ALLOC_GRANULARITY_RECOMMENDED = 1
class cuda.cuda.CUmemHandleType(value)

Bases: _hipMemHandleType__Base

An enumeration.

hipMemHandleTypeGeneric = 0
CU_MEM_HANDLE_TYPE_GENERIC = 0
class cuda.cuda.CUmemHandleType_enum(value)

Bases: _hipMemHandleType__Base

An enumeration.

hipMemHandleTypeGeneric = 0
CU_MEM_HANDLE_TYPE_GENERIC = 0
class cuda.cuda.CUmemOperationType(value)

Bases: _hipMemOperationType__Base

An enumeration.

hipMemOperationTypeMap = 1
CU_MEM_OPERATION_TYPE_MAP = 1
hipMemOperationTypeUnmap = 2
CU_MEM_OPERATION_TYPE_UNMAP = 2
class cuda.cuda.CUmemOperationType_enum(value)

Bases: _hipMemOperationType__Base

An enumeration.

hipMemOperationTypeMap = 1
CU_MEM_OPERATION_TYPE_MAP = 1
hipMemOperationTypeUnmap = 2
CU_MEM_OPERATION_TYPE_UNMAP = 2
class cuda.cuda.CUarraySparseSubresourceType(value)

Bases: _hipArraySparseSubresourceType__Base

An enumeration.

hipArraySparseSubresourceTypeSparseLevel = 0
CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL = 0
hipArraySparseSubresourceTypeMiptail = 1
CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL = 1
class cuda.cuda.CUarraySparseSubresourceType_enum(value)

Bases: _hipArraySparseSubresourceType__Base

An enumeration.

hipArraySparseSubresourceTypeSparseLevel = 0
CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL = 0
hipArraySparseSubresourceTypeMiptail = 1
CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL = 1
class cuda.cuda.CUarrayMapInfo

Bases: hipArrayMapInfo

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipArrayMapInfo.

Constructor for type hipArrayMapInfo.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

deviceBitMask

Device ordinal bit mask

flags

flags for future use, must be zero now.

static fromObj(pyobj)

Creates a hipArrayMapInfo from a Python object.

Derives a hipArrayMapInfo from the given Python object pyobj. In case pyobj is itself an hipArrayMapInfo reference, this method returns it directly. No new hipArrayMapInfo is created in this case.

get_deviceBitMask(self, i)

Get value deviceBitMask of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_flags(self, i)

Get value flags of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_memHandle(self, i)

Get value of memHandle of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_memHandleType(self, i)

Get value of memHandleType of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_memOperationType(self, i)

Get value of memOperationType of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_offset(self, i)

Get value offset of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_resource(self, i)

Get value of resource of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_resourceType(self, i)

Get value of resourceType of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_subresource(self, i)

Get value of subresource of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_subresourceType(self, i)

Get value of subresourceType of (<chip.hipArrayMapInfo*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

memHandle

(undocumented)

memHandleType

Memory handle type

memOperationType

Memory operation type

offset

Offset within the memory

reserved

Reserved for future use, must be zero now.

resource

(undocumented)

resourceType

Resource type

set_deviceBitMask(self, i, unsigned int value)

Set value deviceBitMask of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_flags(self, i, unsigned int value)

Set value flags of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_memHandleType(self, i, value)

Set value memHandleType of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_memOperationType(self, i, value)

Set value memOperationType of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_offset(self, i, unsigned long long value)

Set value offset of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_resourceType(self, i, value)

Set value resourceType of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_subresourceType(self, i, value)

Set value subresourceType of (<chip.hipArrayMapInfo*>self._ptr)[i].

subresource

(undocumented)

subresourceType

Sparse subresource type

class cuda.cuda.CUarrayMapInfo_st

Bases: hipArrayMapInfo

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipArrayMapInfo.

Constructor for type hipArrayMapInfo.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

deviceBitMask

Device ordinal bit mask

flags

flags for future use, must be zero now.

static fromObj(pyobj)

Creates a hipArrayMapInfo from a Python object.

Derives a hipArrayMapInfo from the given Python object pyobj. In case pyobj is itself an hipArrayMapInfo reference, this method returns it directly. No new hipArrayMapInfo is created in this case.

get_deviceBitMask(self, i)

Get value deviceBitMask of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_flags(self, i)

Get value flags of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_memHandle(self, i)

Get value of memHandle of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_memHandleType(self, i)

Get value of memHandleType of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_memOperationType(self, i)

Get value of memOperationType of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_offset(self, i)

Get value offset of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_resource(self, i)

Get value of resource of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_resourceType(self, i)

Get value of resourceType of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_subresource(self, i)

Get value of subresource of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_subresourceType(self, i)

Get value of subresourceType of (<chip.hipArrayMapInfo*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

memHandle

(undocumented)

memHandleType

Memory handle type

memOperationType

Memory operation type

offset

Offset within the memory

reserved

Reserved for future use, must be zero now.

resource

(undocumented)

resourceType

Resource type

set_deviceBitMask(self, i, unsigned int value)

Set value deviceBitMask of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_flags(self, i, unsigned int value)

Set value flags of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_memHandleType(self, i, value)

Set value memHandleType of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_memOperationType(self, i, value)

Set value memOperationType of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_offset(self, i, unsigned long long value)

Set value offset of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_resourceType(self, i, value)

Set value resourceType of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_subresourceType(self, i, value)

Set value subresourceType of (<chip.hipArrayMapInfo*>self._ptr)[i].

subresource

(undocumented)

subresourceType

Sparse subresource type

class cuda.cuda.CUarrayMapInfo_v1

Bases: hipArrayMapInfo

static PROPERTIES()
__getitem__(key, /)

Return self[key].

__init__()

Constructor type hipArrayMapInfo.

Constructor for type hipArrayMapInfo.

Args:
*args:

Positional arguments. Initialize all or a subset of the member variables according to their order of declaration.

**kwargs:

Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

c_sizeof(self)

Returns the size of the underlying C type in bytes. Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

deviceBitMask

Device ordinal bit mask

flags

flags for future use, must be zero now.

static fromObj(pyobj)

Creates a hipArrayMapInfo from a Python object.

Derives a hipArrayMapInfo from the given Python object pyobj. In case pyobj is itself an hipArrayMapInfo reference, this method returns it directly. No new hipArrayMapInfo is created in this case.

get_deviceBitMask(self, i)

Get value deviceBitMask of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_flags(self, i)

Get value flags of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_memHandle(self, i)

Get value of memHandle of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_memHandleType(self, i)

Get value of memHandleType of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_memOperationType(self, i)

Get value of memOperationType of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_offset(self, i)

Get value offset of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_reserved(self, i)

Get value of reserved of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_resource(self, i)

Get value of resource of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_resourceType(self, i)

Get value of resourceType of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_subresource(self, i)

Get value of subresource of (<chip.hipArrayMapInfo*>self._ptr)[i].

get_subresourceType(self, i)

Get value of subresourceType of (<chip.hipArrayMapInfo*>self._ptr)[i].

is_ptr_null

If data pointer is NULL.

memHandle

(undocumented)

memHandleType

Memory handle type

memOperationType

Memory operation type

offset

Offset within the memory

reserved

Reserved for future use, must be zero now.

resource

(undocumented)

resourceType

Resource type

set_deviceBitMask(self, i, unsigned int value)

Set value deviceBitMask of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_flags(self, i, unsigned int value)

Set value flags of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_memHandleType(self, i, value)

Set value memHandleType of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_memOperationType(self, i, value)

Set value memOperationType of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_offset(self, i, unsigned long long value)

Set value offset of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_resourceType(self, i, value)

Set value resourceType of (<chip.hipArrayMapInfo*>self._ptr)[i].

set_subresourceType(self, i, value)

Set value subresourceType of (<chip.hipArrayMapInfo*>self._ptr)[i].

subresource

(undocumented)

subresourceType

Sparse subresource type

cuda.cuda.cuInit(flags)

hipInit(unsigned int 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.

Args:
flags (int) – IN:

Initialization flag, should be zero.

Returns:

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

cuda.cuda.cuDriverGetVersion()

hipDriverGetVersion() Returns the approximate HIP driver version.

Warning:

The HIP feature set does not correspond to an exact CUDA SDK driver revision. This function always set *driverVersion 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 driver revision number here and should use arch feature flags to test device capabilities or conditional compilation.

See:

hipRuntimeGetVersion

Returns:

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

cuda.cuda.cudaDriverGetVersion()

hipDriverGetVersion() Returns the approximate HIP driver version.

Warning:

The HIP feature set does not correspond to an exact CUDA SDK driver revision. This function always set *driverVersion 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 driver revision number here and should use arch feature flags to test device capabilities or conditional compilation.

See:

hipRuntimeGetVersion

Returns:

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

cuda.cuda.cudaRuntimeGetVersion()

hipRuntimeGetVersion() 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):

cuda.cuda.cuDeviceGet(ordinal)

hipDeviceGet(int 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):

cuda.cuda.cuDeviceComputeCapability(device)

hipDeviceComputeCapability(int 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):

cuda.cuda.cuDeviceGetName(len, device)

hipDeviceGetName(int len, int 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):

cuda.cuda.cuDeviceGetUuid(device)

hipDeviceGetUuid(int device) Returns an UUID for the device.[BETA]

Beta:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Args:
device (int) – IN:

device ordinal

Returns:

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

cuda.cuda.cuDeviceGetUuid_v2(device)

hipDeviceGetUuid(int device) Returns an UUID for the device.[BETA]

Beta:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Args:
device (int) – IN:

device ordinal

Returns:

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

cuda.cuda.cudaDeviceGetP2PAttribute(attr, srcDevice, dstDevice)

hipDeviceGetP2PAttribute(attr, int srcDevice, int 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):

cuda.cuda.cuDeviceGetP2PAttribute(attr, srcDevice, dstDevice)

hipDeviceGetP2PAttribute(attr, int srcDevice, int 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):

cuda.cuda.cudaDeviceGetPCIBusId(len, device)

hipDeviceGetPCIBusId(int len, int 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):

cuda.cuda.cuDeviceGetPCIBusId(len, device)

hipDeviceGetPCIBusId(int len, int 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):

cuda.cuda.cudaDeviceGetByPCIBusId(pciBusId)

hipDeviceGetByPCIBusId(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):

cuda.cuda.cuDeviceGetByPCIBusId(pciBusId)

hipDeviceGetByPCIBusId(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):

cuda.cuda.cuDeviceTotalMem(device)

hipDeviceTotalMem(int 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):

cuda.cuda.cuDeviceTotalMem_v2(device)

hipDeviceTotalMem(int 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):

cuda.cuda.cudaDeviceSynchronize()

hipDeviceSynchronize() 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:

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

cuda.cuda.cudaThreadSynchronize()

hipDeviceSynchronize() 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:

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

cuda.cuda.cudaDeviceReset()

hipDeviceReset() 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:

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

cuda.cuda.cudaThreadExit()

hipDeviceReset() 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:

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

cuda.cuda.cudaSetDevice(deviceId)

hipSetDevice(int 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:

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

cuda.cuda.cudaGetDevice()

hipGetDevice() 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):

cuda.cuda.cuDeviceGetCount()

hipGetDeviceCount() 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):

cuda.cuda.cudaGetDeviceCount()

hipGetDeviceCount() 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):

cuda.cuda.cuDeviceGetAttribute(attr, deviceId)

hipDeviceGetAttribute(attr, int 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):

cuda.cuda.cudaDeviceGetAttribute(attr, deviceId)

hipDeviceGetAttribute(attr, int 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):

cuda.cuda.cuDeviceGetDefaultMemPool(device)

hipDeviceGetDefaultMemPool(int 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, meaning, while this is feature complete, it is still open to changes and may 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):

cuda.cuda.cudaDeviceGetDefaultMemPool(device)

hipDeviceGetDefaultMemPool(int 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, meaning, while this is feature complete, it is still open to changes and may 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):

cuda.cuda.cuDeviceSetMemPool(device, mem_pool)

hipDeviceSetMemPool(int 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, meaning, while this is feature complete, it is still open to changes and may 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:

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

cuda.cuda.cudaDeviceSetMemPool(device, mem_pool)

hipDeviceSetMemPool(int 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, meaning, while this is feature complete, it is still open to changes and may 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:

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

cuda.cuda.cuDeviceGetMemPool(device)

hipDeviceGetMemPool(int 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, meaning, while this is feature complete, it is still open to changes and may 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):

cuda.cuda.cudaDeviceGetMemPool(device)

hipDeviceGetMemPool(int 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, meaning, while this is feature complete, it is still open to changes and may 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):

cuda.cuda.cudaGetDeviceProperties(prop, deviceId)

hipGetDeviceProperties(prop, int deviceId) (No short description, might be part of a group.)

Args:
prop (hipDeviceProp_t/object):

(undocumented)

deviceId (int):

(undocumented)

cuda.cuda.cudaDeviceSetCacheConfig(cacheConfig)

hipDeviceSetCacheConfig(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:

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

cuda.cuda.cudaThreadSetCacheConfig(cacheConfig)

hipDeviceSetCacheConfig(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:

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

cuda.cuda.cudaDeviceGetCacheConfig()

hipDeviceGetCacheConfig() Get Cache configuration for a specific Device

Returns:

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

cuda.cuda.cudaThreadGetCacheConfig()

hipDeviceGetCacheConfig() Get Cache configuration for a specific Device

Returns:

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

cuda.cuda.cudaDeviceGetLimit(limit)

hipDeviceGetLimit(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):

cuda.cuda.cuCtxGetLimit(limit)

hipDeviceGetLimit(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):

cuda.cuda.cudaDeviceSetLimit(limit, value)

hipDeviceSetLimit(limit, unsigned long 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:

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

cuda.cuda.cuCtxSetLimit(limit, value)

hipDeviceSetLimit(limit, unsigned long 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:

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

cuda.cuda.cudaDeviceGetSharedMemConfig()

hipDeviceGetSharedMemConfig() 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):

cuda.cuda.cudaGetDeviceFlags()

hipGetDeviceFlags() Gets the flags set for current device

Returns:

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

cuda.cuda.cudaDeviceSetSharedMemConfig(config)

hipDeviceSetSharedMemConfig(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:

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

cuda.cuda.cudaSetDeviceFlags(flags)

hipSetDeviceFlags(unsigned int flags) The current device behavior is changed according 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 : Use a hueristic to select between Spin and Yield modes. If the number of HIP contexts is greater than the number of logical processors in the system, use Spin scheduling. Else use Yield scheduling.

hipDeviceMapHost : Allow mapping host memory. On ROCM, this is always allowed and the flag is ignored. hipDeviceLmemResizeToMax :

Warning:

ROCm silently ignores this flag.

Args:
flags (int) – IN:

Flag to set on the current device

Returns:

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

cuda.cuda.cudaChooseDevice(prop)

hipChooseDevice(prop) (No short description, might be part of a group.)

Args:
prop (hipDeviceProp_t/object):

(undocumented)

Returns:

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

  • device (int):

    (undocumented)

cuda.cuda.cudaIpcGetMemHandle(devPtr)

hipIpcGetMemHandle(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):

cuda.cuda.cuIpcGetMemHandle(devPtr)

hipIpcGetMemHandle(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):

cuda.cuda.cudaIpcOpenMemHandle(handle, flags)

hipIpcOpenMemHandle(handle, unsigned int 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):

cuda.cuda.cuIpcOpenMemHandle(handle, flags)

hipIpcOpenMemHandle(handle, unsigned int 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):

cuda.cuda.cudaIpcCloseMemHandle(devPtr)

hipIpcCloseMemHandle(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:

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

cuda.cuda.cuIpcCloseMemHandle(devPtr)

hipIpcCloseMemHandle(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:

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

cuda.cuda.cudaIpcGetEventHandle(handle, event)

hipIpcGetEventHandle(handle, 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:
handle (hipIpcEventHandle_st/object) – OUT:

Pointer to hipIpcEventHandle to return the opaque event handle

event (ihipEvent_t/object) – IN:

Event allocated with hipEventInterprocess and hipEventDisableTiming flags

Returns:

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

cuda.cuda.cuIpcGetEventHandle(handle, event)

hipIpcGetEventHandle(handle, 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:
handle (hipIpcEventHandle_st/object) – OUT:

Pointer to hipIpcEventHandle to return the opaque event handle

event (ihipEvent_t/object) – IN:

Event allocated with hipEventInterprocess and hipEventDisableTiming flags

Returns:

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

cuda.cuda.cudaIpcOpenEventHandle(handle)

hipIpcOpenEventHandle(handle) Opens an interprocess event handles.

Opens an interprocess event handle exported from another process with cudaIpcGetEventHandle. 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):

cuda.cuda.cuIpcOpenEventHandle(handle)

hipIpcOpenEventHandle(handle) Opens an interprocess event handles.

Opens an interprocess event handle exported from another process with cudaIpcGetEventHandle. 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):

cuda.cuda.cudaFuncSetAttribute(func, attr, value)

hipFuncSetAttribute(func, attr, int 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:

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

cuda.cuda.cudaFuncSetCacheConfig(func, config)

hipFuncSetCacheConfig(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:

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

cuda.cuda.cudaFuncSetSharedMemConfig(func, config)

hipFuncSetSharedMemConfig(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:

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

cuda.cuda.cudaGetLastError()

hipGetLastError() 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:

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

  • hipError_t: return code from last HIP called from the active host thread

cuda.cuda.cudaPeekAtLastError()

hipPeekAtLastError() 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:

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

cuda.cuda.cudaGetErrorName(hip_error)

hipGetErrorName(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):

cuda.cuda.cudaGetErrorString(hipError)

hipGetErrorString(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):

cuda.cuda.cuGetErrorName(hipError)

hipDrvGetErrorName(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):

cuda.cuda.cuGetErrorString(hipError)

hipDrvGetErrorString(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):

cuda.cuda.cudaStreamCreate()

hipStreamCreate() Create an asynchronous stream.

Create a new asynchronous stream. 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, applicaiton must call hipStreamDestroy.

See:

hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy

Returns:

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

cuda.cuda.cuStreamCreate(flags)

hipStreamCreateWithFlags(unsigned int flags) Create an asynchronous stream.

Create a new asynchronous stream. 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, applicaiton must call hipStreamDestroy. Flags controls behavior of the stream. See hipStreamDefault, hipStreamNonBlocking.

See:

hipStreamCreate, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy

Args:
flags (int) – IN:

to control stream creation.

Returns:

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

cuda.cuda.cudaStreamCreateWithFlags(flags)

hipStreamCreateWithFlags(unsigned int flags) Create an asynchronous stream.

Create a new asynchronous stream. 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, applicaiton must call hipStreamDestroy. Flags controls behavior of the stream. See hipStreamDefault, hipStreamNonBlocking.

See:

hipStreamCreate, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy

Args:
flags (int) – IN:

to control stream creation.

Returns:

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

cuda.cuda.cuStreamCreateWithPriority(flags, priority)

hipStreamCreateWithPriority(unsigned int flags, int priority) Create an asynchronous stream with the specified priority.

Create a new asynchronous stream with the specified priority. 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, applicaiton must call hipStreamDestroy. Flags controls behavior of the stream. See hipStreamDefault, hipStreamNonBlocking.

See:

hipStreamCreate, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy

Args:
flags (int) – IN:

to control stream creation.

priority (int) – IN:

of the stream. Lower numbers represent higher priorities.

Returns:

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

cuda.cuda.cudaStreamCreateWithPriority(flags, priority)

hipStreamCreateWithPriority(unsigned int flags, int priority) Create an asynchronous stream with the specified priority.

Create a new asynchronous stream with the specified priority. 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, applicaiton must call hipStreamDestroy. Flags controls behavior of the stream. See hipStreamDefault, hipStreamNonBlocking.

See:

hipStreamCreate, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy

Args:
flags (int) – IN:

to control stream creation.

priority (int) – IN:

of the stream. Lower numbers represent higher priorities.

Returns:

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

cuda.cuda.cudaDeviceGetStreamPriorityRange()

hipDeviceGetStreamPriorityRange() 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 [*greatestPriority, *leastPriority]. If the user attempts to create a stream with a priority value that is outside the the meaningful range as specified by this API, the priority is automatically clamped to within the valid range.

Returns:

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

  • hipError_t: hipSuccess

  • int:

    pointer in which value corresponding to least priority is returned.

  • int:

    pointer in which value corresponding to greatest priority is returned.

cuda.cuda.cuCtxGetStreamPriorityRange()

hipDeviceGetStreamPriorityRange() 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 [*greatestPriority, *leastPriority]. If the user attempts to create a stream with a priority value that is outside the the meaningful range as specified by this API, the priority is automatically clamped to within the valid range.

Returns:

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

  • hipError_t: hipSuccess

  • int:

    pointer in which value corresponding to least priority is returned.

  • int:

    pointer in which value corresponding to greatest priority is returned.

cuda.cuda.cuStreamDestroy(stream)

hipStreamDestroy(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:

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

cuda.cuda.cuStreamDestroy_v2(stream)

hipStreamDestroy(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:

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

cuda.cuda.cudaStreamDestroy(stream)

hipStreamDestroy(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:

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

cuda.cuda.cuStreamQuery(stream)

hipStreamQuery(stream) Return 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:

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

cuda.cuda.cudaStreamQuery(stream)

hipStreamQuery(stream) Return 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:

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

cuda.cuda.cuStreamSynchronize(stream)

hipStreamSynchronize(stream) Wait for all commands in stream to complete.

This command is host-synchronous : the host will block until the specified stream is empty.

This command follows standard null-stream semantics. Specifically, 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 hipDeviceLaunchBlocking 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:

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

cuda.cuda.cudaStreamSynchronize(stream)

hipStreamSynchronize(stream) Wait for all commands in stream to complete.

This command is host-synchronous : the host will block until the specified stream is empty.

This command follows standard null-stream semantics. Specifically, 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 hipDeviceLaunchBlocking 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:

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

cuda.cuda.cuStreamWaitEvent(stream, event, flags)

hipStreamWaitEvent(stream, event, unsigned int flags) Make the specified compute stream wait for an 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.

This function only waits for commands in the current stream to complete. Notably,, this function does not impliciy 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:

control operation [must be 0]

Returns:

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

cuda.cuda.cudaStreamWaitEvent(stream, event, flags)

hipStreamWaitEvent(stream, event, unsigned int flags) Make the specified compute stream wait for an 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.

This function only waits for commands in the current stream to complete. Notably,, this function does not impliciy 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:

control operation [must be 0]

Returns:

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

cuda.cuda.cuStreamGetFlags(stream)

hipStreamGetFlags(stream) Return flags associated with this stream.

Return flags associated with this stream in *flags.

See:

hipStreamCreateWithFlags

Args:
stream (ihipStream_t/object) – IN:

stream to be queried

Returns:

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

cuda.cuda.cudaStreamGetFlags(stream)

hipStreamGetFlags(stream) Return flags associated with this stream.

Return flags associated with this stream in *flags.

See:

hipStreamCreateWithFlags

Args:
stream (ihipStream_t/object) – IN:

stream to be queried

Returns:

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

cuda.cuda.cuStreamGetPriority(stream)

hipStreamGetPriority(stream) Query the priority of a stream.

Query the priority of a stream. The priority is returned in in priority.

See:

hipStreamCreateWithFlags

Args:
stream (ihipStream_t/object) – IN:

stream to be queried

Returns:

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

cuda.cuda.cudaStreamGetPriority(stream)

hipStreamGetPriority(stream) Query the priority of a stream.

Query the priority of a stream. The priority is returned in in priority.

See:

hipStreamCreateWithFlags

Args:
stream (ihipStream_t/object) – IN:

stream to be queried

Returns:

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

class cuda.cuda.CUstreamCallback

Bases: hipStreamCallback_t

__getitem__()

Returns a new Pointer whose pointer is this instance’s pointer offsetted by offset.

Args:

offset (int): Offset (in bytes) to add to this instance’s pointer.

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipStreamCallback_t from a Python object.

Derives a hipStreamCallback_t from the given Python object pyobj. In case pyobj is itself an hipStreamCallback_t reference, this method returns it directly. No new hipStreamCallback_t is created in this case.

is_ptr_null

If data pointer is NULL.

class cuda.cuda.cudaStreamCallback_t

Bases: hipStreamCallback_t

__getitem__()

Returns a new Pointer whose pointer is this instance’s pointer offsetted by offset.

Args:

offset (int): Offset (in bytes) to add to this instance’s pointer.

__init__()

Constructor.

Args:
pyobj (object):

See the class description Pointer for information about accepted types for pyobj. Defaults to None.

Raises:

TypeError: If the input object pyobj is not of the right type.

as_c_void_p(self)

Returns the data’s address as ctypes.c_void_p Note:

Implemented as function to not collide with autogenerated property names.

createRef(self) Pointer

Creates are reference to this pointer.

Returns a Pointer that stores the address of this `~.Pointer’s data pointer.

Note:

No ownership information is transferred.

static fromObj(pyobj)

Creates a hipStreamCallback_t from a Python object.

Derives a hipStreamCallback_t from the given Python object pyobj. In case pyobj is itself an hipStreamCallback_t reference, this method returns it directly. No new hipStreamCallback_t is created in this case.

is_ptr_null

If data pointer is NULL.

cuda.cuda.cuStreamAddCallback(stream, callback, userData, flags)

hipStreamAddCallback(stream, callback, userData, unsigned int 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:

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

cuda.cuda.cudaStreamAddCallback(stream, callback, userData, flags)

hipStreamAddCallback(stream, callback, userData, unsigned int 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:

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

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

hipStreamWaitValue32(stream, ptr, unsigned int value, unsigned int flags, unsigned int mask) Enqueues a wait command to the stream.[BETA]

This section describes Stream Memory Wait and Write functions of HIP runtime API.

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.

Beta:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

See:

hipExtMallocWithFlags, hipFree, hipStreamWaitValue64, 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:
  • Defines the compare operation, supported values are hipStreamWaitValueGte

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:

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

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

hipStreamWaitValue32(stream, ptr, unsigned int value, unsigned int flags, unsigned int mask) Enqueues a wait command to the stream.[BETA]

This section describes Stream Memory Wait and Write functions of HIP runtime API.

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.

Beta:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

See:

hipExtMallocWithFlags, hipFree, hipStreamWaitValue64, 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:
  • Defines the compare operation, supported values are hipStreamWaitValueGte

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:

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

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

hipStreamWaitValue64(stream, ptr, unsigned long value, unsigned int flags, unsigned long 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.

Beta:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may 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:
  • Defines the compare operation, supported values are hipStreamWaitValueGte

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:

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

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

hipStreamWaitValue64(stream, ptr, unsigned long value, unsigned int flags, unsigned long 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.

Beta:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may 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:
  • Defines the compare operation, supported values are hipStreamWaitValueGte

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:

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

cuda.cuda.cuStreamWriteValue32(stream, ptr, value, flags)

hipStreamWriteValue32(stream, ptr, unsigned int value, unsigned int 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.

Beta:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may 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:

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

cuda.cuda.cuStreamWriteValue32_v2(stream, ptr, value, flags)

hipStreamWriteValue32(stream, ptr, unsigned int value, unsigned int 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.

Beta:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may 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:

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

cuda.cuda.cuStreamWriteValue64(stream, ptr, value, flags)

hipStreamWriteValue64(stream, ptr, unsigned long value, unsigned int 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.

Beta:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may 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:

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

cuda.cuda.cuStreamWriteValue64_v2(stream, ptr, value, flags)

hipStreamWriteValue64(stream, ptr, unsigned long value, unsigned int 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.

Beta:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may 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:

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

cuda.cuda.cuEventCreate(flags)

hipEventCreateWithFlags(unsigned int 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):

cuda.cuda.cudaEventCreateWithFlags(flags)

hipEventCreateWithFlags(unsigned int 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):

cuda.cuda.cudaEventCreate()

hipEventCreate() (No short description, might be part of a group.)

cuda.cuda.cuEventRecord(event, stream)

hipEventRecord(event, stream) (No short description, might be part of a group.)

Args:
event (ihipEvent_t/object):

(undocumented)

stream (ihipStream_t/object):

(undocumented)

cuda.cuda.cudaEventRecord(event, stream)

hipEventRecord(event, stream) (No short description, might be part of a group.)

Args:
event (ihipEvent_t/object):

(undocumented)

stream (ihipStream_t/object):

(undocumented)

cuda.cuda.cuEventDestroy(event)

hipEventDestroy(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:

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

cuda.cuda.cuEventDestroy_v2(event)

hipEventDestroy(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:

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

cuda.cuda.cudaEventDestroy(event)

hipEventDestroy(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:

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

cuda.cuda.cuEventSynchronize(event)

hipEventSynchronize(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 immediately.

TODO-hip- This function needs to support hipEventBlockingSync parameter.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

Event on which to wait.

Returns:

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

cuda.cuda.cudaEventSynchronize(event)

hipEventSynchronize(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 immediately.

TODO-hip- This function needs to support hipEventBlockingSync parameter.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

Event on which to wait.

Returns:

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

cuda.cuda.cuEventElapsedTime(start, stop)

hipEventElapsedTime(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):

cuda.cuda.cudaEventElapsedTime(start, stop)

hipEventElapsedTime(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):

cuda.cuda.cuEventQuery(event)

hipEventQuery(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 that work has not completed, or if hipEventRecord() was not called on the event, then hipErrorNotReady is returned.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventRecord, hipEventDestroy, hipEventSynchronize, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

Event to query.

Returns:

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

cuda.cuda.cudaEventQuery(event)

hipEventQuery(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 that work has not completed, or if hipEventRecord() was not called on the event, then hipErrorNotReady is returned.

See:

hipEventCreate, hipEventCreateWithFlags, hipEventRecord, hipEventDestroy, hipEventSynchronize, hipEventElapsedTime

Args:
event (ihipEvent_t/object) – IN:

Event to query.

Returns:

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

cuda.cuda.cuPointerSetAttribute(value, attribute, ptr)

hipPointerSetAttribute(value, attribute, ptr) Sets information on the specified pointer.[BETA]

Beta:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Args:
value (Pointer/object) – IN:

sets pointer attribute value

attribute (hipPointer_attribute):

(undocumented)

ptr (Pointer/object) – IN:

pointer to set attributes for

Returns:

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

cuda.cuda.cudaPointerGetAttributes(attributes, ptr)

hipPointerGetAttributes(attributes, ptr) Return attributes for the specified pointer

Note:

To get pointer’s memory type, the parameter attributes has ‘type’ as member variable. The ‘type’ indicates input pointer is allocated on device or host. That means the input pointer must be returned or passed through an HIP API such as hipHostMalloc, hipMallocManaged, hipHostRegister, etc. Otherwise, the pointer can’t be handled by this API and attributes returned hipErrorInvalidValue, due to the hipMemoryType enums values, unrecognized memory type is currently not supported due to HIP functionality backward compatibility.

See:

hipPointerGetAttribute

Args:
attributes (hipPointerAttribute_t/object) – OUT:

attributes for the specified pointer

ptr (Pointer/object) – IN:

pointer to get attributes for

Returns:

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

cuda.cuda.cuPointerGetAttribute(data, attribute, ptr)

hipPointerGetAttribute(data, attribute, ptr) Returns information about the specified pointer.[BETA]

Beta:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

See:

hipPointerGetAttributes

Args:
data (Pointer/object) – IN,OUT:

returned pointer attribute value

attribute (hipPointer_attribute):

(undocumented)

ptr (Pointer/object) – IN:

pointer to get attributes for

Returns:

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

cuda.cuda.cuPointerGetAttributes(numAttributes, attributes, ptr)

hipDrvPointerGetAttributes(unsigned int numAttributes, attributes, ptr) Returns information about the specified pointer.[BETA]

Beta:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

See:

hipPointerGetAttribute

Args:
numAttributes (int) – IN:

number of attributes to query for

attributes (Pointer/object) – IN:

attributes to query for

ptr (Pointer/object) – IN:

pointer to get attributes for

Returns:

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

cuda.cuda.cuImportExternalSemaphore(extSem_out, semHandleDesc)

hipImportExternalSemaphore(extSem_out, semHandleDesc) Imports an external semaphore.

This section describes the external resource interoperability functions of HIP runtime API.

See:

Args:
extSem_out (Pointer/object) – OUT:

External semaphores to be waited on

semHandleDesc (hipExternalSemaphoreHandleDesc_st/object) – IN:

Semaphore import handle descriptor

Returns:

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

cuda.cuda.cudaImportExternalSemaphore(extSem_out, semHandleDesc)

hipImportExternalSemaphore(extSem_out, semHandleDesc) Imports an external semaphore.

This section describes the external resource interoperability functions of HIP runtime API.

See:

Args:
extSem_out (Pointer/object) – OUT:

External semaphores to be waited on

semHandleDesc (hipExternalSemaphoreHandleDesc_st/object) – IN:

Semaphore import handle descriptor

Returns:

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

cuda.cuda.cuSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)

hipSignalExternalSemaphoresAsync(extSemArray, paramsArray, unsigned int numExtSems, stream) Signals a set of external semaphore objects.

See:

Args:
extSemArray (Pointer/object):

(undocumented)

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:

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

cuda.cuda.cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)

hipSignalExternalSemaphoresAsync(extSemArray, paramsArray, unsigned int numExtSems, stream) Signals a set of external semaphore objects.

See:

Args:
extSemArray (Pointer/object):

(undocumented)

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:

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

cuda.cuda.cuWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)

hipWaitExternalSemaphoresAsync(extSemArray, paramsArray, unsigned int numExtSems, stream) Waits on a set of external semaphore objects

See:

Args:
extSemArray (Pointer/object):

(undocumented)

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:

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

cuda.cuda.cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)

hipWaitExternalSemaphoresAsync(extSemArray, paramsArray, unsigned int numExtSems, stream) Waits on a set of external semaphore objects

See:

Args:
extSemArray (Pointer/object):

(undocumented)

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:

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

cuda.cuda.cuDestroyExternalSemaphore(extSem)

hipDestroyExternalSemaphore(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:

Args:
extSem (Pointer/object) – IN:

handle to an external memory object

Returns:

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

cuda.cuda.cudaDestroyExternalSemaphore(extSem)

hipDestroyExternalSemaphore(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:

Args:
extSem (Pointer/object) – IN:

handle to an external memory object

Returns:

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

cuda.cuda.cuImportExternalMemory(extMem_out, memHandleDesc)

hipImportExternalMemory(extMem_out, memHandleDesc) Imports an external memory object.

See:

Args:
extMem_out (Pointer/object) – OUT:

Returned handle to an external memory object

memHandleDesc (hipExternalMemoryHandleDesc_st/object) – IN:

Memory import handle descriptor

Returns:

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

cuda.cuda.cudaImportExternalMemory(extMem_out, memHandleDesc)

hipImportExternalMemory(extMem_out, memHandleDesc) Imports an external memory object.

See:

Args:
extMem_out (Pointer/object) – OUT:

Returned handle to an external memory object

memHandleDesc (hipExternalMemoryHandleDesc_st/object) – IN:

Memory import handle descriptor

Returns:

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

cuda.cuda.cuExternalMemoryGetMappedBuffer(extMem, bufferDesc)

hipExternalMemoryGetMappedBuffer(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):

cuda.cuda.cudaExternalMemoryGetMappedBuffer(extMem, bufferDesc)

hipExternalMemoryGetMappedBuffer(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):

cuda.cuda.cuDestroyExternalMemory(extMem)

hipDestroyExternalMemory(extMem) Destroys an external memory object.

See:

Args:
extMem (Pointer/object) – IN:

External memory object to be destroyed

Returns:

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

cuda.cuda.cudaDestroyExternalMemory(extMem)

hipDestroyExternalMemory(extMem) Destroys an external memory object.

See:

Args:
extMem (Pointer/object) – IN:

External memory object to be destroyed

Returns:

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

cuda.cuda.cuMemAlloc(size)

hipMalloc(unsigned long 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):

cuda.cuda.cuMemAlloc_v2(size)

hipMalloc(unsigned long 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):

cuda.cuda.cudaMalloc(size)

hipMalloc(unsigned long 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):

cuda.cuda.cuMemAllocHost(size)

hipMemAllocHost(unsigned long 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):

cuda.cuda.cuMemAllocHost_v2(size)

hipMemAllocHost(unsigned long 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):

cuda.cuda.cudaMallocHost(size, flags)

hipHostMalloc(unsigned long size, unsigned int 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, hipHostFree

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

Returns:

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

cuda.cuda.cuMemAllocManaged(size, flags)

hipMallocManaged(unsigned long size, unsigned int 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.

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):

cuda.cuda.cudaMallocManaged(size, flags)

hipMallocManaged(unsigned long size, unsigned int 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.

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):

cuda.cuda.cudaMemPrefetchAsync(dev_ptr, count, device, stream)

hipMemPrefetchAsync(dev_ptr, unsigned long count, int device, stream) Prefetches memory to the specified destination device using HIP.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cuMemPrefetchAsync(dev_ptr, count, device, stream)

hipMemPrefetchAsync(dev_ptr, unsigned long count, int device, stream) Prefetches memory to the specified destination device using HIP.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cudaMemAdvise(dev_ptr, count, advice, device)

hipMemAdvise(dev_ptr, unsigned long count, advice, int 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 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:

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

cuda.cuda.cuMemAdvise(dev_ptr, count, advice, device)

hipMemAdvise(dev_ptr, unsigned long count, advice, int 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 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:

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

cuda.cuda.cudaMemRangeGetAttribute(data, data_size, attribute, dev_ptr, count)

hipMemRangeGetAttribute(data, unsigned long data_size, attribute, dev_ptr, unsigned long count) Query an attribute of a given memory range in HIP.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cuMemRangeGetAttribute(data, data_size, attribute, dev_ptr, count)

hipMemRangeGetAttribute(data, unsigned long data_size, attribute, dev_ptr, unsigned long count) Query an attribute of a given memory range in HIP.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cudaMemRangeGetAttributes(attributes, num_attributes, dev_ptr, count)

hipMemRangeGetAttributes(attributes, unsigned long num_attributes, dev_ptr, unsigned long count) Query attributes of a given memory range in HIP.

Note:

This API is implemented on Linux, under development on Windows.

Args:
attributes (Pointer/object) – IN:

the attribute to query

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 3 that contains (in that order):

cuda.cuda.cuMemRangeGetAttributes(attributes, num_attributes, dev_ptr, count)

hipMemRangeGetAttributes(attributes, unsigned long num_attributes, dev_ptr, unsigned long count) Query attributes of a given memory range in HIP.

Note:

This API is implemented on Linux, under development on Windows.

Args:
attributes (Pointer/object) – IN:

the attribute to query

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 3 that contains (in that order):

cuda.cuda.cuStreamAttachMemAsync(stream, dev_ptr, length, flags)

hipStreamAttachMemAsync(stream, dev_ptr, unsigned long length, unsigned int flags) Attach memory to a stream asynchronously in HIP.

Note:

This API is implemented on Linux, under development on Windows.

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:

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

cuda.cuda.cudaStreamAttachMemAsync(stream, dev_ptr, length, flags)

hipStreamAttachMemAsync(stream, dev_ptr, unsigned long length, unsigned int flags) Attach memory to a stream asynchronously in HIP.

Note:

This API is implemented on Linux, under development on Windows.

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:

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

cuda.cuda.cudaMallocAsync(size, stream)

hipMallocAsync(unsigned long 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 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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):

cuda.cuda.cuMemAllocAsync(size, stream)

hipMallocAsync(unsigned long 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 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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):

cuda.cuda.cudaFreeAsync(dev_ptr, stream)

hipFreeAsync(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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cuMemFreeAsync(dev_ptr, stream)

hipFreeAsync(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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cudaMemPoolTrimTo(mem_pool, min_bytes_to_hold)

hipMemPoolTrimTo(mem_pool, unsigned long 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cuMemPoolTrimTo(mem_pool, min_bytes_to_hold)

hipMemPoolTrimTo(mem_pool, unsigned long 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cudaMemPoolSetAttribute(mem_pool, attr, value)

hipMemPoolSetAttribute(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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cuMemPoolSetAttribute(mem_pool, attr, value)

hipMemPoolSetAttribute(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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cudaMemPoolGetAttribute(mem_pool, attr, value)

hipMemPoolGetAttribute(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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cuMemPoolGetAttribute(mem_pool, attr, value)

hipMemPoolGetAttribute(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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cudaMemPoolSetAccess(mem_pool, desc_list, count)

hipMemPoolSetAccess(mem_pool, desc_list, unsigned long 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cuMemPoolSetAccess(mem_pool, desc_list, count)

hipMemPoolSetAccess(mem_pool, desc_list, unsigned long 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cudaMemPoolGetAccess(flags, mem_pool, location)

hipMemPoolGetAccess(flags, 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on Windows.

Args:
flags (Pointer/object) – OUT:

Accessibility of the memory pool from the specified location/device

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 1 that contains (in that order):

cuda.cuda.cuMemPoolGetAccess(flags, mem_pool, location)

hipMemPoolGetAccess(flags, 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on Windows.

Args:
flags (Pointer/object) – OUT:

Accessibility of the memory pool from the specified location/device

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 1 that contains (in that order):

cuda.cuda.cudaMemPoolCreate(pool_props)

hipMemPoolCreate(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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on Windows.

Args:
pool_props (hipMemPoolProps/object) – IN:

Memory pool properties

Returns:

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

cuda.cuda.cuMemPoolCreate(pool_props)

hipMemPoolCreate(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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on Windows.

Args:
pool_props (hipMemPoolProps/object) – IN:

Memory pool properties

Returns:

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

cuda.cuda.cudaMemPoolDestroy(mem_pool)

hipMemPoolDestroy(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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

Memory pool for destruction

Returns:

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

cuda.cuda.cuMemPoolDestroy(mem_pool)

hipMemPoolDestroy(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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on Windows.

Args:
mem_pool (ihipMemPoolHandle_t/object) – IN:

Memory pool for destruction

Returns:

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

cuda.cuda.cudaMallocFromPoolAsync(size, mem_pool, stream)

hipMallocFromPoolAsync(unsigned long 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 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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):

cuda.cuda.cuMemAllocFromPoolAsync(size, mem_pool, stream)

hipMallocFromPoolAsync(unsigned long 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 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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):

cuda.cuda.cudaMemPoolExportToShareableHandle(shared_handle, mem_pool, handle_type, flags)

hipMemPoolExportToShareableHandle(shared_handle, mem_pool, handle_type, unsigned int 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cuMemPoolExportToShareableHandle(shared_handle, mem_pool, handle_type, flags)

hipMemPoolExportToShareableHandle(shared_handle, mem_pool, handle_type, unsigned int 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cudaMemPoolImportFromShareableHandle(shared_handle, handle_type, flags)

hipMemPoolImportFromShareableHandle(shared_handle, handle_type, unsigned int 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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):

cuda.cuda.cuMemPoolImportFromShareableHandle(shared_handle, handle_type, flags)

hipMemPoolImportFromShareableHandle(shared_handle, handle_type, unsigned int 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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):

cuda.cuda.cudaMemPoolExportPointer(export_data, dev_ptr)

hipMemPoolExportPointer(export_data, 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on Windows.

Args:
export_data (hipMemPoolPtrExportData/object) – OUT:

Returned export data

dev_ptr (Pointer/object) – IN:

Pointer to memory being exported

Returns:

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

cuda.cuda.cuMemPoolExportPointer(export_data, dev_ptr)

hipMemPoolExportPointer(export_data, 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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on Windows.

Args:
export_data (hipMemPoolPtrExportData/object) – OUT:

Returned export data

dev_ptr (Pointer/object) – IN:

Pointer to memory being exported

Returns:

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

cuda.cuda.cudaMemPoolImportPointer(mem_pool, export_data)

hipMemPoolImportPointer(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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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):

cuda.cuda.cuMemPoolImportPointer(mem_pool, export_data)

hipMemPoolImportPointer(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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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):

cuda.cuda.cuMemHostAlloc(size, flags)

hipHostAlloc(unsigned long size, unsigned int flags) Allocate device accessible page locked 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 in bytes

flags (int) – IN:

Type of host memory allocation

Returns:

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

cuda.cuda.cudaHostAlloc(size, flags)

hipHostAlloc(unsigned long size, unsigned int flags) Allocate device accessible page locked 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 in bytes

flags (int) – IN:

Type of host memory allocation

Returns:

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

cuda.cuda.cuMemHostGetDevicePointer(hstPtr, flags)

hipHostGetDevicePointer(hstPtr, unsigned int 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):

cuda.cuda.cuMemHostGetDevicePointer_v2(hstPtr, flags)

hipHostGetDevicePointer(hstPtr, unsigned int 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):

cuda.cuda.cudaHostGetDevicePointer(hstPtr, flags)

hipHostGetDevicePointer(hstPtr, unsigned int 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):

cuda.cuda.cuMemHostGetFlags(hostPtr)

hipHostGetFlags(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):

cuda.cuda.cudaHostGetFlags(hostPtr)

hipHostGetFlags(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):

cuda.cuda.cuMemHostRegister(hostPtr, sizeBytes, flags)

hipHostRegister(hostPtr, unsigned long sizeBytes, unsigned int flags) Register host memory so it can be accessed from the current device.

Flags:
  • hipHostRegisterDefault Memory is Mapped and Portable

  • hipHostRegisterPortable Memory is considered registered by all contexts. HIP only supports

one context so this is always assumed true.
  • hipHostRegisterMapped Map the allocation into the address space for the current device.

The device pointer can be obtained with hipHostGetDevicePointer.

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 device 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:

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

cuda.cuda.cuMemHostRegister_v2(hostPtr, sizeBytes, flags)

hipHostRegister(hostPtr, unsigned long sizeBytes, unsigned int flags) Register host memory so it can be accessed from the current device.

Flags:
  • hipHostRegisterDefault Memory is Mapped and Portable

  • hipHostRegisterPortable Memory is considered registered by all contexts. HIP only supports

one context so this is always assumed true.
  • hipHostRegisterMapped Map the allocation into the address space for the current device.

The device pointer can be obtained with hipHostGetDevicePointer.

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 device 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:

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

cuda.cuda.cudaHostRegister(hostPtr, sizeBytes, flags)

hipHostRegister(hostPtr, unsigned long sizeBytes, unsigned int flags) Register host memory so it can be accessed from the current device.

Flags:
  • hipHostRegisterDefault Memory is Mapped and Portable

  • hipHostRegisterPortable Memory is considered registered by all contexts. HIP only supports

one context so this is always assumed true.
  • hipHostRegisterMapped Map the allocation into the address space for the current device.

The device pointer can be obtained with hipHostGetDevicePointer.

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 device 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:

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

cuda.cuda.cuMemHostUnregister(hostPtr)

hipHostUnregister(hostPtr) Un-register host pointer

See:

hipHostRegister

Args:
hostPtr (Pointer/object) – IN:

Host pointer previously registered with hipHostRegister

Returns:

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

cuda.cuda.cudaHostUnregister(hostPtr)

hipHostUnregister(hostPtr) Un-register host pointer

See:

hipHostRegister

Args:
hostPtr (Pointer/object) – IN:

Host pointer previously registered with hipHostRegister

Returns:

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

cuda.cuda.cudaMallocPitch(width, height)

hipMallocPitch(unsigned long width, unsigned long height) (No short description, might be part of a group.)

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):

cuda.cuda.cuMemAllocPitch(widthInBytes, height, elementSizeBytes)

hipMemAllocPitch(unsigned long widthInBytes, unsigned long height, unsigned int elementSizeBytes) (No short description, might be part of a group.)

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):

(undocumented)

height (int) – IN:

Requested pitched allocation height

elementSizeBytes (int):

(undocumented)

Returns:

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

cuda.cuda.cuMemAllocPitch_v2(widthInBytes, height, elementSizeBytes)

hipMemAllocPitch(unsigned long widthInBytes, unsigned long height, unsigned int elementSizeBytes) (No short description, might be part of a group.)

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):

(undocumented)

height (int) – IN:

Requested pitched allocation height

elementSizeBytes (int):

(undocumented)

Returns:

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

cuda.cuda.cuMemFree(ptr)

hipFree(ptr) Free memory allocated by the hcc 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:

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

cuda.cuda.cuMemFree_v2(ptr)

hipFree(ptr) Free memory allocated by the hcc 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:

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

cuda.cuda.cudaFree(ptr)

hipFree(ptr) Free memory allocated by the hcc 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:

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

cuda.cuda.cuMemFreeHost(ptr)

hipHostFree(ptr) Free memory allocated by the hcc 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:

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

cuda.cuda.cudaFreeHost(ptr)

hipHostFree(ptr) Free memory allocated by the hcc 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:

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

cuda.cuda.cudaMemcpy(dst, src, sizeBytes, kind)

hipMemcpy(dst, src, unsigned long 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/dest 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):

(undocumented)

Returns:

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

cuda.cuda.cuMemcpyHtoD(dst, src, sizeBytes)

hipMemcpyHtoD(dst, src, unsigned long 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:

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

cuda.cuda.cuMemcpyHtoD_v2(dst, src, sizeBytes)

hipMemcpyHtoD(dst, src, unsigned long 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:

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

cuda.cuda.cuMemcpyDtoH(dst, src, sizeBytes)

hipMemcpyDtoH(dst, src, unsigned long 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:

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

cuda.cuda.cuMemcpyDtoH_v2(dst, src, sizeBytes)

hipMemcpyDtoH(dst, src, unsigned long 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:

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

cuda.cuda.cuMemcpyDtoD(dst, src, sizeBytes)

hipMemcpyDtoD(dst, src, unsigned long 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:

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

cuda.cuda.cuMemcpyDtoD_v2(dst, src, sizeBytes)

hipMemcpyDtoD(dst, src, unsigned long 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:

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

cuda.cuda.cuMemcpyHtoDAsync(dst, src, sizeBytes, stream)

hipMemcpyHtoDAsync(dst, src, unsigned long 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):

(undocumented)

Returns:

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

cuda.cuda.cuMemcpyHtoDAsync_v2(dst, src, sizeBytes, stream)

hipMemcpyHtoDAsync(dst, src, unsigned long 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):

(undocumented)

Returns:

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

cuda.cuda.cuMemcpyDtoHAsync(dst, src, sizeBytes, stream)

hipMemcpyDtoHAsync(dst, src, unsigned long 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):

(undocumented)

Returns:

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

cuda.cuda.cuMemcpyDtoHAsync_v2(dst, src, sizeBytes, stream)

hipMemcpyDtoHAsync(dst, src, unsigned long 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):

(undocumented)

Returns:

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

cuda.cuda.cuMemcpyDtoDAsync(dst, src, sizeBytes, stream)

hipMemcpyDtoDAsync(dst, src, unsigned long 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):

(undocumented)

Returns:

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

cuda.cuda.cuMemcpyDtoDAsync_v2(dst, src, sizeBytes, stream)

hipMemcpyDtoDAsync(dst, src, unsigned long 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):

(undocumented)

Returns:

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

cuda.cuda.cuModuleGetGlobal(hmod, name)

hipModuleGetGlobal(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):

cuda.cuda.cuModuleGetGlobal_v2(hmod, name)

hipModuleGetGlobal(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):

cuda.cuda.cudaGetSymbolAddress(symbol)

hipGetSymbolAddress(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):

cuda.cuda.cudaGetSymbolSize(symbol)

hipGetSymbolSize(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):

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

hipMemcpyToSymbol(symbol, src, unsigned long sizeBytes, unsigned long 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 detail usage, see the example at ROCm-Developer-Tools/HIP

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:

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

cuda.cuda.cudaMemcpyToSymbolAsync(symbol, src, sizeBytes, offset, kind, stream)

hipMemcpyToSymbolAsync(symbol, src, unsigned long sizeBytes, unsigned long 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:

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

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

hipMemcpyFromSymbol(dst, symbol, unsigned long sizeBytes, unsigned long offset, kind) Copies data from the given symbol on the device.

Args:
dst (Pointer/object):

(undocumented)

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:

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

cuda.cuda.cudaMemcpyFromSymbolAsync(dst, symbol, sizeBytes, offset, kind, stream)

hipMemcpyFromSymbolAsync(dst, symbol, unsigned long sizeBytes, unsigned long offset, kind, stream) Copies data from the given symbol on the device asynchronously.

Args:
dst (Pointer/object):

(undocumented)

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:

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

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

hipMemcpyAsync(dst, src, unsigned long sizeBytes, kind, stream) Copy data from src to dst asynchronously.

Warning:

If host or dest are not pinned, the memory copy will be performed synchronously. For best performance, use hipHostMalloc to allocate host memory that is transferred asynchronously.

Warning:

on HCC hipMemcpyAsync does not support overlapped H2D and D2H copies. For hipMemcpy, 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 a 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 this is not done, the hipMemcpy will still work, but will perform the copy using a staging buffer on the host.

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):

(undocumented)

stream (ihipStream_t/object):

(undocumented)

Returns:

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

cuda.cuda.cudaMemset(dst, value, sizeBytes)

hipMemset(dst, int value, unsigned long 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):

(undocumented)

sizeBytes (int) – IN:

Data size in bytes

Returns:

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

cuda.cuda.cuMemsetD8(dest, value, count)

hipMemsetD8(dest, unsigned char value, unsigned long count) Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant

byte value value.

Args:
dest (Pointer/object):

(undocumented)

value (int):

(undocumented)

count (int):

(undocumented)

Returns:

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

cuda.cuda.cuMemsetD8_v2(dest, value, count)

hipMemsetD8(dest, unsigned char value, unsigned long count) Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant

byte value value.

Args:
dest (Pointer/object):

(undocumented)

value (int):

(undocumented)

count (int):

(undocumented)

Returns:

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

cuda.cuda.cuMemsetD8Async(dest, value, count, stream)

hipMemsetD8Async(dest, unsigned char value, unsigned long 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):

(undocumented)

value (int):

(undocumented)

count (int):

(undocumented)

stream (ihipStream_t/object) – IN:
  • Stream identifier

Returns:

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

cuda.cuda.cuMemsetD16(dest, value, count)

hipMemsetD16(dest, unsigned short value, unsigned long count) Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant

short value value.

Args:
dest (Pointer/object):

(undocumented)

value (int):

(undocumented)

count (int):

(undocumented)

Returns:

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

cuda.cuda.cuMemsetD16_v2(dest, value, count)

hipMemsetD16(dest, unsigned short value, unsigned long count) Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant

short value value.

Args:
dest (Pointer/object):

(undocumented)

value (int):

(undocumented)

count (int):

(undocumented)

Returns:

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

cuda.cuda.cuMemsetD16Async(dest, value, count, stream)

hipMemsetD16Async(dest, unsigned short value, unsigned long 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):

(undocumented)

value (int):

(undocumented)

count (int):

(undocumented)

stream (ihipStream_t/object) – IN:
  • Stream identifier

Returns:

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

cuda.cuda.cuMemsetD32(dest, value, count)

hipMemsetD32(dest, int value, unsigned long count) Fills the memory area pointed to by dest with the constant integer

value for specified number of times.

Args:
dest (Pointer/object):

(undocumented)

value (int):

(undocumented)

count (int):

(undocumented)

Returns:

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

cuda.cuda.cuMemsetD32_v2(dest, value, count)

hipMemsetD32(dest, int value, unsigned long count) Fills the memory area pointed to by dest with the constant integer

value for specified number of times.

Args:
dest (Pointer/object):

(undocumented)

value (int):

(undocumented)

count (int):

(undocumented)

Returns:

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

cuda.cuda.cudaMemsetAsync(dst, value, sizeBytes, stream)

hipMemsetAsync(dst, int value, unsigned long 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:

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

cuda.cuda.cuMemsetD32Async(dst, value, count, stream)

hipMemsetD32Async(dst, int value, unsigned long 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:

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

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

hipMemset2D(dst, unsigned long pitch, int value, unsigned long width, unsigned long height) Fills the memory area pointed to by dst with the constant value.

Args:
dst (Pointer/object) – OUT:

Pointer to device memory

pitch (int) – IN:
  • data size in bytes

value (int) – IN:
  • constant value to be set

width (int) – IN:

height (int) – IN:

Returns:

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

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

hipMemset2DAsync(dst, unsigned long pitch, int value, unsigned long width, unsigned long height, stream) Fills asynchronously the memory area pointed to by dst with the constant value.

Args:
dst (Pointer/object) – IN:

Pointer to device memory

pitch (int) – IN:
  • data size in bytes

value (int) – IN:
  • constant value to be set

width (int) – IN:

height (int) – IN:

stream (ihipStream_t/object) – IN:

Returns:

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

cuda.cuda.cudaMemset3D(pitchedDevPtr, value, extent)

hipMemset3D(pitchedDevPtr, int value, extent) Fills synchronously the memory area pointed to by pitchedDevPtr with the constant value.

Args:

pitchedDevPtr (hipPitchedPtr) – IN:

value (int) – IN:
  • constant value to be set

extent (hipExtent) – IN:

Returns:

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

cuda.cuda.cudaMemset3DAsync(pitchedDevPtr, value, extent, stream)

hipMemset3DAsync(pitchedDevPtr, int value, extent, stream) Fills asynchronously the memory area pointed to by pitchedDevPtr with the constant value.

Args:

pitchedDevPtr (hipPitchedPtr) – IN:

value (int) – IN:
  • constant value to be set

extent (hipExtent) – IN:

stream (ihipStream_t/object) – IN:

Returns:

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

cuda.cuda.cuMemGetInfo()

hipMemGetInfo() 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):

cuda.cuda.cuMemGetInfo_v2()

hipMemGetInfo() 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):

cuda.cuda.cudaMemGetInfo()

hipMemGetInfo() 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):

cuda.cuda.cudaMallocArray(desc, width, height, flags)

hipMallocArray(desc, unsigned long width, unsigned long height, unsigned int 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):

cuda.cuda.cuArrayCreate(pAllocateArray)

hipArrayCreate(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):

cuda.cuda.cuArrayCreate_v2(pAllocateArray)

hipArrayCreate(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):

cuda.cuda.cuArrayDestroy(array)

hipArrayDestroy(array) Destroy an array memory pointer on the device.

See:

hipArrayCreate, hipArrayDestroy, hipFreeArray

Args:
array (hipArray/object) – IN:

Pointer to the array memory

Returns:

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

cuda.cuda.cuArray3DCreate(pAllocateArray)

hipArray3DCreate(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):

cuda.cuda.cuArray3DCreate_v2(pAllocateArray)

hipArray3DCreate(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):

cuda.cuda.cudaMalloc3D(pitchedDevPtr, extent)

hipMalloc3D(pitchedDevPtr, extent) Create a 3D memory pointer on the device.

See:

hipMallocPitch, hipMemGetInfo, hipFree

Args:
pitchedDevPtr (hipPitchedPtr/object) – OUT:

Pointer to the 3D memory

extent (hipExtent) – IN:

Requested extent

Returns:

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

cuda.cuda.cudaFreeArray(array)

hipFreeArray(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:

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

cuda.cuda.cudaMalloc3DArray(desc, extent, flags)

hipMalloc3DArray(desc, extent, unsigned int 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):

cuda.cuda.cudaArrayGetInfo(desc, extent, array)

hipArrayGetInfo(desc, extent, array) Gets info about the specified array

See:

hipArrayGetDescriptor, hipArray3DGetDescriptor

Args:
desc (hipChannelFormatDesc/object) – OUT:
  • Returned array type

extent (hipExtent/object) – OUT:
  • Returned array shape. 2D arrays will have depth of zero

array (hipArray/object) – IN:
  • The HIP array to get info for

Returns:

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

cuda.cuda.cuArrayGetDescriptor(pArrayDescriptor, array)

hipArrayGetDescriptor(pArrayDescriptor, 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:
pArrayDescriptor (HIP_ARRAY_DESCRIPTOR/object) – OUT:
  • Returned array descriptor

array (hipArray/object) – IN:
  • Array to get descriptor of

Returns:

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

cuda.cuda.cuArrayGetDescriptor_v2(pArrayDescriptor, array)

hipArrayGetDescriptor(pArrayDescriptor, 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:
pArrayDescriptor (HIP_ARRAY_DESCRIPTOR/object) – OUT:
  • Returned array descriptor

array (hipArray/object) – IN:
  • Array to get descriptor of

Returns:

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

cuda.cuda.cuArray3DGetDescriptor(pArrayDescriptor, array)

hipArray3DGetDescriptor(pArrayDescriptor, 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:
pArrayDescriptor (HIP_ARRAY3D_DESCRIPTOR/object) – OUT:
  • Returned 3D array descriptor

array (hipArray/object) – IN:
  • 3D array to get descriptor of

Returns:

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

cuda.cuda.cuArray3DGetDescriptor_v2(pArrayDescriptor, array)

hipArray3DGetDescriptor(pArrayDescriptor, 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:
pArrayDescriptor (HIP_ARRAY3D_DESCRIPTOR/object) – OUT:
  • Returned 3D array descriptor

array (hipArray/object) – IN:
  • 3D array to get descriptor of

Returns:

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

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

hipMemcpy2D(dst, unsigned long dpitch, src, unsigned long spitch, unsigned long width, unsigned long height, kind) Copies data between host and device.

See:

hipMemcpy, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (Pointer/object) – IN:

Destination memory address

dpitch (int) – IN:

Pitch of destination memory

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:

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

cuda.cuda.cuMemcpy2D(pCopy)

hipMemcpyParam2D(pCopy) Copies memory for 2D arrays.

cuda.cuda.cuMemcpy2D_v2(pCopy)

hipMemcpyParam2D(pCopy) Copies memory for 2D arrays.

cuda.cuda.cuMemcpy2DAsync(pCopy, stream)

hipMemcpyParam2DAsync(pCopy, stream) Copies memory for 2D arrays.

cuda.cuda.cuMemcpy2DAsync_v2(pCopy, stream)

hipMemcpyParam2DAsync(pCopy, stream) Copies memory for 2D arrays.

cuda.cuda.cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream)

hipMemcpy2DAsync(dst, unsigned long dpitch, src, unsigned long spitch, unsigned long width, unsigned long height, kind, stream) Copies data between host and device.

See:

hipMemcpy, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (Pointer/object) – IN:

Destination memory address

dpitch (int) – IN:

Pitch of destination memory

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:

Stream to use

Returns:

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

cuda.cuda.cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind)

hipMemcpy2DToArray(dst, unsigned long wOffset, unsigned long hOffset, src, unsigned long spitch, unsigned long width, unsigned long height, kind) Copies data between host and device.

See:

hipMemcpy, hipMemcpyToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (hipArray/object) – IN:

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:

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

cuda.cuda.cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream)

hipMemcpy2DToArrayAsync(dst, unsigned long wOffset, unsigned long hOffset, src, unsigned long spitch, unsigned long width, unsigned long height, kind, stream) Copies data between host and device.

See:

hipMemcpy, hipMemcpyToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (hipArray/object) – IN:

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:

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

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

hipMemcpyToArray(dst, unsigned long wOffset, unsigned long hOffset, src, unsigned long count, kind) Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Warning:

This API is deprecated.

Args:
dst (hipArray/object) – IN:

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:

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

cuda.cuda.cudaMemcpyFromArray(dst, srcArray, wOffset, hOffset, count, kind)

hipMemcpyFromArray(dst, srcArray, unsigned long wOffset, unsigned long hOffset, unsigned long count, kind) Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Warning:

This API is deprecated.

Args:
dst (Pointer/object) – IN:

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:

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

cuda.cuda.cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind)

hipMemcpy2DFromArray(dst, unsigned long dpitch, src, unsigned long wOffset, unsigned long hOffset, unsigned long width, unsigned long height, kind) Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (Pointer/object) – IN:

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:

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

cuda.cuda.cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream)

hipMemcpy2DFromArrayAsync(dst, unsigned long dpitch, src, unsigned long wOffset, unsigned long hOffset, unsigned long width, unsigned long height, kind, stream) Copies data between host and device asynchronously.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (Pointer/object) – IN:

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:

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

cuda.cuda.cuMemcpyAtoH(dst, srcArray, srcOffset, count)

hipMemcpyAtoH(dst, srcArray, unsigned long srcOffset, unsigned long count) Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (Pointer/object) – IN:

Destination memory address

srcArray (hipArray/object) – IN:

Source array

srcOffset (int):

(undocumented)

count (int) – IN:

Size of memory copy in bytes

Returns:

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

cuda.cuda.cuMemcpyAtoH_v2(dst, srcArray, srcOffset, count)

hipMemcpyAtoH(dst, srcArray, unsigned long srcOffset, unsigned long count) Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dst (Pointer/object) – IN:

Destination memory address

srcArray (hipArray/object) – IN:

Source array

srcOffset (int):

(undocumented)

count (int) – IN:

Size of memory copy in bytes

Returns:

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

cuda.cuda.cuMemcpyHtoA(dstArray, dstOffset, srcHost, count)

hipMemcpyHtoA(dstArray, unsigned long dstOffset, srcHost, unsigned long count) Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dstArray (hipArray/object) – IN:

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:

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

cuda.cuda.cuMemcpyHtoA_v2(dstArray, dstOffset, srcHost, count)

hipMemcpyHtoA(dstArray, unsigned long dstOffset, srcHost, unsigned long count) Copies data between host and device.

See:

hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync

Args:
dstArray (hipArray/object) – IN:

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:

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

cuda.cuda.cudaMemcpy3D(p)

hipMemcpy3D(p) Copies data between host and device.

cuda.cuda.cudaMemcpy3DAsync(p, stream)

hipMemcpy3DAsync(p, stream) Copies data between host and device asynchronously.

cuda.cuda.cuMemcpy3D(pCopy)

hipDrvMemcpy3D(pCopy) Copies data between host and device.

cuda.cuda.cuMemcpy3D_v2(pCopy)

hipDrvMemcpy3D(pCopy) Copies data between host and device.

cuda.cuda.cuMemcpy3DAsync(pCopy, stream)

hipDrvMemcpy3DAsync(pCopy, stream) Copies data between host and device asynchronously.

cuda.cuda.cuMemcpy3DAsync_v2(pCopy, stream)

hipDrvMemcpy3DAsync(pCopy, stream) Copies data between host and device asynchronously.

cuda.cuda.cuDeviceCanAccessPeer(deviceId, peerDeviceId)

hipDeviceCanAccessPeer(int deviceId, int peerDeviceId) Determine if a device can access a peer’s memory.

Warning:

PeerToPeer support is experimental. This section describes the PeerToPeer device memory access functions of HIP runtime API.

Returns “1” in canAccessPeer if the specified device is capable of directly accessing memory physically located on peerDevice , or “0” if not.

Returns “0” in canAccessPeer if deviceId == peerDeviceId, and both are valid devices : a device is not a peer of itself.

Args:
deviceId (int) – IN:
  • device from where memory may be accessed.

peerDeviceId (int) – IN:
  • device where memory is physically located

Returns:

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

cuda.cuda.cudaDeviceCanAccessPeer(deviceId, peerDeviceId)

hipDeviceCanAccessPeer(int deviceId, int peerDeviceId) Determine if a device can access a peer’s memory.

Warning:

PeerToPeer support is experimental. This section describes the PeerToPeer device memory access functions of HIP runtime API.

Returns “1” in canAccessPeer if the specified device is capable of directly accessing memory physically located on peerDevice , or “0” if not.

Returns “0” in canAccessPeer if deviceId == peerDeviceId, and both are valid devices : a device is not a peer of itself.

Args:
deviceId (int) – IN:
  • device from where memory may be accessed.

peerDeviceId (int) – IN:
  • device where memory is physically located

Returns:

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

cuda.cuda.cudaDeviceEnablePeerAccess(peerDeviceId, flags)

hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags) Enable direct access from current device’s virtual address space to memory allocations

physically located on a peer device.

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.

Returns hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue,

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:

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

cuda.cuda.cudaDeviceDisablePeerAccess(peerDeviceId)

hipDeviceDisablePeerAccess(int peerDeviceId) Disable direct access from current device’s virtual address space to memory allocations

physically located on a peer device.

Returns hipErrorPeerAccessNotEnabled if direct access to memory on peerDevice has not yet been enabled from the current device.

Args:
peerDeviceId (int) – IN:

Peer device to disable direct access to

Returns:

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

cuda.cuda.cuMemGetAddressRange(dptr)

hipMemGetAddressRange(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):

cuda.cuda.cuMemGetAddressRange_v2(dptr)

hipMemGetAddressRange(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):

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

hipMemcpyPeer(dst, int dstDeviceId, src, int srcDeviceId, unsigned long sizeBytes) Copies memory from one device to memory on another device.

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:

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

cuda.cuda.cudaMemcpyPeerAsync(dst, dstDeviceId, src, srcDevice, sizeBytes, stream)

hipMemcpyPeerAsync(dst, int dstDeviceId, src, int srcDevice, unsigned long sizeBytes, stream) Copies memory from one device to memory on another device.

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:

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

cuda.cuda.cuCtxCreate(flags, device)

hipCtxCreate(unsigned int flags, int device) Create a context and set it as current/default context

This section describes the context management functions of HIP runtime API.

This section describes the deprecated context management functions of HIP runtime API.

See:

hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This HIP API is deprecated.

Args:
flags (int) – IN:

Context creation flags

device (int) – IN:

device handle

Returns:

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

cuda.cuda.cuCtxCreate_v2(flags, device)

hipCtxCreate(unsigned int flags, int device) Create a context and set it as current/default context

This section describes the context management functions of HIP runtime API.

This section describes the deprecated context management functions of HIP runtime API.

See:

hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This HIP API is deprecated.

Args:
flags (int) – IN:

Context creation flags

device (int) – IN:

device handle

Returns:

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

cuda.cuda.cuCtxDestroy(ctx)

hipCtxDestroy(ctx) Destroy a HIP context.

See:

hipCtxCreate, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,`~.hipCtxSetCurrent`, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice

Warning:

This HIP API is deprecated.

Args:
ctx (ihipCtx_t/object) – IN:

Context to destroy

Returns:

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

cuda.cuda.cuCtxDestroy_v2(ctx)

hipCtxDestroy(ctx) Destroy a HIP context.

See:

hipCtxCreate, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent,`~.hipCtxSetCurrent`, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice

Warning:

This HIP API is deprecated.

Args:
ctx (ihipCtx_t/object) – IN:

Context to destroy

Returns:

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

cuda.cuda.cuCtxPopCurrent()

hipCtxPopCurrent() Pop the current/default context and return the popped context.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxSetCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This HIP API is deprecated.

Returns:

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

cuda.cuda.cuCtxPopCurrent_v2()

hipCtxPopCurrent() Pop the current/default context and return the popped context.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxSetCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This HIP API is deprecated.

Returns:

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

cuda.cuda.cuCtxPushCurrent(ctx)

hipCtxPushCurrent(ctx) Push the context to be set as current/ default context

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice

Warning:

This HIP API is deprecated.

Args:
ctx (ihipCtx_t/object) – IN:

The current context to push

Returns:

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

cuda.cuda.cuCtxPushCurrent_v2(ctx)

hipCtxPushCurrent(ctx) Push the context to be set as current/ default context

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice

Warning:

This HIP API is deprecated.

Args:
ctx (ihipCtx_t/object) – IN:

The current context to push

Returns:

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

cuda.cuda.cuCtxSetCurrent(ctx)

hipCtxSetCurrent(ctx) Set the passed context as current/default

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice

Warning:

This HIP API is deprecated.

Args:
ctx (ihipCtx_t/object) – IN:

The context to set as current

Returns:

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

cuda.cuda.cuCtxGetCurrent()

hipCtxGetCurrent() Get the handle of the current/ default context

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetDevice, hipCtxGetFlags, hipCtxPopCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This HIP API is deprecated.

Returns:

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

cuda.cuda.cuCtxGetDevice()

hipCtxGetDevice() Get the handle of the device associated with current/default context

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize

Warning:

This HIP API is deprecated.

Returns:

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

cuda.cuda.cuCtxGetApiVersion(ctx)

hipCtxGetApiVersion(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 HIP API is deprecated.

Args:
ctx (ihipCtx_t/object) – IN:

Context to check

Returns:

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

cuda.cuda.cuCtxGetCacheConfig()

hipCtxGetCacheConfig() Get Cache configuration for a specific function

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 HIP API is deprecated.

Returns:

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

cuda.cuda.cuCtxSetCacheConfig(cacheConfig)

hipCtxSetCacheConfig(cacheConfig) Set L1/Shared cache partition.

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 HIP API is deprecated.

Args:
cacheConfig (hipFuncCache_t) – IN:

Cache configuration to set

Returns:

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

cuda.cuda.cuCtxSetSharedMemConfig(config)

hipCtxSetSharedMemConfig(config) Set Shared memory bank configuration.

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 HIP API is deprecated.

Args:
config (hipSharedMemConfig) – IN:

Shared memory configuration to set

Returns:

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

cuda.cuda.cuCtxGetSharedMemConfig()

hipCtxGetSharedMemConfig() Get Shared memory bank configuration.

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 HIP API is deprecated.

Returns:

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

cuda.cuda.cuCtxSynchronize()

hipCtxSynchronize() Blocks until the default context has completed all preceding requested tasks.

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 HIP API is deprecated.

Returns:

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

cuda.cuda.cuCtxGetFlags()

hipCtxGetFlags() Return flags used for creating default context.

See:

hipCtxCreate, hipCtxDestroy, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Warning:

This HIP API is deprecated.

Returns:

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

cuda.cuda.cuCtxEnablePeerAccess(peerCtx, flags)

hipCtxEnablePeerAccess(peerCtx, unsigned int flags) Enables direct access to memory allocations in a peer context.

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 HIP API is deprecated.

Args:
peerCtx (ihipCtx_t/object) – IN:

Peer context

flags (int) – IN:

flags, need to set as 0

Returns:

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

cuda.cuda.cuCtxDisablePeerAccess(peerCtx)

hipCtxDisablePeerAccess(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.

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 HIP API is deprecated.

Args:
peerCtx (ihipCtx_t/object) – IN:

Peer context to be disabled

Returns:

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

cuda.cuda.cuDevicePrimaryCtxGetState(dev)

hipDevicePrimaryCtxGetState(int dev) Get the state of the primary context.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Args:
dev (int) – IN:

Device to get primary context flags for

Returns:

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

cuda.cuda.cuDevicePrimaryCtxRelease(dev)

hipDevicePrimaryCtxRelease(int 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/HCC path.

Args:
dev (int) – IN:

Device which primary context is released

Returns:

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

cuda.cuda.cuDevicePrimaryCtxRelease_v2(dev)

hipDevicePrimaryCtxRelease(int 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/HCC path.

Args:
dev (int) – IN:

Device which primary context is released

Returns:

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

cuda.cuda.cuDevicePrimaryCtxRetain(dev)

hipDevicePrimaryCtxRetain(int dev) Retain the primary context on the GPU.

hipError_t hipDevicePrimaryCtxRetain(hipCtx_t* pctx, hipDevice_t dev);

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Args:
dev (int) – IN:

Device which primary context is released

Returns:

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

cuda.cuda.cuDevicePrimaryCtxReset(dev)

hipDevicePrimaryCtxReset(int dev) Resets the primary context on the GPU.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Args:
dev (int) – IN:

Device which primary context is reset

Returns:

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

cuda.cuda.cuDevicePrimaryCtxReset_v2(dev)

hipDevicePrimaryCtxReset(int dev) Resets the primary context on the GPU.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Args:
dev (int) – IN:

Device which primary context is reset

Returns:

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

cuda.cuda.cuDevicePrimaryCtxSetFlags(dev, flags)

hipDevicePrimaryCtxSetFlags(int dev, unsigned int flags) Set flags for the primary context.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Args:
dev (int) – IN:

Device for which the primary context flags are set

flags (int) – IN:

New flags for the device

Returns:

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

cuda.cuda.cuDevicePrimaryCtxSetFlags_v2(dev, flags)

hipDevicePrimaryCtxSetFlags(int dev, unsigned int flags) Set flags for the primary context.

See:

hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Args:
dev (int) – IN:

Device for which the primary context flags are set

flags (int) – IN:

New flags for the device

Returns:

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

cuda.cuda.cuModuleLoad(fname)

hipModuleLoad(fname) Loads code object from file into a module the currrent context.

This section describes the module management functions of HIP runtime API.

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):

cuda.cuda.cuModuleUnload(module)

hipModuleUnload(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:

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

cuda.cuda.cuModuleGetFunction(module, kname)

hipModuleGetFunction(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):

cuda.cuda.cudaFuncGetAttributes(attr, func)

hipFuncGetAttributes(attr, func) Find out attributes for a given function.

Args:
attr (hipFuncAttributes/object) – OUT:

Attributes of funtion

func (Pointer/object) – IN:

Pointer to the function handle

Returns:

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

cuda.cuda.cuFuncGetAttribute(attrib, hfunc)

hipFuncGetAttribute(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):

cuda.cuda.cuModuleGetTexRef(hmod, name)

hipModuleGetTexRef(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):

cuda.cuda.cuModuleLoadData(image)

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

location.

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

cuda.cuda.cuModuleLoadDataEx(image, numOptions, options, optionValues)

hipModuleLoadDataEx(image, unsigned int numOptions, options, 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

options (Pointer/object) – IN:

Options for JIT

optionValues (Pointer/object) – IN:

Option values for JIT

Returns:

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

  • hipError_t: hipSuccess, hipErrorNotInitialized, hipErrorOutOfMemory, hipErrorNotInitialized

  • ihipModule_t:

    Retuned module

cuda.cuda.cuLaunchKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, stream, kernelParams, extra)

hipModuleLaunchKernel(f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int 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 (Pointer/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:

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

  • hipError_t: hipSuccess, hipInvalidDevice, hipErrorNotInitialized, hipErrorInvalidValue

cuda.cuda.cuLaunchCooperativeKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, stream, kernelParams)

hipModuleLaunchCooperativeKernel(f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int 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 x blockDim >= 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 (Pointer/object) – IN:

A list of kernel arguments.

Returns:

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

  • hipError_t: hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

    hipErrorInvalidHandle, hipErrorInvalidImage, hipErrorInvalidValue, hipInvalidDevice, hipErrorInvalidConfiguration, hipErrorLaunchFailure, hipErrorLaunchOutOfResources, hipErrorLaunchTimeOut, hipErrorCooperativeLaunchTooLarge, hipErrorSharedObjectInitFailed

cuda.cuda.cuLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags)

hipModuleLaunchCooperativeKernelMultiDevice(launchParamsList, unsigned int numDevices, unsigned int 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:

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

  • hipError_t: hipSuccess, hipErrorDeinitialized, hipErrorNotInitialized, hipErrorInvalidContext,

    hipErrorInvalidHandle, hipErrorInvalidImage, hipErrorInvalidValue, hipInvalidDevice, hipErrorInvalidConfiguration, hipErrorInvalidResourceHandle, hipErrorLaunchFailure, hipErrorLaunchOutOfResources, hipErrorLaunchTimeOut, hipErrorCooperativeLaunchTooLarge, hipErrorSharedObjectInitFailed

cuda.cuda.cudaLaunchCooperativeKernel(f, gridDim, blockDimX, kernelParams, sharedMemBytes, stream)

hipLaunchCooperativeKernel(f, gridDim, blockDimX, kernelParams, unsigned int 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 x blockDim >= 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 (Pointer/object) – IN:

A list of kernel arguments

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:

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

  • hipError_t: hipSuccess, hipInvalidDevice, hipErrorNotInitialized, hipErrorInvalidValue, hipErrorCooperativeLaunchTooLarge

cuda.cuda.cudaLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags)

hipLaunchCooperativeKernelMultiDevice(launchParamsList, int numDevices, unsigned int 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:

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

  • hipError_t: hipSuccess, hipInvalidDevice, hipErrorNotInitialized, hipErrorInvalidValue, hipErrorCooperativeLaunchTooLarge

cuda.cuda.cuOccupancyMaxPotentialBlockSize(f, dynSharedMemPerBlk, blockSizeLimit)

hipModuleOccupancyMaxPotentialBlockSize(f, unsigned long dynSharedMemPerBlk, int 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 calulated

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):

  • hipError_t: hipSuccess, hipInvalidDevice, hipErrorInvalidValue

  • int:

    minimum grid size for maximum potential occupancy

  • int:

    block size for maximum potential occupancy

cuda.cuda.cuOccupancyMaxPotentialBlockSizeWithFlags(f, dynSharedMemPerBlk, blockSizeLimit, flags)

hipModuleOccupancyMaxPotentialBlockSizeWithFlags(f, unsigned long dynSharedMemPerBlk, int blockSizeLimit, unsigned int 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 calulated

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):

  • hipError_t: hipSuccess, hipInvalidDevice, hipErrorInvalidValue

  • int:

    minimum grid size for maximum potential occupancy

  • int:

    block size for maximum potential occupancy

cuda.cuda.cuOccupancyMaxActiveBlocksPerMultiprocessor(f, blockSize, dynSharedMemPerBlk)

hipModuleOccupancyMaxActiveBlocksPerMultiprocessor(f, int blockSize, unsigned long dynSharedMemPerBlk) Returns occupancy for a device function.

Args:
f (ihipModuleSymbol_t/object) – IN:

Kernel function (hipFunction) for which occupancy is calulated

blockSize (int) – IN:

Block size the kernel is intended to be launched with

dynSharedMemPerBlk – IN:

dynamic shared memory usage (in bytes) intended for each block

Returns:

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

cuda.cuda.cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, blockSize, dynSharedMemPerBlk, flags)

hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, int blockSize, unsigned long dynSharedMemPerBlk, unsigned int flags) Returns occupancy for a device function.

Args:
f (ihipModuleSymbol_t/object) – IN:

Kernel function(hipFunction_t) for which occupancy is calulated

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):

cuda.cuda.cudaOccupancyMaxActiveBlocksPerMultiprocessor(f, blockSize, dynSharedMemPerBlk)

hipOccupancyMaxActiveBlocksPerMultiprocessor(f, int blockSize, unsigned long dynSharedMemPerBlk) Returns occupancy for a device function.

Args:
f (Pointer/object) – IN:

Kernel function for which occupancy is calulated

blockSize (int) – IN:

Block size the kernel is intended to be launched with

dynSharedMemPerBlk – IN:

dynamic shared memory usage (in bytes) intended for each block

Returns:

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

cuda.cuda.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, blockSize, dynSharedMemPerBlk, flags)

hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, int blockSize, unsigned long dynSharedMemPerBlk, unsigned int flags) Returns occupancy for a device function.

Args:
f (Pointer/object) – IN:

Kernel function for which occupancy is calulated

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):

cuda.cuda.cudaOccupancyMaxPotentialBlockSize(f, dynSharedMemPerBlk, blockSizeLimit)

hipOccupancyMaxPotentialBlockSize(f, unsigned long dynSharedMemPerBlk, int 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 calulated

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):

cuda.cuda.cuProfilerStart()

hipProfilerStart() Start recording of profiling information

When using this API, start the profiler with profiling disabled. (–startdisabled)

Warning:

hipProfilerStart API is deprecated, use roctracer/rocTX instead.

Returns:

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

cuda.cuda.cudaProfilerStart()

hipProfilerStart() Start recording of profiling information

When using this API, start the profiler with profiling disabled. (–startdisabled)

Warning:

hipProfilerStart API is deprecated, use roctracer/rocTX instead.

Returns:

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

cuda.cuda.cuProfilerStop()

hipProfilerStop() Stop recording of profiling information.

When using this API, start the profiler with profiling disabled. (–startdisabled)

Warning:

hipProfilerStart API is deprecated, use roctracer/rocTX instead.

Returns:

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

cuda.cuda.cudaProfilerStop()

hipProfilerStop() Stop recording of profiling information.

When using this API, start the profiler with profiling disabled. (–startdisabled)

Warning:

hipProfilerStart API is deprecated, use roctracer/rocTX instead.

Returns:

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

cuda.cuda.cudaConfigureCall(gridDim, blockDim, sharedMem, stream)

hipConfigureCall(gridDim, blockDim, unsigned long 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:

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

  • hipError_t: hipSuccess, hipInvalidDevice, hipErrorNotInitialized, hipErrorInvalidValue

cuda.cuda.cudaSetupArgument(arg, size, offset)

hipSetupArgument(arg, unsigned long size, unsigned long 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:

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

  • hipError_t: hipSuccess, hipInvalidDevice, hipErrorNotInitialized, hipErrorInvalidValue

cuda.cuda.cudaLaunch(func)

hipLaunchByPtr(func) Launch a kernel.

Args:
func (Pointer/object) – IN:

Kernel to launch.

Returns:

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

  • hipError_t: hipSuccess, hipInvalidDevice, hipErrorNotInitialized, hipErrorInvalidValue

cuda.cuda.cudaLaunchKernel(function_address, numBlocks, dimBlocks, args, sharedMemBytes, stream)

hipLaunchKernel(function_address, numBlocks, dimBlocks, args, unsigned long 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 (Pointer/object) – IN:
  • kernel arguments

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:

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

cuda.cuda.cuLaunchHostFunc(stream, fn, userData)

hipLaunchHostFunc(stream, fn, userData) Enqueues a host function call in a stream.

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:
  • stream to enqueue work to.

fn (hipHostFn_t/object) – IN:
  • function to call once operations enqueued preceeding are complete.

userData (Pointer/object) – IN:
  • User-specified data to be passed to the function.

Returns:

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

cuda.cuda.cudaLaunchHostFunc(stream, fn, userData)

hipLaunchHostFunc(stream, fn, userData) Enqueues a host function call in a stream.

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:
  • stream to enqueue work to.

fn (hipHostFn_t/object) – IN:
  • function to call once operations enqueued preceeding are complete.

userData (Pointer/object) – IN:
  • User-specified data to be passed to the function.

Returns:

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

cuda.cuda.cuMemcpy2DUnaligned(pCopy)

hipDrvMemcpy2DUnaligned(pCopy) (No short description, might be part of a group.)

Copies memory for 2D arrays.

Args:
pCopy (hip_Memcpy2D/object):
  • Parameters for the memory copy

Returns:

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

cuda.cuda.cuMemcpy2DUnaligned_v2(pCopy)

hipDrvMemcpy2DUnaligned(pCopy) (No short description, might be part of a group.)

Copies memory for 2D arrays.

Args:
pCopy (hip_Memcpy2D/object):
  • Parameters for the memory copy

Returns:

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

cuda.cuda.cudaCreateTextureObject(pResDesc, pTexDesc, pResViewDesc)

hipCreateTextureObject(pResDesc, pTexDesc, pResViewDesc) Creates a texture object.

Note:

3D liner 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):

cuda.cuda.cudaDestroyTextureObject(textureObject)

hipDestroyTextureObject(textureObject) Destroys a texture object.

Args:
textureObject (__hip_texture/object) – IN:

texture object to destroy

Returns:

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

cuda.cuda.cudaGetChannelDesc(desc, array)

hipGetChannelDesc(desc, array) Gets the channel descriptor in an array.

Args:
desc (hipChannelFormatDesc/object) – IN:

pointer to channel format descriptor

array (hipArray/object) – OUT:

memory array on the device

Returns:

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

cuda.cuda.cudaGetTextureObjectResourceDesc(pResDesc, textureObject)

hipGetTextureObjectResourceDesc(pResDesc, textureObject) Gets resource descriptor for the texture object.

Args:
pResDesc (hipResourceDesc/object) – OUT:

pointer to resource descriptor

textureObject (__hip_texture/object) – IN:

texture object

Returns:

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

cuda.cuda.cudaGetTextureObjectResourceViewDesc(pResViewDesc, textureObject)

hipGetTextureObjectResourceViewDesc(pResViewDesc, textureObject) Gets resource view descriptor for the texture object.

Args:
pResViewDesc (hipResourceViewDesc/object) – OUT:

pointer to resource view descriptor

textureObject (__hip_texture/object) – IN:

texture object

Returns:

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

cuda.cuda.cudaGetTextureObjectTextureDesc(pTexDesc, textureObject)

hipGetTextureObjectTextureDesc(pTexDesc, textureObject) Gets texture descriptor for the texture object.

Args:
pTexDesc (hipTextureDesc/object) – OUT:

pointer to texture descriptor

textureObject (__hip_texture/object) – IN:

texture object

Returns:

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

cuda.cuda.cuTexObjectCreate(pResDesc, pTexDesc, pResViewDesc)

hipTexObjectCreate(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):

cuda.cuda.cuTexObjectDestroy(texObject)

hipTexObjectDestroy(texObject) Destroys a texture object.

Args:
texObject (__hip_texture/object) – IN:

texture object to destroy

Returns:

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

cuda.cuda.cuTexObjectGetResourceDesc(pResDesc, texObject)

hipTexObjectGetResourceDesc(pResDesc, texObject) Gets resource descriptor of a texture object.

Args:
pResDesc (HIP_RESOURCE_DESC_st/object) – OUT:

pointer to resource descriptor

texObject (__hip_texture/object) – IN:

texture object

Returns:

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

cuda.cuda.cuTexObjectGetResourceViewDesc(pResViewDesc, texObject)

hipTexObjectGetResourceViewDesc(pResViewDesc, texObject) Gets resource view descriptor of a texture object.

Args:
pResViewDesc (HIP_RESOURCE_VIEW_DESC_st/object) – OUT:

pointer to resource view descriptor

texObject (__hip_texture/object) – IN:

texture object

Returns:

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

cuda.cuda.cuTexObjectGetTextureDesc(pTexDesc, texObject)

hipTexObjectGetTextureDesc(pTexDesc, texObject) Gets texture descriptor of a texture object.

Args:
pTexDesc (HIP_TEXTURE_DESC_st/object) – OUT:

pointer to texture descriptor

texObject (__hip_texture/object) – IN:

texture object

Returns:

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

cuda.cuda.cudaMallocMipmappedArray(desc, extent, numLevels, flags)

hipMallocMipmappedArray(desc, extent, unsigned int numLevels, unsigned int flags) Allocate a mipmapped array on the device.

Note:

This API is implemented on Windows, under development on Linux.

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):

cuda.cuda.cudaFreeMipmappedArray(mipmappedArray)

hipFreeMipmappedArray(mipmappedArray) Frees a mipmapped array on the device.

Note:

This API is implemented on Windows, under development on Linux.

Args:
mipmappedArray (hipMipmappedArray/object) – IN:
  • Pointer to mipmapped array to free

Returns:

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

cuda.cuda.cudaGetMipmappedArrayLevel(mipmappedArray, level)

hipGetMipmappedArrayLevel(mipmappedArray, unsigned int level) Gets a mipmap level of a HIP mipmapped array.

Note:

This API is implemented on Windows, under development on Linux.

Args:
mipmappedArray (hipMipmappedArray/object) – IN:
  • HIP mipmapped array

level (int) – IN:
  • Mipmap level

Returns:

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

cuda.cuda.cuMipmappedArrayCreate(pMipmappedArrayDesc, numMipmapLevels)

hipMipmappedArrayCreate(pMipmappedArrayDesc, unsigned int numMipmapLevels) Create a mipmapped array.

Note:

This API is implemented on Windows, under development on Linux.

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):

cuda.cuda.cuMipmappedArrayDestroy(hMipmappedArray)

hipMipmappedArrayDestroy(hMipmappedArray) Destroy a mipmapped array.

Note:

This API is implemented on Windows, under development on Linux.

Args:
hMipmappedArray (hipMipmappedArray/object) – OUT:

pointer to mipmapped array to destroy

Returns:

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

cuda.cuda.cuMipmappedArrayGetLevel(hMipMappedArray, level)

hipMipmappedArrayGetLevel(hMipMappedArray, unsigned int level) Get a mipmapped array on a mipmapped level.

Note:

This API is implemented on Windows, under development on Linux.

Args:
hMipMappedArray (hipMipmappedArray/object) – OUT:

Pointer of mipmapped array on the requested mipmap level

level (int) – OUT:

Mipmap level

Returns:

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

cuda.cuda.cudaBindTextureToMipmappedArray(tex, mipmappedArray, desc)

hipBindTextureToMipmappedArray(tex, mipmappedArray, desc) Binds a mipmapped array to a texture.

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:

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

cuda.cuda.cudaGetTextureReference(symbol)

hipGetTextureReference(symbol) Gets the texture reference related with the symbol.

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):

cuda.cuda.cuTexRefSetAddressMode(texRef, dim, am)

hipTexRefSetAddressMode(texRef, int dim, am) Sets address mode for a texture reference.

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:

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

cuda.cuda.cuTexRefSetArray(tex, array, flags)

hipTexRefSetArray(tex, array, unsigned int flags) Binds an array as a texture reference.

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:

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

cuda.cuda.cuTexRefSetFilterMode(texRef, fm)

hipTexRefSetFilterMode(texRef, fm) Set filter mode for a texture reference.

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer texture reference.

fm (hipTextureFilterMode) – IN:

Value of texture filter mode.

Returns:

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

cuda.cuda.cuTexRefSetFlags(texRef, Flags)

hipTexRefSetFlags(texRef, unsigned int Flags) Set flags for a texture reference.

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer texture reference.

Flags (int) – IN:

Value of flags.

Returns:

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

cuda.cuda.cuTexRefSetFormat(texRef, fmt, NumPackedComponents)

hipTexRefSetFormat(texRef, fmt, int NumPackedComponents) Set format for a texture reference.

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:

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

cuda.cuda.cudaBindTexture(tex, devPtr, desc, size)

hipBindTexture(tex, devPtr, desc, unsigned long size) Binds a memory area to a texture.

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):

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

hipBindTexture2D(tex, devPtr, desc, unsigned long width, unsigned long height, unsigned long pitch) Binds a 2D memory area to a texture.

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):

cuda.cuda.cudaBindTextureToArray(tex, array, desc)

hipBindTextureToArray(tex, array, desc) Binds a memory area to a texture.

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:

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

cuda.cuda.cudaGetTextureAlignmentOffset(texref)

hipGetTextureAlignmentOffset(texref) Get the offset of the alignment in a texture.

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):

cuda.cuda.cudaUnbindTexture(tex)

hipUnbindTexture(tex) Unbinds a texture.

Warning:

This API is deprecated.

Args:
tex (textureReference/object) – IN:

Texture to unbind.

Returns:

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

cuda.cuda.cuTexRefGetAddress(texRef)

hipTexRefGetAddress(texRef) Gets the the address for a texture reference.

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):

cuda.cuda.cuTexRefGetAddress_v2(texRef)

hipTexRefGetAddress(texRef) Gets the the address for a texture reference.

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):

cuda.cuda.cuTexRefGetAddressMode(texRef, dim)

hipTexRefGetAddressMode(texRef, int dim) Gets the address mode for a texture reference.

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):

cuda.cuda.cuTexRefGetFilterMode(texRef)

hipTexRefGetFilterMode(texRef) Gets filter mode for a texture reference.

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):

cuda.cuda.cuTexRefGetFlags(texRef)

hipTexRefGetFlags(texRef) Gets flags for a texture reference.

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):

cuda.cuda.cuTexRefGetFormat(texRef)

hipTexRefGetFormat(texRef) Gets texture format for a texture reference.

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):

cuda.cuda.cuTexRefGetMaxAnisotropy(texRef)

hipTexRefGetMaxAnisotropy(texRef) Gets the maximum anisotropy for a texture reference.

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):

cuda.cuda.cuTexRefGetMipmapFilterMode(texRef)

hipTexRefGetMipmapFilterMode(texRef) Gets the mipmap filter mode for a texture reference.

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):

cuda.cuda.cuTexRefGetMipmapLevelBias(texRef)

hipTexRefGetMipmapLevelBias(texRef) Gets the mipmap level bias for a texture reference.

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):

cuda.cuda.cuTexRefGetMipmapLevelClamp(texRef)

hipTexRefGetMipmapLevelClamp(texRef) Gets the minimum and maximum mipmap level clamps for a texture reference.

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):

cuda.cuda.cuTexRefGetMipmappedArray(texRef)

hipTexRefGetMipMappedArray(texRef) Gets the mipmapped array bound to a texture reference.

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):

cuda.cuda.cuTexRefSetAddress(texRef, dptr, bytes)

hipTexRefSetAddress(texRef, dptr, unsigned long bytes) Sets an bound address for a texture reference.

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):

cuda.cuda.cuTexRefSetAddress_v2(texRef, dptr, bytes)

hipTexRefSetAddress(texRef, dptr, unsigned long bytes) Sets an bound address for a texture reference.

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):

cuda.cuda.cuTexRefSetAddress2D(texRef, desc, dptr, Pitch)

hipTexRefSetAddress2D(texRef, desc, dptr, unsigned long Pitch) Set a bind an address as a 2D texture reference.

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:

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

cuda.cuda.cuTexRefSetAddress2D_v2(texRef, desc, dptr, Pitch)

hipTexRefSetAddress2D(texRef, desc, dptr, unsigned long Pitch) Set a bind an address as a 2D texture reference.

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:

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

cuda.cuda.cuTexRefSetAddress2D_v3(texRef, desc, dptr, Pitch)

hipTexRefSetAddress2D(texRef, desc, dptr, unsigned long Pitch) Set a bind an address as a 2D texture reference.

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:

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

cuda.cuda.cuTexRefSetMaxAnisotropy(texRef, maxAniso)

hipTexRefSetMaxAnisotropy(texRef, unsigned int maxAniso) Sets the maximum anisotropy for a texture reference.

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

maxAniso (int) – OUT:

Value of the maximum anisotropy.

Returns:

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

cuda.cuda.cuTexRefSetBorderColor(texRef)

hipTexRefSetBorderColor(texRef) Sets border color for a texture reference.

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):

cuda.cuda.cuTexRefSetMipmapFilterMode(texRef, fm)

hipTexRefSetMipmapFilterMode(texRef, fm) Sets mipmap filter mode for a texture reference.

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

fm (hipTextureFilterMode) – IN:

Value of filter mode.

Returns:

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

cuda.cuda.cuTexRefSetMipmapLevelBias(texRef, bias)

hipTexRefSetMipmapLevelBias(texRef, float bias) Sets mipmap level bias for a texture reference.

Warning:

This API is deprecated.

Args:
texRef (textureReference/object) – IN:

Pointer of texture reference.

bias (float/int) – IN:

Value of mipmap bias.

Returns:

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

cuda.cuda.cuTexRefSetMipmapLevelClamp(texRef, minMipMapLevelClamp, maxMipMapLevelClamp)

hipTexRefSetMipmapLevelClamp(texRef, float minMipMapLevelClamp, float maxMipMapLevelClamp) Sets mipmap level clamp for a texture reference.

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:

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

cuda.cuda.cuTexRefSetMipmappedArray(texRef, mipmappedArray, Flags)

hipTexRefSetMipmappedArray(texRef, mipmappedArray, unsigned int Flags) Binds mipmapped array to a texture reference.

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:

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

cuda.cuda.cuStreamBeginCapture(stream, mode)

hipStreamBeginCapture(stream, mode) Begins graph capture on a stream.

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:
  • Stream to initiate capture.

mode (hipStreamCaptureMode) – IN:
  • Controls the interaction of this capture sequence with other API calls that

are not safe.

Returns:

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

cuda.cuda.cuStreamBeginCapture_v2(stream, mode)

hipStreamBeginCapture(stream, mode) Begins graph capture on a stream.

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:
  • Stream to initiate capture.

mode (hipStreamCaptureMode) – IN:
  • Controls the interaction of this capture sequence with other API calls that

are not safe.

Returns:

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

cuda.cuda.cudaStreamBeginCapture(stream, mode)

hipStreamBeginCapture(stream, mode) Begins graph capture on a stream.

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:
  • Stream to initiate capture.

mode (hipStreamCaptureMode) – IN:
  • Controls the interaction of this capture sequence with other API calls that

are not safe.

Returns:

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

cuda.cuda.cuStreamEndCapture(stream)

hipStreamEndCapture(stream) Ends capture on a stream, returning the captured graph.

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:
  • Stream to end capture.

Returns:

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

cuda.cuda.cudaStreamEndCapture(stream)

hipStreamEndCapture(stream) Ends capture on a stream, returning the captured graph.

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:
  • Stream to end capture.

Returns:

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

cuda.cuda.cuStreamGetCaptureInfo(stream)

hipStreamGetCaptureInfo(stream) Get capture status of a stream.

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:
  • Stream under capture.

Returns:

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

cuda.cuda.cudaStreamGetCaptureInfo(stream)

hipStreamGetCaptureInfo(stream) Get capture status of a stream.

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:
  • Stream under capture.

Returns:

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

cuda.cuda.cuStreamGetCaptureInfo_v2(stream, dependencies_out)

hipStreamGetCaptureInfo_v2(stream, dependencies_out) Get stream’s capture state

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:
  • Stream under capture.

dependencies_out (Pointer/object) – OUT:
  • returns pointer to an array of nodes.

Returns:

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

cuda.cuda.cuStreamIsCapturing(stream)

hipStreamIsCapturing(stream) Get stream’s capture state

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:
  • Stream under capture.

Returns:

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

cuda.cuda.cudaStreamIsCapturing(stream)

hipStreamIsCapturing(stream) Get stream’s capture state

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:
  • Stream under capture.

Returns:

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

cuda.cuda.cuStreamUpdateCaptureDependencies(stream, numDependencies, flags)

hipStreamUpdateCaptureDependencies(stream, unsigned long numDependencies, unsigned int flags) Update the set of dependencies in a capturing stream

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:
  • Stream under capture.

numDependencies (int) – IN:
  • size of the array in dependencies.

flags (int):

(undocumented)

Returns:

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

cuda.cuda.cuThreadExchangeStreamCaptureMode(mode)

hipThreadExchangeStreamCaptureMode(mode) Swaps the stream capture mode of a thread.

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:
mode (Pointer/object) – IN:
  • Pointer to mode value to swap with the current mode

Returns:

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

cuda.cuda.cudaThreadExchangeStreamCaptureMode(mode)

hipThreadExchangeStreamCaptureMode(mode) Swaps the stream capture mode of a thread.

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:
mode (Pointer/object) – IN:
  • Pointer to mode value to swap with the current mode

Returns:

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

cuda.cuda.cuGraphCreate(flags)

hipGraphCreate(unsigned int flags) Creates a graph

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:
flags (int) – IN:
  • flags for graph creation, must be 0.

Returns:

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

cuda.cuda.cudaGraphCreate(flags)

hipGraphCreate(unsigned int flags) Creates a graph

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:
flags (int) – IN:
  • flags for graph creation, must be 0.

Returns:

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

cuda.cuda.cuGraphDestroy(graph)

hipGraphDestroy(graph) Destroys a graph

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:
graph (ihipGraph/object) – IN:
  • instance of graph to destroy.

Returns:

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

cuda.cuda.cudaGraphDestroy(graph)

hipGraphDestroy(graph) Destroys a graph

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:
graph (ihipGraph/object) – IN:
  • instance of graph to destroy.

Returns:

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

cuda.cuda.cuGraphAddDependencies(graph, numDependencies)

hipGraphAddDependencies(graph, unsigned long numDependencies) Adds dependency edges to a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of the graph to add dependencies.

numDependencies (int) – IN:
  • the number of dependencies to add.

Returns:

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

cuda.cuda.cudaGraphAddDependencies(graph, numDependencies)

hipGraphAddDependencies(graph, unsigned long numDependencies) Adds dependency edges to a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of the graph to add dependencies.

numDependencies (int) – IN:
  • the number of dependencies to add.

Returns:

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

cuda.cuda.cuGraphRemoveDependencies(graph, numDependencies)

hipGraphRemoveDependencies(graph, unsigned long numDependencies) Removes dependency edges from a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of the graph to remove dependencies.

numDependencies (int) – IN:
  • the number of dependencies to remove.

Returns:

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

cuda.cuda.cudaGraphRemoveDependencies(graph, numDependencies)

hipGraphRemoveDependencies(graph, unsigned long numDependencies) Removes dependency edges from a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of the graph to remove dependencies.

numDependencies (int) – IN:
  • the number of dependencies to remove.

Returns:

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

cuda.cuda.cuGraphGetEdges(graph)

hipGraphGetEdges(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

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:
graph (ihipGraph/object) – IN:
  • instance of the graph to get the edges from.

Returns:

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

cuda.cuda.cudaGraphGetEdges(graph)

hipGraphGetEdges(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

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:
graph (ihipGraph/object) – IN:
  • instance of the graph to get the edges from.

Returns:

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

cuda.cuda.cuGraphGetNodes(graph)

hipGraphGetNodes(graph) Returns graph 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.

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:
graph (ihipGraph/object) – IN:
  • instance of graph to get the nodes.

Returns:

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

cuda.cuda.cudaGraphGetNodes(graph)

hipGraphGetNodes(graph) Returns graph 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.

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:
graph (ihipGraph/object) – IN:
  • instance of graph to get the nodes.

Returns:

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

cuda.cuda.cuGraphGetRootNodes(graph)

hipGraphGetRootNodes(graph) Returns 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.

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:
graph (ihipGraph/object) – IN:
  • instance of the graph to get the nodes.

Returns:

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

cuda.cuda.cudaGraphGetRootNodes(graph)

hipGraphGetRootNodes(graph) Returns 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.

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:
graph (ihipGraph/object) – IN:
  • instance of the graph to get the nodes.

Returns:

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

cuda.cuda.cuGraphNodeGetDependencies(node)

hipGraphNodeGetDependencies(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.

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:
node (hipGraphNode/object) – IN:
  • graph node to get the dependencies from.

Returns:

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

cuda.cuda.cudaGraphNodeGetDependencies(node)

hipGraphNodeGetDependencies(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.

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:
node (hipGraphNode/object) – IN:
  • graph node to get the dependencies from.

Returns:

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

cuda.cuda.cuGraphNodeGetDependentNodes(node)

hipGraphNodeGetDependentNodes(node) Returns a node’s dependent nodes.

DependentNodes 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.

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:
node (hipGraphNode/object) – IN:
  • graph node to get the Dependent nodes from.

Returns:

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

cuda.cuda.cudaGraphNodeGetDependentNodes(node)

hipGraphNodeGetDependentNodes(node) Returns a node’s dependent nodes.

DependentNodes 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.

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:
node (hipGraphNode/object) – IN:
  • graph node to get the Dependent nodes from.

Returns:

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

cuda.cuda.cuGraphNodeGetType(node)

hipGraphNodeGetType(node) Returns a node’s type.

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:
node (hipGraphNode/object) – IN:
  • instance of the graph to add dependencies.

Returns:

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

cuda.cuda.cudaGraphNodeGetType(node)

hipGraphNodeGetType(node) Returns a node’s type.

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:
node (hipGraphNode/object) – IN:
  • instance of the graph to add dependencies.

Returns:

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

cuda.cuda.cuGraphDestroyNode(node)

hipGraphDestroyNode(node) Remove a node from the graph.

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:
node (hipGraphNode/object) – IN:
  • graph node to remove

Returns:

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

cuda.cuda.cudaGraphDestroyNode(node)

hipGraphDestroyNode(node) Remove a node from the graph.

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:
node (hipGraphNode/object) – IN:
  • graph node to remove

Returns:

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

cuda.cuda.cuGraphClone(originalGraph)

hipGraphClone(originalGraph) Clones a graph.

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:
originalGraph (ihipGraph/object) – IN:
  • original graph to clone from.

Returns:

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

cuda.cuda.cudaGraphClone(originalGraph)

hipGraphClone(originalGraph) Clones a graph.

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:
originalGraph (ihipGraph/object) – IN:
  • original graph to clone from.

Returns:

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

cuda.cuda.cuGraphNodeFindInClone(originalNode, clonedGraph)

hipGraphNodeFindInClone(originalNode, clonedGraph) Finds a cloned version of a node.

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:
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):

cuda.cuda.cudaGraphNodeFindInClone(originalNode, clonedGraph)

hipGraphNodeFindInClone(originalNode, clonedGraph) Finds a cloned version of a node.

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:
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):

cuda.cuda.cuGraphInstantiate(graph, pLogBuffer, bufferSize)

hipGraphInstantiate(graph, pLogBuffer, unsigned long bufferSize) Creates an executable graph from a graph

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:
graph (ihipGraph/object) – IN:
  • instance of graph to instantiate.

pLogBuffer (CStr/object) – OUT:
  • pointer to log buffer.

bufferSize (int) – OUT:
  • the size of log buffer.

Returns:

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

cuda.cuda.cuGraphInstantiate_v2(graph, pLogBuffer, bufferSize)

hipGraphInstantiate(graph, pLogBuffer, unsigned long bufferSize) Creates an executable graph from a graph

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:
graph (ihipGraph/object) – IN:
  • instance of graph to instantiate.

pLogBuffer (CStr/object) – OUT:
  • pointer to log buffer.

bufferSize (int) – OUT:
  • the size of log buffer.

Returns:

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

cuda.cuda.cudaGraphInstantiate(graph, pLogBuffer, bufferSize)

hipGraphInstantiate(graph, pLogBuffer, unsigned long bufferSize) Creates an executable graph from a graph

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:
graph (ihipGraph/object) – IN:
  • instance of graph to instantiate.

pLogBuffer (CStr/object) – OUT:
  • pointer to log buffer.

bufferSize (int) – OUT:
  • the size of log buffer.

Returns:

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

cuda.cuda.cuGraphInstantiateWithFlags(graph, flags)

hipGraphInstantiateWithFlags(graph, unsigned long long flags) Creates an executable graph from a graph.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.It 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):

cuda.cuda.cudaGraphInstantiateWithFlags(graph, flags)

hipGraphInstantiateWithFlags(graph, unsigned long long flags) Creates an executable graph from a graph.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.It 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):

cuda.cuda.cuGraphLaunch(graphExec, stream)

hipGraphLaunch(graphExec, stream) launches an executable graph in a stream

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:
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:

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

cuda.cuda.cudaGraphLaunch(graphExec, stream)

hipGraphLaunch(graphExec, stream) launches an executable graph in a stream

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:
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:

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

cuda.cuda.cuGraphUpload(graphExec, stream)

hipGraphUpload(graphExec, stream) uploads an executable graph in a stream

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:
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:

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

cuda.cuda.cudaGraphUpload(graphExec, stream)

hipGraphUpload(graphExec, stream) uploads an executable graph in a stream

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:
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:

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

cuda.cuda.cuGraphExecDestroy(graphExec)

hipGraphExecDestroy(graphExec) Destroys an executable graph

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:
graphExec (hipGraphExec/object) – IN:
  • instance of executable graph to destry.

Returns:

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

cuda.cuda.cudaGraphExecDestroy(graphExec)

hipGraphExecDestroy(graphExec) Destroys an executable graph

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:
graphExec (hipGraphExec/object) – IN:
  • instance of executable graph to destry.

Returns:

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

cuda.cuda.cuGraphExecUpdate(hGraphExec, hGraph)

hipGraphExecUpdate(hGraphExec, hGraph) Check whether an executable graph can be updated with a graph and perform the update if *

possible.

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:
hGraphExec (hipGraphExec/object) – IN:
  • instance of executable graph to update.

hGraph (ihipGraph/object) – IN:
  • graph that contains the updated parameters.

Returns:

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

cuda.cuda.cudaGraphExecUpdate(hGraphExec, hGraph)

hipGraphExecUpdate(hGraphExec, hGraph) Check whether an executable graph can be updated with a graph and perform the update if *

possible.

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:
hGraphExec (hipGraphExec/object) – IN:
  • instance of executable graph to update.

hGraph (ihipGraph/object) – IN:
  • graph that contains the updated parameters.

Returns:

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

cuda.cuda.cuGraphAddKernelNode(graph, numDependencies, pNodeParams)

hipGraphAddKernelNode(graph, unsigned long numDependencies, pNodeParams) Creates a kernel execution node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of graph to add the created node.

numDependencies (int) – IN:
  • the number of the dependencies.

pNodeParams (hipKernelNodeParams/object) – IN:
  • pointer to the parameters to the kernel execution node on the GPU.

Returns:

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

cuda.cuda.cudaGraphAddKernelNode(graph, numDependencies, pNodeParams)

hipGraphAddKernelNode(graph, unsigned long numDependencies, pNodeParams) Creates a kernel execution node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of graph to add the created node.

numDependencies (int) – IN:
  • the number of the dependencies.

pNodeParams (hipKernelNodeParams/object) – IN:
  • pointer to the parameters to the kernel execution node on the GPU.

Returns:

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

cuda.cuda.cuGraphKernelNodeGetParams(node, pNodeParams)

hipGraphKernelNodeGetParams(node, pNodeParams) Gets kernel node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to get parameters from.

pNodeParams (hipKernelNodeParams/object) – OUT:
  • pointer to the parameters

Returns:

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

cuda.cuda.cudaGraphKernelNodeGetParams(node, pNodeParams)

hipGraphKernelNodeGetParams(node, pNodeParams) Gets kernel node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to get parameters from.

pNodeParams (hipKernelNodeParams/object) – OUT:
  • pointer to the parameters

Returns:

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

cuda.cuda.cuGraphKernelNodeSetParams(node, pNodeParams)

hipGraphKernelNodeSetParams(node, pNodeParams) Sets a kernel node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipKernelNodeParams/object) – IN:
  • const pointer to the parameters.

Returns:

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

cuda.cuda.cudaGraphKernelNodeSetParams(node, pNodeParams)

hipGraphKernelNodeSetParams(node, pNodeParams) Sets a kernel node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipKernelNodeParams/object) – IN:
  • const pointer to the parameters.

Returns:

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

cuda.cuda.cuGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams)

hipGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) Sets the parameters for a kernel node in the given graphExec.

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:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipKernelNodeParams/object) – IN:
  • const pointer to the kernel node parameters.

Returns:

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

cuda.cuda.cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams)

hipGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) Sets the parameters for a kernel node in the given graphExec.

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:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipKernelNodeParams/object) – IN:
  • const pointer to the kernel node parameters.

Returns:

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

cuda.cuda.cuGraphAddMemcpyNode(hGraph, numDependencies, copyParams, ctx)

hipDrvGraphAddMemcpyNode(hGraph, unsigned long numDependencies, copyParams, ctx) Creates a memcpy node and adds it to a graph.

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:
hGraph (ihipGraph/object) – IN:
  • instance of graph to add the created node.

numDependencies (int) – IN:
  • the number of the dependencies.

copyParams (HIP_MEMCPY3D/object) – IN:
  • const pointer to the parameters for the memory copy.

ctx (ihipCtx_t/object) – IN:
  • cotext related to current device.

Returns:

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

cuda.cuda.cudaGraphAddMemcpyNode(graph, numDependencies, pCopyParams)

hipGraphAddMemcpyNode(graph, unsigned long numDependencies, pCopyParams) Creates a memcpy node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of graph to add the created node.

numDependencies (int) – IN:
  • the number of the dependencies.

pCopyParams (hipMemcpy3DParms/object) – IN:
  • const pointer to the parameters for the memory copy.

Returns:

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

cuda.cuda.cuGraphMemcpyNodeGetParams(node, pNodeParams)

hipGraphMemcpyNodeGetParams(node, pNodeParams) Gets a memcpy node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to get parameters from.

pNodeParams (hipMemcpy3DParms/object) – OUT:
  • pointer to the parameters.

Returns:

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

cuda.cuda.cudaGraphMemcpyNodeGetParams(node, pNodeParams)

hipGraphMemcpyNodeGetParams(node, pNodeParams) Gets a memcpy node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to get parameters from.

pNodeParams (hipMemcpy3DParms/object) – OUT:
  • pointer to the parameters.

Returns:

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

cuda.cuda.cuGraphMemcpyNodeSetParams(node, pNodeParams)

hipGraphMemcpyNodeSetParams(node, pNodeParams) Sets a memcpy node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipMemcpy3DParms/object) – IN:
  • const pointer to the parameters.

Returns:

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

cuda.cuda.cudaGraphMemcpyNodeSetParams(node, pNodeParams)

hipGraphMemcpyNodeSetParams(node, pNodeParams) Sets a memcpy node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipMemcpy3DParms/object) – IN:
  • const pointer to the parameters.

Returns:

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

cuda.cuda.cuGraphKernelNodeSetAttribute(hNode, attr, value)

hipGraphKernelNodeSetAttribute(hNode, attr, value) Sets a node attribute.

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:
hNode (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

attr (hipKernelNodeAttrID) – IN:
  • the attribute node is set to.

value (hipKernelNodeAttrValue/object) – IN:
  • const pointer to the parameters.

Returns:

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

cuda.cuda.cudaGraphKernelNodeSetAttribute(hNode, attr, value)

hipGraphKernelNodeSetAttribute(hNode, attr, value) Sets a node attribute.

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:
hNode (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

attr (hipKernelNodeAttrID) – IN:
  • the attribute node is set to.

value (hipKernelNodeAttrValue/object) – IN:
  • const pointer to the parameters.

Returns:

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

cuda.cuda.cuGraphKernelNodeGetAttribute(hNode, attr, value)

hipGraphKernelNodeGetAttribute(hNode, attr, value) Gets a node attribute.

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:
hNode (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

attr (hipKernelNodeAttrID) – IN:
  • the attribute node is set to.

value (hipKernelNodeAttrValue/object) – IN:
  • const pointer to the parameters.

Returns:

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

cuda.cuda.cudaGraphKernelNodeGetAttribute(hNode, attr, value)

hipGraphKernelNodeGetAttribute(hNode, attr, value) Gets a node attribute.

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:
hNode (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

attr (hipKernelNodeAttrID) – IN:
  • the attribute node is set to.

value (hipKernelNodeAttrValue/object) – IN:
  • const pointer to the parameters.

Returns:

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

cuda.cuda.cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams)

hipGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) Sets the parameters for a memcpy node in the given graphExec.

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:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipMemcpy3DParms/object) – IN:
  • const pointer to the kernel node parameters.

Returns:

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

cuda.cuda.cudaGraphAddMemcpyNode1D(graph, numDependencies, dst, src, count, kind)

hipGraphAddMemcpyNode1D(graph, unsigned long numDependencies, dst, src, unsigned long count, kind) Creates a 1D memcpy node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of graph to add the created node.

numDependencies (int) – IN:
  • the number of the dependencies.

dst (Pointer/object) – IN:
  • pointer to memory address to the destination.

src (Pointer/object) – IN:
  • pointer to memory address to the source.

count (int) – IN:
  • the size of the memory to copy.

kind (hipMemcpyKind) – IN:
  • the type of memory copy.

Returns:

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

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

hipGraphMemcpyNodeSetParams1D(node, dst, src, unsigned long count, kind) Sets a memcpy node’s parameters to perform a 1-dimensional copy.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

dst (Pointer/object) – IN:
  • pointer to memory address to the destination.

src (Pointer/object) – IN:
  • pointer to memory address to the source.

count (int) – IN:
  • the size of the memory to copy.

kind (hipMemcpyKind) – IN:
  • the type of memory copy.

Returns:

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

cuda.cuda.cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind)

hipGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, unsigned long count, kind) Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional

copy.

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:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

dst (Pointer/object) – IN:
  • pointer to memory address to the destination.

src (Pointer/object) – IN:
  • pointer to memory address to the source.

count (int) – IN:
  • the size of the memory to copy.

kind (hipMemcpyKind) – IN:
  • the type of memory copy.

Returns:

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

cuda.cuda.cudaGraphAddMemcpyNodeFromSymbol(graph, numDependencies, dst, symbol, count, offset, kind)

hipGraphAddMemcpyNodeFromSymbol(graph, unsigned long numDependencies, dst, symbol, unsigned long count, unsigned long offset, kind) Creates a memcpy node to copy from a symbol on the device and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of graph to add the created node.

numDependencies (int) – IN:
  • the number of the dependencies.

dst (Pointer/object) – IN:
  • pointer to memory address to the destination.

symbol (Pointer/object) – IN:
  • Device symbol address.

count (int) – IN:
  • the size of the memory to copy.

offset (int) – IN:
  • Offset from start of symbol in bytes.

kind (hipMemcpyKind) – IN:
  • the type of memory copy.

Returns:

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

cuda.cuda.cudaGraphMemcpyNodeSetParamsFromSymbol(node, dst, symbol, count, offset, kind)

hipGraphMemcpyNodeSetParamsFromSymbol(node, dst, symbol, unsigned long count, unsigned long offset, kind) Sets a memcpy node’s parameters to copy from a symbol on the device.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

dst (Pointer/object) – IN:
  • pointer to memory address to the destination.

symbol (Pointer/object) – IN:
  • Device symbol address.

count (int) – IN:
  • the size of the memory to copy.

offset (int) – IN:
  • Offset from start of symbol in bytes.

kind (hipMemcpyKind) – IN:
  • the type of memory copy.

Returns:

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

cuda.cuda.cudaGraphExecMemcpyNodeSetParamsFromSymbol(hGraphExec, node, dst, symbol, count, offset, kind)

hipGraphExecMemcpyNodeSetParamsFromSymbol(hGraphExec, node, dst, symbol, unsigned long count, unsigned long offset, kind) Sets the parameters for a memcpy node in the given graphExec to copy from a symbol on the

  • device.

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:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

dst (Pointer/object) – IN:
  • pointer to memory address to the destination.

symbol (Pointer/object) – IN:
  • Device symbol address.

count (int) – IN:
  • the size of the memory to copy.

offset (int) – IN:
  • Offset from start of symbol in bytes.

kind (hipMemcpyKind) – IN:
  • the type of memory copy.

Returns:

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

cuda.cuda.cudaGraphAddMemcpyNodeToSymbol(graph, numDependencies, symbol, src, count, offset, kind)

hipGraphAddMemcpyNodeToSymbol(graph, unsigned long numDependencies, symbol, src, unsigned long count, unsigned long offset, kind) Creates a memcpy node to copy to a symbol on the device and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of graph to add the created node.

numDependencies (int) – IN:
  • the number of the dependencies.

symbol (Pointer/object) – IN:
  • Device symbol address.

src (Pointer/object) – IN:
  • pointer to memory address of the src.

count (int) – IN:
  • the size of the memory to copy.

offset (int) – IN:
  • Offset from start of symbol in bytes.

kind (hipMemcpyKind) – IN:
  • the type of memory copy.

Returns:

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

cuda.cuda.cudaGraphMemcpyNodeSetParamsToSymbol(node, symbol, src, count, offset, kind)

hipGraphMemcpyNodeSetParamsToSymbol(node, symbol, src, unsigned long count, unsigned long offset, kind) Sets a memcpy node’s parameters to copy to a symbol on the device.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

symbol (Pointer/object) – IN:
  • Device symbol address.

src (Pointer/object) – IN:
  • pointer to memory address of the src.

count (int) – IN:
  • the size of the memory to copy.

offset (int) – IN:
  • Offset from start of symbol in bytes.

kind (hipMemcpyKind) – IN:
  • the type of memory copy.

Returns:

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

cuda.cuda.cudaGraphExecMemcpyNodeSetParamsToSymbol(hGraphExec, node, symbol, src, count, offset, kind)

hipGraphExecMemcpyNodeSetParamsToSymbol(hGraphExec, node, symbol, src, unsigned long count, unsigned long offset, kind) Sets the parameters for a memcpy node in the given graphExec to copy to a symbol on the

device.

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:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

symbol (Pointer/object) – IN:
  • Device symbol address.

src (Pointer/object) – IN:
  • pointer to memory address of the src.

count (int) – IN:
  • the size of the memory to copy.

offset (int) – IN:
  • Offset from start of symbol in bytes.

kind (hipMemcpyKind) – IN:
  • the type of memory copy.

Returns:

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

cuda.cuda.cudaGraphAddMemsetNode(graph, numDependencies, pMemsetParams)

hipGraphAddMemsetNode(graph, unsigned long numDependencies, pMemsetParams) Creates a memset node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of the graph to add the created node.

numDependencies (int) – IN:
  • the number of the dependencies.

pMemsetParams (hipMemsetParams/object) – IN:
  • const pointer to the parameters for the memory set.

Returns:

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

cuda.cuda.cuGraphMemsetNodeGetParams(node, pNodeParams)

hipGraphMemsetNodeGetParams(node, pNodeParams) Gets a memset node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to get parameters from.

pNodeParams (hipMemsetParams/object) – OUT:
  • pointer to the parameters.

Returns:

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

cuda.cuda.cudaGraphMemsetNodeGetParams(node, pNodeParams)

hipGraphMemsetNodeGetParams(node, pNodeParams) Gets a memset node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to get parameters from.

pNodeParams (hipMemsetParams/object) – OUT:
  • pointer to the parameters.

Returns:

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

cuda.cuda.cuGraphMemsetNodeSetParams(node, pNodeParams)

hipGraphMemsetNodeSetParams(node, pNodeParams) Sets a memset node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipMemsetParams/object) – IN:
  • pointer to the parameters.

Returns:

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

cuda.cuda.cudaGraphMemsetNodeSetParams(node, pNodeParams)

hipGraphMemsetNodeSetParams(node, pNodeParams) Sets a memset node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipMemsetParams/object) – IN:
  • pointer to the parameters.

Returns:

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

cuda.cuda.cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams)

hipGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) Sets the parameters for a memset node in the given graphExec.

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:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipMemsetParams/object) – IN:
  • pointer to the parameters.

Returns:

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

cuda.cuda.cuGraphAddHostNode(graph, numDependencies, pNodeParams)

hipGraphAddHostNode(graph, unsigned long numDependencies, pNodeParams) Creates a host execution node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of the graph to add the created node.

numDependencies (int) – IN:
  • the number of the dependencies.

pNodeParams (hipHostNodeParams/object) – IN:

-pointer to the parameters.

Returns:

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

cuda.cuda.cudaGraphAddHostNode(graph, numDependencies, pNodeParams)

hipGraphAddHostNode(graph, unsigned long numDependencies, pNodeParams) Creates a host execution node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of the graph to add the created node.

numDependencies (int) – IN:
  • the number of the dependencies.

pNodeParams (hipHostNodeParams/object) – IN:

-pointer to the parameters.

Returns:

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

cuda.cuda.cuGraphHostNodeGetParams(node, pNodeParams)

hipGraphHostNodeGetParams(node, pNodeParams) Returns a host node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to get parameters from.

pNodeParams (hipHostNodeParams/object) – OUT:
  • pointer to the parameters.

Returns:

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

cuda.cuda.cudaGraphHostNodeGetParams(node, pNodeParams)

hipGraphHostNodeGetParams(node, pNodeParams) Returns a host node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to get parameters from.

pNodeParams (hipHostNodeParams/object) – OUT:
  • pointer to the parameters.

Returns:

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

cuda.cuda.cuGraphHostNodeSetParams(node, pNodeParams)

hipGraphHostNodeSetParams(node, pNodeParams) Sets a host node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipHostNodeParams/object) – IN:
  • pointer to the parameters.

Returns:

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

cuda.cuda.cudaGraphHostNodeSetParams(node, pNodeParams)

hipGraphHostNodeSetParams(node, pNodeParams) Sets a host node’s parameters.

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:
node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipHostNodeParams/object) – IN:
  • pointer to the parameters.

Returns:

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

cuda.cuda.cuGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams)

hipGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) Sets the parameters for a host node in the given graphExec.

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:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipHostNodeParams/object) – IN:
  • pointer to the parameters.

Returns:

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

cuda.cuda.cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams)

hipGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) Sets the parameters for a host node in the given graphExec.

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:
hGraphExec (hipGraphExec/object) – IN:
  • instance of the executable graph with the node.

node (hipGraphNode/object) – IN:
  • instance of the node to set parameters to.

pNodeParams (hipHostNodeParams/object) – IN:
  • pointer to the parameters.

Returns:

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

cuda.cuda.cuGraphAddChildGraphNode(graph, numDependencies, childGraph)

hipGraphAddChildGraphNode(graph, unsigned long numDependencies, childGraph) Creates a child graph node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of the graph to add the created node.

numDependencies (int) – IN:
  • the number of the dependencies.

childGraph (ihipGraph/object) – IN:
  • the graph to clone into this node

Returns:

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

cuda.cuda.cudaGraphAddChildGraphNode(graph, numDependencies, childGraph)

hipGraphAddChildGraphNode(graph, unsigned long numDependencies, childGraph) Creates a child graph node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instance of the graph to add the created node.

numDependencies (int) – IN:
  • the number of the dependencies.

childGraph (ihipGraph/object) – IN:
  • the graph to clone into this node

Returns:

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

cuda.cuda.cuGraphChildGraphNodeGetGraph(node)

hipGraphChildGraphNodeGetGraph(node) Gets a handle to the embedded graph of a child graph node.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to get child graph.

Returns:

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

cuda.cuda.cudaGraphChildGraphNodeGetGraph(node)

hipGraphChildGraphNodeGetGraph(node) Gets a handle to the embedded graph of a child graph node.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to get child graph.

Returns:

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

cuda.cuda.cuGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph)

hipGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) Updates node parameters in the child graph node in the given graphExec.

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:
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:

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

cuda.cuda.cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph)

hipGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) Updates node parameters in the child graph node in the given graphExec.

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:
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:

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

cuda.cuda.cuGraphAddEmptyNode(graph, numDependencies)

hipGraphAddEmptyNode(graph, unsigned long numDependencies) Creates an empty node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instane of the graph the node is add to.

numDependencies (int) – IN:
  • the number of dependencies.

Returns:

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

cuda.cuda.cudaGraphAddEmptyNode(graph, numDependencies)

hipGraphAddEmptyNode(graph, unsigned long numDependencies) Creates an empty node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instane of the graph the node is add to.

numDependencies (int) – IN:
  • the number of dependencies.

Returns:

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

cuda.cuda.cuGraphAddEventRecordNode(graph, numDependencies, event)

hipGraphAddEventRecordNode(graph, unsigned long numDependencies, event) Creates an event record node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instane of the graph the node to be added.

numDependencies (int) – IN:
  • the number of dependencies.

event (ihipEvent_t/object) – IN:
  • Event for the node.

Returns:

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

cuda.cuda.cudaGraphAddEventRecordNode(graph, numDependencies, event)

hipGraphAddEventRecordNode(graph, unsigned long numDependencies, event) Creates an event record node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instane of the graph the node to be added.

numDependencies (int) – IN:
  • the number of dependencies.

event (ihipEvent_t/object) – IN:
  • Event for the node.

Returns:

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

cuda.cuda.cuGraphEventRecordNodeGetEvent(node)

hipGraphEventRecordNodeGetEvent(node) Returns the event associated with an event record node.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to get event from.

Returns:

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

cuda.cuda.cudaGraphEventRecordNodeGetEvent(node)

hipGraphEventRecordNodeGetEvent(node) Returns the event associated with an event record node.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to get event from.

Returns:

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

cuda.cuda.cuGraphEventRecordNodeSetEvent(node, event)

hipGraphEventRecordNodeSetEvent(node, event) Sets an event record node’s event.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to set event to.

event (ihipEvent_t/object) – IN:
  • pointer to the event.

Returns:

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

cuda.cuda.cudaGraphEventRecordNodeSetEvent(node, event)

hipGraphEventRecordNodeSetEvent(node, event) Sets an event record node’s event.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to set event to.

event (ihipEvent_t/object) – IN:
  • pointer to the event.

Returns:

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

cuda.cuda.cuGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event)

hipGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) Sets the event for an event record node in the given graphExec.

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:
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:

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

cuda.cuda.cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event)

hipGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) Sets the event for an event record node in the given graphExec.

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:
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:

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

cuda.cuda.cuGraphAddEventWaitNode(graph, numDependencies, event)

hipGraphAddEventWaitNode(graph, unsigned long numDependencies, event) Creates an event wait node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instane of the graph the node to be added.

numDependencies (int) – IN:
  • the number of dependencies.

event (ihipEvent_t/object) – IN:
  • Event for the node.

Returns:

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

cuda.cuda.cudaGraphAddEventWaitNode(graph, numDependencies, event)

hipGraphAddEventWaitNode(graph, unsigned long numDependencies, event) Creates an event wait node and adds it to a graph.

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:
graph (ihipGraph/object) – IN:
  • instane of the graph the node to be added.

numDependencies (int) – IN:
  • the number of dependencies.

event (ihipEvent_t/object) – IN:
  • Event for the node.

Returns:

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

cuda.cuda.cuGraphEventWaitNodeGetEvent(node)

hipGraphEventWaitNodeGetEvent(node) Returns the event associated with an event wait node.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to get event from.

Returns:

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

cuda.cuda.cudaGraphEventWaitNodeGetEvent(node)

hipGraphEventWaitNodeGetEvent(node) Returns the event associated with an event wait node.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to get event from.

Returns:

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

cuda.cuda.cuGraphEventWaitNodeSetEvent(node, event)

hipGraphEventWaitNodeSetEvent(node, event) Sets an event wait node’s event.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to set event to.

event (ihipEvent_t/object) – IN:
  • pointer to the event.

Returns:

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

cuda.cuda.cudaGraphEventWaitNodeSetEvent(node, event)

hipGraphEventWaitNodeSetEvent(node, event) Sets an event wait node’s event.

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:
node (hipGraphNode/object) – IN:
  • instane of the node to set event to.

event (ihipEvent_t/object) – IN:
  • pointer to the event.

Returns:

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

cuda.cuda.cuGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event)

hipGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) Sets the event for an event record node in the given graphExec.

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:
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:

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

cuda.cuda.cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event)

hipGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) Sets the event for an event record node in the given graphExec.

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:
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:

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

cuda.cuda.cuGraphAddMemAllocNode(graph, numDependencies, pNodeParams)

hipGraphAddMemAllocNode(graph, unsigned long numDependencies, pNodeParams) Creates a memory allocation node and adds it to a graph

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:
graph (ihipGraph/object) – IN:
  • Instane of the graph the node to be added

numDependencies (int) – IN:
  • The number of dependencies

pNodeParams (hipMemAllocNodeParams/object) – IN:
  • Node parameters for memory allocation

Returns:

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

cuda.cuda.cudaGraphAddMemAllocNode(graph, numDependencies, pNodeParams)

hipGraphAddMemAllocNode(graph, unsigned long numDependencies, pNodeParams) Creates a memory allocation node and adds it to a graph

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:
graph (ihipGraph/object) – IN:
  • Instane of the graph the node to be added

numDependencies (int) – IN:
  • The number of dependencies

pNodeParams (hipMemAllocNodeParams/object) – IN:
  • Node parameters for memory allocation

Returns:

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

cuda.cuda.cuGraphMemAllocNodeGetParams(node, pNodeParams)

hipGraphMemAllocNodeGetParams(node, pNodeParams) Returns parameters for memory allocation node

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:
node (hipGraphNode/object) – IN:
  • Memory allocation node for a query

pNodeParams (hipMemAllocNodeParams/object) – OUT:
  • Parameters for the specified memory allocation node

Returns:

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

cuda.cuda.cudaGraphMemAllocNodeGetParams(node, pNodeParams)

hipGraphMemAllocNodeGetParams(node, pNodeParams) Returns parameters for memory allocation node

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:
node (hipGraphNode/object) – IN:
  • Memory allocation node for a query

pNodeParams (hipMemAllocNodeParams/object) – OUT:
  • Parameters for the specified memory allocation node

Returns:

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

cuda.cuda.cuGraphAddMemFreeNode(graph, numDependencies, dev_ptr)

hipGraphAddMemFreeNode(graph, unsigned long numDependencies, dev_ptr) Creates a memory free node and adds it to a graph

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:
graph (ihipGraph/object) – IN:
  • Instane of the graph the node to be added

numDependencies (int) – IN:
  • The number of dependencies

dev_ptr (Pointer/object) – IN:
  • Pointer to the memory to be freed

Returns:

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

cuda.cuda.cudaGraphAddMemFreeNode(graph, numDependencies, dev_ptr)

hipGraphAddMemFreeNode(graph, unsigned long numDependencies, dev_ptr) Creates a memory free node and adds it to a graph

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:
graph (ihipGraph/object) – IN:
  • Instane of the graph the node to be added

numDependencies (int) – IN:
  • The number of dependencies

dev_ptr (Pointer/object) – IN:
  • Pointer to the memory to be freed

Returns:

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

cuda.cuda.cuGraphMemFreeNodeGetParams(node, dev_ptr)

hipGraphMemFreeNodeGetParams(node, dev_ptr) Returns parameters for memory free node

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:
node (hipGraphNode/object) – IN:
  • Memory free node for a query

dev_ptr (Pointer/object) – OUT:
  • Device pointer for the specified memory free node

Returns:

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

cuda.cuda.cudaGraphMemFreeNodeGetParams(node, dev_ptr)

hipGraphMemFreeNodeGetParams(node, dev_ptr) Returns parameters for memory free node

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:
node (hipGraphNode/object) – IN:
  • Memory free node for a query

dev_ptr (Pointer/object) – OUT:
  • Device pointer for the specified memory free node

Returns:

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

cuda.cuda.cuDeviceGetGraphMemAttribute(device, attr, value)

hipDeviceGetGraphMemAttribute(int device, attr, value) Get the mem attribute for graphs.

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:
device (int) – IN:
  • device the attr is get for.

attr (hipGraphMemAttributeType) – IN:
  • attr to get.

value (Pointer/object) – OUT:
  • value for specific attr.

Returns:

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

cuda.cuda.cudaDeviceGetGraphMemAttribute(device, attr, value)

hipDeviceGetGraphMemAttribute(int device, attr, value) Get the mem attribute for graphs.

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:
device (int) – IN:
  • device the attr is get for.

attr (hipGraphMemAttributeType) – IN:
  • attr to get.

value (Pointer/object) – OUT:
  • value for specific attr.

Returns:

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

cuda.cuda.cuDeviceSetGraphMemAttribute(device, attr, value)

hipDeviceSetGraphMemAttribute(int device, attr, value) Set the mem attribute for graphs.

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:
device (int) – IN:
  • device the attr is set for.

attr (hipGraphMemAttributeType) – IN:
  • attr to set.

value (Pointer/object) – IN:
  • value for specific attr.

Returns:

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

cuda.cuda.cudaDeviceSetGraphMemAttribute(device, attr, value)

hipDeviceSetGraphMemAttribute(int device, attr, value) Set the mem attribute for graphs.

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:
device (int) – IN:
  • device the attr is set for.

attr (hipGraphMemAttributeType) – IN:
  • attr to set.

value (Pointer/object) – IN:
  • value for specific attr.

Returns:

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

cuda.cuda.cuDeviceGraphMemTrim(device)

hipDeviceGraphMemTrim(int device) Free unused memory on specific device used for graph back to OS.

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:
device (int) – IN:
  • device the memory is used for graphs

Returns:

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

cuda.cuda.cudaDeviceGraphMemTrim(device)

hipDeviceGraphMemTrim(int device) Free unused memory on specific device used for graph back to OS.

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:
device (int) – IN:
  • device the memory is used for graphs

Returns:

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

cuda.cuda.cuUserObjectCreate(ptr, destroy, initialRefcount, flags)

hipUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags) Create an instance of userObject to manage lifetime of a resource.

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:
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):

cuda.cuda.cudaUserObjectCreate(ptr, destroy, initialRefcount, flags)

hipUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags) Create an instance of userObject to manage lifetime of a resource.

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:
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):

cuda.cuda.cuUserObjectRelease(object, count)

hipUserObjectRelease(object, unsigned int count) Release number of references to resource.

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:
object (hipUserObject/object) – IN:
  • pointer to instace of userobj.

count (int) – IN:
  • reference to resource to be retained.

Returns:

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

cuda.cuda.cudaUserObjectRelease(object, count)

hipUserObjectRelease(object, unsigned int count) Release number of references to resource.

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:
object (hipUserObject/object) – IN:
  • pointer to instace of userobj.

count (int) – IN:
  • reference to resource to be retained.

Returns:

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

cuda.cuda.cuUserObjectRetain(object, count)

hipUserObjectRetain(object, unsigned int count) Retain number of references to resource.

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:
object (hipUserObject/object) – IN:
  • pointer to instace of userobj.

count (int) – IN:
  • reference to resource to be retained.

Returns:

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

cuda.cuda.cudaUserObjectRetain(object, count)

hipUserObjectRetain(object, unsigned int count) Retain number of references to resource.

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:
object (hipUserObject/object) – IN:
  • pointer to instace of userobj.

count (int) – IN:
  • reference to resource to be retained.

Returns:

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

cuda.cuda.cuGraphRetainUserObject(graph, object, count, flags)

hipGraphRetainUserObject(graph, object, unsigned int count, unsigned int flags) Retain user object for graphs.

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:
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:

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

cuda.cuda.cudaGraphRetainUserObject(graph, object, count, flags)

hipGraphRetainUserObject(graph, object, unsigned int count, unsigned int flags) Retain user object for graphs.

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:
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:

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

cuda.cuda.cuGraphReleaseUserObject(graph, object, count)

hipGraphReleaseUserObject(graph, object, unsigned int count) Release user object from graphs.

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:
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:

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

cuda.cuda.cudaGraphReleaseUserObject(graph, object, count)

hipGraphReleaseUserObject(graph, object, unsigned int count) Release user object from graphs.

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:
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:

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

cuda.cuda.cuGraphDebugDotPrint(graph, path, flags)

hipGraphDebugDotPrint(graph, path, unsigned int flags) Write a DOT file describing graph structure.

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:
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:

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

cuda.cuda.cudaGraphDebugDotPrint(graph, path, flags)

hipGraphDebugDotPrint(graph, path, unsigned int flags) Write a DOT file describing graph structure.

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:
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:

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

cuda.cuda.cuGraphKernelNodeCopyAttributes(hSrc, hDst)

hipGraphKernelNodeCopyAttributes(hSrc, hDst) Copies attributes from source node to destination node.

Copies attributes from source node to destination node. Both node must have the same context.

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:
hSrc (hipGraphNode/object) – IN:
  • Source node.

For list of attributes see hipKernelNodeAttrID.

hDst (hipGraphNode/object) – OUT:
  • Destination node.

Returns:

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

cuda.cuda.cudaGraphKernelNodeCopyAttributes(hSrc, hDst)

hipGraphKernelNodeCopyAttributes(hSrc, hDst) Copies attributes from source node to destination node.

Copies attributes from source node to destination node. Both node must have the same context.

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:
hSrc (hipGraphNode/object) – IN:
  • Source node.

For list of attributes see hipKernelNodeAttrID.

hDst (hipGraphNode/object) – OUT:
  • Destination node.

Returns:

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

cuda.cuda.cuGraphNodeSetEnabled(hGraphExec, hNode, isEnabled)

hipGraphNodeSetEnabled(hGraphExec, hNode, unsigned int 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.

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:
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:

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

cuda.cuda.cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled)

hipGraphNodeSetEnabled(hGraphExec, hNode, unsigned int 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.

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:
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:

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

cuda.cuda.cuGraphNodeGetEnabled(hGraphExec, hNode)

hipGraphNodeGetEnabled(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.

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:
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):

cuda.cuda.cudaGraphNodeGetEnabled(hGraphExec, hNode)

hipGraphNodeGetEnabled(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.

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:
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):

cuda.cuda.cuMemAddressFree(devPtr, size)

hipMemAddressFree(devPtr, unsigned long size) Frees an address range reservation made via hipMemAddressReserve

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on Windows.

Args:
devPtr (Pointer/object) – IN:
  • starting address of the range.

size (int) – IN:
  • size of the range.

Returns:

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

cuda.cuda.cuMemAddressReserve(size, alignment, addr, flags)

hipMemAddressReserve(unsigned long size, unsigned long alignment, addr, unsigned long long flags) Reserves an address range

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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):

cuda.cuda.cuMemCreate(size, prop, flags)

hipMemCreate(unsigned long size, prop, unsigned long long flags) Creates a memory allocation described by the properties and size

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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):

cuda.cuda.cuMemExportToShareableHandle(shareableHandle, handle, handleType, flags)

hipMemExportToShareableHandle(shareableHandle, handle, handleType, unsigned long long flags) Exports an allocation to a requested shareable handle type.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cuMemGetAccess(location, ptr)

hipMemGetAccess(location, ptr) Get the access flags set for the given location and ptr.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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):

cuda.cuda.cuMemGetAllocationGranularity(prop, option)

hipMemGetAllocationGranularity(prop, option) Calculates either the minimal or recommended granularity.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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):

cuda.cuda.cuMemGetAllocationPropertiesFromHandle(prop, handle)

hipMemGetAllocationPropertiesFromHandle(prop, handle) Retrieve the property structure of the given handle.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux under development on Windows.

Args:
prop (hipMemAllocationProp/object) – OUT:
  • properties of the given handle.

handle (ihipMemGenericAllocationHandle/object) – IN:
  • handle to perform the query on.

Returns:

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

cuda.cuda.cuMemImportFromShareableHandle(osHandle, shHandleType)

hipMemImportFromShareableHandle(osHandle, shHandleType) Imports an allocation from a requested shareable handle type.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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):

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

hipMemMap(ptr, unsigned long size, unsigned long offset, handle, unsigned long long flags) Maps an allocation handle to a reserved virtual address range.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cuMemMapArrayAsync(mapInfoList, count, stream)

hipMemMapArrayAsync(mapInfoList, unsigned int count, stream) Maps or unmaps subregions of sparse HIP arrays and sparse HIP mipmapped arrays.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on Windows.

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:

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

cuda.cuda.cuMemRelease(handle)

hipMemRelease(handle) Release a memory handle representing a memory allocation which was previously allocated through hipMemCreate.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on Windows.

Args:
handle (ihipMemGenericAllocationHandle/object) – IN:
  • handle of the memory allocation.

Returns:

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

cuda.cuda.cuMemRetainAllocationHandle(addr)

hipMemRetainAllocationHandle(addr) Returns the allocation handle of the backing memory allocation given the address.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on Windows.

Args:
addr (Pointer/object) – IN:
  • address to look up.

Returns:

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

cuda.cuda.cuMemSetAccess(ptr, size, desc, count)

hipMemSetAccess(ptr, unsigned long size, desc, unsigned long count) Set the access flags for each location specified in desc for the given virtual address range.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on 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:

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

cuda.cuda.cuMemUnmap(ptr, size)

hipMemUnmap(ptr, unsigned long size) Unmap memory allocation of a given address range.

Warning:

This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

Note:

This API is implemented on Linux, under development on Windows.

Args:
ptr (Pointer/object) – IN:
  • starting address of the range to unmap.

size (int) – IN:
  • size of the virtual address range.

Returns:

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

cuda.cuda.cuGraphicsMapResources(count, stream)

hipGraphicsMapResources(int count, stream) Maps a graphics resource for access.

Args:
count (int) – IN:
  • Number of resources to map.

stream (ihipStream_t/object) – IN:
  • Stream for synchronization.

Returns:

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

cuda.cuda.cudaGraphicsMapResources(count, stream)

hipGraphicsMapResources(int count, stream) Maps a graphics resource for access.

Args:
count (int) – IN:
  • Number of resources to map.

stream (ihipStream_t/object) – IN:
  • Stream for synchronization.

Returns:

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

cuda.cuda.cuGraphicsSubResourceGetMappedArray(resource, arrayIndex, mipLevel)

hipGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, unsigned int 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):

cuda.cuda.cudaGraphicsSubResourceGetMappedArray(resource, arrayIndex, mipLevel)

hipGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, unsigned int 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):

cuda.cuda.cuGraphicsResourceGetMappedPointer(resource)

hipGraphicsResourceGetMappedPointer(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):

cuda.cuda.cuGraphicsResourceGetMappedPointer_v2(resource)

hipGraphicsResourceGetMappedPointer(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):

cuda.cuda.cudaGraphicsResourceGetMappedPointer(resource)

hipGraphicsResourceGetMappedPointer(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):

cuda.cuda.cuGraphicsUnmapResources(count, stream)

hipGraphicsUnmapResources(int count, stream) Unmaps graphics resources.

Args:
count (int) – IN:
  • Number of resources to unmap.

stream (ihipStream_t/object) – IN:
  • Stream for synchronization.

Returns:

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

cuda.cuda.cudaGraphicsUnmapResources(count, stream)

hipGraphicsUnmapResources(int count, stream) Unmaps graphics resources.

Args:
count (int) – IN:
  • Number of resources to unmap.

stream (ihipStream_t/object) – IN:
  • Stream for synchronization.

Returns:

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

cuda.cuda.cuGraphicsUnregisterResource(resource)

hipGraphicsUnregisterResource(resource) Unregisters a graphics resource.

Args:
resource (_hipGraphicsResource/object) – IN:
  • Graphics resources to unregister.

Returns:

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

cuda.cuda.cudaGraphicsUnregisterResource(resource)

hipGraphicsUnregisterResource(resource) Unregisters a graphics resource.

Args:
resource (_hipGraphicsResource/object) – IN:
  • Graphics resources to unregister.

Returns:

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

cuda.cuda.cudaCreateSurfaceObject(pResDesc)

hipCreateSurfaceObject(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):

cuda.cuda.cudaDestroySurfaceObject(surfaceObject)

hipDestroySurfaceObject(surfaceObject) Destroy a surface object.

Args:
surfaceObject (__hip_surface/object) – IN:

Surface object to be destroyed.

Returns:

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

class cuda.cuda.cublasDataType_t(value)

Bases: _hipDataType__Base

An enumeration.

HIP_R_32F = 0
CUDA_R_32F = 0
HIP_R_64F = 1
CUDA_R_64F = 1
HIP_R_16F = 2
CUDA_R_16F = 2
HIP_R_8I = 3
CUDA_R_8I = 3
HIP_C_32F = 4
CUDA_C_32F = 4
HIP_C_64F = 5
CUDA_C_64F = 5
HIP_C_16F = 6
CUDA_C_16F = 6
HIP_C_8I = 7
CUDA_C_8I = 7
HIP_R_8U = 8
CUDA_R_8U = 8
HIP_C_8U = 9
CUDA_C_8U = 9
HIP_R_32I = 10
CUDA_R_32I = 10
HIP_C_32I = 11
CUDA_C_32I = 11
HIP_R_32U = 12
CUDA_R_32U = 12
HIP_C_32U = 13
CUDA_C_32U = 13
HIP_R_16BF = 14
CUDA_R_16BF = 14
HIP_C_16BF = 15
CUDA_C_16BF = 15
HIP_R_4I = 16
HIP_C_4I = 17
HIP_R_4U = 18
HIP_C_4U = 19
HIP_R_16I = 20
HIP_C_16I = 21
HIP_R_16U = 22
HIP_C_16U = 23
HIP_R_64I = 24
HIP_C_64I = 25
HIP_R_64U = 26
HIP_C_64U = 27
HIP_R_8F_E4M3_FNUZ = 1000
HIP_R_8F_E5M2_FNUZ = 1001
class cuda.cuda.cudaDataType(value)

Bases: _hipDataType__Base

An enumeration.

HIP_R_32F = 0
CUDA_R_32F = 0
HIP_R_64F = 1
CUDA_R_64F = 1
HIP_R_16F = 2
CUDA_R_16F = 2
HIP_R_8I = 3
CUDA_R_8I = 3
HIP_C_32F = 4
CUDA_C_32F = 4
HIP_C_64F = 5
CUDA_C_64F = 5
HIP_C_16F = 6
CUDA_C_16F = 6
HIP_C_8I = 7
CUDA_C_8I = 7
HIP_R_8U = 8
CUDA_R_8U = 8
HIP_C_8U = 9
CUDA_C_8U = 9
HIP_R_32I = 10
CUDA_R_32I = 10
HIP_C_32I = 11
CUDA_C_32I = 11
HIP_R_32U = 12
CUDA_R_32U = 12
HIP_C_32U = 13
CUDA_C_32U = 13
HIP_R_16BF = 14
CUDA_R_16BF = 14
HIP_C_16BF = 15
CUDA_C_16BF = 15
HIP_R_4I = 16
HIP_C_4I = 17
HIP_R_4U = 18
HIP_C_4U = 19
HIP_R_16I = 20
HIP_C_16I = 21
HIP_R_16U = 22
HIP_C_16U = 23
HIP_R_64I = 24
HIP_C_64I = 25
HIP_R_64U = 26
HIP_C_64U = 27
HIP_R_8F_E4M3_FNUZ = 1000
HIP_R_8F_E5M2_FNUZ = 1001
class cuda.cuda.cudaDataType_t(value)

Bases: _hipDataType__Base

An enumeration.

HIP_R_32F = 0
CUDA_R_32F = 0
HIP_R_64F = 1
CUDA_R_64F = 1
HIP_R_16F = 2
CUDA_R_16F = 2
HIP_R_8I = 3
CUDA_R_8I = 3
HIP_C_32F = 4
CUDA_C_32F = 4
HIP_C_64F = 5
CUDA_C_64F = 5
HIP_C_16F = 6
CUDA_C_16F = 6
HIP_C_8I = 7
CUDA_C_8I = 7
HIP_R_8U = 8
CUDA_R_8U = 8
HIP_C_8U = 9
CUDA_C_8U = 9
HIP_R_32I = 10
CUDA_R_32I = 10
HIP_C_32I = 11
CUDA_C_32I = 11
HIP_R_32U = 12
CUDA_R_32U = 12
HIP_C_32U = 13
CUDA_C_32U = 13
HIP_R_16BF = 14
CUDA_R_16BF = 14
HIP_C_16BF = 15
CUDA_C_16BF = 15
HIP_R_4I = 16
HIP_C_4I = 17
HIP_R_4U = 18
HIP_C_4U = 19
HIP_R_16I = 20
HIP_C_16I = 21
HIP_R_16U = 22
HIP_C_16U = 23
HIP_R_64I = 24
HIP_C_64I = 25
HIP_R_64U = 26
HIP_C_64U = 27
HIP_R_8F_E4M3_FNUZ = 1000
HIP_R_8F_E5M2_FNUZ = 1001