cuda.cudart#
- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- HIP_PYTHON_CUdriverProcAddressQueryResult_HALLUCINATE:
Make
CUdriverProcAddressQueryResult
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_CUdriverProcAddressQueryResult_HALLUCINATE
.- HIP_PYTHON_CUdriverProcAddressQueryResult_enum_HALLUCINATE:
Make
CUdriverProcAddressQueryResult_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_CUdriverProcAddressQueryResult_enum_HALLUCINATE
.- HIP_PYTHON_cudaDriverEntryPointQueryResult_HALLUCINATE:
Make
cudaDriverEntryPointQueryResult
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_cudaDriverEntryPointQueryResult_HALLUCINATE
.- 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
.- 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
.- 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
.- HIP_PYTHON_CUflushGPUDirectRDMAWritesOptions_HALLUCINATE:
Make
CUflushGPUDirectRDMAWritesOptions
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_CUflushGPUDirectRDMAWritesOptions_HALLUCINATE
.- HIP_PYTHON_CUflushGPUDirectRDMAWritesOptions_enum_HALLUCINATE:
Make
CUflushGPUDirectRDMAWritesOptions_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_CUflushGPUDirectRDMAWritesOptions_enum_HALLUCINATE
.- HIP_PYTHON_cudaFlushGPUDirectRDMAWritesOptions_HALLUCINATE:
Make
cudaFlushGPUDirectRDMAWritesOptions
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_cudaFlushGPUDirectRDMAWritesOptions_HALLUCINATE
.- HIP_PYTHON_CUGPUDirectRDMAWritesOrdering_HALLUCINATE:
Make
CUGPUDirectRDMAWritesOrdering
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_CUGPUDirectRDMAWritesOrdering_HALLUCINATE
.- HIP_PYTHON_CUGPUDirectRDMAWritesOrdering_enum_HALLUCINATE:
Make
CUGPUDirectRDMAWritesOrdering_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_CUGPUDirectRDMAWritesOrdering_enum_HALLUCINATE
.- HIP_PYTHON_cudaGPUDirectRDMAWritesOrdering_HALLUCINATE:
Make
cudaGPUDirectRDMAWritesOrdering
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_cudaGPUDirectRDMAWritesOrdering_HALLUCINATE
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- HIP_PYTHON_CUlaunchAttributeID_HALLUCINATE:
Make
CUlaunchAttributeID
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_CUlaunchAttributeID_HALLUCINATE
.- HIP_PYTHON_CUlaunchAttributeID_enum_HALLUCINATE:
Make
CUlaunchAttributeID_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_CUlaunchAttributeID_enum_HALLUCINATE
.- HIP_PYTHON_cudaLaunchAttributeID_HALLUCINATE:
Make
cudaLaunchAttributeID
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_cudaLaunchAttributeID_HALLUCINATE
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- HIP_PYTHON_CUgraphInstantiateResult_HALLUCINATE:
Make
CUgraphInstantiateResult
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_CUgraphInstantiateResult_HALLUCINATE
.- HIP_PYTHON_CUgraphInstantiateResult_enum_HALLUCINATE:
Make
CUgraphInstantiateResult_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_CUgraphInstantiateResult_enum_HALLUCINATE
.- HIP_PYTHON_cudaGraphInstantiateResult_HALLUCINATE:
Make
cudaGraphInstantiateResult
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_cudaGraphInstantiateResult_HALLUCINATE
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- 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
.- HIP_PYTHON_CUgraphDependencyType_HALLUCINATE:
Make
CUgraphDependencyType
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_CUgraphDependencyType_HALLUCINATE
.- HIP_PYTHON_CUgraphDependencyType_enum_HALLUCINATE:
Make
CUgraphDependencyType_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_CUgraphDependencyType_enum_HALLUCINATE
.- HIP_PYTHON_cudaGraphDependencyType_HALLUCINATE:
Make
cudaGraphDependencyType
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_cudaGraphDependencyType_HALLUCINATE
.- HIP_PYTHON_cudaGraphDependencyType_enum_HALLUCINATE:
Make
cudaGraphDependencyType_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_cudaGraphDependencyType_enum_HALLUCINATE
.- 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
- cuGetProcAddress:
Alias of
hipGetProcAddress
- cudaGetDriverEntryPoint:
Alias of
hipGetProcAddress
- 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
- cudaGetFuncBySymbol:
Alias of
hipGetFuncBySymbol
- cuModuleGetTexRef:
Alias of
hipModuleGetTexRef
- cuModuleLoadData:
Alias of
hipModuleLoadData
- cuModuleLoadDataEx:
Alias of
hipModuleLoadDataEx
- cuLaunchKernel:
Alias of
hipModuleLaunchKernel
- cuLaunchCooperativeKernel:
Alias of
hipModuleLaunchCooperativeKernel
- cuLaunchCooperativeKernelMultiDevice:
- cudaLaunchCooperativeKernel:
Alias of
hipLaunchCooperativeKernel
- cudaLaunchCooperativeKernelMultiDevice:
- cuOccupancyMaxPotentialBlockSize:
- cuOccupancyMaxPotentialBlockSizeWithFlags:
- cuOccupancyMaxActiveBlocksPerMultiprocessor:
- cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags:
Alias of
hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
- cudaOccupancyMaxActiveBlocksPerMultiprocessor:
- 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
- cuTexRefGetBorderColor:
Alias of
hipTexRefGetBorderColor
- cuTexRefGetArray:
Alias of
hipTexRefGetArray
- 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
- cuStreamBeginCaptureToGraph:
Alias of
hipStreamBeginCaptureToGraph
- cudaStreamBeginCaptureToGraph:
Alias of
hipStreamBeginCaptureToGraph
- 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
- cudaStreamUpdateCaptureDependencies:
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
- cuGraphInstantiateWithParams:
Alias of
hipGraphInstantiateWithParams
- cudaGraphInstantiateWithParams:
Alias of
hipGraphInstantiateWithParams
- cuGraphLaunch:
Alias of
hipGraphLaunch
- cudaGraphLaunch:
Alias of
hipGraphLaunch
- cuGraphUpload:
Alias of
hipGraphUpload
- cudaGraphUpload:
Alias of
hipGraphUpload
- cuGraphAddNode:
Alias of
hipGraphAddNode
- cudaGraphAddNode:
Alias of
hipGraphAddNode
- 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
- cudaGraphMemcpyNodeGetParams:
Alias of
hipGraphMemcpyNodeGetParams
- 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:
- cudaGraphExecMemcpyNodeSetParamsFromSymbol:
- cudaGraphAddMemcpyNodeToSymbol:
Alias of
hipGraphAddMemcpyNodeToSymbol
- cudaGraphMemcpyNodeSetParamsToSymbol:
Alias of
hipGraphMemcpyNodeSetParamsToSymbol
- cudaGraphExecMemcpyNodeSetParamsToSymbol:
- 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
- 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
- cuGraphAddExternalSemaphoresWaitNode:
- cudaGraphAddExternalSemaphoresWaitNode:
- cuGraphAddExternalSemaphoresSignalNode:
- cudaGraphAddExternalSemaphoresSignalNode:
- cuGraphExternalSemaphoresSignalNodeSetParams:
- cudaGraphExternalSemaphoresSignalNodeSetParams:
- cuGraphExternalSemaphoresWaitNodeSetParams:
- cudaGraphExternalSemaphoresWaitNodeSetParams:
- cuGraphExternalSemaphoresSignalNodeGetParams:
- cudaGraphExternalSemaphoresSignalNodeGetParams:
- cuGraphExternalSemaphoresWaitNodeGetParams:
- cudaGraphExternalSemaphoresWaitNodeGetParams:
- cuGraphExecExternalSemaphoresSignalNodeSetParams:
- cudaGraphExecExternalSemaphoresSignalNodeSetParams:
- cuGraphExecExternalSemaphoresWaitNodeSetParams:
- cudaGraphExecExternalSemaphoresWaitNodeSetParams:
- cuGraphAddMemsetNode:
Alias of
hipDrvGraphAddMemsetNode
- 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:
- 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
.- 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
.- 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
.
- HIP_PYTHON (
- class cuda.cudart.CUuuid_st
Bases:
hipUUID_t
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipUUID_t.
Constructor for type hipUUID_t.
- 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 casepyobj
is itself anhipUUID_t
reference, this method returns it directly. No newhipUUID_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.cudart.CUuuid
alias of
hipUUID_t
- cuda.cudart.cudaUUID_t
alias of
hipUUID_t
- class cuda.cudart.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.
- 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 casepyobj
is itself anhipDeviceProp_t
reference, this method returns it directly. No newhipDeviceProp_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 per block (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 constant memory region on the device (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.cudart.CUmemorytype(value)
Bases:
_hipMemoryType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmemorytype_enum(value)
Bases:
_hipMemoryType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaMemoryType(value)
Bases:
_hipMemoryType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaPointerAttributes
Bases:
hipPointerAttribute_t
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipPointerAttribute_t.
Constructor for type hipPointerAttribute_t.
- 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 casepyobj
is itself anhipPointerAttribute_t
reference, this method returns it directly. No newhipPointerAttribute_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.cudart.CUresult(value)
Bases:
_hipError_t__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaError(value)
Bases:
_hipError_t__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaError_enum(value)
Bases:
_hipError_t__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaError_t(value)
Bases:
_hipError_t__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUdevice_attribute(value)
Bases:
_hipDeviceAttribute_t__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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
- hipDeviceAttributeMemoryPoolSupportedHandleTypes = 91
- 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.cudart.CUdevice_attribute_enum(value)
Bases:
_hipDeviceAttribute_t__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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
- hipDeviceAttributeMemoryPoolSupportedHandleTypes = 91
- 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.cudart.cudaDeviceAttr(value)
Bases:
_hipDeviceAttribute_t__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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
- hipDeviceAttributeMemoryPoolSupportedHandleTypes = 91
- 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.cudart.CUdriverProcAddressQueryResult(value)
Bases:
_hipDriverProcAddressQueryResult__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- HIP_GET_PROC_ADDRESS_SUCCESS = 0
- CU_GET_PROC_ADDRESS_SUCCESS = 0
- cudaDriverEntryPointSuccess = 0
- HIP_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND = 1
- CU_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND = 1
- cudaDriverEntryPointSymbolNotFound = 1
- HIP_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT = 2
- CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT = 2
- cudaDriverEntryPointVersionNotSufficent = 2
- class cuda.cudart.CUdriverProcAddressQueryResult_enum(value)
Bases:
_hipDriverProcAddressQueryResult__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- HIP_GET_PROC_ADDRESS_SUCCESS = 0
- CU_GET_PROC_ADDRESS_SUCCESS = 0
- cudaDriverEntryPointSuccess = 0
- HIP_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND = 1
- CU_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND = 1
- cudaDriverEntryPointSymbolNotFound = 1
- HIP_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT = 2
- CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT = 2
- cudaDriverEntryPointVersionNotSufficent = 2
- class cuda.cudart.cudaDriverEntryPointQueryResult(value)
Bases:
_hipDriverProcAddressQueryResult__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- HIP_GET_PROC_ADDRESS_SUCCESS = 0
- CU_GET_PROC_ADDRESS_SUCCESS = 0
- cudaDriverEntryPointSuccess = 0
- HIP_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND = 1
- CU_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND = 1
- cudaDriverEntryPointSymbolNotFound = 1
- HIP_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT = 2
- CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT = 2
- cudaDriverEntryPointVersionNotSufficent = 2
- class cuda.cudart.CUcomputemode(value)
Bases:
_hipComputeMode__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUcomputemode_enum(value)
Bases:
_hipComputeMode__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaComputeMode(value)
Bases:
_hipComputeMode__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUflushGPUDirectRDMAWritesOptions(value)
Bases:
_hipFlushGPUDirectRDMAWritesOptions__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipFlushGPUDirectRDMAWritesOptionHost = 1
- CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_HOST = 1
- cudaFlushGPUDirectRDMAWritesOptionHost = 1
- hipFlushGPUDirectRDMAWritesOptionMemOps = 2
- CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_MEMOPS = 2
- cudaFlushGPUDirectRDMAWritesOptionMemOps = 2
- class cuda.cudart.CUflushGPUDirectRDMAWritesOptions_enum(value)
Bases:
_hipFlushGPUDirectRDMAWritesOptions__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipFlushGPUDirectRDMAWritesOptionHost = 1
- CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_HOST = 1
- cudaFlushGPUDirectRDMAWritesOptionHost = 1
- hipFlushGPUDirectRDMAWritesOptionMemOps = 2
- CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_MEMOPS = 2
- cudaFlushGPUDirectRDMAWritesOptionMemOps = 2
- class cuda.cudart.cudaFlushGPUDirectRDMAWritesOptions(value)
Bases:
_hipFlushGPUDirectRDMAWritesOptions__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipFlushGPUDirectRDMAWritesOptionHost = 1
- CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_HOST = 1
- cudaFlushGPUDirectRDMAWritesOptionHost = 1
- hipFlushGPUDirectRDMAWritesOptionMemOps = 2
- CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_MEMOPS = 2
- cudaFlushGPUDirectRDMAWritesOptionMemOps = 2
- class cuda.cudart.CUGPUDirectRDMAWritesOrdering(value)
Bases:
_hipGPUDirectRDMAWritesOrdering__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipGPUDirectRDMAWritesOrderingNone = 0
- CU_GPU_DIRECT_RDMA_WRITES_ORDERING_NONE = 0
- cudaGPUDirectRDMAWritesOrderingNone = 0
- hipGPUDirectRDMAWritesOrderingOwner = 100
- CU_GPU_DIRECT_RDMA_WRITES_ORDERING_OWNER = 100
- cudaGPUDirectRDMAWritesOrderingOwner = 100
- hipGPUDirectRDMAWritesOrderingAllDevices = 200
- CU_GPU_DIRECT_RDMA_WRITES_ORDERING_ALL_DEVICES = 200
- cudaGPUDirectRDMAWritesOrderingAllDevices = 200
- class cuda.cudart.CUGPUDirectRDMAWritesOrdering_enum(value)
Bases:
_hipGPUDirectRDMAWritesOrdering__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipGPUDirectRDMAWritesOrderingNone = 0
- CU_GPU_DIRECT_RDMA_WRITES_ORDERING_NONE = 0
- cudaGPUDirectRDMAWritesOrderingNone = 0
- hipGPUDirectRDMAWritesOrderingOwner = 100
- CU_GPU_DIRECT_RDMA_WRITES_ORDERING_OWNER = 100
- cudaGPUDirectRDMAWritesOrderingOwner = 100
- hipGPUDirectRDMAWritesOrderingAllDevices = 200
- CU_GPU_DIRECT_RDMA_WRITES_ORDERING_ALL_DEVICES = 200
- cudaGPUDirectRDMAWritesOrderingAllDevices = 200
- class cuda.cudart.cudaGPUDirectRDMAWritesOrdering(value)
Bases:
_hipGPUDirectRDMAWritesOrdering__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipGPUDirectRDMAWritesOrderingNone = 0
- CU_GPU_DIRECT_RDMA_WRITES_ORDERING_NONE = 0
- cudaGPUDirectRDMAWritesOrderingNone = 0
- hipGPUDirectRDMAWritesOrderingOwner = 100
- CU_GPU_DIRECT_RDMA_WRITES_ORDERING_OWNER = 100
- cudaGPUDirectRDMAWritesOrderingOwner = 100
- hipGPUDirectRDMAWritesOrderingAllDevices = 200
- CU_GPU_DIRECT_RDMA_WRITES_ORDERING_ALL_DEVICES = 200
- cudaGPUDirectRDMAWritesOrderingAllDevices = 200
- cuda.cudart.CUdeviceptr
alias of
hipDeviceptr_t
- cuda.cudart.CUdeviceptr_v1
alias of
hipDeviceptr_t
- cuda.cudart.CUdeviceptr_v2
alias of
hipDeviceptr_t
- class cuda.cudart.cudaChannelFormatKind(value)
Bases:
_hipChannelFormatKind__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipChannelFormatKindSigned = 0
- cudaChannelFormatKindSigned = 0
- hipChannelFormatKindUnsigned = 1
- cudaChannelFormatKindUnsigned = 1
- hipChannelFormatKindFloat = 2
- cudaChannelFormatKindFloat = 2
- hipChannelFormatKindNone = 3
- cudaChannelFormatKindNone = 3
- class cuda.cudart.cudaChannelFormatDesc
Bases:
hipChannelFormatDesc
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipChannelFormatDesc.
Constructor for type hipChannelFormatDesc.
- 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 casepyobj
is itself anhipChannelFormatDesc
reference, this method returns it directly. No newhipChannelFormatDesc
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.cudart.CUarray_st
Bases:
hipArray
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- 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 casepyobj
is itself anhipArray
reference, this method returns it directly. No newhipArray
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.cudaArray
Bases:
hipArray
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- 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 casepyobj
is itself anhipArray
reference, this method returns it directly. No newhipArray
is created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cudart.CUarray
alias of
hipArray
- cuda.cudart.cudaArray_t
alias of
hipArray
- cuda.cudart.cudaArray_const_t
alias of
hipArray
- class cuda.cudart.CUarray_format(value)
Bases:
_hipArray_Format__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUarray_format_enum(value)
Bases:
_hipArray_Format__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.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.
- 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 casepyobj
is itself anHIP_ARRAY_DESCRIPTOR
reference, this method returns it directly. No newHIP_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.cudart.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.
- 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 casepyobj
is itself anHIP_ARRAY_DESCRIPTOR
reference, this method returns it directly. No newHIP_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.cudart.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.
- 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 casepyobj
is itself anHIP_ARRAY_DESCRIPTOR
reference, this method returns it directly. No newHIP_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.cudart.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.
- 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 casepyobj
is itself anHIP_ARRAY_DESCRIPTOR
reference, this method returns it directly. No newHIP_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.cudart.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.
- 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 casepyobj
is itself anHIP_ARRAY_DESCRIPTOR
reference, this method returns it directly. No newHIP_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.cudart.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.
- 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 casepyobj
is itself anHIP_ARRAY3D_DESCRIPTOR
reference, this method returns it directly. No newHIP_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.cudart.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.
- 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 casepyobj
is itself anHIP_ARRAY3D_DESCRIPTOR
reference, this method returns it directly. No newHIP_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.cudart.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.
- 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 casepyobj
is itself anHIP_ARRAY3D_DESCRIPTOR
reference, this method returns it directly. No newHIP_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.cudart.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 casepyobj
is itself anhip_Memcpy2D
reference, this method returns it directly. No newhip_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.cudart.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 casepyobj
is itself anhip_Memcpy2D
reference, this method returns it directly. No newhip_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.cudart.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 casepyobj
is itself anhip_Memcpy2D
reference, this method returns it directly. No newhip_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.cudart.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 casepyobj
is itself anhip_Memcpy2D
reference, this method returns it directly. No newhip_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.cudart.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 casepyobj
is itself anhip_Memcpy2D
reference, this method returns it directly. No newhip_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.cudart.CUmipmappedArray_st
Bases:
hipMipmappedArray
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMipmappedArray.
Constructor for type hipMipmappedArray.
- 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 casepyobj
is itself anhipMipmappedArray
reference, this method returns it directly. No newhipMipmappedArray
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.cudart.cudaMipmappedArray
Bases:
hipMipmappedArray
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMipmappedArray.
Constructor for type hipMipmappedArray.
- 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 casepyobj
is itself anhipMipmappedArray
reference, this method returns it directly. No newhipMipmappedArray
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.cudart.CUmipmappedArray
alias of
hipMipmappedArray
- cuda.cudart.cudaMipmappedArray_t
alias of
hipMipmappedArray
- cuda.cudart.cudaMipmappedArray_const_t
alias of
hipMipmappedArray
- class cuda.cudart.cudaResourceType(value)
Bases:
_hipResourceType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipResourceTypeArray = 0
- cudaResourceTypeArray = 0
- hipResourceTypeMipmappedArray = 1
- cudaResourceTypeMipmappedArray = 1
- hipResourceTypeLinear = 2
- cudaResourceTypeLinear = 2
- hipResourceTypePitch2D = 3
- cudaResourceTypePitch2D = 3
- class cuda.cudart.CUresourcetype_enum(value)
Bases:
_HIPresourcetype_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUresourcetype(value)
Bases:
_HIPresourcetype_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUaddress_mode_enum(value)
Bases:
_HIPaddress_mode_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUaddress_mode(value)
Bases:
_HIPaddress_mode_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUfilter_mode_enum(value)
Bases:
_HIPfilter_mode_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUfilter_mode(value)
Bases:
_HIPfilter_mode_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.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 casepyobj
is itself anHIP_TEXTURE_DESC_st
reference, this method returns it directly. No newHIP_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.cudart.CUDA_TEXTURE_DESC
alias of
HIP_TEXTURE_DESC_st
- cuda.cudart.CUDA_TEXTURE_DESC_v1
alias of
HIP_TEXTURE_DESC_st
- class cuda.cudart.cudaResourceViewFormat(value)
Bases:
_hipResourceViewFormat__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUresourceViewFormat_enum(value)
Bases:
_HIPresourceViewFormat_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUresourceViewFormat(value)
Bases:
_HIPresourceViewFormat_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaResourceDesc
Bases:
hipResourceDesc
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipResourceDesc.
Constructor for type hipResourceDesc.
- 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 casepyobj
is itself anhipResourceDesc
reference, this method returns it directly. No newhipResourceDesc
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.cudart.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.
- 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 casepyobj
is itself anHIP_RESOURCE_DESC_st
reference, this method returns it directly. No newHIP_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.cudart.CUDA_RESOURCE_DESC
alias of
HIP_RESOURCE_DESC_st
- cuda.cudart.CUDA_RESOURCE_DESC_v1
alias of
HIP_RESOURCE_DESC_st
- class cuda.cudart.cudaResourceViewDesc
Bases:
hipResourceViewDesc
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipResourceViewDesc.
Constructor for type hipResourceViewDesc.
- 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 casepyobj
is itself anhipResourceViewDesc
reference, this method returns it directly. No newhipResourceViewDesc
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.cudart.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.
- 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 casepyobj
is itself anHIP_RESOURCE_VIEW_DESC_st
reference, this method returns it directly. No newHIP_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.cudart.CUDA_RESOURCE_VIEW_DESC
alias of
HIP_RESOURCE_VIEW_DESC_st
- cuda.cudart.CUDA_RESOURCE_VIEW_DESC_v1
alias of
HIP_RESOURCE_VIEW_DESC_st
- class cuda.cudart.cudaMemcpyKind(value)
Bases:
_hipMemcpyKind__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipMemcpyHostToHost = 0
- cudaMemcpyHostToHost = 0
- hipMemcpyHostToDevice = 1
- cudaMemcpyHostToDevice = 1
- hipMemcpyDeviceToHost = 2
- cudaMemcpyDeviceToHost = 2
- hipMemcpyDeviceToDevice = 3
- cudaMemcpyDeviceToDevice = 3
- hipMemcpyDefault = 4
- cudaMemcpyDefault = 4
- hipMemcpyDeviceToDeviceNoCU = 1024
- class cuda.cudart.cudaPitchedPtr
Bases:
hipPitchedPtr
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipPitchedPtr.
Constructor for type hipPitchedPtr.
- 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 casepyobj
is itself anhipPitchedPtr
reference, this method returns it directly. No newhipPitchedPtr
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.cudart.cudaExtent
Bases:
hipExtent
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExtent.
Constructor for type hipExtent.
- 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 casepyobj
is itself anhipExtent
reference, this method returns it directly. No newhipExtent
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.cudart.cudaPos
Bases:
hipPos
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipPos.
Constructor for type hipPos.
- 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 casepyobj
is itself anhipPos
reference, this method returns it directly. No newhipPos
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.cudart.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 casepyobj
is itself anhipMemcpy3DParms
reference, this method returns it directly. No newhipMemcpy3DParms
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.cudart.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 casepyobj
is itself anHIP_MEMCPY3D
reference, this method returns it directly. No newHIP_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.cudart.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 casepyobj
is itself anHIP_MEMCPY3D
reference, this method returns it directly. No newHIP_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.cudart.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 casepyobj
is itself anHIP_MEMCPY3D
reference, this method returns it directly. No newHIP_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.cudart.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 casepyobj
is itself anHIP_MEMCPY3D
reference, this method returns it directly. No newHIP_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.cudart.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 casepyobj
is itself anHIP_MEMCPY3D
reference, this method returns it directly. No newHIP_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.cudart.CUfunction_attribute(value)
Bases:
_hipFunction_attribute__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUfunction_attribute_enum(value)
Bases:
_hipFunction_attribute__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUpointer_attribute(value)
Bases:
_hipPointer_attribute__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUpointer_attribute_enum(value)
Bases:
_hipPointer_attribute__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.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)
- x (
- Returns:
A
tuple
of size 1 that contains (in that order):hipError_t
:Always returns
hipSuccess
.
- cuda.cudart.CUtexObject
alias of
__hip_texture
- cuda.cudart.CUtexObject_v1
alias of
__hip_texture
- cuda.cudart.cudaTextureObject_t
alias of
__hip_texture
- class cuda.cudart.cudaTextureAddressMode(value)
Bases:
_hipTextureAddressMode__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipAddressModeWrap = 0
- cudaAddressModeWrap = 0
- hipAddressModeClamp = 1
- cudaAddressModeClamp = 1
- hipAddressModeMirror = 2
- cudaAddressModeMirror = 2
- hipAddressModeBorder = 3
- cudaAddressModeBorder = 3
- class cuda.cudart.cudaTextureFilterMode(value)
Bases:
_hipTextureFilterMode__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipFilterModePoint = 0
- cudaFilterModePoint = 0
- hipFilterModeLinear = 1
- cudaFilterModeLinear = 1
- class cuda.cudart.cudaTextureReadMode(value)
Bases:
_hipTextureReadMode__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipReadModeElementType = 0
- cudaReadModeElementType = 0
- hipReadModeNormalizedFloat = 1
- cudaReadModeNormalizedFloat = 1
- class cuda.cudart.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 casepyobj
is itself antextureReference
reference, this method returns it directly. No newtextureReference
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.cudart.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 casepyobj
is itself antextureReference
reference, this method returns it directly. No newtextureReference
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.cudart.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 casepyobj
is itself anhipTextureDesc
reference, this method returns it directly. No newhipTextureDesc
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.cudart.CUsurfObject
alias of
__hip_surface
- cuda.cudart.CUsurfObject_v1
alias of
__hip_surface
- cuda.cudart.cudaSurfaceObject_t
alias of
__hip_surface
- class cuda.cudart.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 casepyobj
is itself ansurfaceReference
reference, this method returns it directly. No newsurfaceReference
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.cudaSurfaceBoundaryMode(value)
Bases:
_hipSurfaceBoundaryMode__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipBoundaryModeZero = 0
- cudaBoundaryModeZero = 0
- hipBoundaryModeTrap = 1
- cudaBoundaryModeTrap = 1
- hipBoundaryModeClamp = 2
- cudaBoundaryModeClamp = 2
- class cuda.cudart.CUctx_st
Bases:
ihipCtx_t
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- 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 casepyobj
is itself anihipCtx_t
reference, this method returns it directly. No newihipCtx_t
is created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cudart.CUcontext
alias of
ihipCtx_t
- class cuda.cudart.CUdevice_P2PAttribute(value)
Bases:
_hipDeviceP2PAttr__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUdevice_P2PAttribute_enum(value)
Bases:
_hipDeviceP2PAttr__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaDeviceP2PAttr(value)
Bases:
_hipDeviceP2PAttr__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUstream_st
Bases:
ihipStream_t
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- 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 casepyobj
is itself anihipStream_t
reference, this method returns it directly. No newihipStream_t
is created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cudart.CUstream
alias of
ihipStream_t
- cuda.cudart.cudaStream_t
alias of
ihipStream_t
- class cuda.cudart.CUipcMemHandle_st
Bases:
hipIpcMemHandle_st
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipIpcMemHandle_st.
Constructor for type hipIpcMemHandle_st.
- 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 casepyobj
is itself anhipIpcMemHandle_st
reference, this method returns it directly. No newhipIpcMemHandle_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.cudart.cudaIpcMemHandle_st
Bases:
hipIpcMemHandle_st
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipIpcMemHandle_st.
Constructor for type hipIpcMemHandle_st.
- 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 casepyobj
is itself anhipIpcMemHandle_st
reference, this method returns it directly. No newhipIpcMemHandle_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.cudart.CUipcMemHandle
alias of
hipIpcMemHandle_st
- cuda.cudart.CUipcMemHandle_v1
alias of
hipIpcMemHandle_st
- cuda.cudart.cudaIpcMemHandle_t
alias of
hipIpcMemHandle_st
- class cuda.cudart.CUipcEventHandle_st
Bases:
hipIpcEventHandle_st
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipIpcEventHandle_st.
Constructor for type hipIpcEventHandle_st.
- 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 casepyobj
is itself anhipIpcEventHandle_st
reference, this method returns it directly. No newhipIpcEventHandle_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.cudart.cudaIpcEventHandle_st
Bases:
hipIpcEventHandle_st
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipIpcEventHandle_st.
Constructor for type hipIpcEventHandle_st.
- 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 casepyobj
is itself anhipIpcEventHandle_st
reference, this method returns it directly. No newhipIpcEventHandle_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.cudart.CUipcEventHandle
alias of
hipIpcEventHandle_st
- cuda.cudart.CUipcEventHandle_v1
alias of
hipIpcEventHandle_st
- cuda.cudart.cudaIpcEventHandle_t
alias of
hipIpcEventHandle_st
- class cuda.cudart.CUmod_st
Bases:
ihipModule_t
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- 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 casepyobj
is itself anihipModule_t
reference, this method returns it directly. No newihipModule_t
is created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cudart.CUmodule
alias of
ihipModule_t
- class cuda.cudart.CUfunc_st
Bases:
ihipModuleSymbol_t
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- 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 casepyobj
is itself anihipModuleSymbol_t
reference, this method returns it directly. No newihipModuleSymbol_t
is created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cudart.CUfunction
alias of
ihipModuleSymbol_t
- cuda.cudart.cudaFunction_t
alias of
ihipModuleSymbol_t
- class cuda.cudart.CUmemPoolHandle_st
Bases:
ihipMemPoolHandle_t
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- 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 casepyobj
is itself anihipMemPoolHandle_t
reference, this method returns it directly. No newihipMemPoolHandle_t
is created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cudart.CUmemoryPool
alias of
ihipMemPoolHandle_t
- cuda.cudart.cudaMemPool_t
alias of
ihipMemPoolHandle_t
- class cuda.cudart.cudaFuncAttributes
Bases:
hipFuncAttributes
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipFuncAttributes.
Constructor for type hipFuncAttributes.
- 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 casepyobj
is itself anhipFuncAttributes
reference, this method returns it directly. No newhipFuncAttributes
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.cudart.CUevent_st
Bases:
ihipEvent_t
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- 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 casepyobj
is itself anihipEvent_t
reference, this method returns it directly. No newihipEvent_t
is created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cudart.CUevent
alias of
ihipEvent_t
- cuda.cudart.cudaEvent_t
alias of
ihipEvent_t
- class cuda.cudart.CUlimit(value)
Bases:
_hipLimit_t__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUlimit_enum(value)
Bases:
_hipLimit_t__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaLimit(value)
Bases:
_hipLimit_t__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmem_advise(value)
Bases:
_hipMemoryAdvise__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmem_advise_enum(value)
Bases:
_hipMemoryAdvise__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaMemoryAdvise(value)
Bases:
_hipMemoryAdvise__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmem_range_attribute(value)
Bases:
_hipMemRangeAttribute__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmem_range_attribute_enum(value)
Bases:
_hipMemRangeAttribute__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaMemRangeAttribute(value)
Bases:
_hipMemRangeAttribute__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmemPool_attribute(value)
Bases:
_hipMemPoolAttr__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmemPool_attribute_enum(value)
Bases:
_hipMemPoolAttr__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaMemPoolAttr(value)
Bases:
_hipMemPoolAttr__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmemLocationType(value)
Bases:
_hipMemLocationType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipMemLocationTypeInvalid = 0
- CU_MEM_LOCATION_TYPE_INVALID = 0
- cudaMemLocationTypeInvalid = 0
- hipMemLocationTypeDevice = 1
- CU_MEM_LOCATION_TYPE_DEVICE = 1
- cudaMemLocationTypeDevice = 1
- class cuda.cudart.CUmemLocationType_enum(value)
Bases:
_hipMemLocationType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipMemLocationTypeInvalid = 0
- CU_MEM_LOCATION_TYPE_INVALID = 0
- cudaMemLocationTypeInvalid = 0
- hipMemLocationTypeDevice = 1
- CU_MEM_LOCATION_TYPE_DEVICE = 1
- cudaMemLocationTypeDevice = 1
- class cuda.cudart.cudaMemLocationType(value)
Bases:
_hipMemLocationType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipMemLocationTypeInvalid = 0
- CU_MEM_LOCATION_TYPE_INVALID = 0
- cudaMemLocationTypeInvalid = 0
- hipMemLocationTypeDevice = 1
- CU_MEM_LOCATION_TYPE_DEVICE = 1
- cudaMemLocationTypeDevice = 1
- class cuda.cudart.CUmemLocation
Bases:
hipMemLocation
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemLocation.
Constructor for type hipMemLocation.
- 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 casepyobj
is itself anhipMemLocation
reference, this method returns it directly. No newhipMemLocation
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.cudart.CUmemLocation_st
Bases:
hipMemLocation
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemLocation.
Constructor for type hipMemLocation.
- 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 casepyobj
is itself anhipMemLocation
reference, this method returns it directly. No newhipMemLocation
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.cudart.CUmemLocation_v1
Bases:
hipMemLocation
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemLocation.
Constructor for type hipMemLocation.
- 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 casepyobj
is itself anhipMemLocation
reference, this method returns it directly. No newhipMemLocation
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.cudart.cudaMemLocation
Bases:
hipMemLocation
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemLocation.
Constructor for type hipMemLocation.
- 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 casepyobj
is itself anhipMemLocation
reference, this method returns it directly. No newhipMemLocation
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.cudart.CUmemAccess_flags(value)
Bases:
_hipMemAccessFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmemAccess_flags_enum(value)
Bases:
_hipMemAccessFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaMemAccessFlags(value)
Bases:
_hipMemAccessFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmemAccessDesc
Bases:
hipMemAccessDesc
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAccessDesc.
Constructor for type hipMemAccessDesc.
- 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 casepyobj
is itself anhipMemAccessDesc
reference, this method returns it directly. No newhipMemAccessDesc
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.cudart.CUmemAccessDesc_st
Bases:
hipMemAccessDesc
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAccessDesc.
Constructor for type hipMemAccessDesc.
- 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 casepyobj
is itself anhipMemAccessDesc
reference, this method returns it directly. No newhipMemAccessDesc
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.cudart.CUmemAccessDesc_v1
Bases:
hipMemAccessDesc
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAccessDesc.
Constructor for type hipMemAccessDesc.
- 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 casepyobj
is itself anhipMemAccessDesc
reference, this method returns it directly. No newhipMemAccessDesc
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.cudart.cudaMemAccessDesc
Bases:
hipMemAccessDesc
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAccessDesc.
Constructor for type hipMemAccessDesc.
- 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 casepyobj
is itself anhipMemAccessDesc
reference, this method returns it directly. No newhipMemAccessDesc
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.cudart.CUmemAllocationType(value)
Bases:
_hipMemAllocationType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmemAllocationType_enum(value)
Bases:
_hipMemAllocationType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaMemAllocationType(value)
Bases:
_hipMemAllocationType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmemAllocationHandleType(value)
Bases:
_hipMemAllocationHandleType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmemAllocationHandleType_enum(value)
Bases:
_hipMemAllocationHandleType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaMemAllocationHandleType(value)
Bases:
_hipMemAllocationHandleType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUmemPoolProps
Bases:
hipMemPoolProps
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolProps.
Constructor for type hipMemPoolProps.
- 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 casepyobj
is itself anhipMemPoolProps
reference, this method returns it directly. No newhipMemPoolProps
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_maxSize(self, i)
Get value
maxSize
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
- maxSize
Maximum pool size. When set to 0, defaults to a system dependent value
- 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_maxSize(self, i, unsigned long value)
Set value
maxSize
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.cudart.CUmemPoolProps_st
Bases:
hipMemPoolProps
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolProps.
Constructor for type hipMemPoolProps.
- 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 casepyobj
is itself anhipMemPoolProps
reference, this method returns it directly. No newhipMemPoolProps
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_maxSize(self, i)
Get value
maxSize
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
- maxSize
Maximum pool size. When set to 0, defaults to a system dependent value
- 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_maxSize(self, i, unsigned long value)
Set value
maxSize
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.cudart.CUmemPoolProps_v1
Bases:
hipMemPoolProps
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolProps.
Constructor for type hipMemPoolProps.
- 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 casepyobj
is itself anhipMemPoolProps
reference, this method returns it directly. No newhipMemPoolProps
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_maxSize(self, i)
Get value
maxSize
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
- maxSize
Maximum pool size. When set to 0, defaults to a system dependent value
- 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_maxSize(self, i, unsigned long value)
Set value
maxSize
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.cudart.cudaMemPoolProps
Bases:
hipMemPoolProps
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolProps.
Constructor for type hipMemPoolProps.
- 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 casepyobj
is itself anhipMemPoolProps
reference, this method returns it directly. No newhipMemPoolProps
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_maxSize(self, i)
Get value
maxSize
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
- maxSize
Maximum pool size. When set to 0, defaults to a system dependent value
- 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_maxSize(self, i, unsigned long value)
Set value
maxSize
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.cudart.CUmemPoolPtrExportData
Bases:
hipMemPoolPtrExportData
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolPtrExportData.
Constructor for type hipMemPoolPtrExportData.
- 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 casepyobj
is itself anhipMemPoolPtrExportData
reference, this method returns it directly. No newhipMemPoolPtrExportData
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.cudart.CUmemPoolPtrExportData_st
Bases:
hipMemPoolPtrExportData
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolPtrExportData.
Constructor for type hipMemPoolPtrExportData.
- 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 casepyobj
is itself anhipMemPoolPtrExportData
reference, this method returns it directly. No newhipMemPoolPtrExportData
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.cudart.CUmemPoolPtrExportData_v1
Bases:
hipMemPoolPtrExportData
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolPtrExportData.
Constructor for type hipMemPoolPtrExportData.
- 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 casepyobj
is itself anhipMemPoolPtrExportData
reference, this method returns it directly. No newhipMemPoolPtrExportData
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.cudart.cudaMemPoolPtrExportData
Bases:
hipMemPoolPtrExportData
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolPtrExportData.
Constructor for type hipMemPoolPtrExportData.
- 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 casepyobj
is itself anhipMemPoolPtrExportData
reference, this method returns it directly. No newhipMemPoolPtrExportData
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.cudart.CUjit_option(value)
Bases:
_hipJitOption__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUjit_option_enum(value)
Bases:
_hipJitOption__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaFuncAttribute(value)
Bases:
_hipFuncAttribute__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipFuncAttributeMaxDynamicSharedMemorySize = 8
- cudaFuncAttributeMaxDynamicSharedMemorySize = 8
- hipFuncAttributePreferredSharedMemoryCarveout = 9
- cudaFuncAttributePreferredSharedMemoryCarveout = 9
- hipFuncAttributeMax = 10
- cudaFuncAttributeMax = 10
- class cuda.cudart.CUfunc_cache(value)
Bases:
_hipFuncCache_t__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUfunc_cache_enum(value)
Bases:
_hipFuncCache_t__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaFuncCache(value)
Bases:
_hipFuncCache_t__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUsharedconfig(value)
Bases:
_hipSharedMemConfig__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUsharedconfig_enum(value)
Bases:
_hipSharedMemConfig__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaSharedMemConfig(value)
Bases:
_hipSharedMemConfig__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaLaunchParams
alias of
hipLaunchParams_t
- class cuda.cudart.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 casepyobj
is itself anhipFunctionLaunchParams_t
reference, this method returns it directly. No newhipFunctionLaunchParams_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.cudart.CUDA_LAUNCH_PARAMS
alias of
hipFunctionLaunchParams_t
- cuda.cudart.CUDA_LAUNCH_PARAMS_v1
alias of
hipFunctionLaunchParams_t
- class cuda.cudart.CUexternalMemoryHandleType_enum(value)
Bases:
_hipExternalMemoryHandleType_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUexternalMemoryHandleType(value)
Bases:
_hipExternalMemoryHandleType_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaExternalMemoryHandleType(value)
Bases:
_hipExternalMemoryHandleType_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.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.
- 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 casepyobj
is itself anhipExternalMemoryHandleDesc_st
reference, this method returns it directly. No newhipExternalMemoryHandleDesc_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.cudart.CUDA_EXTERNAL_MEMORY_HANDLE_DESC
alias of
hipExternalMemoryHandleDesc_st
- cuda.cudart.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1
alias of
hipExternalMemoryHandleDesc_st
- cuda.cudart.cudaExternalMemoryHandleDesc
alias of
hipExternalMemoryHandleDesc_st
- class cuda.cudart.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.
- 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 casepyobj
is itself anhipExternalMemoryBufferDesc_st
reference, this method returns it directly. No newhipExternalMemoryBufferDesc_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.cudart.CUDA_EXTERNAL_MEMORY_BUFFER_DESC
alias of
hipExternalMemoryBufferDesc_st
- cuda.cudart.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1
alias of
hipExternalMemoryBufferDesc_st
- cuda.cudart.cudaExternalMemoryBufferDesc
alias of
hipExternalMemoryBufferDesc_st
- cuda.cudart.CUexternalMemory
alias of
hipExternalMemory_t
- cuda.cudart.cudaExternalMemory_t
alias of
hipExternalMemory_t
- class cuda.cudart.CUexternalSemaphoreHandleType_enum(value)
Bases:
_hipExternalSemaphoreHandleType_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUexternalSemaphoreHandleType(value)
Bases:
_hipExternalSemaphoreHandleType_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaExternalSemaphoreHandleType(value)
Bases:
_hipExternalSemaphoreHandleType_enum__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.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.
- 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 casepyobj
is itself anhipExternalSemaphoreHandleDesc_st
reference, this method returns it directly. No newhipExternalSemaphoreHandleDesc_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.cudart.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
alias of
hipExternalSemaphoreHandleDesc_st
- cuda.cudart.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1
alias of
hipExternalSemaphoreHandleDesc_st
- cuda.cudart.cudaExternalSemaphoreHandleDesc
alias of
hipExternalSemaphoreHandleDesc_st
- cuda.cudart.CUexternalSemaphore
alias of
hipExternalSemaphore_t
- cuda.cudart.cudaExternalSemaphore_t
alias of
hipExternalSemaphore_t
- class cuda.cudart.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.
- 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 casepyobj
is itself anhipExternalSemaphoreSignalParams_st
reference, this method returns it directly. No newhipExternalSemaphoreSignalParams_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.cudart.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS
alias of
hipExternalSemaphoreSignalParams_st
- cuda.cudart.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1
alias of
hipExternalSemaphoreSignalParams_st
- cuda.cudart.cudaExternalSemaphoreSignalParams
alias of
hipExternalSemaphoreSignalParams_st
- cuda.cudart.cudaExternalSemaphoreSignalParams_v1
alias of
hipExternalSemaphoreSignalParams_st
- class cuda.cudart.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.
- 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 casepyobj
is itself anhipExternalSemaphoreWaitParams_st
reference, this method returns it directly. No newhipExternalSemaphoreWaitParams_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.cudart.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
alias of
hipExternalSemaphoreWaitParams_st
- cuda.cudart.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1
alias of
hipExternalSemaphoreWaitParams_st
- cuda.cudart.cudaExternalSemaphoreWaitParams
alias of
hipExternalSemaphoreWaitParams_st
- cuda.cudart.cudaExternalSemaphoreWaitParams_v1
alias of
hipExternalSemaphoreWaitParams_st
- class cuda.cudart.CUgraphicsRegisterFlags(value)
Bases:
_hipGraphicsRegisterFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUgraphicsRegisterFlags_enum(value)
Bases:
_hipGraphicsRegisterFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaGraphicsRegisterFlags(value)
Bases:
_hipGraphicsRegisterFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUgraphicsResource_st
alias of
_hipGraphicsResource
- cuda.cudart.cudaGraphicsResource
alias of
_hipGraphicsResource
- cuda.cudart.CUgraphicsResource
alias of
_hipGraphicsResource
- cuda.cudart.cudaGraphicsResource_t
alias of
_hipGraphicsResource
- class cuda.cudart.CUgraph_st
Bases:
ihipGraph
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- 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 casepyobj
is itself anihipGraph
reference, this method returns it directly. No newihipGraph
is created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cudart.CUgraph
alias of
ihipGraph
- cuda.cudart.cudaGraph_t
alias of
ihipGraph
- class cuda.cudart.CUgraphNode_st
Bases:
hipGraphNode
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- 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 casepyobj
is itself anhipGraphNode
reference, this method returns it directly. No newhipGraphNode
is created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cudart.CUgraphNode
alias of
hipGraphNode
- cuda.cudart.cudaGraphNode_t
alias of
hipGraphNode
- class cuda.cudart.CUgraphExec_st
Bases:
hipGraphExec
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- 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 casepyobj
is itself anhipGraphExec
reference, this method returns it directly. No newhipGraphExec
is created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cudart.CUgraphExec
alias of
hipGraphExec
- cuda.cudart.cudaGraphExec_t
alias of
hipGraphExec
- class cuda.cudart.CUuserObject_st
Bases:
hipUserObject
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- 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 casepyobj
is itself anhipUserObject
reference, this method returns it directly. No newhipUserObject
is created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cudart.CUuserObject
alias of
hipUserObject
- cuda.cudart.cudaUserObject_t
alias of
hipUserObject
- class cuda.cudart.CUgraphNodeType(value)
Bases:
_hipGraphNodeType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUgraphNodeType_enum(value)
Bases:
_hipGraphNodeType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaGraphNodeType(value)
Bases:
_hipGraphNodeType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.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.
- 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 casepyobj
is itself anhipHostFn_t
reference, this method returns it directly. No newhipHostFn_t
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.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.
- 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 casepyobj
is itself anhipHostFn_t
reference, this method returns it directly. No newhipHostFn_t
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.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 casepyobj
is itself anhipHostNodeParams
reference, this method returns it directly. No newhipHostNodeParams
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.cudart.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 casepyobj
is itself anhipHostNodeParams
reference, this method returns it directly. No newhipHostNodeParams
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.cudart.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 casepyobj
is itself anhipHostNodeParams
reference, this method returns it directly. No newhipHostNodeParams
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.cudart.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 casepyobj
is itself anhipHostNodeParams
reference, this method returns it directly. No newhipHostNodeParams
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.cudart.CUDA_KERNEL_NODE_PARAMS
Bases:
hipKernelNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipKernelNodeParams.
Constructor for type hipKernelNodeParams.
- 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 casepyobj
is itself anhipKernelNodeParams
reference, this method returns it directly. No newhipKernelNodeParams
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.cudart.CUDA_KERNEL_NODE_PARAMS_st
Bases:
hipKernelNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipKernelNodeParams.
Constructor for type hipKernelNodeParams.
- 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 casepyobj
is itself anhipKernelNodeParams
reference, this method returns it directly. No newhipKernelNodeParams
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.cudart.CUDA_KERNEL_NODE_PARAMS_v1
Bases:
hipKernelNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipKernelNodeParams.
Constructor for type hipKernelNodeParams.
- 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 casepyobj
is itself anhipKernelNodeParams
reference, this method returns it directly. No newhipKernelNodeParams
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.cudart.cudaKernelNodeParams
Bases:
hipKernelNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipKernelNodeParams.
Constructor for type hipKernelNodeParams.
- 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 casepyobj
is itself anhipKernelNodeParams
reference, this method returns it directly. No newhipKernelNodeParams
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.cudart.cudaMemsetParams
Bases:
hipMemsetParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemsetParams.
Constructor for type hipMemsetParams.
- 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 casepyobj
is itself anhipMemsetParams
reference, this method returns it directly. No newhipMemsetParams
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.cudart.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 casepyobj
is itself anhipMemAllocNodeParams
reference, this method returns it directly. No newhipMemAllocNodeParams
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.cudart.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 casepyobj
is itself anhipMemAllocNodeParams
reference, this method returns it directly. No newhipMemAllocNodeParams
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.cudart.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 casepyobj
is itself anhipMemAllocNodeParams
reference, this method returns it directly. No newhipMemAllocNodeParams
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.cudart.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 casepyobj
is itself anhipMemAllocNodeParams
reference, this method returns it directly. No newhipMemAllocNodeParams
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.cudart.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 casepyobj
is itself anhipMemAllocNodeParams
reference, this method returns it directly. No newhipMemAllocNodeParams
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.cudart.CUaccessProperty(value)
Bases:
_hipAccessProperty__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUaccessProperty_enum(value)
Bases:
_hipAccessProperty__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaAccessProperty(value)
Bases:
_hipAccessProperty__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUaccessPolicyWindow
Bases:
hipAccessPolicyWindow
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipAccessPolicyWindow.
Constructor for type hipAccessPolicyWindow.
- 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 casepyobj
is itself anhipAccessPolicyWindow
reference, this method returns it directly. No newhipAccessPolicyWindow
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.cudart.CUaccessPolicyWindow_st
Bases:
hipAccessPolicyWindow
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipAccessPolicyWindow.
Constructor for type hipAccessPolicyWindow.
- 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 casepyobj
is itself anhipAccessPolicyWindow
reference, this method returns it directly. No newhipAccessPolicyWindow
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.cudart.cudaAccessPolicyWindow
Bases:
hipAccessPolicyWindow
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipAccessPolicyWindow.
Constructor for type hipAccessPolicyWindow.
- 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 casepyobj
is itself anhipAccessPolicyWindow
reference, this method returns it directly. No newhipAccessPolicyWindow
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.cudart.CUlaunchAttributeID(value)
Bases:
_hipLaunchAttributeID__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipLaunchAttributeAccessPolicyWindow = 1
- CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1
- cudaLaunchAttributeAccessPolicyWindow = 1
- hipLaunchAttributeCooperative = 2
- CU_LAUNCH_ATTRIBUTE_COOPERATIVE = 2
- cudaLaunchAttributeCooperative = 2
- hipLaunchAttributePriority = 8
- CU_LAUNCH_ATTRIBUTE_PRIORITY = 8
- cudaLaunchAttributePriority = 8
- class cuda.cudart.CUlaunchAttributeID_enum(value)
Bases:
_hipLaunchAttributeID__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipLaunchAttributeAccessPolicyWindow = 1
- CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1
- cudaLaunchAttributeAccessPolicyWindow = 1
- hipLaunchAttributeCooperative = 2
- CU_LAUNCH_ATTRIBUTE_COOPERATIVE = 2
- cudaLaunchAttributeCooperative = 2
- hipLaunchAttributePriority = 8
- CU_LAUNCH_ATTRIBUTE_PRIORITY = 8
- cudaLaunchAttributePriority = 8
- class cuda.cudart.cudaLaunchAttributeID(value)
Bases:
_hipLaunchAttributeID__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipLaunchAttributeAccessPolicyWindow = 1
- CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1
- cudaLaunchAttributeAccessPolicyWindow = 1
- hipLaunchAttributeCooperative = 2
- CU_LAUNCH_ATTRIBUTE_COOPERATIVE = 2
- cudaLaunchAttributeCooperative = 2
- hipLaunchAttributePriority = 8
- CU_LAUNCH_ATTRIBUTE_PRIORITY = 8
- cudaLaunchAttributePriority = 8
- class cuda.cudart.CUlaunchAttributeValue
Bases:
hipLaunchAttributeValue
- 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 hipLaunchAttributeValue.
Constructor for type hipLaunchAttributeValue.
- 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
Value of launch attribute:: hipLaunchAttributePolicyWindow.
- 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
Value of launch attribute
hipLaunchAttributeCooperative
- 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 hipLaunchAttributeValue from a Python object.
Derives a hipLaunchAttributeValue from the given Python object
pyobj
. In casepyobj
is itself anhipLaunchAttributeValue
reference, this method returns it directly. No newhipLaunchAttributeValue
is created in this case.
- get_accessPolicyWindow(self, i)
Get value of
accessPolicyWindow
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- get_cooperative(self, i)
Get value
cooperative
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- get_priority(self, i)
Get value
priority
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- priority
Value of launch attribute :: hipLaunchAttributePriority. Execution priority of kernel.
- set_cooperative(self, i, int value)
Set value
cooperative
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- set_priority(self, i, int value)
Set value
priority
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- class cuda.cudart.CUlaunchAttributeValue_union
Bases:
hipLaunchAttributeValue
- 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 hipLaunchAttributeValue.
Constructor for type hipLaunchAttributeValue.
- 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
Value of launch attribute:: hipLaunchAttributePolicyWindow.
- 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
Value of launch attribute
hipLaunchAttributeCooperative
- 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 hipLaunchAttributeValue from a Python object.
Derives a hipLaunchAttributeValue from the given Python object
pyobj
. In casepyobj
is itself anhipLaunchAttributeValue
reference, this method returns it directly. No newhipLaunchAttributeValue
is created in this case.
- get_accessPolicyWindow(self, i)
Get value of
accessPolicyWindow
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- get_cooperative(self, i)
Get value
cooperative
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- get_priority(self, i)
Get value
priority
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- priority
Value of launch attribute :: hipLaunchAttributePriority. Execution priority of kernel.
- set_cooperative(self, i, int value)
Set value
cooperative
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- set_priority(self, i, int value)
Set value
priority
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- class cuda.cudart.cudaLaunchAttributeValue
Bases:
hipLaunchAttributeValue
- 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 hipLaunchAttributeValue.
Constructor for type hipLaunchAttributeValue.
- 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
Value of launch attribute:: hipLaunchAttributePolicyWindow.
- 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
Value of launch attribute
hipLaunchAttributeCooperative
- 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 hipLaunchAttributeValue from a Python object.
Derives a hipLaunchAttributeValue from the given Python object
pyobj
. In casepyobj
is itself anhipLaunchAttributeValue
reference, this method returns it directly. No newhipLaunchAttributeValue
is created in this case.
- get_accessPolicyWindow(self, i)
Get value of
accessPolicyWindow
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- get_cooperative(self, i)
Get value
cooperative
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- get_priority(self, i)
Get value
priority
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- priority
Value of launch attribute :: hipLaunchAttributePriority. Execution priority of kernel.
- set_cooperative(self, i, int value)
Set value
cooperative
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- set_priority(self, i, int value)
Set value
priority
of(<chip.hipLaunchAttributeValue*>self._ptr)[i]
.
- class cuda.cudart.CUDA_MEMSET_NODE_PARAMS
Bases:
HIP_MEMSET_NODE_PARAMS
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_MEMSET_NODE_PARAMS.
Constructor for type HIP_MEMSET_NODE_PARAMS.
- 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
Destination pointer on device Note:
Setting this dst can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- elementSize
Element in bytes. Must be 1, 2, or 4.
- static fromObj(pyobj)
Creates a HIP_MEMSET_NODE_PARAMS from a Python object.
Derives a HIP_MEMSET_NODE_PARAMS from the given Python object
pyobj
. In casepyobj
is itself anHIP_MEMSET_NODE_PARAMS
reference, this method returns it directly. No newHIP_MEMSET_NODE_PARAMS
is created in this case.
- get_dst(self, i)
Get value
dst
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_elementSize(self, i)
Get value
elementSize
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_height(self, i)
Get value
height
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_pitch(self, i)
Get value
pitch
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_value(self, i)
Get value
value
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_width(self, i)
Get value
width
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- height
Number of rows
- is_ptr_null
If data pointer is NULL.
- pitch
Destination device pointer pitch. Unused if height equals 1
- set_dst(self, i, value)
Set value
dst
of(<chip.HIP_MEMSET_NODE_PARAMS*>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.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- set_height(self, i, unsigned long value)
Set value
height
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- set_pitch(self, i, unsigned long value)
Set value
pitch
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- set_value(self, i, unsigned int value)
Set value
value
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- set_width(self, i, unsigned long value)
Set value
width
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- value
Value of memset to be set
- width
Width of a row
- class cuda.cudart.CUDA_MEMSET_NODE_PARAMS_st
Bases:
HIP_MEMSET_NODE_PARAMS
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_MEMSET_NODE_PARAMS.
Constructor for type HIP_MEMSET_NODE_PARAMS.
- 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
Destination pointer on device Note:
Setting this dst can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- elementSize
Element in bytes. Must be 1, 2, or 4.
- static fromObj(pyobj)
Creates a HIP_MEMSET_NODE_PARAMS from a Python object.
Derives a HIP_MEMSET_NODE_PARAMS from the given Python object
pyobj
. In casepyobj
is itself anHIP_MEMSET_NODE_PARAMS
reference, this method returns it directly. No newHIP_MEMSET_NODE_PARAMS
is created in this case.
- get_dst(self, i)
Get value
dst
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_elementSize(self, i)
Get value
elementSize
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_height(self, i)
Get value
height
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_pitch(self, i)
Get value
pitch
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_value(self, i)
Get value
value
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_width(self, i)
Get value
width
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- height
Number of rows
- is_ptr_null
If data pointer is NULL.
- pitch
Destination device pointer pitch. Unused if height equals 1
- set_dst(self, i, value)
Set value
dst
of(<chip.HIP_MEMSET_NODE_PARAMS*>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.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- set_height(self, i, unsigned long value)
Set value
height
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- set_pitch(self, i, unsigned long value)
Set value
pitch
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- set_value(self, i, unsigned int value)
Set value
value
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- set_width(self, i, unsigned long value)
Set value
width
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- value
Value of memset to be set
- width
Width of a row
- class cuda.cudart.CUDA_MEMSET_NODE_PARAMS_v1
Bases:
HIP_MEMSET_NODE_PARAMS
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_MEMSET_NODE_PARAMS.
Constructor for type HIP_MEMSET_NODE_PARAMS.
- 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
Destination pointer on device Note:
Setting this dst can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- elementSize
Element in bytes. Must be 1, 2, or 4.
- static fromObj(pyobj)
Creates a HIP_MEMSET_NODE_PARAMS from a Python object.
Derives a HIP_MEMSET_NODE_PARAMS from the given Python object
pyobj
. In casepyobj
is itself anHIP_MEMSET_NODE_PARAMS
reference, this method returns it directly. No newHIP_MEMSET_NODE_PARAMS
is created in this case.
- get_dst(self, i)
Get value
dst
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_elementSize(self, i)
Get value
elementSize
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_height(self, i)
Get value
height
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_pitch(self, i)
Get value
pitch
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_value(self, i)
Get value
value
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- get_width(self, i)
Get value
width
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- height
Number of rows
- is_ptr_null
If data pointer is NULL.
- pitch
Destination device pointer pitch. Unused if height equals 1
- set_dst(self, i, value)
Set value
dst
of(<chip.HIP_MEMSET_NODE_PARAMS*>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.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- set_height(self, i, unsigned long value)
Set value
height
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- set_pitch(self, i, unsigned long value)
Set value
pitch
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- set_value(self, i, unsigned int value)
Set value
value
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- set_width(self, i, unsigned long value)
Set value
width
of(<chip.HIP_MEMSET_NODE_PARAMS*>self._ptr)[i]
.
- value
Value of memset to be set
- width
Width of a row
- class cuda.cudart.CUgraphExecUpdateResult(value)
Bases:
_hipGraphExecUpdateResult__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUgraphExecUpdateResult_enum(value)
Bases:
_hipGraphExecUpdateResult__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaGraphExecUpdateResult(value)
Bases:
_hipGraphExecUpdateResult__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUstreamCaptureMode(value)
Bases:
_hipStreamCaptureMode__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUstreamCaptureMode_enum(value)
Bases:
_hipStreamCaptureMode__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaStreamCaptureMode(value)
Bases:
_hipStreamCaptureMode__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUstreamCaptureStatus(value)
Bases:
_hipStreamCaptureStatus__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUstreamCaptureStatus_enum(value)
Bases:
_hipStreamCaptureStatus__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaStreamCaptureStatus(value)
Bases:
_hipStreamCaptureStatus__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUstreamUpdateCaptureDependencies_flags(value)
Bases:
_hipStreamUpdateCaptureDependenciesFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipStreamAddCaptureDependencies = 0
- CU_STREAM_ADD_CAPTURE_DEPENDENCIES = 0
- cudaStreamAddCaptureDependencies = 0
- hipStreamSetCaptureDependencies = 1
- CU_STREAM_SET_CAPTURE_DEPENDENCIES = 1
- cudaStreamSetCaptureDependencies = 1
- class cuda.cudart.CUstreamUpdateCaptureDependencies_flags_enum(value)
Bases:
_hipStreamUpdateCaptureDependenciesFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipStreamAddCaptureDependencies = 0
- CU_STREAM_ADD_CAPTURE_DEPENDENCIES = 0
- cudaStreamAddCaptureDependencies = 0
- hipStreamSetCaptureDependencies = 1
- CU_STREAM_SET_CAPTURE_DEPENDENCIES = 1
- cudaStreamSetCaptureDependencies = 1
- class cuda.cudart.cudaStreamUpdateCaptureDependenciesFlags(value)
Bases:
_hipStreamUpdateCaptureDependenciesFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipStreamAddCaptureDependencies = 0
- CU_STREAM_ADD_CAPTURE_DEPENDENCIES = 0
- cudaStreamAddCaptureDependencies = 0
- hipStreamSetCaptureDependencies = 1
- CU_STREAM_SET_CAPTURE_DEPENDENCIES = 1
- cudaStreamSetCaptureDependencies = 1
- class cuda.cudart.CUgraphMem_attribute(value)
Bases:
_hipGraphMemAttributeType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUgraphMem_attribute_enum(value)
Bases:
_hipGraphMemAttributeType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaGraphMemAttributeType(value)
Bases:
_hipGraphMemAttributeType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUuserObject_flags(value)
Bases:
_hipUserObjectFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipUserObjectNoDestructorSync = 1
- CU_USER_OBJECT_NO_DESTRUCTOR_SYNC = 1
- cudaUserObjectNoDestructorSync = 1
- class cuda.cudart.CUuserObject_flags_enum(value)
Bases:
_hipUserObjectFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipUserObjectNoDestructorSync = 1
- CU_USER_OBJECT_NO_DESTRUCTOR_SYNC = 1
- cudaUserObjectNoDestructorSync = 1
- class cuda.cudart.cudaUserObjectFlags(value)
Bases:
_hipUserObjectFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipUserObjectNoDestructorSync = 1
- CU_USER_OBJECT_NO_DESTRUCTOR_SYNC = 1
- cudaUserObjectNoDestructorSync = 1
- class cuda.cudart.CUuserObjectRetain_flags(value)
Bases:
_hipUserObjectRetainFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipGraphUserObjectMove = 1
- CU_GRAPH_USER_OBJECT_MOVE = 1
- cudaGraphUserObjectMove = 1
- class cuda.cudart.CUuserObjectRetain_flags_enum(value)
Bases:
_hipUserObjectRetainFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipGraphUserObjectMove = 1
- CU_GRAPH_USER_OBJECT_MOVE = 1
- cudaGraphUserObjectMove = 1
- class cuda.cudart.cudaUserObjectRetainFlags(value)
Bases:
_hipUserObjectRetainFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipGraphUserObjectMove = 1
- CU_GRAPH_USER_OBJECT_MOVE = 1
- cudaGraphUserObjectMove = 1
- class cuda.cudart.CUgraphInstantiate_flags(value)
Bases:
_hipGraphInstantiateFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUgraphInstantiate_flags_enum(value)
Bases:
_hipGraphInstantiateFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaGraphInstantiateFlags(value)
Bases:
_hipGraphInstantiateFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUgraphDebugDot_flags(value)
Bases:
_hipGraphDebugDotFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUgraphDebugDot_flags_enum(value)
Bases:
_hipGraphDebugDotFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaGraphDebugDotFlags(value)
Bases:
_hipGraphDebugDotFlags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.CUgraphInstantiateResult(value)
Bases:
_hipGraphInstantiateResult__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipGraphInstantiateSuccess = 0
- CUDA_GRAPH_INSTANTIATE_SUCCESS = 0
- cudaGraphInstantiateSuccess = 0
- hipGraphInstantiateError = 1
- CUDA_GRAPH_INSTANTIATE_ERROR = 1
- cudaGraphInstantiateError = 1
- hipGraphInstantiateInvalidStructure = 2
- CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE = 2
- cudaGraphInstantiateInvalidStructure = 2
- hipGraphInstantiateNodeOperationNotSupported = 3
- CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED = 3
- cudaGraphInstantiateNodeOperationNotSupported = 3
- hipGraphInstantiateMultipleDevicesNotSupported = 4
- CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED = 4
- cudaGraphInstantiateMultipleDevicesNotSupported = 4
- class cuda.cudart.CUgraphInstantiateResult_enum(value)
Bases:
_hipGraphInstantiateResult__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipGraphInstantiateSuccess = 0
- CUDA_GRAPH_INSTANTIATE_SUCCESS = 0
- cudaGraphInstantiateSuccess = 0
- hipGraphInstantiateError = 1
- CUDA_GRAPH_INSTANTIATE_ERROR = 1
- cudaGraphInstantiateError = 1
- hipGraphInstantiateInvalidStructure = 2
- CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE = 2
- cudaGraphInstantiateInvalidStructure = 2
- hipGraphInstantiateNodeOperationNotSupported = 3
- CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED = 3
- cudaGraphInstantiateNodeOperationNotSupported = 3
- hipGraphInstantiateMultipleDevicesNotSupported = 4
- CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED = 4
- cudaGraphInstantiateMultipleDevicesNotSupported = 4
- class cuda.cudart.cudaGraphInstantiateResult(value)
Bases:
_hipGraphInstantiateResult__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipGraphInstantiateSuccess = 0
- CUDA_GRAPH_INSTANTIATE_SUCCESS = 0
- cudaGraphInstantiateSuccess = 0
- hipGraphInstantiateError = 1
- CUDA_GRAPH_INSTANTIATE_ERROR = 1
- cudaGraphInstantiateError = 1
- hipGraphInstantiateInvalidStructure = 2
- CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE = 2
- cudaGraphInstantiateInvalidStructure = 2
- hipGraphInstantiateNodeOperationNotSupported = 3
- CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED = 3
- cudaGraphInstantiateNodeOperationNotSupported = 3
- hipGraphInstantiateMultipleDevicesNotSupported = 4
- CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED = 4
- cudaGraphInstantiateMultipleDevicesNotSupported = 4
- class cuda.cudart.CUDA_GRAPH_INSTANTIATE_PARAMS
Bases:
hipGraphInstantiateParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipGraphInstantiateParams.
Constructor for type hipGraphInstantiateParams.
- 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.
- flags
Instantiation flags
- static fromObj(pyobj)
Creates a hipGraphInstantiateParams from a Python object.
Derives a hipGraphInstantiateParams from the given Python object
pyobj
. In casepyobj
is itself anhipGraphInstantiateParams
reference, this method returns it directly. No newhipGraphInstantiateParams
is created in this case.
- get_flags(self, i)
Get value
flags
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- get_result_out(self, i)
Get value of
result_out
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- result_out
Whether instantiation was successful. If it failed, the reason why
- set_flags(self, i, unsigned long long value)
Set value
flags
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- set_result_out(self, i, value)
Set value
result_out
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- class cuda.cudart.CUDA_GRAPH_INSTANTIATE_PARAMS_st
Bases:
hipGraphInstantiateParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipGraphInstantiateParams.
Constructor for type hipGraphInstantiateParams.
- 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.
- flags
Instantiation flags
- static fromObj(pyobj)
Creates a hipGraphInstantiateParams from a Python object.
Derives a hipGraphInstantiateParams from the given Python object
pyobj
. In casepyobj
is itself anhipGraphInstantiateParams
reference, this method returns it directly. No newhipGraphInstantiateParams
is created in this case.
- get_flags(self, i)
Get value
flags
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- get_result_out(self, i)
Get value of
result_out
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- result_out
Whether instantiation was successful. If it failed, the reason why
- set_flags(self, i, unsigned long long value)
Set value
flags
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- set_result_out(self, i, value)
Set value
result_out
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- class cuda.cudart.cudaGraphInstantiateParams
Bases:
hipGraphInstantiateParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipGraphInstantiateParams.
Constructor for type hipGraphInstantiateParams.
- 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.
- flags
Instantiation flags
- static fromObj(pyobj)
Creates a hipGraphInstantiateParams from a Python object.
Derives a hipGraphInstantiateParams from the given Python object
pyobj
. In casepyobj
is itself anhipGraphInstantiateParams
reference, this method returns it directly. No newhipGraphInstantiateParams
is created in this case.
- get_flags(self, i)
Get value
flags
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- get_result_out(self, i)
Get value of
result_out
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- result_out
Whether instantiation was successful. If it failed, the reason why
- set_flags(self, i, unsigned long long value)
Set value
flags
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- set_result_out(self, i, value)
Set value
result_out
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- class cuda.cudart.cudaGraphInstantiateParams_st
Bases:
hipGraphInstantiateParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipGraphInstantiateParams.
Constructor for type hipGraphInstantiateParams.
- 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.
- flags
Instantiation flags
- static fromObj(pyobj)
Creates a hipGraphInstantiateParams from a Python object.
Derives a hipGraphInstantiateParams from the given Python object
pyobj
. In casepyobj
is itself anhipGraphInstantiateParams
reference, this method returns it directly. No newhipGraphInstantiateParams
is created in this case.
- get_flags(self, i)
Get value
flags
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- get_result_out(self, i)
Get value of
result_out
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- result_out
Whether instantiation was successful. If it failed, the reason why
- set_flags(self, i, unsigned long long value)
Set value
flags
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- set_result_out(self, i, value)
Set value
result_out
of(<chip.hipGraphInstantiateParams*>self._ptr)[i]
.
- class cuda.cudart.CUmemAllocationProp
Bases:
hipMemAllocationProp
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAllocationProp.
Constructor for type hipMemAllocationProp.
- 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 casepyobj
is itself anhipMemAllocationProp
reference, this method returns it directly. No newhipMemAllocationProp
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.cudart.CUmemAllocationProp_st
Bases:
hipMemAllocationProp
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAllocationProp.
Constructor for type hipMemAllocationProp.
- 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 casepyobj
is itself anhipMemAllocationProp
reference, this method returns it directly. No newhipMemAllocationProp
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.cudart.CUmemAllocationProp_v1
Bases:
hipMemAllocationProp
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAllocationProp.
Constructor for type hipMemAllocationProp.
- 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 casepyobj
is itself anhipMemAllocationProp
reference, this method returns it directly. No newhipMemAllocationProp
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreSignalNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParams
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreSignalNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParams
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreSignalNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParams
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreSignalNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParams
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreSignalNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParams
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreSignalNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParams
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreSignalNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParams
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreWaitNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParams
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreWaitNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParams
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreWaitNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParams
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreWaitNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParams
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreWaitNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParams
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreWaitNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParams
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.cudart.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 casepyobj
is itself anhipExternalSemaphoreWaitNodeParams
reference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParams
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.cudart.CUmemGenericAllocationHandle
alias of
ihipMemGenericAllocationHandle
- cuda.cudart.CUmemGenericAllocationHandle_v1
alias of
ihipMemGenericAllocationHandle
- class cuda.cudart.CUmemAllocationGranularity_flags(value)
Bases:
_hipMemAllocationGranularity_flags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipMemAllocationGranularityMinimum = 0
- CU_MEM_ALLOC_GRANULARITY_MINIMUM = 0
- hipMemAllocationGranularityRecommended = 1
- CU_MEM_ALLOC_GRANULARITY_RECOMMENDED = 1
- class cuda.cudart.CUmemAllocationGranularity_flags_enum(value)
Bases:
_hipMemAllocationGranularity_flags__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipMemAllocationGranularityMinimum = 0
- CU_MEM_ALLOC_GRANULARITY_MINIMUM = 0
- hipMemAllocationGranularityRecommended = 1
- CU_MEM_ALLOC_GRANULARITY_RECOMMENDED = 1
- class cuda.cudart.CUmemHandleType(value)
Bases:
_hipMemHandleType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipMemHandleTypeGeneric = 0
- CU_MEM_HANDLE_TYPE_GENERIC = 0
- class cuda.cudart.CUmemHandleType_enum(value)
Bases:
_hipMemHandleType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipMemHandleTypeGeneric = 0
- CU_MEM_HANDLE_TYPE_GENERIC = 0
- class cuda.cudart.CUmemOperationType(value)
Bases:
_hipMemOperationType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipMemOperationTypeMap = 1
- CU_MEM_OPERATION_TYPE_MAP = 1
- hipMemOperationTypeUnmap = 2
- CU_MEM_OPERATION_TYPE_UNMAP = 2
- class cuda.cudart.CUmemOperationType_enum(value)
Bases:
_hipMemOperationType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipMemOperationTypeMap = 1
- CU_MEM_OPERATION_TYPE_MAP = 1
- hipMemOperationTypeUnmap = 2
- CU_MEM_OPERATION_TYPE_UNMAP = 2
- class cuda.cudart.CUarraySparseSubresourceType(value)
Bases:
_hipArraySparseSubresourceType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipArraySparseSubresourceTypeSparseLevel = 0
- CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL = 0
- hipArraySparseSubresourceTypeMiptail = 1
- CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL = 1
- class cuda.cudart.CUarraySparseSubresourceType_enum(value)
Bases:
_hipArraySparseSubresourceType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipArraySparseSubresourceTypeSparseLevel = 0
- CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL = 0
- hipArraySparseSubresourceTypeMiptail = 1
- CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL = 1
- class cuda.cudart.CUarrayMapInfo
Bases:
hipArrayMapInfo
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipArrayMapInfo.
Constructor for type hipArrayMapInfo.
- 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 casepyobj
is itself anhipArrayMapInfo
reference, this method returns it directly. No newhipArrayMapInfo
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.cudart.CUarrayMapInfo_st
Bases:
hipArrayMapInfo
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipArrayMapInfo.
Constructor for type hipArrayMapInfo.
- 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 casepyobj
is itself anhipArrayMapInfo
reference, this method returns it directly. No newhipArrayMapInfo
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.cudart.CUarrayMapInfo_v1
Bases:
hipArrayMapInfo
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipArrayMapInfo.
Constructor for type hipArrayMapInfo.
- 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 casepyobj
is itself anhipArrayMapInfo
reference, this method returns it directly. No newhipArrayMapInfo
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.cudart.CUDA_MEMCPY_NODE_PARAMS
Bases:
hipMemcpyNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemcpyNodeParams.
Constructor for type hipMemcpyNodeParams.
- 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.
- copyParams
Params set for the memory copy.
- 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
Must be zero.
- static fromObj(pyobj)
Creates a hipMemcpyNodeParams from a Python object.
Derives a hipMemcpyNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipMemcpyNodeParams
reference, this method returns it directly. No newhipMemcpyNodeParams
is created in this case.
- get_copyParams(self, i)
Get value of
copyParams
of(<chip.hipMemcpyNodeParams*>self._ptr)[i]
.
- get_flags(self, i)
Get value
flags
of(<chip.hipMemcpyNodeParams*>self._ptr)[i]
.
- get_reserved(self, i)
Get value of
reserved
of(<chip.hipMemcpyNodeParams*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- reserved
Must be zero.
- set_flags(self, i, int value)
Set value
flags
of(<chip.hipMemcpyNodeParams*>self._ptr)[i]
.
- class cuda.cudart.CUDA_MEMCPY_NODE_PARAMS_st
Bases:
hipMemcpyNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemcpyNodeParams.
Constructor for type hipMemcpyNodeParams.
- 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.
- copyParams
Params set for the memory copy.
- 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
Must be zero.
- static fromObj(pyobj)
Creates a hipMemcpyNodeParams from a Python object.
Derives a hipMemcpyNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipMemcpyNodeParams
reference, this method returns it directly. No newhipMemcpyNodeParams
is created in this case.
- get_copyParams(self, i)
Get value of
copyParams
of(<chip.hipMemcpyNodeParams*>self._ptr)[i]
.
- get_flags(self, i)
Get value
flags
of(<chip.hipMemcpyNodeParams*>self._ptr)[i]
.
- get_reserved(self, i)
Get value of
reserved
of(<chip.hipMemcpyNodeParams*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- reserved
Must be zero.
- set_flags(self, i, int value)
Set value
flags
of(<chip.hipMemcpyNodeParams*>self._ptr)[i]
.
- class cuda.cudart.cudaMemcpyNodeParams
Bases:
hipMemcpyNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemcpyNodeParams.
Constructor for type hipMemcpyNodeParams.
- 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.
- copyParams
Params set for the memory copy.
- 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
Must be zero.
- static fromObj(pyobj)
Creates a hipMemcpyNodeParams from a Python object.
Derives a hipMemcpyNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipMemcpyNodeParams
reference, this method returns it directly. No newhipMemcpyNodeParams
is created in this case.
- get_copyParams(self, i)
Get value of
copyParams
of(<chip.hipMemcpyNodeParams*>self._ptr)[i]
.
- get_flags(self, i)
Get value
flags
of(<chip.hipMemcpyNodeParams*>self._ptr)[i]
.
- get_reserved(self, i)
Get value of
reserved
of(<chip.hipMemcpyNodeParams*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- reserved
Must be zero.
- set_flags(self, i, int value)
Set value
flags
of(<chip.hipMemcpyNodeParams*>self._ptr)[i]
.
- class cuda.cudart.CUDA_CHILD_GRAPH_NODE_PARAMS
Bases:
hipChildGraphNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipChildGraphNodeParams.
Constructor for type hipChildGraphNodeParams.
- 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 hipChildGraphNodeParams from a Python object.
Derives a hipChildGraphNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipChildGraphNodeParams
reference, this method returns it directly. No newhipChildGraphNodeParams
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.CUDA_CHILD_GRAPH_NODE_PARAMS_st
Bases:
hipChildGraphNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipChildGraphNodeParams.
Constructor for type hipChildGraphNodeParams.
- 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 hipChildGraphNodeParams from a Python object.
Derives a hipChildGraphNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipChildGraphNodeParams
reference, this method returns it directly. No newhipChildGraphNodeParams
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.cudaChildGraphNodeParams
Bases:
hipChildGraphNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipChildGraphNodeParams.
Constructor for type hipChildGraphNodeParams.
- 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 hipChildGraphNodeParams from a Python object.
Derives a hipChildGraphNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipChildGraphNodeParams
reference, this method returns it directly. No newhipChildGraphNodeParams
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.CUDA_EVENT_WAIT_NODE_PARAMS
Bases:
hipEventWaitNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipEventWaitNodeParams.
Constructor for type hipEventWaitNodeParams.
- 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 hipEventWaitNodeParams from a Python object.
Derives a hipEventWaitNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipEventWaitNodeParams
reference, this method returns it directly. No newhipEventWaitNodeParams
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.CUDA_EVENT_WAIT_NODE_PARAMS_st
Bases:
hipEventWaitNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipEventWaitNodeParams.
Constructor for type hipEventWaitNodeParams.
- 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 hipEventWaitNodeParams from a Python object.
Derives a hipEventWaitNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipEventWaitNodeParams
reference, this method returns it directly. No newhipEventWaitNodeParams
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.cudaEventWaitNodeParams
Bases:
hipEventWaitNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipEventWaitNodeParams.
Constructor for type hipEventWaitNodeParams.
- 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 hipEventWaitNodeParams from a Python object.
Derives a hipEventWaitNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipEventWaitNodeParams
reference, this method returns it directly. No newhipEventWaitNodeParams
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.CUDA_EVENT_RECORD_NODE_PARAMS
Bases:
hipEventRecordNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipEventRecordNodeParams.
Constructor for type hipEventRecordNodeParams.
- 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 hipEventRecordNodeParams from a Python object.
Derives a hipEventRecordNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipEventRecordNodeParams
reference, this method returns it directly. No newhipEventRecordNodeParams
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.CUDA_EVENT_RECORD_NODE_PARAMS_st
Bases:
hipEventRecordNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipEventRecordNodeParams.
Constructor for type hipEventRecordNodeParams.
- 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 hipEventRecordNodeParams from a Python object.
Derives a hipEventRecordNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipEventRecordNodeParams
reference, this method returns it directly. No newhipEventRecordNodeParams
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.cudaEventRecordNodeParams
Bases:
hipEventRecordNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipEventRecordNodeParams.
Constructor for type hipEventRecordNodeParams.
- 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 hipEventRecordNodeParams from a Python object.
Derives a hipEventRecordNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipEventRecordNodeParams
reference, this method returns it directly. No newhipEventRecordNodeParams
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.CUDA_MEM_FREE_NODE_PARAMS
Bases:
hipMemFreeNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemFreeNodeParams.
Constructor for type hipMemFreeNodeParams.
- 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.
- dptr
the pointer to be freed 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 hipMemFreeNodeParams from a Python object.
Derives a hipMemFreeNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipMemFreeNodeParams
reference, this method returns it directly. No newhipMemFreeNodeParams
is created in this case.
- get_dptr(self, i)
Get value
dptr
of(<chip.hipMemFreeNodeParams*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- set_dptr(self, i, value)
Set value
dptr
of(<chip.hipMemFreeNodeParams*>self._ptr)[i]
.- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- class cuda.cudart.CUDA_MEM_FREE_NODE_PARAMS_st
Bases:
hipMemFreeNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemFreeNodeParams.
Constructor for type hipMemFreeNodeParams.
- 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.
- dptr
the pointer to be freed 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 hipMemFreeNodeParams from a Python object.
Derives a hipMemFreeNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipMemFreeNodeParams
reference, this method returns it directly. No newhipMemFreeNodeParams
is created in this case.
- get_dptr(self, i)
Get value
dptr
of(<chip.hipMemFreeNodeParams*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- set_dptr(self, i, value)
Set value
dptr
of(<chip.hipMemFreeNodeParams*>self._ptr)[i]
.- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- class cuda.cudart.cudaMemFreeNodeParams
Bases:
hipMemFreeNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemFreeNodeParams.
Constructor for type hipMemFreeNodeParams.
- 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.
- dptr
the pointer to be freed 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 hipMemFreeNodeParams from a Python object.
Derives a hipMemFreeNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipMemFreeNodeParams
reference, this method returns it directly. No newhipMemFreeNodeParams
is created in this case.
- get_dptr(self, i)
Get value
dptr
of(<chip.hipMemFreeNodeParams*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- set_dptr(self, i, value)
Set value
dptr
of(<chip.hipMemFreeNodeParams*>self._ptr)[i]
.- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- class cuda.cudart.CUgraphNodeParams
Bases:
hipGraphNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipGraphNodeParams.
Constructor for type hipGraphNodeParams.
- 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 hipGraphNodeParams from a Python object.
Derives a hipGraphNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipGraphNodeParams
reference, this method returns it directly. No newhipGraphNodeParams
is created in this case.
- get_reserved0(self, i)
Get value of
reserved0
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- get_reserved2(self, i)
Get value
reserved2
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- get_type(self, i)
Get value of
type
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- reserved0
(undocumented)
- reserved2
(undocumented)
- set_reserved2(self, i, long long value)
Set value
reserved2
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- set_type(self, i, value)
Set value
type
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- type
(undocumented)
- class cuda.cudart.CUgraphNodeParams_st
Bases:
hipGraphNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipGraphNodeParams.
Constructor for type hipGraphNodeParams.
- 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 hipGraphNodeParams from a Python object.
Derives a hipGraphNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipGraphNodeParams
reference, this method returns it directly. No newhipGraphNodeParams
is created in this case.
- get_reserved0(self, i)
Get value of
reserved0
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- get_reserved2(self, i)
Get value
reserved2
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- get_type(self, i)
Get value of
type
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- reserved0
(undocumented)
- reserved2
(undocumented)
- set_reserved2(self, i, long long value)
Set value
reserved2
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- set_type(self, i, value)
Set value
type
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- type
(undocumented)
- class cuda.cudart.cudaGraphNodeParams
Bases:
hipGraphNodeParams
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipGraphNodeParams.
Constructor for type hipGraphNodeParams.
- 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 hipGraphNodeParams from a Python object.
Derives a hipGraphNodeParams from the given Python object
pyobj
. In casepyobj
is itself anhipGraphNodeParams
reference, this method returns it directly. No newhipGraphNodeParams
is created in this case.
- get_reserved0(self, i)
Get value of
reserved0
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- get_reserved2(self, i)
Get value
reserved2
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- get_type(self, i)
Get value of
type
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- reserved0
(undocumented)
- reserved2
(undocumented)
- set_reserved2(self, i, long long value)
Set value
reserved2
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- set_type(self, i, value)
Set value
type
of(<chip.hipGraphNodeParams*>self._ptr)[i]
.
- type
(undocumented)
- class cuda.cudart.CUgraphDependencyType(value)
Bases:
_hipGraphDependencyType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipGraphDependencyTypeDefault = 0
- CU_GRAPH_DEPENDENCY_TYPE_DEFAULT = 0
- cudaGraphDependencyTypeDefault = 0
- hipGraphDependencyTypeProgrammatic = 1
- CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC = 1
- cudaGraphDependencyTypeProgrammatic = 1
- class cuda.cudart.CUgraphDependencyType_enum(value)
Bases:
_hipGraphDependencyType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipGraphDependencyTypeDefault = 0
- CU_GRAPH_DEPENDENCY_TYPE_DEFAULT = 0
- cudaGraphDependencyTypeDefault = 0
- hipGraphDependencyTypeProgrammatic = 1
- CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC = 1
- cudaGraphDependencyTypeProgrammatic = 1
- class cuda.cudart.cudaGraphDependencyType(value)
Bases:
_hipGraphDependencyType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipGraphDependencyTypeDefault = 0
- CU_GRAPH_DEPENDENCY_TYPE_DEFAULT = 0
- cudaGraphDependencyTypeDefault = 0
- hipGraphDependencyTypeProgrammatic = 1
- CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC = 1
- cudaGraphDependencyTypeProgrammatic = 1
- class cuda.cudart.cudaGraphDependencyType_enum(value)
Bases:
_hipGraphDependencyType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- hipGraphDependencyTypeDefault = 0
- CU_GRAPH_DEPENDENCY_TYPE_DEFAULT = 0
- cudaGraphDependencyTypeDefault = 0
- hipGraphDependencyTypeProgrammatic = 1
- CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC = 1
- cudaGraphDependencyTypeProgrammatic = 1
- class cuda.cudart.CUgraphEdgeData
Bases:
hipGraphEdgeData
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipGraphEdgeData.
Constructor for type hipGraphEdgeData.
- 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 hipGraphEdgeData from a Python object.
Derives a hipGraphEdgeData from the given Python object
pyobj
. In casepyobj
is itself anhipGraphEdgeData
reference, this method returns it directly. No newhipGraphEdgeData
is created in this case.
- from_port
This indicates when the dependency is triggered from the upstream node on the edge. The meaning is specfic to the node type. A value of 0 in all cases means full completion of the upstream node, with memory visibility to the downstream node or portion thereof (indicated by to_port). Only kernel nodes define non-zero ports. A kernel node can use the following output port types: hipGraphKernelNodePortDefault, hipGraphKernelNodePortProgrammatic, or hipGraphKernelNodePortLaunchCompletion.
- get_from_port(self, i)
Get value
from_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- get_reserved(self, i)
Get value of
reserved
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- get_to_port(self, i)
Get value
to_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- get_type(self, i)
Get value
type
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- reserved
These bytes are unused and must be zeroed
- set_from_port(self, i, unsigned char value)
Set value
from_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- set_to_port(self, i, unsigned char value)
Set value
to_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- set_type(self, i, unsigned char value)
Set value
type
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- to_port
Currently no node types define non-zero ports. This field must be set to zero.
- type
This should be populated with a value from hipGraphDependencyType
- class cuda.cudart.CUgraphEdgeData_st
Bases:
hipGraphEdgeData
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipGraphEdgeData.
Constructor for type hipGraphEdgeData.
- 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 hipGraphEdgeData from a Python object.
Derives a hipGraphEdgeData from the given Python object
pyobj
. In casepyobj
is itself anhipGraphEdgeData
reference, this method returns it directly. No newhipGraphEdgeData
is created in this case.
- from_port
This indicates when the dependency is triggered from the upstream node on the edge. The meaning is specfic to the node type. A value of 0 in all cases means full completion of the upstream node, with memory visibility to the downstream node or portion thereof (indicated by to_port). Only kernel nodes define non-zero ports. A kernel node can use the following output port types: hipGraphKernelNodePortDefault, hipGraphKernelNodePortProgrammatic, or hipGraphKernelNodePortLaunchCompletion.
- get_from_port(self, i)
Get value
from_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- get_reserved(self, i)
Get value of
reserved
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- get_to_port(self, i)
Get value
to_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- get_type(self, i)
Get value
type
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- reserved
These bytes are unused and must be zeroed
- set_from_port(self, i, unsigned char value)
Set value
from_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- set_to_port(self, i, unsigned char value)
Set value
to_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- set_type(self, i, unsigned char value)
Set value
type
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- to_port
Currently no node types define non-zero ports. This field must be set to zero.
- type
This should be populated with a value from hipGraphDependencyType
- class cuda.cudart.cudaGraphEdgeData
Bases:
hipGraphEdgeData
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipGraphEdgeData.
Constructor for type hipGraphEdgeData.
- 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 hipGraphEdgeData from a Python object.
Derives a hipGraphEdgeData from the given Python object
pyobj
. In casepyobj
is itself anhipGraphEdgeData
reference, this method returns it directly. No newhipGraphEdgeData
is created in this case.
- from_port
This indicates when the dependency is triggered from the upstream node on the edge. The meaning is specfic to the node type. A value of 0 in all cases means full completion of the upstream node, with memory visibility to the downstream node or portion thereof (indicated by to_port). Only kernel nodes define non-zero ports. A kernel node can use the following output port types: hipGraphKernelNodePortDefault, hipGraphKernelNodePortProgrammatic, or hipGraphKernelNodePortLaunchCompletion.
- get_from_port(self, i)
Get value
from_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- get_reserved(self, i)
Get value of
reserved
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- get_to_port(self, i)
Get value
to_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- get_type(self, i)
Get value
type
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- reserved
These bytes are unused and must be zeroed
- set_from_port(self, i, unsigned char value)
Set value
from_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- set_to_port(self, i, unsigned char value)
Set value
to_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- set_type(self, i, unsigned char value)
Set value
type
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- to_port
Currently no node types define non-zero ports. This field must be set to zero.
- type
This should be populated with a value from hipGraphDependencyType
- class cuda.cudart.cudaGraphEdgeData_st
Bases:
hipGraphEdgeData
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipGraphEdgeData.
Constructor for type hipGraphEdgeData.
- 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 hipGraphEdgeData from a Python object.
Derives a hipGraphEdgeData from the given Python object
pyobj
. In casepyobj
is itself anhipGraphEdgeData
reference, this method returns it directly. No newhipGraphEdgeData
is created in this case.
- from_port
This indicates when the dependency is triggered from the upstream node on the edge. The meaning is specfic to the node type. A value of 0 in all cases means full completion of the upstream node, with memory visibility to the downstream node or portion thereof (indicated by to_port). Only kernel nodes define non-zero ports. A kernel node can use the following output port types: hipGraphKernelNodePortDefault, hipGraphKernelNodePortProgrammatic, or hipGraphKernelNodePortLaunchCompletion.
- get_from_port(self, i)
Get value
from_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- get_reserved(self, i)
Get value of
reserved
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- get_to_port(self, i)
Get value
to_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- get_type(self, i)
Get value
type
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- is_ptr_null
If data pointer is NULL.
- reserved
These bytes are unused and must be zeroed
- set_from_port(self, i, unsigned char value)
Set value
from_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- set_to_port(self, i, unsigned char value)
Set value
to_port
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- set_type(self, i, unsigned char value)
Set value
type
of(<chip.hipGraphEdgeData*>self._ptr)[i]
.
- to_port
Currently no node types define non-zero ports. This field must be set to zero.
- type
This should be populated with a value from hipGraphDependencyType
- cuda.cudart.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.
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):int
:driver version
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):int
:driver version
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):int
:HIP runtime version
- cuda.cudart.cuDeviceGet(ordinal)
hipDeviceGet(int ordinal) Returns a handle to a compute device
- cuda.cudart.cuDeviceComputeCapability(device)
hipDeviceComputeCapability(int device) Returns the compute capability of the device
- cuda.cudart.cuDeviceGetName(len, device)
hipDeviceGetName(int len, int device) Returns an identifer string for the device.
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.cuDeviceGetUuid(device)
hipDeviceGetUuid(int device) Returns an UUID for the device.[BETA]
- cuda.cudart.cuDeviceGetUuid_v2(device)
hipDeviceGetUuid(int device) Returns an UUID for the device.[BETA]
- cuda.cudart.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
- attr (
- Returns:
A
tuple
of size 2 that contains (in that order):int
:Pointer of the value for the attrubute
- cuda.cudart.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
- attr (
- Returns:
A
tuple
of size 2 that contains (in that order):int
:Pointer of the value for the attrubute
- cuda.cudart.cudaDeviceGetPCIBusId(len, device)
hipDeviceGetPCIBusId(int len, int device) Returns a PCI Bus Id string for the device, overloaded to take int device ID.
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.cuDeviceGetPCIBusId(len, device)
hipDeviceGetPCIBusId(int len, int device) Returns a PCI Bus Id string for the device, overloaded to take int device ID.
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.cudaDeviceGetByPCIBusId(pciBusId)
hipDeviceGetByPCIBusId(pciBusId) Returns a handle to a compute device.
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidDevice
,hipErrorInvalidValue
int
:The handle of the device
- cuda.cudart.cuDeviceGetByPCIBusId(pciBusId)
hipDeviceGetByPCIBusId(pciBusId) Returns a handle to a compute device.
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidDevice
,hipErrorInvalidValue
int
:The handle of the device
- cuda.cudart.cuDeviceTotalMem(device)
hipDeviceTotalMem(int device) Returns the total amount of memory on the device.
- cuda.cudart.cuDeviceTotalMem_v2(device)
hipDeviceTotalMem(int device) Returns the total amount of memory on the device.
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- cuda.cudart.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.cudart.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, thenhipGetDeviceCount
will returnhipErrorNoDevice
. If 1 or more devices can be found, then hipGetDeviceCount returnshipSuccess
.
- cuda.cudart.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, thenhipGetDeviceCount
will returnhipErrorNoDevice
. If 1 or more devices can be found, then hipGetDeviceCount returnshipSuccess
.
- cuda.cudart.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
- attr (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidDevice
,hipErrorInvalidValue
int
:pointer to value to return
- cuda.cudart.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
- attr (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidDevice
,hipErrorInvalidValue
int
:pointer to value to return
- cuda.cudart.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
- device (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidDevice
,hipErrorInvalidValue
,hipErrorNotSupported
ihipMemPoolHandle_t
:Default memory pool to return
- cuda.cudart.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
- device (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidDevice
,hipErrorInvalidValue
,hipErrorNotSupported
ihipMemPoolHandle_t
:Default memory pool to return
- cuda.cudart.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
- device (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- device (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 ifhipDeviceSetMemPool
has never been called. By default the current mempool is the default mempool for a device, otherwise the returned pool must have been set withhipDeviceSetMemPool.
- 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
- device (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
ihipMemPoolHandle_t
:Current memory pool on the specified device
- cuda.cudart.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 ifhipDeviceSetMemPool
has never been called. By default the current mempool is the default mempool for a device, otherwise the returned pool must have been set withhipDeviceSetMemPool.
- 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
- device (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
ihipMemPoolHandle_t
:Current memory pool on the specified device
- cuda.cudart.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)
- prop (
- cuda.cudart.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
- cacheConfig (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- cacheConfig (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaDeviceGetCacheConfig()
hipDeviceGetCacheConfig() Get Cache configuration for a specific Device
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorNotInitialized
Note: AMD devices do not support reconfigurable cache. This hint is ignored on these architectures.
hipFuncCache_t
:Pointer of cache configuration
- cuda.cudart.cudaThreadGetCacheConfig()
hipDeviceGetCacheConfig() Get Cache configuration for a specific Device
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorNotInitialized
Note: AMD devices do not support reconfigurable cache. This hint is ignored on these architectures.
hipFuncCache_t
:Pointer of cache configuration
- cuda.cudart.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
, orhipLimitMallocHeapSize
. Any other input as default, the function will returnhipErrorUnsupportedLimit
.- Args:
- limit (
hipLimit_t
) – IN: The limit to query
- limit (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorUnsupportedLimit
,hipErrorInvalidValue
int
:Returns the size of the limit in bytes
- cuda.cudart.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
, orhipLimitMallocHeapSize
. Any other input as default, the function will returnhipErrorUnsupportedLimit
.- Args:
- limit (
hipLimit_t
) – IN: The limit to query
- limit (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorUnsupportedLimit
,hipErrorInvalidValue
int
:Returns the size of the limit in bytes
- cuda.cudart.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 thehipDeviceGetLimit
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
- limit (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 thehipDeviceGetLimit
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
- limit (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotInitialized
hipSharedMemConfig
:The pointer of the bank width for shared memory
- cuda.cudart.cudaGetDeviceFlags()
hipGetDeviceFlags() Gets the flags set for current device
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidDevice
,hipErrorInvalidValue
int
:Pointer of the flags
- cuda.cudart.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
- config (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 :
- cuda.cudart.cudaChooseDevice(prop)
hipChooseDevice(prop) (No short description, might be part of a group.)
- Args:
- prop (
hipDeviceProp_t
/object
): (undocumented)
- prop (
- Returns:
A
tuple
of size 1 that contains (in that order):- device (
int
): (undocumented)
- device (
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidHandle
,hipErrorOutOfMemory
,hipErrorMapFailed
hipIpcMemHandle_st
:Pointer to user allocated hipIpcMemHandle to return
the handle in.
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidHandle
,hipErrorOutOfMemory
,hipErrorMapFailed
hipIpcMemHandle_st
:Pointer to user allocated hipIpcMemHandle to return
the handle in.
- cuda.cudart.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
- handle (
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.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
- handle (
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- handle (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- handle (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaIpcOpenEventHandle(handle)
hipIpcOpenEventHandle(handle) Opens an interprocess event handles.
Opens an interprocess event handle exported from another process with hipIpcGetEventHandle. The returned hipEvent_t behaves like a locally created event with the hipEventDisableTiming flag specified. This event need be freed with hipEventDestroy. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior. If the function is called within the same process where handle is returned by hipIpcGetEventHandle, it will return hipErrorInvalidContext.
- Note:
This IPC event related feature API is currently applicable on Linux.
- Args:
- handle (
hipIpcEventHandle_st
) – IN: The opaque interprocess handle to open
- handle (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorInvalidContext
ihipEvent_t
:Pointer to hipEvent_t to return the event
- cuda.cudart.cuIpcOpenEventHandle(handle)
hipIpcOpenEventHandle(handle) Opens an interprocess event handles.
Opens an interprocess event handle exported from another process with hipIpcGetEventHandle. The returned hipEvent_t behaves like a locally created event with the hipEventDisableTiming flag specified. This event need be freed with hipEventDestroy. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior. If the function is called within the same process where handle is returned by hipIpcGetEventHandle, it will return hipErrorInvalidContext.
- Note:
This IPC event related feature API is currently applicable on Linux.
- Args:
- handle (
hipIpcEventHandle_st
) – IN: The opaque interprocess handle to open
- handle (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorInvalidContext
ihipEvent_t
:Pointer to hipEvent_t to return the event
- cuda.cudart.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
- func (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- func (
- Returns:
A
tuple
of size 1 that contains (in that order):hipError_t
:hipSuccess
,hipErrorNotInitialized
Note: AMD devices and some Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.
- cuda.cudart.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
- func (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaGetLastError()
hipGetLastError() Return last error returned by any HIP runtime API call and resets the stored error code to
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.cudart.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.cudart.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.
- hip_error (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:Always returns
hipSuccess
.
bytes
: const char pointer to the NULL-terminated error name
- cuda.cudart.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.
- hipError (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:Always returns
hipSuccess
.
bytes
: const char pointer to the NULL-terminated error string
- cuda.cudart.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.
- hipError (
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.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.
- hipError (
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.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, application must call hipStreamDestroy.- See:
hipStreamCreateWithFlags
,hipStreamCreateWithPriority
,hipStreamSynchronize
,hipStreamWaitEvent
,hipStreamDestroy
- Returns:
A
tuple
of size 2 that contains (in that order):ihipStream_t
:Valid pointer to hipStream_t. This function writes the memory with the newly created stream.
- cuda.cudart.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, application must call hipStreamDestroy. Flags controls behavior of the stream. SeehipStreamDefault
,hipStreamNonBlocking
.- See:
hipStreamCreate
,hipStreamCreateWithPriority
,hipStreamSynchronize
,hipStreamWaitEvent
,hipStreamDestroy
- Args:
- flags (
int
) – IN: to control stream creation.
- flags (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipStream_t
:Pointer to new stream
- cuda.cudart.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, application must call hipStreamDestroy. Flags controls behavior of the stream. SeehipStreamDefault
,hipStreamNonBlocking
.- See:
hipStreamCreate
,hipStreamCreateWithPriority
,hipStreamSynchronize
,hipStreamWaitEvent
,hipStreamDestroy
- Args:
- flags (
int
) – IN: to control stream creation.
- flags (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipStream_t
:Pointer to new stream
- cuda.cudart.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, application must call hipStreamDestroy. Flags controls behavior of the stream. SeehipStreamDefault
,hipStreamNonBlocking
.- See:
hipStreamCreate
,hipStreamSynchronize
,hipStreamWaitEvent
,hipStreamDestroy
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):ihipStream_t
:Pointer to new stream
- cuda.cudart.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, application must call hipStreamDestroy. Flags controls behavior of the stream. SeehipStreamDefault
,hipStreamNonBlocking
.- See:
hipStreamCreate
,hipStreamSynchronize
,hipStreamWaitEvent
,hipStreamDestroy
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):ihipStream_t
:Pointer to new stream
- cuda.cudart.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 meaningful range as specified by this API, the priority is automatically clamped to within the valid range.
- cuda.cudart.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 meaningful range as specified by this API, the priority is automatically clamped to within the valid range.
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuStreamQuery(stream)
hipStreamQuery(stream) Return
hipSuccess
if all of the operations in the specifiedstream
have completed, orhipErrorNotReady
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
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaStreamQuery(stream)
hipStreamQuery(stream) Return
hipSuccess
if all of the operations in the specifiedstream
have completed, orhipErrorNotReady
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
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 untilevent
reports completion before beginning execution.This function only waits for commands in the current stream to complete. Notably, this function does not implicitly wait for commands in the default stream to complete, even if the specified stream is created with hipStreamNonBlocking = 0.
- See:
hipStreamCreate
,hipStreamCreateWithFlags
,hipStreamCreateWithPriority
,hipStreamSynchronize
,hipStreamDestroy
- Args:
- stream (
ihipStream_t
/object
) – IN: stream to make wait.
- event (
ihipEvent_t
/object
) – IN: event to wait on
- flags (
int
) – IN: control operation [must be 0]
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 untilevent
reports completion before beginning execution.This function only waits for commands in the current stream to complete. Notably, this function does not implicitly wait for commands in the default stream to complete, even if the specified stream is created with hipStreamNonBlocking = 0.
- See:
hipStreamCreate
,hipStreamCreateWithFlags
,hipStreamCreateWithPriority
,hipStreamSynchronize
,hipStreamDestroy
- Args:
- stream (
ihipStream_t
/object
) – IN: stream to make wait.
- event (
ihipEvent_t
/object
) – IN: event to wait on
- flags (
int
) – IN: control operation [must be 0]
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuStreamGetFlags(stream)
hipStreamGetFlags(stream) Return flags associated with this stream.
Return flags associated with this stream in *
flags.
- See:
- Args:
- stream (
ihipStream_t
/object
) – IN: stream to be queried
- stream (
- Returns:
A
tuple
of size 2 that contains (in that order):int
:Pointer to an unsigned integer in which the stream’s flags are returned
- cuda.cudart.cudaStreamGetFlags(stream)
hipStreamGetFlags(stream) Return flags associated with this stream.
Return flags associated with this stream in *
flags.
- See:
- Args:
- stream (
ihipStream_t
/object
) – IN: stream to be queried
- stream (
- Returns:
A
tuple
of size 2 that contains (in that order):int
:Pointer to an unsigned integer in which the stream’s flags are returned
- cuda.cudart.cuStreamGetPriority(stream)
hipStreamGetPriority(stream) Query the priority of a stream.
Query the priority of a stream. The priority is returned in in priority.
- See:
- Args:
- stream (
ihipStream_t
/object
) – IN: stream to be queried
- stream (
- Returns:
A
tuple
of size 2 that contains (in that order):int
:Pointer to an unsigned integer in which the stream’s priority is returned
- cuda.cudart.cudaStreamGetPriority(stream)
hipStreamGetPriority(stream) Query the priority of a stream.
Query the priority of a stream. The priority is returned in in priority.
- See:
- Args:
- stream (
ihipStream_t
/object
) – IN: stream to be queried
- stream (
- Returns:
A
tuple
of size 2 that contains (in that order):int
:Pointer to an unsigned integer in which the stream’s priority is returned
- class cuda.cudart.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.
- 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 casepyobj
is itself anhipStreamCallback_t
reference, this method returns it directly. No newhipStreamCallback_t
is created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cudart.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.
- 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 casepyobj
is itself anhipStreamCallback_t
reference, this method returns it directly. No newhipStreamCallback_t
is created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cudart.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
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
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
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
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
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
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
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
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
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
hipExtMallocWithFlags
,hipFree
,hipStreamWriteValue32
,hipStreamWaitValue32
,hipStreamWaitValue64
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
hipExtMallocWithFlags
,hipFree
,hipStreamWriteValue32
,hipStreamWaitValue32
,hipStreamWaitValue64
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
hipExtMallocWithFlags
,hipFree
,hipStreamWriteValue32
,hipStreamWaitValue32
,hipStreamWaitValue64
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
hipExtMallocWithFlags
,hipFree
,hipStreamWriteValue32
,hipStreamWaitValue32
,hipStreamWaitValue64
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 supporttiming. 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 iscalled 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.
- flags (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipEvent_t
:Returns the newly created event.
- cuda.cudart.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 supporttiming. 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 iscalled 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.
- flags (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipEvent_t
:Returns the newly created event.
- cuda.cudart.cudaEventCreate()
hipEventCreate() (No short description, might be part of a group.)
Create an event
- See:
hipEventCreateWithFlags
,hipEventRecord
,hipEventQuery
,hipEventSynchronize
,hipEventDestroy
,hipEventElapsedTime
- Returns:
A
tuple
of size 2 that contains (in that order):ihipEvent_t
:Returns the newly created event.
- cuda.cudart.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)
- event (
- cuda.cudart.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)
- event (
- cuda.cudart.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.
- event (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- event (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- event (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 returnshipSuccess
when no event is captured.- See:
hipEventCreate
,hipEventCreateWithFlags
,hipEventQuery
,hipEventDestroy
,hipEventRecord
,hipEventElapsedTime
- Args:
- event (
ihipEvent_t
/object
) – IN: Event on which to wait.
- event (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 returnshipSuccess
when no event is captured.- See:
hipEventCreate
,hipEventCreateWithFlags
,hipEventQuery
,hipEventDestroy
,hipEventRecord
,hipEventElapsedTime
- Args:
- event (
ihipEvent_t
/object
) – IN: Event on which to wait.
- event (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 returnhipErrorNotReady
on at least one of the events), thenhipErrorNotReady
is returned.- See:
hipEventCreate
,hipEventCreateWithFlags
,hipEventQuery
,hipEventDestroy
,hipEventRecord
,hipEventSynchronize
- Args:
- start (
ihipEvent_t
/object
) – IN: Start event.
- stop (
ihipEvent_t
/object
) – IN: Stop event.
- start (
- Returns:
A
tuple
of size 2 that contains (in that order):float
:Return time between start and stop in ms.
- cuda.cudart.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 returnhipErrorNotReady
on at least one of the events), thenhipErrorNotReady
is returned.- See:
hipEventCreate
,hipEventCreateWithFlags
,hipEventQuery
,hipEventDestroy
,hipEventRecord
,hipEventSynchronize
- Args:
- start (
ihipEvent_t
/object
) – IN: Start event.
- stop (
ihipEvent_t
/object
) – IN: Stop event.
- start (
- Returns:
A
tuple
of size 2 that contains (in that order):float
:Return time between start and stop in ms.
- cuda.cudart.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 any execution has not completed, thenhipErrorNotReady
is returned.- Note:
This API returns
hipSuccess
, if hipEventRecord() is not called before this API.- See:
hipEventCreate
,hipEventCreateWithFlags
,hipEventRecord
,hipEventDestroy
,hipEventSynchronize
,hipEventElapsedTime
- Args:
- event (
ihipEvent_t
/object
) – IN: Event to query.
- event (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 any execution has not completed, thenhipErrorNotReady
is returned.- Note:
This API returns
hipSuccess
, if hipEventRecord() is not called before this API.- See:
hipEventCreate
,hipEventCreateWithFlags
,hipEventRecord
,hipEventDestroy
,hipEventSynchronize
,hipEventElapsedTime
- Args:
- event (
ihipEvent_t
/object
) – IN: Event to query.
- event (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuPointerSetAttribute(value, attribute, ptr)
hipPointerSetAttribute(value, attribute, ptr) Sets information on the specified pointer.[BETA]
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- value (
Pointer
/object
) – IN: Sets pointer attribute value
- attribute (
hipPointer_attribute
) – IN: Attribute to set
- ptr (
Pointer
/object
) – IN: Pointer to set attributes for
- value (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaPointerGetAttributes(attributes, ptr)
hipPointerGetAttributes(attributes, ptr) Returns attributes for the specified pointer
The output parameter ‘attributes’ has a member named ‘type’ that describes what memory the pointer is associated with, such as device memory, host memory, managed memory, and others. Otherwise, the API cannot handle the pointer and returns
hipErrorInvalidValue
.- Note:
The unrecognized memory type is unsupported to keep the HIP functionality backward compatibility due to
hipMemoryType
enum values.- Note:
The current behavior of this HIP API corresponds to the CUDA API before version 11.0.
- See:
- Args:
- attributes (
hipPointerAttribute_t
/object
) – OUT: attributes for the specified pointer
- ptr (
Pointer
/object
) – IN: pointer to get attributes for
- attributes (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuPointerGetAttribute(data, attribute, ptr)
hipPointerGetAttribute(data, attribute, ptr) Returns information about the specified pointer.[BETA]
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
- Args:
- data (
Pointer
/object
) – IN,OUT: Returned pointer attribute value
- attribute (
hipPointer_attribute
) – IN: Attribute to query for
- ptr (
Pointer
/object
) – IN: Pointer to get attributes for
- data (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuPointerGetAttributes(numAttributes, attributes, ptr)
hipDrvPointerGetAttributes(unsigned int numAttributes, attributes, ptr) Returns information about the specified pointer.[BETA]
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.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
- extSem_out (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- extSem_out (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)
hipSignalExternalSemaphoresAsync(extSemArray, paramsArray, unsigned int numExtSems, stream) Signals a set of external semaphore objects.
See:
- Args:
- extSemArray (
Pointer
/object
) – IN: External semaphores to be waited on
- paramsArray (
hipExternalSemaphoreSignalParams_st
/object
) – IN: Array of semaphore parameters
- numExtSems (
int
) – IN: Number of semaphores to wait on
- stream (
ihipStream_t
/object
) – IN: Stream to enqueue the wait operations in
- extSemArray (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)
hipSignalExternalSemaphoresAsync(extSemArray, paramsArray, unsigned int numExtSems, stream) Signals a set of external semaphore objects.
See:
- Args:
- extSemArray (
Pointer
/object
) – IN: External semaphores to be waited on
- paramsArray (
hipExternalSemaphoreSignalParams_st
/object
) – IN: Array of semaphore parameters
- numExtSems (
int
) – IN: Number of semaphores to wait on
- stream (
ihipStream_t
/object
) – IN: Stream to enqueue the wait operations in
- extSemArray (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
) – IN: External semaphores to be waited on
- paramsArray (
hipExternalSemaphoreWaitParams_st
/object
) – IN: Array of semaphore parameters
- numExtSems (
int
) – IN: Number of semaphores to wait on
- stream (
ihipStream_t
/object
) – IN: Stream to enqueue the wait operations in
- extSemArray (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
) – IN: External semaphores to be waited on
- paramsArray (
hipExternalSemaphoreWaitParams_st
/object
) – IN: Array of semaphore parameters
- numExtSems (
int
) – IN: Number of semaphores to wait on
- stream (
ihipStream_t
/object
) – IN: Stream to enqueue the wait operations in
- extSemArray (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- extMem_out (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- extMem_out (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- extMem (
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.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
- extMem (
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.cuDestroyExternalMemory(extMem)
hipDestroyExternalMemory(extMem) Destroys an external memory object.
See:
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaDestroyExternalMemory(extMem)
hipDestroyExternalMemory(extMem) Destroys an external memory object.
See:
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- size (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorOutOfMemory
,hipErrorInvalidValue
(bad context, null *ptr)DeviceArray
/object
:Pointer to the allocated memory
- cuda.cudart.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
- size (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorOutOfMemory
,hipErrorInvalidValue
(bad context, null *ptr)DeviceArray
/object
:Pointer to the allocated memory
- cuda.cudart.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
- size (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorOutOfMemory
,hipErrorInvalidValue
(bad context, null *ptr)DeviceArray
/object
:Pointer to the allocated memory
- cuda.cudart.cuMemAllocHost(size)
hipMemAllocHost(unsigned long size) Allocate pinned host memory [Deprecated]
- cuda.cudart.cuMemAllocHost_v2(size)
hipMemAllocHost(unsigned long size) Allocate pinned host memory [Deprecated]
- cuda.cudart.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:
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorMemoryAllocation
,hipErrorNotSupported
,hipErrorInvalidValue
DeviceArray
/object
:pointer to allocated device memory
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorMemoryAllocation
,hipErrorNotSupported
,hipErrorInvalidValue
DeviceArray
/object
:pointer to allocated device memory
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- dev_ptr (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- dev_ptr (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- data (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- data (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- cuda.cudart.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.
- cuda.cudart.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)
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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)
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 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
- size (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
,hipErrorOutOfMemory
DeviceArray
/object
:Returned device pointer of memory allocation
- cuda.cudart.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 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
- size (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
,hipErrorOutOfMemory
DeviceArray
/object
:Returned device pointer of memory allocation
- cuda.cudart.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
- dev_ptr (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- dev_ptr (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- mem_pool (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- mem_pool (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 byhipFreeAsync
(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
- mem_pool (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 byhipFreeAsync
(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
- mem_pool (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 byhipFreeAsync
(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
- mem_pool (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 byhipFreeAsync
(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
- mem_pool (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- mem_pool (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- mem_pool (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- flags (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- flags (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaMemPoolCreate(pool_props)
hipMemPoolCreate(pool_props) Creates a memory pool
Creates a HIP memory pool and returns the handle in
mem_pool.
Thepool_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
- pool_props (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
ihipMemPoolHandle_t
:Contains createed memory pool
- cuda.cudart.cuMemPoolCreate(pool_props)
hipMemPoolCreate(pool_props) Creates a memory pool
Creates a HIP memory pool and returns the handle in
mem_pool.
Thepool_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
- pool_props (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
ihipMemPoolHandle_t
:Contains createed memory pool
- cuda.cudart.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
- mem_pool (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- mem_pool (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 indev_ptr.
The allocation must not be accessed until the allocation operation completes. The allocation comes from the specified memory pool.- Note:
The specified memory pool may be from a device different than that of the specified
stream.
Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.
- Note:
During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.
- See:
hipMallocAsync
,hipFreeAsync
,hipMemPoolGetAttribute
,hipMemPoolCreate
hipMemPoolTrimTo
,hipDeviceSetMemPool
,hipMemPoolSetAttribute
,hipMemPoolSetAccess
,hipMemPoolGetAccess
,- Warning:
This API is marked as beta, 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
- size (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
,hipErrorOutOfMemory
DeviceArray
/object
:Returned device pointer
- cuda.cudart.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 indev_ptr.
The allocation must not be accessed until the allocation operation completes. The allocation comes from the specified memory pool.- Note:
The specified memory pool may be from a device different than that of the specified
stream.
Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.
- Note:
During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.
- See:
hipMallocAsync
,hipFreeAsync
,hipMemPoolGetAttribute
,hipMemPoolCreate
hipMemPoolTrimTo
,hipDeviceSetMemPool
,hipMemPoolSetAttribute
,hipMemPoolSetAccess
,hipMemPoolGetAccess
,- Warning:
This API is marked as beta, 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
- size (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
,hipErrorOutOfMemory
DeviceArray
/object
:Returned device pointer
- cuda.cudart.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 thehipMemPoolExportPointer
andhipMemPoolImportPointer
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 thanhipMemHandleTypeNone.
- See:
- 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
- shared_handle (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 thehipMemPoolExportPointer
andhipMemPoolImportPointer
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 thanhipMemHandleTypeNone.
- See:
- 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
- shared_handle (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
orhipMallocFromPoolAsync
calls.- See:
- 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
- shared_handle (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorOutOfMemory
ihipMemPoolHandle_t
:Returned memory pool
- cuda.cudart.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
orhipMallocFromPoolAsync
calls.- See:
- 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
- shared_handle (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorOutOfMemory
ihipMemPoolHandle_t
:Returned memory pool
- cuda.cudart.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 thehipMemPoolImportPointer
api. The data is not a handle and may be shared through any IPC mechanism.- See:
- 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
- export_data (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 thehipMemPoolImportPointer
api. The data is not a handle and may be shared through any IPC mechanism.- See:
- 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
- export_data (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 withhipFree
orhipFreeAsync.
IfhipFreeAsync
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 thehipFreeAsync
operation completes in its stream as long as thehipFreeAsync
in the exporting process specifies a stream with a stream dependency on the importing process’shipFreeAsync.
- See:
- 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
- mem_pool (
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.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 withhipFree
orhipFreeAsync.
IfhipFreeAsync
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 thehipFreeAsync
operation completes in its stream as long as thehipFreeAsync
in the exporting process specifies a stream with a stream dependency on the importing process’shipFreeAsync.
- See:
- 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
- mem_pool (
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.cuMemHostAlloc(size, flags)
hipHostAlloc(unsigned long size, unsigned int flags) Allocate device accessible page locked host memory [Deprecated]
- cuda.cudart.cudaHostAlloc(size, flags)
hipHostAlloc(unsigned long size, unsigned int flags) Allocate device accessible page locked host memory [Deprecated]
- cuda.cudart.cuMemHostGetDevicePointer(hstPtr, flags)
hipHostGetDevicePointer(hstPtr, unsigned int flags) Get Device pointer from Host Pointer allocated through hipHostMalloc
- See:
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.cuMemHostGetDevicePointer_v2(hstPtr, flags)
hipHostGetDevicePointer(hstPtr, unsigned int flags) Get Device pointer from Host Pointer allocated through hipHostMalloc
- See:
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.cudaHostGetDevicePointer(hstPtr, flags)
hipHostGetDevicePointer(hstPtr, unsigned int flags) Get Device pointer from Host Pointer allocated through hipHostMalloc
- See:
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.cuMemHostGetFlags(hostPtr)
hipHostGetFlags(hostPtr) Return flags associated with host pointer
- cuda.cudart.cudaHostGetFlags(hostPtr)
hipHostGetFlags(hostPtr) Return flags associated with host pointer
- cuda.cudart.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 PortablehipHostRegisterPortable
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 hostpointer. 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:
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 PortablehipHostRegisterPortable
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 hostpointer. 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:
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 PortablehipHostRegisterPortable
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 hostpointer. 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:
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuMemHostUnregister(hostPtr)
hipHostUnregister(hostPtr) Un-register host pointer
- See:
- Args:
- hostPtr (
Pointer
/object
) – IN: Host pointer previously registered with
hipHostRegister
- hostPtr (
- Returns:
A
tuple
of size 1 that contains (in that order):hipError_t
: Error code
- cuda.cudart.cudaHostUnregister(hostPtr)
hipHostUnregister(hostPtr) Un-register host pointer
- See:
- Args:
- hostPtr (
Pointer
/object
) – IN: Host pointer previously registered with
hipHostRegister
- hostPtr (
- Returns:
A
tuple
of size 1 that contains (in that order):hipError_t
: Error code
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipError_t
: Error codeint
:Pitch for allocation (in bytes)
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipError_t
: Error codeint
:Pitch for allocation (in bytes)
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipError_t
: Error codeint
:Pitch for allocation (in bytes)
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):hipError_t
: One of:hipErrorInvalidDevicePointer
(if pointer is invalid, including host pointers allocatedwith hipHostMalloc)
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):hipError_t
: One of:hipErrorInvalidDevicePointer
(if pointer is invalid, including host pointers allocatedwith hipHostMalloc)
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):hipError_t
: One of:hipErrorInvalidDevicePointer
(if pointer is invalid, including host pointers allocatedwith hipHostMalloc)
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
(if pointer is invalid, including device pointers allocated withhipMalloc)
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
(if pointer is invalid, including device pointers allocated withhipMalloc)
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- hmod (
- Returns:
A
tuple
of size 3 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotFound
,hipErrorInvalidContext
int
:Returns global size in bytes
- cuda.cudart.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
- hmod (
- Returns:
A
tuple
of size 3 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotFound
,hipErrorInvalidContext
int
:Returns global size in bytes
- cuda.cudart.cudaGetSymbolAddress(symbol)
hipGetSymbolAddress(symbol) Gets device pointer associated with symbol on the device.
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.cudaGetSymbolSize(symbol)
hipGetSymbolSize(symbol) Gets the size of the given symbol on the device.
- cuda.cudart.cuGetProcAddress(symbol, pfn, hipVersion, flags)
hipGetProcAddress(symbol, pfn, int hipVersion, unsigned long flags) Gets the pointer of requested HIP driver function.
Returns hipSuccess if the returned pfn is addressed to the pointer of found driver function.
- Args:
- symbol (
CStr
/object
) – IN: The Symbol name of the driver function to request.
- pfn (
Pointer
/object
) – OUT: Output pointer to the requested driver function.
- hipVersion (
int
) – IN: The HIP version for the requested driver function symbol. HIP version is defined as 100*version_major + version_minor. For example, in HIP 6.1, the hipversion is 601, for the symbol function “hipGetDeviceProperties”, the specified hipVersion 601 is greater or equal to the version 600, the symbol function will be handle properly as backend compatible function.
- flags (
int
) – IN: Currently only default flag is suppported.
- symbol (
- Returns:
A
tuple
of size 2 that contains (in that order):hipDriverProcAddressQueryResult
:Optional enumeration for returned status of searching for symbol driver function based on the input hipVersion.
- cuda.cudart.cudaGetDriverEntryPoint(symbol, pfn, hipVersion, flags)
hipGetProcAddress(symbol, pfn, int hipVersion, unsigned long flags) Gets the pointer of requested HIP driver function.
Returns hipSuccess if the returned pfn is addressed to the pointer of found driver function.
- Args:
- symbol (
CStr
/object
) – IN: The Symbol name of the driver function to request.
- pfn (
Pointer
/object
) – OUT: Output pointer to the requested driver function.
- hipVersion (
int
) – IN: The HIP version for the requested driver function symbol. HIP version is defined as 100*version_major + version_minor. For example, in HIP 6.1, the hipversion is 601, for the symbol function “hipGetDeviceProperties”, the specified hipVersion 601 is greater or equal to the version 600, the symbol function will be handle properly as backend compatible function.
- flags (
int
) – IN: Currently only default flag is suppported.
- symbol (
- Returns:
A
tuple
of size 2 that contains (in that order):hipDriverProcAddressQueryResult
:Optional enumeration for returned status of searching for symbol driver function based on the input hipVersion.
- cuda.cudart.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 detailed usage, see the <a href=”https://rocm.docs.amd.com/projects/HIP/en/latest/how-to/hip_porting_guide.html`~.memcpytosymbol`”>memcpyToSymbol example</a> in the HIP Porting Guide.
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- symbol (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
) – OUT: Returns pointer to destinition memory address
- symbol (
Pointer
/object
) – IN: pointer to the symbole address on the device
- sizeBytes (
int
) – IN: size in bytes to copy
- offset (
int
) – IN: offset in bytes from the start of symbole
- kind (
hipMemcpyKind
) – IN: type of memory transfer
- stream (
ihipStream_t
/object
) – IN: stream identifier
- dst (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
) – IN: Type of memory transfer
- stream (
ihipStream_t
/object
) – IN: Stream identifier
- dst (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- cuda.cudart.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 2D device memory
- pitch (
int
) – IN: Pitch size in bytes
- value (
int
) – IN: Value to be set for each byte of specified memory
- width (
int
) – IN: Width of matrix set columns in bytes
- height (
int
) – IN: Height of matrix set rows in bytes
- stream (
ihipStream_t
/object
) – IN: Stream identifier
- dst (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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: Pointer to pitched device memory
- value (
int
) – IN: Value to set for each byte of specified memory
- extent (
hipExtent
) – IN: Size parameters for width field in bytes in device memory
- pitchedDevPtr (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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: Pointer to pitched device memory
- value (
int
) – IN: Value to set for each byte of specified memory
- extent (
hipExtent
) – IN: Size parameters for width field in bytes in device memory
- stream (
ihipStream_t
/object
) – IN: Stream identifier
- pitchedDevPtr (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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):hipError_t
:hipSuccess
,hipErrorInvalidDevice
,hipErrorInvalidValue
int
:Returns free memory on the current device in bytes
int
:Returns total allocatable memory on the current device in bytes
- cuda.cudart.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):hipError_t
:hipSuccess
,hipErrorInvalidDevice
,hipErrorInvalidValue
int
:Returns free memory on the current device in bytes
int
:Returns total allocatable memory on the current device in bytes
- cuda.cudart.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):hipError_t
:hipSuccess
,hipErrorInvalidDevice
,hipErrorInvalidValue
int
:Returns free memory on the current device in bytes
int
:Returns total allocatable memory on the current device in bytes
- cuda.cudart.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
- desc (
- Returns:
A
tuple
of size 2 that contains (in that order):hipArray
:Pointer to allocated array in device memory
- cuda.cudart.cuArrayCreate(pAllocateArray)
hipArrayCreate(pAllocateArray) Create an array memory pointer on the device.
- See:
- Args:
- pAllocateArray (
HIP_ARRAY_DESCRIPTOR
/object
) – IN: Requested array desciptor
- pAllocateArray (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
hipArray
:Pointer to the array memory
- cuda.cudart.cuArrayCreate_v2(pAllocateArray)
hipArrayCreate(pAllocateArray) Create an array memory pointer on the device.
- See:
- Args:
- pAllocateArray (
HIP_ARRAY_DESCRIPTOR
/object
) – IN: Requested array desciptor
- pAllocateArray (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
hipArray
:Pointer to the array memory
- cuda.cudart.cuArrayDestroy(array)
hipArrayDestroy(array) Destroy an array memory pointer on the device.
- See:
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuArray3DCreate(pAllocateArray)
hipArray3DCreate(pAllocateArray) Create a 3D array memory pointer on the device.
- See:
- Args:
- pAllocateArray (
HIP_ARRAY3D_DESCRIPTOR
/object
) – IN: Requested array desciptor
- pAllocateArray (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
hipArray
:Pointer to the 3D array memory
- cuda.cudart.cuArray3DCreate_v2(pAllocateArray)
hipArray3DCreate(pAllocateArray) Create a 3D array memory pointer on the device.
- See:
- Args:
- pAllocateArray (
HIP_ARRAY3D_DESCRIPTOR
/object
) – IN: Requested array desciptor
- pAllocateArray (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
hipArray
:Pointer to the 3D array memory
- cuda.cudart.cudaMalloc3D(pitchedDevPtr, extent)
hipMalloc3D(pitchedDevPtr, extent) Create a 3D memory pointer on the device.
- See:
- Args:
- pitchedDevPtr (
hipPitchedPtr
/object
) – OUT: Pointer to the 3D memory
- extent (
hipExtent
) – IN: Requested extent
- pitchedDevPtr (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaFreeArray(array)
hipFreeArray(array) Frees an array on the device.
- See:
hipMalloc
,hipMallocPitch
,hipFree
,hipMallocArray
,hipHostMalloc
,hipHostFree
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- desc (
- Returns:
A
tuple
of size 2 that contains (in that order):hipArray
:Pointer to allocated array in device memory
- cuda.cudart.cudaArrayGetInfo(desc, extent, array)
hipArrayGetInfo(desc, extent, array) Gets info about the specified array
- See:
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
hipErrorInvalidHandle
int
:Returned array flags
- cuda.cudart.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
- pArrayDescriptor (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- pArrayDescriptor (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- pArrayDescriptor (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- pArrayDescriptor (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- dst (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuMemcpy2D(pCopy)
hipMemcpyParam2D(pCopy) Copies memory for 2D arrays.
- See:
hipMemcpy
,hipMemcpy2D
,hipMemcpyToArray
,hipMemcpy2DToArray
,hipMemcpyFromArray
,hipMemcpyToSymbol
,hipMemcpyAsync
- Args:
- pCopy (
hip_Memcpy2D
/object
) – IN: Parameters for the memory copy
- pCopy (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuMemcpy2D_v2(pCopy)
hipMemcpyParam2D(pCopy) Copies memory for 2D arrays.
- See:
hipMemcpy
,hipMemcpy2D
,hipMemcpyToArray
,hipMemcpy2DToArray
,hipMemcpyFromArray
,hipMemcpyToSymbol
,hipMemcpyAsync
- Args:
- pCopy (
hip_Memcpy2D
/object
) – IN: Parameters for the memory copy
- pCopy (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuMemcpy2DAsync(pCopy, stream)
hipMemcpyParam2DAsync(pCopy, stream) Copies memory for 2D arrays.
- See:
hipMemcpy
,hipMemcpy2D
,hipMemcpyToArray
,hipMemcpy2DToArray
,hipMemcpyFromArray
,hipMemcpyToSymbol
,hipMemcpyAsync
- Args:
- pCopy (
hip_Memcpy2D
/object
) – IN: Parameters for the memory copy
- stream (
ihipStream_t
/object
) – IN: Stream to use
- pCopy (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuMemcpy2DAsync_v2(pCopy, stream)
hipMemcpyParam2DAsync(pCopy, stream) Copies memory for 2D arrays.
- See:
hipMemcpy
,hipMemcpy2D
,hipMemcpyToArray
,hipMemcpy2DToArray
,hipMemcpyFromArray
,hipMemcpyToSymbol
,hipMemcpyAsync
- Args:
- pCopy (
hip_Memcpy2D
/object
) – IN: Parameters for the memory copy
- stream (
ihipStream_t
/object
) – IN: Stream to use
- pCopy (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- dst (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- dst (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- dst (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- dst (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- dst (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaMemcpy3D(p)
hipMemcpy3D(p) Copies data between host and device.
- See:
hipMemcpy
,hipMemcpy2DToArray
,hipMemcpy2D
,hipMemcpyFromArray
,hipMemcpyToSymbol
,hipMemcpyAsync
- Args:
- p (
hipMemcpy3DParms
/object
) – IN: 3D memory copy parameters
- p (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaMemcpy3DAsync(p, stream)
hipMemcpy3DAsync(p, stream) Copies data between host and device asynchronously.
- See:
hipMemcpy
,hipMemcpy2DToArray
,hipMemcpy2D
,hipMemcpyFromArray
,hipMemcpyToSymbol
,hipMemcpyAsync
- Args:
- p (
hipMemcpy3DParms
/object
) – IN: 3D memory copy parameters
- stream (
ihipStream_t
/object
) – IN: Stream to use
- p (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuMemcpy3D(pCopy)
hipDrvMemcpy3D(pCopy) Copies data between host and device.
- See:
hipMemcpy
,hipMemcpy2DToArray
,hipMemcpy2D
,hipMemcpyFromArray
,hipMemcpyToSymbol
,hipMemcpyAsync
- Args:
- pCopy (
HIP_MEMCPY3D
/object
) – IN: 3D memory copy parameters
- pCopy (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuMemcpy3D_v2(pCopy)
hipDrvMemcpy3D(pCopy) Copies data between host and device.
- See:
hipMemcpy
,hipMemcpy2DToArray
,hipMemcpy2D
,hipMemcpyFromArray
,hipMemcpyToSymbol
,hipMemcpyAsync
- Args:
- pCopy (
HIP_MEMCPY3D
/object
) – IN: 3D memory copy parameters
- pCopy (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuMemcpy3DAsync(pCopy, stream)
hipDrvMemcpy3DAsync(pCopy, stream) Copies data between host and device asynchronously.
- See:
hipMemcpy
,hipMemcpy2DToArray
,hipMemcpy2D
,hipMemcpyFromArray
,hipMemcpyToSymbol
,hipMemcpyAsync
- Args:
- pCopy (
HIP_MEMCPY3D
/object
) – IN: 3D memory copy parameters
- stream (
ihipStream_t
/object
) – IN: Stream to use
- pCopy (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuMemcpy3DAsync_v2(pCopy, stream)
hipDrvMemcpy3DAsync(pCopy, stream) Copies data between host and device asynchronously.
- See:
hipMemcpy
,hipMemcpy2DToArray
,hipMemcpy2D
,hipMemcpyFromArray
,hipMemcpyToSymbol
,hipMemcpyAsync
- Args:
- pCopy (
HIP_MEMCPY3D
/object
) – IN: 3D memory copy parameters
- stream (
ihipStream_t
/object
) – IN: Stream to use
- pCopy (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 specifieddevice
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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
: One of:hipErrorInvalidDevice
if deviceId or peerDeviceId are not valid devices
int
:Returns the peer access capability (0 or 1)
- cuda.cudart.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 specifieddevice
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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
: One of:hipErrorInvalidDevice
if deviceId or peerDeviceId are not valid devices
int
:Returns the peer access capability (0 or 1)
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):hipError_t
:hipErrorPeerAccessAlreadyEnabled
if peer access is already enabled for this device.
- cuda.cudart.cudaDeviceDisablePeerAccess(peerDeviceId)
hipDeviceDisablePeerAccess(int peerDeviceId) Disable direct access from current device’s virtual address space to memory allocations
- cuda.cudart.cuMemGetAddressRange(dptr)
hipMemGetAddressRange(dptr) Get information on memory allocations.
- See:
hipCtxCreate
,hipCtxDestroy
,hipCtxGetFlags
,hipCtxPopCurrent
,hipCtxGetCurrent
,hipCtxSetCurrent
,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Args:
- Returns:
A
tuple
of size 3 that contains (in that order):int
:Size of allocation
- cuda.cudart.cuMemGetAddressRange_v2(dptr)
hipMemGetAddressRange(dptr) Get information on memory allocations.
- See:
hipCtxCreate
,hipCtxDestroy
,hipCtxGetFlags
,hipCtxPopCurrent
,hipCtxGetCurrent
,hipCtxSetCurrent
,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Args:
- Returns:
A
tuple
of size 3 that contains (in that order):int
:Size of allocation
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuCtxCreate(flags, device)
hipCtxCreate(unsigned int flags, int device) Create a context and set it as current/default context
- See:
hipCtxDestroy
,hipCtxGetFlags
,hipCtxPopCurrent
,hipCtxGetCurrent
,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):ihipCtx_t
:Context to create
- cuda.cudart.cuCtxCreate_v2(flags, device)
hipCtxCreate(unsigned int flags, int device) Create a context and set it as current/default context
- See:
hipCtxDestroy
,hipCtxGetFlags
,hipCtxPopCurrent
,hipCtxGetCurrent
,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):ihipCtx_t
:Context to create
- cuda.cudart.cuCtxDestroy(ctx)
hipCtxDestroy(ctx) Destroy a HIP context.
- See:
hipCtxCreate
,hipCtxGetFlags
,hipCtxPopCurrent
,hipCtxGetCurrent
,`~.hipCtxSetCurrent`,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuCtxDestroy_v2(ctx)
hipCtxDestroy(ctx) Destroy a HIP context.
- See:
hipCtxCreate
,hipCtxGetFlags
,hipCtxPopCurrent
,hipCtxGetCurrent
,`~.hipCtxSetCurrent`,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuCtxPopCurrent()
hipCtxPopCurrent() Pop the current/default context and return the popped context.
- See:
hipCtxCreate
,hipCtxDestroy
,hipCtxGetFlags
,hipCtxSetCurrent
,hipCtxGetCurrent
,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tuple
of size 2 that contains (in that order):ihipCtx_t
:The current context to pop
- cuda.cudart.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 API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tuple
of size 2 that contains (in that order):ihipCtx_t
:The current context to pop
- cuda.cudart.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 API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuCtxSetCurrent(ctx)
hipCtxSetCurrent(ctx) Set the passed context as current/default
- See:
hipCtxCreate
,hipCtxDestroy
,hipCtxGetFlags
,hipCtxPopCurrent
,hipCtxGetCurrent
,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuCtxGetCurrent()
hipCtxGetCurrent() Get the handle of the current/ default context
- See:
hipCtxCreate
,hipCtxDestroy
,hipCtxGetDevice
,hipCtxGetFlags
,hipCtxPopCurrent
,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tuple
of size 2 that contains (in that order):ihipCtx_t
:The context to get as current
- cuda.cudart.cuCtxGetDevice()
hipCtxGetDevice() Get the handle of the device associated with current/default context
- See:
hipCtxCreate
,hipCtxDestroy
,hipCtxGetFlags
,hipCtxPopCurrent
,hipCtxGetCurrent
,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tuple
of size 2 that contains (in that order):int
:The device from the current context
- cuda.cudart.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 API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):int
:API version to get
- cuda.cudart.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 API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tuple
of size 2 that contains (in that order):hipFuncCache_t
:Cache configuration
- cuda.cudart.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 API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- cacheConfig (
hipFuncCache_t
) – IN: Cache configuration to set
- cacheConfig (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- config (
hipSharedMemConfig
) – IN: Shared memory configuration to set
- config (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tuple
of size 2 that contains (in that order):hipSharedMemConfig
:Pointer of shared memory configuration
- cuda.cudart.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 API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuCtxGetFlags()
hipCtxGetFlags() Return flags used for creating default context.
- See:
hipCtxCreate
,hipCtxDestroy
,hipCtxPopCurrent
,hipCtxGetCurrent
,hipCtxGetCurrent
,hipCtxSetCurrent
,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tuple
of size 2 that contains (in that order):int
:Pointer of flags
- cuda.cudart.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 API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuDevicePrimaryCtxGetState(dev)
hipDevicePrimaryCtxGetState(int dev) Get the state of the primary context.
- See:
hipCtxCreate
,hipCtxDestroy
,hipCtxGetFlags
,hipCtxPopCurrent
,hipCtxGetCurrent
,hipCtxSetCurrent
,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- dev (
int
) – IN: Device to get primary context flags for
- dev (
- Returns:
A
tuple
of size 3 that contains (in that order):
- cuda.cudart.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.- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- dev (
int
) – IN: Device which primary context is released
- dev (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- dev (
int
) – IN: Device which primary context is released
- dev (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuDevicePrimaryCtxRetain(dev)
hipDevicePrimaryCtxRetain(int dev) Retain the primary context on the GPU.
- See:
hipCtxCreate
,hipCtxDestroy
,hipCtxGetFlags
,hipCtxPopCurrent
,hipCtxGetCurrent
,hipCtxSetCurrent
,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- dev (
int
) – IN: Device which primary context is released
- dev (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipCtx_t
:Returned context handle of the new context
- cuda.cudart.cuDevicePrimaryCtxReset(dev)
hipDevicePrimaryCtxReset(int dev) Resets the primary context on the GPU.
- See:
hipCtxCreate
,hipCtxDestroy
,hipCtxGetFlags
,hipCtxPopCurrent
,hipCtxGetCurrent
,hipCtxSetCurrent
,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- dev (
int
) – IN: Device which primary context is reset
- dev (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuDevicePrimaryCtxReset_v2(dev)
hipDevicePrimaryCtxReset(int dev) Resets the primary context on the GPU.
- See:
hipCtxCreate
,hipCtxDestroy
,hipCtxGetFlags
,hipCtxPopCurrent
,hipCtxGetCurrent
,hipCtxSetCurrent
,hipCtxPushCurrent
,hipCtxSetCacheConfig
,hipCtxSynchronize
,hipCtxGetDevice
- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- dev (
int
) – IN: Device which primary context is reset
- dev (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.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
- module (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- module (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipModuleSymbol_t
:Pointer to function handle
- cuda.cudart.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
- attr (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- attrib (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorInvalidDeviceFunction
int
:Pointer to the value
- cuda.cudart.cudaGetFuncBySymbol(symbolPtr)
hipGetFuncBySymbol(symbolPtr) Gets pointer to device entry function that matches entry function symbolPtr.
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):ihipModuleSymbol_t
:Device entry function
- cuda.cudart.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
- hmod (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorNotInitialized
,hipErrorNotFound
,hipErrorInvalidValue
textureReference
:Pointer of texture reference
- cuda.cudart.cuModuleLoadData(image)
hipModuleLoadData(image) builds module from code object which resides in host memory. Image is pointer to that
location.
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
: hipSuccess, hipErrorNotInitialized, hipErrorOutOfMemory, hipErrorNotInitializedihipModule_t
:Retuned module
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
: hipSuccess, hipErrorNotInitialized, hipErrorOutOfMemory, hipErrorNotInitializedihipModule_t
:Retuned module
- cuda.cudart.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.
- f (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- f (
- Returns:
A
tuple
of size 1 that contains (in that order):hipError_t
:hipSuccess
,hipErrorDeinitialized
,hipErrorNotInitialized
,hipErrorInvalidContext
,hipErrorInvalidHandle
,hipErrorInvalidImage
,hipErrorInvalidValue
,hipErrorInvalidConfiguration
,hipErrorLaunchFailure
,hipErrorLaunchOutOfResources
,hipErrorLaunchTimeOut
,hipErrorCooperativeLaunchTooLarge
,hipErrorSharedObjectInitFailed
- cuda.cudart.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.
- launchParamsList (
- Returns:
A
tuple
of size 1 that contains (in that order):hipError_t
:hipSuccess
,hipErrorDeinitialized
,hipErrorNotInitialized
,hipErrorInvalidContext
,hipErrorInvalidHandle
,hipErrorInvalidImage
,hipErrorInvalidValue
,hipErrorInvalidConfiguration
,hipErrorInvalidResourceHandle
,hipErrorLaunchFailure
,hipErrorLaunchOutOfResources
,hipErrorLaunchTimeOut
,hipErrorCooperativeLaunchTooLarge
,hipErrorSharedObjectInitFailed
- cuda.cudart.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.
- f (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- launchParamsList (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- f (
- Returns:
A
tuple
of size 3 that contains (in that order):
- cuda.cudart.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)
- f (
- Returns:
A
tuple
of size 3 that contains (in that order):
- cuda.cudart.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 (
int
) – IN: Dynamic shared memory usage (in bytes) intended for each block
- f (
- Returns:
A
tuple
of size 2 that contains (in that order):int
:Returned occupancy
- cuda.cudart.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)
- f (
- Returns:
A
tuple
of size 2 that contains (in that order):int
:Returned occupancy
- cuda.cudart.cudaOccupancyMaxActiveBlocksPerMultiprocessor(f, blockSize, dynSharedMemPerBlk)
hipOccupancyMaxActiveBlocksPerMultiprocessor(f, int blockSize, unsigned long dynSharedMemPerBlk) Returns occupancy for a device function.
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidDeviceFunction
,hipErrorInvalidValue
int
:Returned occupancy
- cuda.cudart.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)
- f (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidDeviceFunction
,hipErrorInvalidValue
int
:Returned occupancy
- cuda.cudart.cudaOccupancyMaxPotentialBlockSize(f, dynSharedMemPerBlk, blockSizeLimit)
hipOccupancyMaxPotentialBlockSize(f, unsigned long dynSharedMemPerBlk, int blockSizeLimit) determine the grid and block sizes to achieves maximum occupancy for a kernel
- cuda.cudart.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.cudart.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.cudart.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.cudart.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.cudart.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.
- gridDim (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaSetupArgument(arg, size, offset)
hipSetupArgument(arg, unsigned long size, unsigned long offset) Set a kernel argument.
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaLaunch(func)
hipLaunchByPtr(func) Launch a kernel.
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- function_address (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuLaunchHostFunc(stream, fn, userData)
hipLaunchHostFunc(stream, fn, userData) Enqueues a host function call in a stream.
The host function to call in this API will be executed after the preceding operations in the stream are complete. The function is a blocking operation that blocks operations in the stream that follow it, until the function is returned. Event synchronization and internal callback functions make sure enqueued operations will execute in order, in the stream.
The host function must not make any HIP API calls. The host function is non-reentrant. It must not perform sychronization with any operation that may depend on other processing execution but is not enqueued to run earlier in the stream.
Host functions that are enqueued respectively in different non-blocking streams can run concurrently.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t
/object
) – IN: The stream to enqueue work in.
- fn (
hipHostFn_t
/object
) – IN: The function to call once enqueued preceeding operations are complete.
- userData (
Pointer
/object
) – IN: User-specified data to be passed to the function.
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaLaunchHostFunc(stream, fn, userData)
hipLaunchHostFunc(stream, fn, userData) Enqueues a host function call in a stream.
The host function to call in this API will be executed after the preceding operations in the stream are complete. The function is a blocking operation that blocks operations in the stream that follow it, until the function is returned. Event synchronization and internal callback functions make sure enqueued operations will execute in order, in the stream.
The host function must not make any HIP API calls. The host function is non-reentrant. It must not perform sychronization with any operation that may depend on other processing execution but is not enqueued to run earlier in the stream.
Host functions that are enqueued respectively in different non-blocking streams can run concurrently.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t
/object
) – IN: The stream to enqueue work in.
- fn (
hipHostFn_t
/object
) – IN: The function to call once enqueued preceeding operations are complete.
- userData (
Pointer
/object
) – IN: User-specified data to be passed to the function.
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- pCopy (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- pCopy (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- pResDesc (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
,hipErrorOutOfMemory
__hip_texture
:pointer to the texture object to create
- cuda.cudart.cudaDestroyTextureObject(textureObject)
hipDestroyTextureObject(textureObject) Destroys a texture object.
- cuda.cudart.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
- desc (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- pResDesc (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- pResViewDesc (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- pTexDesc (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- pResDesc (
- Returns:
A
tuple
of size 2 that contains (in that order):__hip_texture
:pointer to texture object to create
- cuda.cudart.cuTexObjectDestroy(texObject)
hipTexObjectDestroy(texObject) Destroys a texture object.
- cuda.cudart.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
- pResDesc (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- pResViewDesc (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- pTexDesc (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- desc (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorMemoryAllocation
hipMipmappedArray
:Pointer to allocated mipmapped array in device memory
- cuda.cudart.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
- mipmappedArray (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- mipmappedArray (
- Returns:
A
tuple
of size 2 that contains (in that order):hipArray
:Returned mipmap level HIP array
- cuda.cudart.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
- pMipmappedArrayDesc (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorNotSupported
,hipErrorInvalidValue
hipMipmappedArray
:pointer to mipmapped array
- cuda.cudart.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
- hMipmappedArray (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- hMipMappedArray (
- Returns:
A
tuple
of size 2 that contains (in that order):hipArray
:Pointer of array
- cuda.cudart.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
- tex (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaGetTextureReference(symbol)
hipGetTextureReference(symbol) Gets the texture reference related with the symbol.
- Warning:
This API is deprecated.
- Args:
- Returns:
A
tuple
of size 2 that contains (in that order):textureReference
:texture reference
- cuda.cudart.cuTexRefGetBorderColor(texRef)
hipTexRefGetBorderColor(texRef) Gets the border color used by a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference
/object
) – IN: Texture reference.
- texRef (
- Returns:
A
tuple
of size 2 that contains (in that order):float
:Returned Type and Value of RGBA color.
- cuda.cudart.cuTexRefGetArray(texRef)
hipTexRefGetArray(texRef) Gets the array bound to a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference
/object
) – IN: texture reference.
- texRef (
- Returns:
A
tuple
of size 2 that contains (in that order):hipArray
:Returned array.
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuTexRefSetArray(tex, array, flags)
hipTexRefSetArray(tex, array, unsigned int flags) Binds an array as a texture reference.
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- tex (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
int
:Offset in bytes.
- cuda.cudart.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.
- tex (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
int
:Offset in bytes.
- cuda.cudart.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.
- tex (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- texref (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
int
:Offset in bytes.
- cuda.cudart.cudaUnbindTexture(tex)
hipUnbindTexture(tex) Unbinds a texture.
- Warning:
This API is deprecated.
- Args:
- tex (
textureReference
/object
) – IN: Texture to unbind.
- tex (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuTexRefGetAddress(texRef)
hipTexRefGetAddress(texRef) Gets the address for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference
/object
) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.cuTexRefGetAddress_v2(texRef)
hipTexRefGetAddress(texRef) Gets the address for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference
/object
) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
hipTextureAddressMode
:Pointer of address mode.
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
hipTextureFilterMode
:Pointer of filter mode.
- cuda.cudart.cuTexRefGetFlags(texRef)
hipTexRefGetFlags(texRef) Gets flags for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference
/object
) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
int
:Pointer of flags.
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 3 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
hipArray_Format
:Pointer of the format.
int
:Pointer of number of channels.
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 2 that contains (in that order):int
:Pointer of the maximum anisotropy.
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 2 that contains (in that order):hipTextureFilterMode
:Pointer of the mipmap filter mode.
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 2 that contains (in that order):float
:Pointer of the mipmap level bias.
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 3 that contains (in that order):
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
hipMipmappedArray
:Pointer of the mipmapped array.
- cuda.cudart.cuTexRefSetAddress(texRef, dptr, bytes)
hipTexRefSetAddress(texRef, dptr, unsigned long bytes) Sets an bound address for a texture reference.
- cuda.cudart.cuTexRefSetAddress_v2(texRef, dptr, bytes)
hipTexRefSetAddress(texRef, dptr, unsigned long bytes) Sets an bound address for a texture reference.
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
float
:Pointer of border color.
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuTexRefSetMipmapLevelClamp(texRef, minMipMapLevelClamp, maxMipMapLevelClamp)
hipTexRefSetMipmapLevelClamp(texRef, float minMipMapLevelClamp, float maxMipMapLevelClamp) Sets mipmap level clamp for a texture reference.
- Warning:
This API is deprecated.
- Args:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- texRef (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuStreamBeginCaptureToGraph(stream, graph, dependencyData, numDependencies, mode)
hipStreamBeginCaptureToGraph(stream, graph, dependencyData, unsigned long numDependencies, mode) Begins graph capture on a stream to an existing graph.
- Warning:
param “const hipGraphEdgeData* dependencyData” is currently not supported and has to passed as nullptr. This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t
/object
) – IN: Stream to initiate capture.
- graph (
ihipGraph
/object
) – IN: Graph to capture into.
- dependencyData (
hipGraphEdgeData
/object
) – IN: Optional array of data associated with each dependency.
- numDependencies (
int
) – IN: Number of dependencies.
- mode (
hipStreamCaptureMode
) – IN: Controls the interaction of this capture sequence with other API calls that
are not safe.
- stream (
- Returns:
A
tuple
of size 2 that contains (in that order):hipGraphNode
:Dependencies of the first node captured in the stream. Can be NULL if
numDependencies is 0.
- cuda.cudart.cudaStreamBeginCaptureToGraph(stream, graph, dependencyData, numDependencies, mode)
hipStreamBeginCaptureToGraph(stream, graph, dependencyData, unsigned long numDependencies, mode) Begins graph capture on a stream to an existing graph.
- Warning:
param “const hipGraphEdgeData* dependencyData” is currently not supported and has to passed as nullptr. This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t
/object
) – IN: Stream to initiate capture.
- graph (
ihipGraph
/object
) – IN: Graph to capture into.
- dependencyData (
hipGraphEdgeData
/object
) – IN: Optional array of data associated with each dependency.
- numDependencies (
int
) – IN: Number of dependencies.
- mode (
hipStreamCaptureMode
) – IN: Controls the interaction of this capture sequence with other API calls that
are not safe.
- stream (
- Returns:
A
tuple
of size 2 that contains (in that order):hipGraphNode
:Dependencies of the first node captured in the stream. Can be NULL if
numDependencies is 0.
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipGraph
:returns the graph captured.
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipGraph
:returns the graph captured.
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 3 that contains (in that order):hipStreamCaptureStatus
:returns current status of the capture.
int
:unique ID of the capture.
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 3 that contains (in that order):hipStreamCaptureStatus
:returns current status of the capture.
int
:unique ID of the capture.
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 5 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorStreamCaptureImplicit
hipStreamCaptureStatus
:returns current status of the capture.
int
:unique ID of the capture.
ihipGraph
:returns the graph being captured into.
int
:returns size of the array returned in dependencies_out.
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorStreamCaptureImplicit
hipStreamCaptureStatus
:returns current status of the capture.
- cuda.cudart.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.
- stream (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorStreamCaptureImplicit
hipStreamCaptureStatus
:returns current status of the capture.
- cuda.cudart.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
) – IN: Flag how to update dependency set. Should be one of value in enum
hipStreamUpdateCaptureDependenciesFlags
- stream (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorIllegalState
hipGraphNode
:pointer to an array of nodes to Add/Replace.
- cuda.cudart.cudaStreamUpdateCaptureDependencies(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
) – IN: Flag how to update dependency set. Should be one of value in enum
hipStreamUpdateCaptureDependenciesFlags
- stream (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorIllegalState
hipGraphNode
:pointer to an array of nodes to Add/Replace.
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- flags (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorMemoryAllocation
ihipGraph
:pointer to graph to create.
- cuda.cudart.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.
- flags (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorMemoryAllocation
ihipGraph
:pointer to graph to create.
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph nodes with dependenties to add from.
hipGraphNode
:pointer to the graph nodes to add dependenties to.
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph nodes with dependenties to add from.
hipGraphNode
:pointer to the graph nodes to add dependenties to.
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:Array of nodes that provide the dependencies.
hipGraphNode
:Array of dependent nodes.
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:Array of nodes that provide the dependencies.
hipGraphNode
:Array of dependent nodes.
- cuda.cudart.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:
- Returns:
A
tuple
of size 4 that contains (in that order):hipGraphNode
:pointer to the graph nodes to return edge endpoints.
hipGraphNode
:pointer to the graph nodes to return edge endpoints.
int
:returns number of edges.
- cuda.cudart.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:
- Returns:
A
tuple
of size 4 that contains (in that order):hipGraphNode
:pointer to the graph nodes to return edge endpoints.
hipGraphNode
:pointer to the graph nodes to return edge endpoints.
int
:returns number of edges.
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to return the graph nodes.
int
:returns number of graph nodes.
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to return the graph nodes.
int
:returns number of graph nodes.
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to return the graph’s root nodes.
int
:returns the number of graph’s root nodes.
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to return the graph’s root nodes.
int
:returns the number of graph’s root nodes.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to to return the dependencies.
int
:returns the number of graph node dependencies.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to to return the dependencies.
int
:returns the number of graph node dependencies.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to return the graph dependent nodes.
int
:returns the number of graph node dependent nodes.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to return the graph dependent nodes.
int
:returns the number of graph node dependent nodes.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 2 that contains (in that order):hipGraphNodeType
:pointer to the return the type
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 2 that contains (in that order):hipGraphNodeType
:pointer to the return the type
- cuda.cudart.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
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorMemoryAllocation
ihipGraph
:Returns newly created cloned graph.
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorMemoryAllocation
ihipGraph
:Returns newly created cloned graph.
- cuda.cudart.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.
- originalNode (
- Returns:
A
tuple
of size 2 that contains (in that order):hipGraphNode
:Returns the cloned node.
- cuda.cudart.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.
- originalNode (
- Returns:
A
tuple
of size 2 that contains (in that order):hipGraphNode
:Returns the cloned node.
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphExec
:pointer to instantiated executable graph that is created.
hipGraphNode
:pointer to error node in case error occured in graph instantiation,
it could modify the correponding node.
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphExec
:pointer to instantiated executable graph that is created.
hipGraphNode
:pointer to error node in case error occured in graph instantiation,
it could modify the correponding node.
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphExec
:pointer to instantiated executable graph that is created.
hipGraphNode
:pointer to error node in case error occured in graph instantiation,
it could modify the correponding node.
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipGraphExec
:pointer to instantiated executable graph that is created.
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipGraphExec
:pointer to instantiated executable graph that is created.
- cuda.cudart.cuGraphInstantiateWithParams(graph, instantiateParams)
hipGraphInstantiateWithParams(graph, instantiateParams) 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.
- instantiateParams (
hipGraphInstantiateParams
/object
) – IN: Graph Instantiate Params
- graph (
- Returns:
A
tuple
of size 2 that contains (in that order):hipGraphExec
:pointer to instantiated executable graph that is created.
- cuda.cudart.cudaGraphInstantiateWithParams(graph, instantiateParams)
hipGraphInstantiateWithParams(graph, instantiateParams) 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.
- instantiateParams (
hipGraphInstantiateParams
/object
) – IN: Graph Instantiate Params
- graph (
- Returns:
A
tuple
of size 2 that contains (in that order):hipGraphExec
:pointer to instantiated executable graph that is created.
- cuda.cudart.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.
- graphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- graphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- graphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- graphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuGraphAddNode(graph, numDependencies, nodeParams)
hipGraphAddNode(graph, unsigned long numDependencies, nodeParams) 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.
- nodeParams (
hipGraphNodeParams
/object
) – IN: pointer to the parameters for the node.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to graph node to create.
hipGraphNode
:pointer to the dependencies on the kernel execution node.
- cuda.cudart.cudaGraphAddNode(graph, numDependencies, nodeParams)
hipGraphAddNode(graph, unsigned long numDependencies, nodeParams) 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.
- nodeParams (
hipGraphNodeParams
/object
) – IN: pointer to the parameters for the node.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to graph node to create.
hipGraphNode
:pointer to the dependencies on the kernel execution node.
- cuda.cudart.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.
- graphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- graphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:node which caused the permissibility check to forbid the update.
hipGraphExecUpdateResult
:Whether the graph update was permitted.
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:node which caused the permissibility check to forbid the update.
hipGraphExecUpdateResult
:Whether the graph update was permitted.
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorInvalidDeviceFunction
hipGraphNode
:pointer to graph node to create.
hipGraphNode
:pointer to the dependencies on the kernel execution node.
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorInvalidDeviceFunction
hipGraphNode
:pointer to graph node to create.
hipGraphNode
:pointer to the dependencies on the kernel execution node.
- cuda.cudart.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
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to graph node to create.
hipGraphNode
:const pointer to the dependencies on the memcpy execution node.
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to graph node to create.
hipGraphNode
:const pointer to the dependencies on the memcpy execution node.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 (
hipLaunchAttributeID
) – IN: the attribute node is set to.
- value (
hipLaunchAttributeValue
/object
) – IN: const pointer to the parameters.
- hNode (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 (
hipLaunchAttributeID
) – IN: the attribute node is set to.
- value (
hipLaunchAttributeValue
/object
) – IN: const pointer to the parameters.
- hNode (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 (
hipLaunchAttributeID
) – IN: the attribute node is set to.
- value (
hipLaunchAttributeValue
/object
) – IN: const pointer to the parameters.
- hNode (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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 (
hipLaunchAttributeID
) – IN: the attribute node is set to.
- value (
hipLaunchAttributeValue
/object
) – IN: const pointer to the parameters.
- hNode (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to graph node to create.
hipGraphNode
:const pointer to the dependencies on the memcpy execution node.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to graph node to create.
hipGraphNode
:const pointer to the dependencies on the memcpy execution node.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to graph node to create.
hipGraphNode
:const pointer to the dependencies on the memcpy execution node.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create.
hipGraphNode
:const pointer to the dependencies on the memset execution node.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create.
hipGraphNode
:const pointer to the dependencies on the memset execution node.
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create.
hipGraphNode
:const pointer to the dependencies on the memset execution node.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create.
hipGraphNode
:const pointer to the dependencies on the memset execution node.
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create.
hipGraphNode
:const pointer to the dependencies on the memset execution node.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipGraph
:pointer to get the graph.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipGraph
:pointer to get the graph.
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create and add to the graph.
hipGraphNode
:const pointer to the node dependenties.
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create and add to the graph.
hipGraphNode
:const pointer to the node dependenties.
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create and add to the graph.
hipGraphNode
:const pointer to the node dependenties.
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create and add to the graph.
hipGraphNode
:const pointer to the node dependenties.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipEvent_t
:Pointer to return the event.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipEvent_t
:Pointer to return the event.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create and add to the graph.
hipGraphNode
:const pointer to the node dependenties.
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create and add to the graph.
hipGraphNode
:const pointer to the node dependenties.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipEvent_t
:Pointer to return the event.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 2 that contains (in that order):ihipEvent_t
:Pointer to return the event.
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:Pointer to the graph node to create and add to the graph
hipGraphNode
:Const pointer to the node dependenties
- cuda.cudart.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
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:Pointer to the graph node to create and add to the graph
hipGraphNode
:Const pointer to the node dependenties
- cuda.cudart.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
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:Pointer to the graph node to create and add to the graph
hipGraphNode
:Const pointer to the node dependenties
- cuda.cudart.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
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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
- node (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- device (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- device (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- device (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- device (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuDeviceGraphMemTrim(device)
hipDeviceGraphMemTrim(int device) Free unused memory on specific device used for graph back to OS.
- cuda.cudart.cudaDeviceGraphMemTrim(device)
hipDeviceGraphMemTrim(int device) Free unused memory on specific device used for graph back to OS.
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipUserObject
:pointer to instace of userobj.
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipUserObject
:pointer to instace of userobj.
- cuda.cudart.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.
- object (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- object (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- object (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- object (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- graph (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hSrc (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hSrc (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 2 that contains (in that order):int
:Location to return the enabled status of the node.
- cuda.cudart.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.
- hGraphExec (
- Returns:
A
tuple
of size 2 that contains (in that order):int
:Location to return the enabled status of the node.
- cuda.cudart.cuGraphAddExternalSemaphoresWaitNode(graph, numDependencies, nodeParams)
hipGraphAddExternalSemaphoresWaitNode(graph, unsigned long numDependencies, nodeParams) Creates a external semaphor 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: instance of the graph to add the created node.
- numDependencies (
int
) – IN: the number of the dependencies.
- nodeParams (
hipExternalSemaphoreWaitNodeParams
/object
) – IN: -pointer to the parameters.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create.
hipGraphNode
:const pointer to the dependencies on the memset execution node.
- cuda.cudart.cudaGraphAddExternalSemaphoresWaitNode(graph, numDependencies, nodeParams)
hipGraphAddExternalSemaphoresWaitNode(graph, unsigned long numDependencies, nodeParams) Creates a external semaphor 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: instance of the graph to add the created node.
- numDependencies (
int
) – IN: the number of the dependencies.
- nodeParams (
hipExternalSemaphoreWaitNodeParams
/object
) – IN: -pointer to the parameters.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create.
hipGraphNode
:const pointer to the dependencies on the memset execution node.
- cuda.cudart.cuGraphAddExternalSemaphoresSignalNode(graph, numDependencies, nodeParams)
hipGraphAddExternalSemaphoresSignalNode(graph, unsigned long numDependencies, nodeParams) Creates a external semaphor signal 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.
- nodeParams (
hipExternalSemaphoreSignalNodeParams
/object
) – IN: -pointer to the parameters.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create.
hipGraphNode
:const pointer to the dependencies on the memset execution node.
- cuda.cudart.cudaGraphAddExternalSemaphoresSignalNode(graph, numDependencies, nodeParams)
hipGraphAddExternalSemaphoresSignalNode(graph, unsigned long numDependencies, nodeParams) Creates a external semaphor signal 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.
- nodeParams (
hipExternalSemaphoreSignalNodeParams
/object
) – IN: -pointer to the parameters.
- graph (
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to the graph node to create.
hipGraphNode
:const pointer to the dependencies on the memset execution node.
- cuda.cudart.cuGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams)
hipGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) Updates node parameters in the external semaphore signal 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:
- hNode (
hipGraphNode
/object
) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreSignalNodeParams
/object
) – IN: Pointer to the params to be set.
- hNode (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams)
hipGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) Updates node parameters in the external semaphore signal 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:
- hNode (
hipGraphNode
/object
) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreSignalNodeParams
/object
) – IN: Pointer to the params to be set.
- hNode (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams)
hipGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) Updates node parameters in the external semaphore 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:
- hNode (
hipGraphNode
/object
) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreWaitNodeParams
/object
) – IN: Pointer to the params to be set.
- hNode (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams)
hipGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) Updates node parameters in the external semaphore 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:
- hNode (
hipGraphNode
/object
) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreWaitNodeParams
/object
) – IN: Pointer to the params to be set.
- hNode (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out)
hipGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) Returns external semaphore signal node params.
- 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: Node from the graph from which graphExec was instantiated.
- params_out (
hipExternalSemaphoreSignalNodeParams
/object
) – OUT: Pointer to params.
- hNode (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out)
hipGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) Returns external semaphore signal node params.
- 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: Node from the graph from which graphExec was instantiated.
- params_out (
hipExternalSemaphoreSignalNodeParams
/object
) – OUT: Pointer to params.
- hNode (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out)
hipGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) Returns external semaphore wait node params.
- 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: Node from the graph from which graphExec was instantiated.
- params_out (
hipExternalSemaphoreWaitNodeParams
/object
) – OUT: Pointer to params.
- hNode (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out)
hipGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) Returns external semaphore wait node params.
- 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: Node from the graph from which graphExec was instantiated.
- params_out (
hipExternalSemaphoreWaitNodeParams
/object
) – OUT: Pointer to params.
- hNode (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams)
hipGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) Updates node parameters in the external semaphore signal 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: The executable graph in which to set the specified node.
- hNode (
hipGraphNode
/object
) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreSignalNodeParams
/object
) – IN: Pointer to the params to be set.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams)
hipGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) Updates node parameters in the external semaphore signal 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: The executable graph in which to set the specified node.
- hNode (
hipGraphNode
/object
) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreSignalNodeParams
/object
) – IN: Pointer to the params to be set.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams)
hipGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) Updates node parameters in the external semaphore wait 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: The executable graph in which to set the specified node.
- hNode (
hipGraphNode
/object
) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreWaitNodeParams
/object
) – IN: Pointer to the params to be set.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams)
hipGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) Updates node parameters in the external semaphore wait 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: The executable graph in which to set the specified node.
- hNode (
hipGraphNode
/object
) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreWaitNodeParams
/object
) – IN: Pointer to the params to be set.
- hGraphExec (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.cuGraphAddMemsetNode(hGraph, numDependencies, memsetParams, ctx)
hipDrvGraphAddMemsetNode(hGraph, unsigned long numDependencies, memsetParams, ctx) 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:
- Returns:
A
tuple
of size 3 that contains (in that order):hipGraphNode
:pointer to graph node to create.
hipGraphNode
:const pointer to the dependencies on the memset execution node.
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):
- cuda.cudart.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.
- size (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
ihipMemGenericAllocationHandle
:value of the returned handle.
- cuda.cudart.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.
- shareableHandle (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- location (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
int
:flags for this location.
- cuda.cudart.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.
- prop (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
int
:returned granularity.
- cuda.cudart.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.
- prop (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- osHandle (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
ihipMemGenericAllocationHandle
:returned value.
- cuda.cudart.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.
- ptr (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- mapInfoList (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- handle (
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorNotSupported
ihipMemGenericAllocationHandle
:handle representing addr.
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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:
- Returns:
A
tuple
of size 1 that contains (in that order):
- cuda.cudart.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.
- count (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorUnknown
,hipErrorInvalidResourceHandle
_hipGraphicsResource
:Pointer of resources to map.
- cuda.cudart.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.
- count (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorUnknown
,hipErrorInvalidResourceHandle
_hipGraphicsResource
:Pointer of resources to map.
- cuda.cudart.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.
- cuda.cudart.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.
- cuda.cudart.cuGraphicsResourceGetMappedPointer(resource)
hipGraphicsResourceGetMappedPointer(resource) Gets device accessible address of a graphics resource.
- cuda.cudart.cuGraphicsResourceGetMappedPointer_v2(resource)
hipGraphicsResourceGetMappedPointer(resource) Gets device accessible address of a graphics resource.
- cuda.cudart.cudaGraphicsResourceGetMappedPointer(resource)
hipGraphicsResourceGetMappedPointer(resource) Gets device accessible address of a graphics resource.
- cuda.cudart.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.
- count (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorUnknown
,hipErrorContextIsDestroyed
_hipGraphicsResource
:Pointer of resources to unmap.
- cuda.cudart.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.
- count (
- Returns:
A
tuple
of size 2 that contains (in that order):hipError_t
:hipSuccess
,hipErrorInvalidValue
,hipErrorUnknown
,hipErrorContextIsDestroyed
_hipGraphicsResource
:Pointer of resources to unmap.
- cuda.cudart.cuGraphicsUnregisterResource(resource)
hipGraphicsUnregisterResource(resource) Unregisters a graphics resource.
- cuda.cudart.cudaGraphicsUnregisterResource(resource)
hipGraphicsUnregisterResource(resource) Unregisters a graphics resource.
- cuda.cudart.cudaCreateSurfaceObject(pResDesc)
hipCreateSurfaceObject(pResDesc) Create a surface object.
- Args:
- pResDesc (
hipResourceDesc
/object
) – IN: Pointer of suface object descriptor.
- pResDesc (
- Returns:
A
tuple
of size 2 that contains (in that order):__hip_surface
:Pointer of surface object to be created.
- cuda.cudart.cudaDestroySurfaceObject(surfaceObject)
hipDestroySurfaceObject(surfaceObject) Destroy a surface object.
- class cuda.cudart.cublasDataType_t(value)
Bases:
_hipDataType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaDataType(value)
Bases:
_hipDataType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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.cudart.cudaDataType_t(value)
Bases:
_hipDataType__Base
An enumeration.
- conjugate()
Returns self, the complex conjugate of any int.
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- to_bytes(length, byteorder, *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- from_bytes(byteorder, *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.
- signed
Indicates whether two’s complement is used to represent the integer.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- real
the real part of a complex number
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- denominator
the denominator of a rational number in lowest terms
- 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