cuda.cuda#
- Attributes:
- HIP_PYTHON (
bool): True.- hip_python_mod (module):
A reference to the module
hip.hip.- hip (module):
A reference to the module
hip.hip.- CU_TRSA_OVERRIDE_FORMAT:
Alias of
HIP_TRSA_OVERRIDE_FORMAT- CU_TRSF_READ_AS_INTEGER:
Alias of
HIP_TRSF_READ_AS_INTEGER- CU_TRSF_NORMALIZED_COORDINATES:
Alias of
HIP_TRSF_NORMALIZED_COORDINATES- CU_TRSF_SRGB:
Alias of
HIP_TRSF_SRGB- cudaTextureType1D:
Alias of
hipTextureType1D- cudaTextureType2D:
Alias of
hipTextureType2D- cudaTextureType3D:
Alias of
hipTextureType3D- cudaTextureTypeCubemap:
Alias of
hipTextureTypeCubemap- cudaTextureType1DLayered:
Alias of
hipTextureType1DLayered- cudaTextureType2DLayered:
Alias of
hipTextureType2DLayered- cudaTextureTypeCubemapLayered:
Alias of
hipTextureTypeCubemapLayered- CU_LAUNCH_PARAM_BUFFER_POINTER:
Alias of
HIP_LAUNCH_PARAM_BUFFER_POINTER- CU_LAUNCH_PARAM_BUFFER_SIZE:
Alias of
HIP_LAUNCH_PARAM_BUFFER_SIZE- CU_LAUNCH_PARAM_END:
Alias of
HIP_LAUNCH_PARAM_END- CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS:
Alias of
hipIpcMemLazyEnablePeerAccess- cudaIpcMemLazyEnablePeerAccess:
Alias of
hipIpcMemLazyEnablePeerAccess- CUDA_IPC_HANDLE_SIZE:
Alias of
HIP_IPC_HANDLE_SIZE- CU_IPC_HANDLE_SIZE:
Alias of
HIP_IPC_HANDLE_SIZE- CU_STREAM_DEFAULT:
Alias of
hipStreamDefault- cudaStreamDefault:
Alias of
hipStreamDefault- CU_STREAM_NON_BLOCKING:
Alias of
hipStreamNonBlocking- cudaStreamNonBlocking:
Alias of
hipStreamNonBlocking- CU_EVENT_DEFAULT:
Alias of
hipEventDefault- cudaEventDefault:
Alias of
hipEventDefault- CU_EVENT_BLOCKING_SYNC:
Alias of
hipEventBlockingSync- cudaEventBlockingSync:
Alias of
hipEventBlockingSync- CU_EVENT_DISABLE_TIMING:
Alias of
hipEventDisableTiming- cudaEventDisableTiming:
Alias of
hipEventDisableTiming- CU_EVENT_INTERPROCESS:
Alias of
hipEventInterprocess- cudaEventInterprocess:
Alias of
hipEventInterprocess- cudaHostAllocDefault:
Alias of
hipHostMallocDefault- CU_MEMHOSTALLOC_PORTABLE:
Alias of
hipHostMallocPortable- cudaHostAllocPortable:
Alias of
hipHostMallocPortable- CU_MEMHOSTALLOC_DEVICEMAP:
Alias of
hipHostMallocMapped- cudaHostAllocMapped:
Alias of
hipHostMallocMapped- CU_MEMHOSTALLOC_WRITECOMBINED:
Alias of
hipHostMallocWriteCombined- cudaHostAllocWriteCombined:
Alias of
hipHostMallocWriteCombined- CU_MEM_ATTACH_GLOBAL:
Alias of
hipMemAttachGlobal- cudaMemAttachGlobal:
Alias of
hipMemAttachGlobal- CU_MEM_ATTACH_HOST:
Alias of
hipMemAttachHost- cudaMemAttachHost:
Alias of
hipMemAttachHost- CU_MEM_ATTACH_SINGLE:
Alias of
hipMemAttachSingle- cudaMemAttachSingle:
Alias of
hipMemAttachSingle- cudaHostRegisterDefault:
Alias of
hipHostRegisterDefault- CU_MEMHOSTREGISTER_PORTABLE:
Alias of
hipHostRegisterPortable- cudaHostRegisterPortable:
Alias of
hipHostRegisterPortable- CU_MEMHOSTREGISTER_DEVICEMAP:
Alias of
hipHostRegisterMapped- cudaHostRegisterMapped:
Alias of
hipHostRegisterMapped- CU_MEMHOSTREGISTER_IOMEMORY:
Alias of
hipHostRegisterIoMemory- cudaHostRegisterIoMemory:
Alias of
hipHostRegisterIoMemory- CU_CTX_SCHED_AUTO:
Alias of
hipDeviceScheduleAuto- cudaDeviceScheduleAuto:
Alias of
hipDeviceScheduleAuto- CU_CTX_SCHED_SPIN:
Alias of
hipDeviceScheduleSpin- cudaDeviceScheduleSpin:
Alias of
hipDeviceScheduleSpin- CU_CTX_SCHED_YIELD:
Alias of
hipDeviceScheduleYield- cudaDeviceScheduleYield:
Alias of
hipDeviceScheduleYield- CU_CTX_BLOCKING_SYNC:
Alias of
hipDeviceScheduleBlockingSync- CU_CTX_SCHED_BLOCKING_SYNC:
Alias of
hipDeviceScheduleBlockingSync- cudaDeviceBlockingSync:
Alias of
hipDeviceScheduleBlockingSync- cudaDeviceScheduleBlockingSync:
Alias of
hipDeviceScheduleBlockingSync- CU_CTX_SCHED_MASK:
Alias of
hipDeviceScheduleMask- cudaDeviceScheduleMask:
Alias of
hipDeviceScheduleMask- CU_CTX_MAP_HOST:
Alias of
hipDeviceMapHost- cudaDeviceMapHost:
Alias of
hipDeviceMapHost- CU_CTX_LMEM_RESIZE_TO_MAX:
Alias of
hipDeviceLmemResizeToMax- cudaDeviceLmemResizeToMax:
Alias of
hipDeviceLmemResizeToMax- cudaArrayDefault:
Alias of
hipArrayDefault- CUDA_ARRAY3D_LAYERED:
Alias of
hipArrayLayered- cudaArrayLayered:
Alias of
hipArrayLayered- CUDA_ARRAY3D_SURFACE_LDST:
Alias of
hipArraySurfaceLoadStore- cudaArraySurfaceLoadStore:
Alias of
hipArraySurfaceLoadStore- CUDA_ARRAY3D_CUBEMAP:
Alias of
hipArrayCubemap- cudaArrayCubemap:
Alias of
hipArrayCubemap- CUDA_ARRAY3D_TEXTURE_GATHER:
Alias of
hipArrayTextureGather- cudaArrayTextureGather:
Alias of
hipArrayTextureGather- CU_OCCUPANCY_DEFAULT:
Alias of
hipOccupancyDefault- cudaOccupancyDefault:
Alias of
hipOccupancyDefault- CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_PRE_LAUNCH_SYNC:
Alias of
hipCooperativeLaunchMultiDeviceNoPreSync- cudaCooperativeLaunchMultiDeviceNoPreSync:
Alias of
hipCooperativeLaunchMultiDeviceNoPreSync- CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_POST_LAUNCH_SYNC:
Alias of
hipCooperativeLaunchMultiDeviceNoPostSync- cudaCooperativeLaunchMultiDeviceNoPostSync:
Alias of
hipCooperativeLaunchMultiDeviceNoPostSync- CU_DEVICE_CPU:
Alias of
hipCpuDeviceId- cudaCpuDeviceId:
Alias of
hipCpuDeviceId- CU_DEVICE_INVALID:
Alias of
hipInvalidDeviceId- cudaInvalidDeviceId:
Alias of
hipInvalidDeviceId- CU_STREAM_WAIT_VALUE_GEQ:
Alias of
hipStreamWaitValueGte- CU_STREAM_WAIT_VALUE_EQ:
Alias of
hipStreamWaitValueEq- CU_STREAM_WAIT_VALUE_AND:
Alias of
hipStreamWaitValueAnd- CU_STREAM_WAIT_VALUE_NOR:
Alias of
hipStreamWaitValueNor- CUuuid:
Alias of
hipUUID- cudaUUID_t:
Alias of
hipUUID- HIP_PYTHON_CUmemorytype_HALLUCINATE:
Make
CUmemorytypehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaMemoryTypehallucinate values for non-existing 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
CUresulthallucinate values for non-existing 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
cudaErrorhallucinate values for non-existing 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_enumhallucinate values for non-existing 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_thallucinate values for non-existing 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_attributehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaDeviceAttrhallucinate values for non-existing 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_CUcomputemode_HALLUCINATE:
Make
CUcomputemodehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaComputeModehallucinate values for non-existing 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
CUflushGPUDirectRDMAWritesOptionshallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaFlushGPUDirectRDMAWritesOptionshallucinate values for non-existing 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
CUGPUDirectRDMAWritesOrderinghallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaGPUDirectRDMAWritesOrderinghallucinate values for non-existing 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
cudaChannelFormatKindhallucinate values for non-existing 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_formathallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaResourceTypehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
CUresourcetypehallucinate values for non-existing 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_enumhallucinate values for non-existing 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_modehallucinate values for non-existing 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_enumhallucinate values for non-existing 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_modehallucinate values for non-existing 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
cudaResourceViewFormathallucinate values for non-existing 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_enumhallucinate values for non-existing 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
CUresourceViewFormathallucinate values for non-existing 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
cudaMemcpyKindhallucinate values for non-existing 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_attributehallucinate values for non-existing 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_enumhallucinate values for non-existing 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_attributehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaTextureAddressModehallucinate values for non-existing 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
cudaTextureFilterModehallucinate values for non-existing 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
cudaTextureReadModehallucinate values for non-existing 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
cudaSurfaceBoundaryModehallucinate values for non-existing 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_P2PAttributehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaDeviceP2PAttrhallucinate values for non-existing 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
CUlimithallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaLimithallucinate values for non-existing 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_advisehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaMemoryAdvisehallucinate values for non-existing 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_attributehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaMemRangeAttributehallucinate values for non-existing 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_attributehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaMemPoolAttrhallucinate values for non-existing 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
CUmemLocationTypehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaMemLocationTypehallucinate values for non-existing 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_flagshallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaMemAccessFlagshallucinate values for non-existing 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
CUmemAllocationTypehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaMemAllocationTypehallucinate values for non-existing 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
CUmemAllocationHandleTypehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaMemAllocationHandleTypehallucinate values for non-existing 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_optionhallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaFuncAttributehallucinate values for non-existing 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_cachehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaFuncCachehallucinate values for non-existing 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
CUsharedconfighallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaSharedMemConfighallucinate values for non-existing 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_enumhallucinate values for non-existing 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
CUexternalMemoryHandleTypehallucinate values for non-existing 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
cudaExternalMemoryHandleTypehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
CUexternalSemaphoreHandleTypehallucinate values for non-existing 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
cudaExternalSemaphoreHandleTypehallucinate values for non-existing 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
CUgraphicsRegisterFlagshallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaGraphicsRegisterFlagshallucinate values for non-existing 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
CUgraphNodeTypehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaGraphNodeTypehallucinate values for non-existing 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_CUkernelNodeAttrID_HALLUCINATE:
Make
CUkernelNodeAttrIDhallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.Default value can be set/unset via environment variable
HIP_PYTHON_CUkernelNodeAttrID_HALLUCINATE.- HIP_PYTHON_CUkernelNodeAttrID_enum_HALLUCINATE:
Make
CUkernelNodeAttrID_enumhallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.Default value can be set/unset via environment variable
HIP_PYTHON_CUkernelNodeAttrID_enum_HALLUCINATE.- HIP_PYTHON_cudaKernelNodeAttrID_HALLUCINATE:
Make
cudaKernelNodeAttrIDhallucinate values for non-existing enum constants. Disabled by default if default is not modified via environment variable.Default value can be set/unset via environment variable
HIP_PYTHON_cudaKernelNodeAttrID_HALLUCINATE.- HIP_PYTHON_CUaccessProperty_HALLUCINATE:
Make
CUaccessPropertyhallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaAccessPropertyhallucinate values for non-existing 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_CUgraphExecUpdateResult_HALLUCINATE:
Make
CUgraphExecUpdateResulthallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaGraphExecUpdateResulthallucinate values for non-existing 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
CUstreamCaptureModehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaStreamCaptureModehallucinate values for non-existing 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
CUstreamCaptureStatushallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaStreamCaptureStatushallucinate values for non-existing 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_flagshallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaStreamUpdateCaptureDependenciesFlagshallucinate values for non-existing 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_attributehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaGraphMemAttributeTypehallucinate values for non-existing 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_flagshallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaUserObjectFlagshallucinate values for non-existing 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_flagshallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaUserObjectRetainFlagshallucinate values for non-existing 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_flagshallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaGraphInstantiateFlagshallucinate values for non-existing 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_flagshallucinate values for non-existing 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_enumhallucinate values for non-existing 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
cudaGraphDebugDotFlagshallucinate values for non-existing 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.- CUmemGenericAllocationHandle:
Alias of
hipMemGenericAllocationHandle_t- CUmemGenericAllocationHandle_v1:
Alias of
hipMemGenericAllocationHandle_t- HIP_PYTHON_CUmemAllocationGranularity_flags_HALLUCINATE:
Make
CUmemAllocationGranularity_flagshallucinate values for non-existing 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_enumhallucinate values for non-existing 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
CUmemHandleTypehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
CUmemOperationTypehallucinate values for non-existing 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_enumhallucinate values for non-existing 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
CUarraySparseSubresourceTypehallucinate values for non-existing 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_enumhallucinate values for non-existing 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.- cuInit:
Alias of
hipInit- cuDriverGetVersion:
Alias of
hipDriverGetVersion- cudaDriverGetVersion:
Alias of
hipDriverGetVersion- cudaRuntimeGetVersion:
Alias of
hipRuntimeGetVersion- cuDeviceGet:
Alias of
hipDeviceGet- cuDeviceComputeCapability:
Alias of
hipDeviceComputeCapability- cuDeviceGetName:
Alias of
hipDeviceGetName- cuDeviceGetUuid:
Alias of
hipDeviceGetUuid- cuDeviceGetUuid_v2:
Alias of
hipDeviceGetUuid- cudaDeviceGetP2PAttribute:
Alias of
hipDeviceGetP2PAttribute- cuDeviceGetP2PAttribute:
Alias of
hipDeviceGetP2PAttribute- cudaDeviceGetPCIBusId:
Alias of
hipDeviceGetPCIBusId- cuDeviceGetPCIBusId:
Alias of
hipDeviceGetPCIBusId- cudaDeviceGetByPCIBusId:
Alias of
hipDeviceGetByPCIBusId- cuDeviceGetByPCIBusId:
Alias of
hipDeviceGetByPCIBusId- cuDeviceTotalMem:
Alias of
hipDeviceTotalMem- cuDeviceTotalMem_v2:
Alias of
hipDeviceTotalMem- cudaDeviceSynchronize:
Alias of
hipDeviceSynchronize- cudaThreadSynchronize:
Alias of
hipDeviceSynchronize- cudaDeviceReset:
Alias of
hipDeviceReset- cudaThreadExit:
Alias of
hipDeviceReset- cudaSetDevice:
Alias of
hipSetDevice- cudaGetDevice:
Alias of
hipGetDevice- cuDeviceGetCount:
Alias of
hipGetDeviceCount- cudaGetDeviceCount:
Alias of
hipGetDeviceCount- cuDeviceGetAttribute:
Alias of
hipDeviceGetAttribute- cudaDeviceGetAttribute:
Alias of
hipDeviceGetAttribute- cuDeviceGetDefaultMemPool:
Alias of
hipDeviceGetDefaultMemPool- cudaDeviceGetDefaultMemPool:
Alias of
hipDeviceGetDefaultMemPool- cuDeviceSetMemPool:
Alias of
hipDeviceSetMemPool- cudaDeviceSetMemPool:
Alias of
hipDeviceSetMemPool- cuDeviceGetMemPool:
Alias of
hipDeviceGetMemPool- cudaDeviceGetMemPool:
Alias of
hipDeviceGetMemPool- cudaGetDeviceProperties:
Alias of
hipGetDeviceProperties- cudaDeviceSetCacheConfig:
Alias of
hipDeviceSetCacheConfig- cudaThreadSetCacheConfig:
Alias of
hipDeviceSetCacheConfig- cudaDeviceGetCacheConfig:
Alias of
hipDeviceGetCacheConfig- cudaThreadGetCacheConfig:
Alias of
hipDeviceGetCacheConfig- cudaDeviceGetLimit:
Alias of
hipDeviceGetLimit- cuCtxGetLimit:
Alias of
hipDeviceGetLimit- cudaDeviceSetLimit:
Alias of
hipDeviceSetLimit- cuCtxSetLimit:
Alias of
hipDeviceSetLimit- cudaDeviceGetSharedMemConfig:
Alias of
hipDeviceGetSharedMemConfig- cudaGetDeviceFlags:
Alias of
hipGetDeviceFlags- cudaDeviceSetSharedMemConfig:
Alias of
hipDeviceSetSharedMemConfig- cudaSetDeviceFlags:
Alias of
hipSetDeviceFlags- cudaChooseDevice:
Alias of
hipChooseDevice- cudaIpcGetMemHandle:
Alias of
hipIpcGetMemHandle- cuIpcGetMemHandle:
Alias of
hipIpcGetMemHandle- cudaIpcOpenMemHandle:
Alias of
hipIpcOpenMemHandle- cuIpcOpenMemHandle:
Alias of
hipIpcOpenMemHandle- cudaIpcCloseMemHandle:
Alias of
hipIpcCloseMemHandle- cuIpcCloseMemHandle:
Alias of
hipIpcCloseMemHandle- cudaIpcGetEventHandle:
Alias of
hipIpcGetEventHandle- cuIpcGetEventHandle:
Alias of
hipIpcGetEventHandle- cudaIpcOpenEventHandle:
Alias of
hipIpcOpenEventHandle- cuIpcOpenEventHandle:
Alias of
hipIpcOpenEventHandle- cudaFuncSetAttribute:
Alias of
hipFuncSetAttribute- cudaFuncSetCacheConfig:
Alias of
hipFuncSetCacheConfig- cudaFuncSetSharedMemConfig:
Alias of
hipFuncSetSharedMemConfig- cudaGetLastError:
Alias of
hipGetLastError- cudaPeekAtLastError:
Alias of
hipPeekAtLastError- cudaGetErrorName:
Alias of
hipGetErrorName- cudaGetErrorString:
Alias of
hipGetErrorString- cuGetErrorName:
Alias of
hipDrvGetErrorName- cuGetErrorString:
Alias of
hipDrvGetErrorString- cudaStreamCreate:
Alias of
hipStreamCreate- cuStreamCreate:
Alias of
hipStreamCreateWithFlags- cudaStreamCreateWithFlags:
Alias of
hipStreamCreateWithFlags- cuStreamCreateWithPriority:
Alias of
hipStreamCreateWithPriority- cudaStreamCreateWithPriority:
Alias of
hipStreamCreateWithPriority- cudaDeviceGetStreamPriorityRange:
Alias of
hipDeviceGetStreamPriorityRange- cuCtxGetStreamPriorityRange:
Alias of
hipDeviceGetStreamPriorityRange- cuStreamDestroy:
Alias of
hipStreamDestroy- cuStreamDestroy_v2:
Alias of
hipStreamDestroy- cudaStreamDestroy:
Alias of
hipStreamDestroy- cuStreamQuery:
Alias of
hipStreamQuery- cudaStreamQuery:
Alias of
hipStreamQuery- cuStreamSynchronize:
Alias of
hipStreamSynchronize- cudaStreamSynchronize:
Alias of
hipStreamSynchronize- cuStreamWaitEvent:
Alias of
hipStreamWaitEvent- cudaStreamWaitEvent:
Alias of
hipStreamWaitEvent- cuStreamGetFlags:
Alias of
hipStreamGetFlags- cudaStreamGetFlags:
Alias of
hipStreamGetFlags- cuStreamGetPriority:
Alias of
hipStreamGetPriority- cudaStreamGetPriority:
Alias of
hipStreamGetPriority- cuStreamAddCallback:
Alias of
hipStreamAddCallback- cudaStreamAddCallback:
Alias of
hipStreamAddCallback- cuStreamWaitValue32:
Alias of
hipStreamWaitValue32- cuStreamWaitValue32_v2:
Alias of
hipStreamWaitValue32- cuStreamWaitValue64:
Alias of
hipStreamWaitValue64- cuStreamWaitValue64_v2:
Alias of
hipStreamWaitValue64- cuStreamWriteValue32:
Alias of
hipStreamWriteValue32- cuStreamWriteValue32_v2:
Alias of
hipStreamWriteValue32- cuStreamWriteValue64:
Alias of
hipStreamWriteValue64- cuStreamWriteValue64_v2:
Alias of
hipStreamWriteValue64- cuEventCreate:
Alias of
hipEventCreateWithFlags- cudaEventCreateWithFlags:
Alias of
hipEventCreateWithFlags- cudaEventCreate:
Alias of
hipEventCreate- cuEventRecord:
Alias of
hipEventRecord- cudaEventRecord:
Alias of
hipEventRecord- cuEventDestroy:
Alias of
hipEventDestroy- cuEventDestroy_v2:
Alias of
hipEventDestroy- cudaEventDestroy:
Alias of
hipEventDestroy- cuEventSynchronize:
Alias of
hipEventSynchronize- cudaEventSynchronize:
Alias of
hipEventSynchronize- cuEventElapsedTime:
Alias of
hipEventElapsedTime- cudaEventElapsedTime:
Alias of
hipEventElapsedTime- cuEventQuery:
Alias of
hipEventQuery- cudaEventQuery:
Alias of
hipEventQuery- cuPointerSetAttribute:
Alias of
hipPointerSetAttribute- cudaPointerGetAttributes:
Alias of
hipPointerGetAttributes- cuPointerGetAttribute:
Alias of
hipPointerGetAttribute- cuPointerGetAttributes:
Alias of
hipDrvPointerGetAttributes- cuImportExternalSemaphore:
Alias of
hipImportExternalSemaphore- cudaImportExternalSemaphore:
Alias of
hipImportExternalSemaphore- cuSignalExternalSemaphoresAsync:
Alias of
hipSignalExternalSemaphoresAsync- cudaSignalExternalSemaphoresAsync:
Alias of
hipSignalExternalSemaphoresAsync- cuWaitExternalSemaphoresAsync:
Alias of
hipWaitExternalSemaphoresAsync- cudaWaitExternalSemaphoresAsync:
Alias of
hipWaitExternalSemaphoresAsync- cuDestroyExternalSemaphore:
Alias of
hipDestroyExternalSemaphore- cudaDestroyExternalSemaphore:
Alias of
hipDestroyExternalSemaphore- cuImportExternalMemory:
Alias of
hipImportExternalMemory- cudaImportExternalMemory:
Alias of
hipImportExternalMemory- cuExternalMemoryGetMappedBuffer:
Alias of
hipExternalMemoryGetMappedBuffer- cudaExternalMemoryGetMappedBuffer:
Alias of
hipExternalMemoryGetMappedBuffer- cuDestroyExternalMemory:
Alias of
hipDestroyExternalMemory- cudaDestroyExternalMemory:
Alias of
hipDestroyExternalMemory- cuMemAlloc:
Alias of
hipMalloc- cuMemAlloc_v2:
Alias of
hipMalloc- cudaMalloc:
Alias of
hipMalloc- cuMemAllocHost:
Alias of
hipMemAllocHost- cuMemAllocHost_v2:
Alias of
hipMemAllocHost- cudaMallocHost:
Alias of
hipHostMalloc- cuMemAllocManaged:
Alias of
hipMallocManaged- cudaMallocManaged:
Alias of
hipMallocManaged- cudaMemPrefetchAsync:
Alias of
hipMemPrefetchAsync- cuMemPrefetchAsync:
Alias of
hipMemPrefetchAsync- cudaMemAdvise:
Alias of
hipMemAdvise- cuMemAdvise:
Alias of
hipMemAdvise- cudaMemRangeGetAttribute:
Alias of
hipMemRangeGetAttribute- cuMemRangeGetAttribute:
Alias of
hipMemRangeGetAttribute- cudaMemRangeGetAttributes:
Alias of
hipMemRangeGetAttributes- cuMemRangeGetAttributes:
Alias of
hipMemRangeGetAttributes- cuStreamAttachMemAsync:
Alias of
hipStreamAttachMemAsync- cudaStreamAttachMemAsync:
Alias of
hipStreamAttachMemAsync- cudaMallocAsync:
Alias of
hipMallocAsync- cuMemAllocAsync:
Alias of
hipMallocAsync- cudaFreeAsync:
Alias of
hipFreeAsync- cuMemFreeAsync:
Alias of
hipFreeAsync- cudaMemPoolTrimTo:
Alias of
hipMemPoolTrimTo- cuMemPoolTrimTo:
Alias of
hipMemPoolTrimTo- cudaMemPoolSetAttribute:
Alias of
hipMemPoolSetAttribute- cuMemPoolSetAttribute:
Alias of
hipMemPoolSetAttribute- cudaMemPoolGetAttribute:
Alias of
hipMemPoolGetAttribute- cuMemPoolGetAttribute:
Alias of
hipMemPoolGetAttribute- cudaMemPoolSetAccess:
Alias of
hipMemPoolSetAccess- cuMemPoolSetAccess:
Alias of
hipMemPoolSetAccess- cudaMemPoolGetAccess:
Alias of
hipMemPoolGetAccess- cuMemPoolGetAccess:
Alias of
hipMemPoolGetAccess- cudaMemPoolCreate:
Alias of
hipMemPoolCreate- cuMemPoolCreate:
Alias of
hipMemPoolCreate- cudaMemPoolDestroy:
Alias of
hipMemPoolDestroy- cuMemPoolDestroy:
Alias of
hipMemPoolDestroy- cudaMallocFromPoolAsync:
Alias of
hipMallocFromPoolAsync- cuMemAllocFromPoolAsync:
Alias of
hipMallocFromPoolAsync- cudaMemPoolExportToShareableHandle:
Alias of
hipMemPoolExportToShareableHandle- cuMemPoolExportToShareableHandle:
Alias of
hipMemPoolExportToShareableHandle- cudaMemPoolImportFromShareableHandle:
Alias of
hipMemPoolImportFromShareableHandle- cuMemPoolImportFromShareableHandle:
Alias of
hipMemPoolImportFromShareableHandle- cudaMemPoolExportPointer:
Alias of
hipMemPoolExportPointer- cuMemPoolExportPointer:
Alias of
hipMemPoolExportPointer- cudaMemPoolImportPointer:
Alias of
hipMemPoolImportPointer- cuMemPoolImportPointer:
Alias of
hipMemPoolImportPointer- cuMemHostAlloc:
Alias of
hipHostAlloc- cudaHostAlloc:
Alias of
hipHostAlloc- cuMemHostGetDevicePointer:
Alias of
hipHostGetDevicePointer- cuMemHostGetDevicePointer_v2:
Alias of
hipHostGetDevicePointer- cudaHostGetDevicePointer:
Alias of
hipHostGetDevicePointer- cuMemHostGetFlags:
Alias of
hipHostGetFlags- cudaHostGetFlags:
Alias of
hipHostGetFlags- cuMemHostRegister:
Alias of
hipHostRegister- cuMemHostRegister_v2:
Alias of
hipHostRegister- cudaHostRegister:
Alias of
hipHostRegister- cuMemHostUnregister:
Alias of
hipHostUnregister- cudaHostUnregister:
Alias of
hipHostUnregister- cudaMallocPitch:
Alias of
hipMallocPitch- cuMemAllocPitch:
Alias of
hipMemAllocPitch- cuMemAllocPitch_v2:
Alias of
hipMemAllocPitch- cuMemFree:
Alias of
hipFree- cuMemFree_v2:
Alias of
hipFree- cudaFree:
Alias of
hipFree- cuMemFreeHost:
Alias of
hipHostFree- cudaFreeHost:
Alias of
hipHostFree- cudaMemcpy:
Alias of
hipMemcpy- cuMemcpyHtoD:
Alias of
hipMemcpyHtoD- cuMemcpyHtoD_v2:
Alias of
hipMemcpyHtoD- cuMemcpyDtoH:
Alias of
hipMemcpyDtoH- cuMemcpyDtoH_v2:
Alias of
hipMemcpyDtoH- cuMemcpyDtoD:
Alias of
hipMemcpyDtoD- cuMemcpyDtoD_v2:
Alias of
hipMemcpyDtoD- cuMemcpyHtoDAsync:
Alias of
hipMemcpyHtoDAsync- cuMemcpyHtoDAsync_v2:
Alias of
hipMemcpyHtoDAsync- cuMemcpyDtoHAsync:
Alias of
hipMemcpyDtoHAsync- cuMemcpyDtoHAsync_v2:
Alias of
hipMemcpyDtoHAsync- cuMemcpyDtoDAsync:
Alias of
hipMemcpyDtoDAsync- cuMemcpyDtoDAsync_v2:
Alias of
hipMemcpyDtoDAsync- cuModuleGetGlobal:
Alias of
hipModuleGetGlobal- cuModuleGetGlobal_v2:
Alias of
hipModuleGetGlobal- cudaGetSymbolAddress:
Alias of
hipGetSymbolAddress- cudaGetSymbolSize:
Alias of
hipGetSymbolSize- cudaMemcpyToSymbol:
Alias of
hipMemcpyToSymbol- cudaMemcpyToSymbolAsync:
Alias of
hipMemcpyToSymbolAsync- cudaMemcpyFromSymbol:
Alias of
hipMemcpyFromSymbol- cudaMemcpyFromSymbolAsync:
Alias of
hipMemcpyFromSymbolAsync- cudaMemcpyAsync:
Alias of
hipMemcpyAsync- cudaMemset:
Alias of
hipMemset- cuMemsetD8:
Alias of
hipMemsetD8- cuMemsetD8_v2:
Alias of
hipMemsetD8- cuMemsetD8Async:
Alias of
hipMemsetD8Async- cuMemsetD16:
Alias of
hipMemsetD16- cuMemsetD16_v2:
Alias of
hipMemsetD16- cuMemsetD16Async:
Alias of
hipMemsetD16Async- cuMemsetD32:
Alias of
hipMemsetD32- cuMemsetD32_v2:
Alias of
hipMemsetD32- cudaMemsetAsync:
Alias of
hipMemsetAsync- cuMemsetD32Async:
Alias of
hipMemsetD32Async- cudaMemset2D:
Alias of
hipMemset2D- cudaMemset2DAsync:
Alias of
hipMemset2DAsync- cudaMemset3D:
Alias of
hipMemset3D- cudaMemset3DAsync:
Alias of
hipMemset3DAsync- cuMemGetInfo:
Alias of
hipMemGetInfo- cuMemGetInfo_v2:
Alias of
hipMemGetInfo- cudaMemGetInfo:
Alias of
hipMemGetInfo- cudaMallocArray:
Alias of
hipMallocArray- cuArrayCreate:
Alias of
hipArrayCreate- cuArrayCreate_v2:
Alias of
hipArrayCreate- cuArrayDestroy:
Alias of
hipArrayDestroy- cuArray3DCreate:
Alias of
hipArray3DCreate- cuArray3DCreate_v2:
Alias of
hipArray3DCreate- cudaMalloc3D:
Alias of
hipMalloc3D- cudaFreeArray:
Alias of
hipFreeArray- cudaMalloc3DArray:
Alias of
hipMalloc3DArray- cudaArrayGetInfo:
Alias of
hipArrayGetInfo- cuArrayGetDescriptor:
Alias of
hipArrayGetDescriptor- cuArrayGetDescriptor_v2:
Alias of
hipArrayGetDescriptor- cuArray3DGetDescriptor:
Alias of
hipArray3DGetDescriptor- cuArray3DGetDescriptor_v2:
Alias of
hipArray3DGetDescriptor- cudaMemcpy2D:
Alias of
hipMemcpy2D- cuMemcpy2D:
Alias of
hipMemcpyParam2D- cuMemcpy2D_v2:
Alias of
hipMemcpyParam2D- cuMemcpy2DAsync:
Alias of
hipMemcpyParam2DAsync- cuMemcpy2DAsync_v2:
Alias of
hipMemcpyParam2DAsync- cudaMemcpy2DAsync:
Alias of
hipMemcpy2DAsync- cudaMemcpy2DToArray:
Alias of
hipMemcpy2DToArray- cudaMemcpy2DToArrayAsync:
Alias of
hipMemcpy2DToArrayAsync- cudaMemcpyToArray:
Alias of
hipMemcpyToArray- cudaMemcpyFromArray:
Alias of
hipMemcpyFromArray- cudaMemcpy2DFromArray:
Alias of
hipMemcpy2DFromArray- cudaMemcpy2DFromArrayAsync:
Alias of
hipMemcpy2DFromArrayAsync- cuMemcpyAtoH:
Alias of
hipMemcpyAtoH- cuMemcpyAtoH_v2:
Alias of
hipMemcpyAtoH- cuMemcpyHtoA:
Alias of
hipMemcpyHtoA- cuMemcpyHtoA_v2:
Alias of
hipMemcpyHtoA- cudaMemcpy3D:
Alias of
hipMemcpy3D- cudaMemcpy3DAsync:
Alias of
hipMemcpy3DAsync- cuMemcpy3D:
Alias of
hipDrvMemcpy3D- cuMemcpy3D_v2:
Alias of
hipDrvMemcpy3D- cuMemcpy3DAsync:
Alias of
hipDrvMemcpy3DAsync- cuMemcpy3DAsync_v2:
Alias of
hipDrvMemcpy3DAsync- cuDeviceCanAccessPeer:
Alias of
hipDeviceCanAccessPeer- cudaDeviceCanAccessPeer:
Alias of
hipDeviceCanAccessPeer- cudaDeviceEnablePeerAccess:
Alias of
hipDeviceEnablePeerAccess- cudaDeviceDisablePeerAccess:
Alias of
hipDeviceDisablePeerAccess- cuMemGetAddressRange:
Alias of
hipMemGetAddressRange- cuMemGetAddressRange_v2:
Alias of
hipMemGetAddressRange- cudaMemcpyPeer:
Alias of
hipMemcpyPeer- cudaMemcpyPeerAsync:
Alias of
hipMemcpyPeerAsync- cuCtxCreate:
Alias of
hipCtxCreate- cuCtxCreate_v2:
Alias of
hipCtxCreate- cuCtxDestroy:
Alias of
hipCtxDestroy- cuCtxDestroy_v2:
Alias of
hipCtxDestroy- cuCtxPopCurrent:
Alias of
hipCtxPopCurrent- cuCtxPopCurrent_v2:
Alias of
hipCtxPopCurrent- cuCtxPushCurrent:
Alias of
hipCtxPushCurrent- cuCtxPushCurrent_v2:
Alias of
hipCtxPushCurrent- cuCtxSetCurrent:
Alias of
hipCtxSetCurrent- cuCtxGetCurrent:
Alias of
hipCtxGetCurrent- cuCtxGetDevice:
Alias of
hipCtxGetDevice- cuCtxGetApiVersion:
Alias of
hipCtxGetApiVersion- cuCtxGetCacheConfig:
Alias of
hipCtxGetCacheConfig- cuCtxSetCacheConfig:
Alias of
hipCtxSetCacheConfig- cuCtxSetSharedMemConfig:
Alias of
hipCtxSetSharedMemConfig- cuCtxGetSharedMemConfig:
Alias of
hipCtxGetSharedMemConfig- cuCtxSynchronize:
Alias of
hipCtxSynchronize- cuCtxGetFlags:
Alias of
hipCtxGetFlags- cuCtxEnablePeerAccess:
Alias of
hipCtxEnablePeerAccess- cuCtxDisablePeerAccess:
Alias of
hipCtxDisablePeerAccess- cuDevicePrimaryCtxGetState:
Alias of
hipDevicePrimaryCtxGetState- cuDevicePrimaryCtxRelease:
Alias of
hipDevicePrimaryCtxRelease- cuDevicePrimaryCtxRelease_v2:
Alias of
hipDevicePrimaryCtxRelease- cuDevicePrimaryCtxRetain:
Alias of
hipDevicePrimaryCtxRetain- cuDevicePrimaryCtxReset:
Alias of
hipDevicePrimaryCtxReset- cuDevicePrimaryCtxReset_v2:
Alias of
hipDevicePrimaryCtxReset- cuDevicePrimaryCtxSetFlags:
Alias of
hipDevicePrimaryCtxSetFlags- cuDevicePrimaryCtxSetFlags_v2:
Alias of
hipDevicePrimaryCtxSetFlags- cuModuleLoad:
Alias of
hipModuleLoad- cuModuleUnload:
Alias of
hipModuleUnload- cuModuleGetFunction:
Alias of
hipModuleGetFunction- cudaFuncGetAttributes:
Alias of
hipFuncGetAttributes- cuFuncGetAttribute:
Alias of
hipFuncGetAttribute- cuModuleGetTexRef:
Alias of
hipModuleGetTexRef- cuModuleLoadData:
Alias of
hipModuleLoadData- cuModuleLoadDataEx:
Alias of
hipModuleLoadDataEx- cuLaunchKernel:
Alias of
hipModuleLaunchKernel- cuLaunchCooperativeKernel:
Alias of
hipModuleLaunchCooperativeKernel- cuLaunchCooperativeKernelMultiDevice:
- 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- 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- 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- cuGraphLaunch:
Alias of
hipGraphLaunch- cudaGraphLaunch:
Alias of
hipGraphLaunch- cuGraphUpload:
Alias of
hipGraphUpload- cudaGraphUpload:
Alias of
hipGraphUpload- cuGraphExecDestroy:
Alias of
hipGraphExecDestroy- cudaGraphExecDestroy:
Alias of
hipGraphExecDestroy- cuGraphExecUpdate:
Alias of
hipGraphExecUpdate- cudaGraphExecUpdate:
Alias of
hipGraphExecUpdate- cuGraphAddKernelNode:
Alias of
hipGraphAddKernelNode- cudaGraphAddKernelNode:
Alias of
hipGraphAddKernelNode- cuGraphKernelNodeGetParams:
Alias of
hipGraphKernelNodeGetParams- cudaGraphKernelNodeGetParams:
Alias of
hipGraphKernelNodeGetParams- cuGraphKernelNodeSetParams:
Alias of
hipGraphKernelNodeSetParams- cudaGraphKernelNodeSetParams:
Alias of
hipGraphKernelNodeSetParams- cuGraphExecKernelNodeSetParams:
Alias of
hipGraphExecKernelNodeSetParams- cudaGraphExecKernelNodeSetParams:
Alias of
hipGraphExecKernelNodeSetParams- cuGraphAddMemcpyNode:
Alias of
hipDrvGraphAddMemcpyNode- cudaGraphAddMemcpyNode:
Alias of
hipGraphAddMemcpyNode- 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_thallucinate values for non-existing 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
cudaDataTypehallucinate values for non-existing 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_thallucinate values for non-existing 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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipUUID_treference, this method returns it directly. No newhipUUID_tis created in this case.
- get_bytes(self, i)
Get value of
bytesof(<chip.hipUUID_t*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- cuda.cuda.CUuuid
alias of
hipUUID_t
- cuda.cuda.cudaUUID_t
alias of
hipUUID_t
- class cuda.cuda.cudaDeviceProp
Bases:
hipDeviceProp_t- ECCEnabled
Device has ECC support enabled
- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipDeviceProp_t.
Constructor for type hipDeviceProp_t.
- 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_pNote: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
Pointerthat 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 casepyobjis itself anhipDeviceProp_treference, this method returns it directly. No newhipDeviceProp_tis created in this case.
- gcnArchName
AMD GCN Arch Name. HIP Only.
- get_ECCEnabled(self, i)
Get value
ECCEnabledof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_accessPolicyMaxWindowSize(self, i)
Get value
accessPolicyMaxWindowSizeof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_arch(self, i)
Get value of
archof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_asicRevision(self, i)
Get value
asicRevisionof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_asyncEngineCount(self, i)
Get value
asyncEngineCountof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_canMapHostMemory(self, i)
Get value
canMapHostMemoryof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_canUseHostPointerForRegisteredMem(self, i)
Get value
canUseHostPointerForRegisteredMemof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_clockInstructionRate(self, i)
Get value
clockInstructionRateof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_clockRate(self, i)
Get value
clockRateof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_clusterLaunch(self, i)
Get value
clusterLaunchof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_computeMode(self, i)
Get value
computeModeof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_computePreemptionSupported(self, i)
Get value
computePreemptionSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_concurrentKernels(self, i)
Get value
concurrentKernelsof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_concurrentManagedAccess(self, i)
Get value
concurrentManagedAccessof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_cooperativeLaunch(self, i)
Get value
cooperativeLaunchof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_cooperativeMultiDeviceLaunch(self, i)
Get value
cooperativeMultiDeviceLaunchof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_cooperativeMultiDeviceUnmatchedBlockDim(self, i)
Get value
cooperativeMultiDeviceUnmatchedBlockDimof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_cooperativeMultiDeviceUnmatchedFunc(self, i)
Get value
cooperativeMultiDeviceUnmatchedFuncof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_cooperativeMultiDeviceUnmatchedGridDim(self, i)
Get value
cooperativeMultiDeviceUnmatchedGridDimof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_cooperativeMultiDeviceUnmatchedSharedMem(self, i)
Get value
cooperativeMultiDeviceUnmatchedSharedMemof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_deferredMappingHipArraySupported(self, i)
Get value
deferredMappingHipArraySupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_deviceOverlap(self, i)
Get value
deviceOverlapof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_directManagedMemAccessFromHost(self, i)
Get value
directManagedMemAccessFromHostof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_gcnArchName(self, i)
Get value of
gcnArchNameof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_globalL1CacheSupported(self, i)
Get value
globalL1CacheSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_gpuDirectRDMAFlushWritesOptions(self, i)
Get value
gpuDirectRDMAFlushWritesOptionsof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_gpuDirectRDMASupported(self, i)
Get value
gpuDirectRDMASupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_gpuDirectRDMAWritesOrdering(self, i)
Get value
gpuDirectRDMAWritesOrderingof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_hdpMemFlushCntl(self, i)
Get value
hdpMemFlushCntlof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_hdpRegFlushCntl(self, i)
Get value
hdpRegFlushCntlof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_hipReserved(self, i)
Get value of
hipReservedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_hostNativeAtomicSupported(self, i)
Get value
hostNativeAtomicSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_hostRegisterReadOnlySupported(self, i)
Get value
hostRegisterReadOnlySupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_hostRegisterSupported(self, i)
Get value
hostRegisterSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_integrated(self, i)
Get value
integratedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_ipcEventSupported(self, i)
Get value
ipcEventSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_isLargeBar(self, i)
Get value
isLargeBarof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_isMultiGpuBoard(self, i)
Get value
isMultiGpuBoardof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_kernelExecTimeoutEnabled(self, i)
Get value
kernelExecTimeoutEnabledof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_l2CacheSize(self, i)
Get value
l2CacheSizeof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_localL1CacheSupported(self, i)
Get value
localL1CacheSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_luid(self, i)
Get value of
luidof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_luidDeviceNodeMask(self, i)
Get value
luidDeviceNodeMaskof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_major(self, i)
Get value
majorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_managedMemory(self, i)
Get value
managedMemoryof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxBlocksPerMultiProcessor(self, i)
Get value
maxBlocksPerMultiProcessorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxGridSize(self, i)
Get value of
maxGridSizeof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxSharedMemoryPerMultiProcessor(self, i)
Get value
maxSharedMemoryPerMultiProcessorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxSurface1D(self, i)
Get value
maxSurface1Dof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxSurface1DLayered(self, i)
Get value of
maxSurface1DLayeredof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxSurface2D(self, i)
Get value of
maxSurface2Dof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxSurface2DLayered(self, i)
Get value of
maxSurface2DLayeredof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxSurface3D(self, i)
Get value of
maxSurface3Dof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxSurfaceCubemap(self, i)
Get value
maxSurfaceCubemapof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxSurfaceCubemapLayered(self, i)
Get value of
maxSurfaceCubemapLayeredof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxTexture1D(self, i)
Get value
maxTexture1Dof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxTexture1DLayered(self, i)
Get value of
maxTexture1DLayeredof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxTexture1DLinear(self, i)
Get value
maxTexture1DLinearof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxTexture1DMipmap(self, i)
Get value
maxTexture1DMipmapof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxTexture2D(self, i)
Get value of
maxTexture2Dof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxTexture2DGather(self, i)
Get value of
maxTexture2DGatherof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxTexture2DLayered(self, i)
Get value of
maxTexture2DLayeredof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxTexture2DLinear(self, i)
Get value of
maxTexture2DLinearof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxTexture2DMipmap(self, i)
Get value of
maxTexture2DMipmapof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxTexture3D(self, i)
Get value of
maxTexture3Dof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxTexture3DAlt(self, i)
Get value of
maxTexture3DAltof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxTextureCubemap(self, i)
Get value
maxTextureCubemapof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxTextureCubemapLayered(self, i)
Get value of
maxTextureCubemapLayeredof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxThreadsDim(self, i)
Get value of
maxThreadsDimof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxThreadsPerBlock(self, i)
Get value
maxThreadsPerBlockof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_maxThreadsPerMultiProcessor(self, i)
Get value
maxThreadsPerMultiProcessorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_memPitch(self, i)
Get value
memPitchof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_memoryBusWidth(self, i)
Get value
memoryBusWidthof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_memoryClockRate(self, i)
Get value
memoryClockRateof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_memoryPoolSupportedHandleTypes(self, i)
Get value
memoryPoolSupportedHandleTypesof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_memoryPoolsSupported(self, i)
Get value
memoryPoolsSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_minor(self, i)
Get value
minorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_multiGpuBoardGroupID(self, i)
Get value
multiGpuBoardGroupIDof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_multiProcessorCount(self, i)
Get value
multiProcessorCountof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_name(self, i)
Get value of
nameof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_pageableMemoryAccess(self, i)
Get value
pageableMemoryAccessof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_pageableMemoryAccessUsesHostPageTables(self, i)
Get value
pageableMemoryAccessUsesHostPageTablesof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_pciBusID(self, i)
Get value
pciBusIDof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_pciDeviceID(self, i)
Get value
pciDeviceIDof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_pciDomainID(self, i)
Get value
pciDomainIDof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_persistingL2CacheMaxSize(self, i)
Get value
persistingL2CacheMaxSizeof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_regsPerBlock(self, i)
Get value
regsPerBlockof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_regsPerMultiprocessor(self, i)
Get value
regsPerMultiprocessorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_reservedSharedMemPerBlock(self, i)
Get value
reservedSharedMemPerBlockof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_sharedMemPerBlock(self, i)
Get value
sharedMemPerBlockof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_sharedMemPerBlockOptin(self, i)
Get value
sharedMemPerBlockOptinof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_sharedMemPerMultiprocessor(self, i)
Get value
sharedMemPerMultiprocessorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_singleToDoublePrecisionPerfRatio(self, i)
Get value
singleToDoublePrecisionPerfRatioof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_sparseHipArraySupported(self, i)
Get value
sparseHipArraySupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_streamPrioritiesSupported(self, i)
Get value
streamPrioritiesSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_surfaceAlignment(self, i)
Get value
surfaceAlignmentof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_tccDriver(self, i)
Get value
tccDriverof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_textureAlignment(self, i)
Get value
textureAlignmentof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_texturePitchAlignment(self, i)
Get value
texturePitchAlignmentof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_timelineSemaphoreInteropSupported(self, i)
Get value
timelineSemaphoreInteropSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_totalConstMem(self, i)
Get value
totalConstMemof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_totalGlobalMem(self, i)
Get value
totalGlobalMemof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_unifiedAddressing(self, i)
Get value
unifiedAddressingof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_unifiedFunctionPointers(self, i)
Get value
unifiedFunctionPointersof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_uuid(self, i)
Get value of
uuidof(<chip.hipDeviceProp_t*>self._ptr)[i].
- get_warpSize(self, i)
Get value
warpSizeof(<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
ECCEnabledof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_accessPolicyMaxWindowSize(self, i, int value)
Set value
accessPolicyMaxWindowSizeof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_asicRevision(self, i, int value)
Set value
asicRevisionof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_asyncEngineCount(self, i, int value)
Set value
asyncEngineCountof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_canMapHostMemory(self, i, int value)
Set value
canMapHostMemoryof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_canUseHostPointerForRegisteredMem(self, i, int value)
Set value
canUseHostPointerForRegisteredMemof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_clockInstructionRate(self, i, int value)
Set value
clockInstructionRateof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_clockRate(self, i, int value)
Set value
clockRateof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_clusterLaunch(self, i, int value)
Set value
clusterLaunchof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_computeMode(self, i, int value)
Set value
computeModeof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_computePreemptionSupported(self, i, int value)
Set value
computePreemptionSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_concurrentKernels(self, i, int value)
Set value
concurrentKernelsof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_concurrentManagedAccess(self, i, int value)
Set value
concurrentManagedAccessof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_cooperativeLaunch(self, i, int value)
Set value
cooperativeLaunchof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_cooperativeMultiDeviceLaunch(self, i, int value)
Set value
cooperativeMultiDeviceLaunchof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_cooperativeMultiDeviceUnmatchedBlockDim(self, i, int value)
Set value
cooperativeMultiDeviceUnmatchedBlockDimof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_cooperativeMultiDeviceUnmatchedFunc(self, i, int value)
Set value
cooperativeMultiDeviceUnmatchedFuncof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_cooperativeMultiDeviceUnmatchedGridDim(self, i, int value)
Set value
cooperativeMultiDeviceUnmatchedGridDimof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_cooperativeMultiDeviceUnmatchedSharedMem(self, i, int value)
Set value
cooperativeMultiDeviceUnmatchedSharedMemof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_deferredMappingHipArraySupported(self, i, int value)
Set value
deferredMappingHipArraySupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_deviceOverlap(self, i, int value)
Set value
deviceOverlapof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_directManagedMemAccessFromHost(self, i, int value)
Set value
directManagedMemAccessFromHostof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_globalL1CacheSupported(self, i, int value)
Set value
globalL1CacheSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_gpuDirectRDMAFlushWritesOptions(self, i, unsigned int value)
Set value
gpuDirectRDMAFlushWritesOptionsof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_gpuDirectRDMASupported(self, i, int value)
Set value
gpuDirectRDMASupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_gpuDirectRDMAWritesOrdering(self, i, int value)
Set value
gpuDirectRDMAWritesOrderingof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_hdpMemFlushCntl(self, i, value)
Set value
hdpMemFlushCntlof(<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
hdpRegFlushCntlof(<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
hostNativeAtomicSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_hostRegisterReadOnlySupported(self, i, int value)
Set value
hostRegisterReadOnlySupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_hostRegisterSupported(self, i, int value)
Set value
hostRegisterSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_integrated(self, i, int value)
Set value
integratedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_ipcEventSupported(self, i, int value)
Set value
ipcEventSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_isLargeBar(self, i, int value)
Set value
isLargeBarof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_isMultiGpuBoard(self, i, int value)
Set value
isMultiGpuBoardof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_kernelExecTimeoutEnabled(self, i, int value)
Set value
kernelExecTimeoutEnabledof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_l2CacheSize(self, i, int value)
Set value
l2CacheSizeof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_localL1CacheSupported(self, i, int value)
Set value
localL1CacheSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_luidDeviceNodeMask(self, i, unsigned int value)
Set value
luidDeviceNodeMaskof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_major(self, i, int value)
Set value
majorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_managedMemory(self, i, int value)
Set value
managedMemoryof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_maxBlocksPerMultiProcessor(self, i, int value)
Set value
maxBlocksPerMultiProcessorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_maxSharedMemoryPerMultiProcessor(self, i, unsigned long value)
Set value
maxSharedMemoryPerMultiProcessorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_maxSurface1D(self, i, int value)
Set value
maxSurface1Dof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_maxSurfaceCubemap(self, i, int value)
Set value
maxSurfaceCubemapof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_maxTexture1D(self, i, int value)
Set value
maxTexture1Dof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_maxTexture1DLinear(self, i, int value)
Set value
maxTexture1DLinearof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_maxTexture1DMipmap(self, i, int value)
Set value
maxTexture1DMipmapof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_maxTextureCubemap(self, i, int value)
Set value
maxTextureCubemapof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_maxThreadsPerBlock(self, i, int value)
Set value
maxThreadsPerBlockof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_maxThreadsPerMultiProcessor(self, i, int value)
Set value
maxThreadsPerMultiProcessorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_memPitch(self, i, unsigned long value)
Set value
memPitchof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_memoryBusWidth(self, i, int value)
Set value
memoryBusWidthof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_memoryClockRate(self, i, int value)
Set value
memoryClockRateof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_memoryPoolSupportedHandleTypes(self, i, unsigned int value)
Set value
memoryPoolSupportedHandleTypesof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_memoryPoolsSupported(self, i, int value)
Set value
memoryPoolsSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_minor(self, i, int value)
Set value
minorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_multiGpuBoardGroupID(self, i, int value)
Set value
multiGpuBoardGroupIDof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_multiProcessorCount(self, i, int value)
Set value
multiProcessorCountof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_pageableMemoryAccess(self, i, int value)
Set value
pageableMemoryAccessof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_pageableMemoryAccessUsesHostPageTables(self, i, int value)
Set value
pageableMemoryAccessUsesHostPageTablesof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_pciBusID(self, i, int value)
Set value
pciBusIDof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_pciDeviceID(self, i, int value)
Set value
pciDeviceIDof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_pciDomainID(self, i, int value)
Set value
pciDomainIDof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_persistingL2CacheMaxSize(self, i, int value)
Set value
persistingL2CacheMaxSizeof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_regsPerBlock(self, i, int value)
Set value
regsPerBlockof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_regsPerMultiprocessor(self, i, int value)
Set value
regsPerMultiprocessorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_reservedSharedMemPerBlock(self, i, unsigned long value)
Set value
reservedSharedMemPerBlockof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_sharedMemPerBlock(self, i, unsigned long value)
Set value
sharedMemPerBlockof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_sharedMemPerBlockOptin(self, i, unsigned long value)
Set value
sharedMemPerBlockOptinof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_sharedMemPerMultiprocessor(self, i, unsigned long value)
Set value
sharedMemPerMultiprocessorof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_singleToDoublePrecisionPerfRatio(self, i, int value)
Set value
singleToDoublePrecisionPerfRatioof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_sparseHipArraySupported(self, i, int value)
Set value
sparseHipArraySupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_streamPrioritiesSupported(self, i, int value)
Set value
streamPrioritiesSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_surfaceAlignment(self, i, unsigned long value)
Set value
surfaceAlignmentof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_tccDriver(self, i, int value)
Set value
tccDriverof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_textureAlignment(self, i, unsigned long value)
Set value
textureAlignmentof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_texturePitchAlignment(self, i, unsigned long value)
Set value
texturePitchAlignmentof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_timelineSemaphoreInteropSupported(self, i, int value)
Set value
timelineSemaphoreInteropSupportedof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_totalConstMem(self, i, unsigned long value)
Set value
totalConstMemof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_totalGlobalMem(self, i, unsigned long value)
Set value
totalGlobalMemof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_unifiedAddressing(self, i, int value)
Set value
unifiedAddressingof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_unifiedFunctionPointers(self, i, int value)
Set value
unifiedFunctionPointersof(<chip.hipDeviceProp_t*>self._ptr)[i].
- set_warpSize(self, i, int value)
Set value
warpSizeof(<chip.hipDeviceProp_t*>self._ptr)[i].
- sharedMemPerBlock
Size of shared memory region (in bytes).
- sharedMemPerBlockOptin
Per device m ax shared mem per block usable by special opt in
- sharedMemPerMultiprocessor
Amount of shared memory available per multiprocessor.
- singleToDoublePrecisionPerfRatio
Deprecated. CUDA only.
- sparseHipArraySupported
Indicates if device supports sparse hip arrays
- streamPrioritiesSupported
Device supports stream priority
- surfaceAlignment
Alignment requirement for surface
- tccDriver
1:If device is Tesla device using TCC driver, else 0
- textureAlignment
Alignment requirement for textures
- texturePitchAlignment
Pitch alignment requirement for texture references bound to
- timelineSemaphoreInteropSupported
Indicates external timeline semaphore support
- totalConstMem
Size of shared memory region (in bytes).
- totalGlobalMem
Size of global memory region (in bytes).
- unifiedAddressing
Does device and host share unified address space
- unifiedFunctionPointers
Indicates device supports unified function pointers
- uuid
UUID of a device
- warpSize
Warp size.
- class cuda.cuda.CUmemorytype(value)
Bases:
_hipMemoryType__BaseAn 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.cuda.CUmemorytype_enum(value)
Bases:
_hipMemoryType__BaseAn 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.cuda.cudaMemoryType(value)
Bases:
_hipMemoryType__BaseAn 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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipPointerAttribute_treference, this method returns it directly. No newhipPointerAttribute_tis created in this case.
- get_allocationFlags(self, i)
Get value
allocationFlagsof(<chip.hipPointerAttribute_t*>self._ptr)[i].
- get_device(self, i)
Get value
deviceof(<chip.hipPointerAttribute_t*>self._ptr)[i].
- get_devicePointer(self, i)
Get value
devicePointerof(<chip.hipPointerAttribute_t*>self._ptr)[i].
- get_hostPointer(self, i)
Get value
hostPointerof(<chip.hipPointerAttribute_t*>self._ptr)[i].
- get_isManaged(self, i)
Get value
isManagedof(<chip.hipPointerAttribute_t*>self._ptr)[i].
- get_type(self, i)
Get value of
typeof(<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
allocationFlagsof(<chip.hipPointerAttribute_t*>self._ptr)[i].
- set_device(self, i, int value)
Set value
deviceof(<chip.hipPointerAttribute_t*>self._ptr)[i].
- set_devicePointer(self, i, value)
Set value
devicePointerof(<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
hostPointerof(<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
isManagedof(<chip.hipPointerAttribute_t*>self._ptr)[i].
- set_type(self, i, value)
Set value
typeof(<chip.hipPointerAttribute_t*>self._ptr)[i].
- type
(undocumented)
- class cuda.cuda.CUresult(value)
Bases:
_hipError_t__BaseAn 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.cuda.cudaError(value)
Bases:
_hipError_t__BaseAn 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.cuda.cudaError_enum(value)
Bases:
_hipError_t__BaseAn 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.cuda.cudaError_t(value)
Bases:
_hipError_t__BaseAn 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.cuda.CUdevice_attribute(value)
Bases:
_hipDeviceAttribute_t__BaseAn 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.cuda.CUdevice_attribute_enum(value)
Bases:
_hipDeviceAttribute_t__BaseAn 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.cuda.cudaDeviceAttr(value)
Bases:
_hipDeviceAttribute_t__BaseAn 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.cuda.CUcomputemode(value)
Bases:
_hipComputeMode__BaseAn 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.cuda.CUcomputemode_enum(value)
Bases:
_hipComputeMode__BaseAn 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.cuda.cudaComputeMode(value)
Bases:
_hipComputeMode__BaseAn 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.cuda.CUflushGPUDirectRDMAWritesOptions(value)
Bases:
_hipFlushGPUDirectRDMAWritesOptions__BaseAn 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.cuda.CUflushGPUDirectRDMAWritesOptions_enum(value)
Bases:
_hipFlushGPUDirectRDMAWritesOptions__BaseAn 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.cuda.cudaFlushGPUDirectRDMAWritesOptions(value)
Bases:
_hipFlushGPUDirectRDMAWritesOptions__BaseAn 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.cuda.CUGPUDirectRDMAWritesOrdering(value)
Bases:
_hipGPUDirectRDMAWritesOrdering__BaseAn 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.cuda.CUGPUDirectRDMAWritesOrdering_enum(value)
Bases:
_hipGPUDirectRDMAWritesOrdering__BaseAn 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.cuda.cudaGPUDirectRDMAWritesOrdering(value)
Bases:
_hipGPUDirectRDMAWritesOrdering__BaseAn 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.cuda.CUdeviceptr
alias of
hipDeviceptr_t
- cuda.cuda.CUdeviceptr_v1
alias of
hipDeviceptr_t
- cuda.cuda.CUdeviceptr_v2
alias of
hipDeviceptr_t
- class cuda.cuda.cudaChannelFormatKind(value)
Bases:
_hipChannelFormatKind__BaseAn 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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipChannelFormatDescreference, this method returns it directly. No newhipChannelFormatDescis created in this case.
- get_f(self, i)
Get value of
fof(<chip.hipChannelFormatDesc*>self._ptr)[i].
- get_w(self, i)
Get value
wof(<chip.hipChannelFormatDesc*>self._ptr)[i].
- get_x(self, i)
Get value
xof(<chip.hipChannelFormatDesc*>self._ptr)[i].
- get_y(self, i)
Get value
yof(<chip.hipChannelFormatDesc*>self._ptr)[i].
- get_z(self, i)
Get value
zof(<chip.hipChannelFormatDesc*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_f(self, i, value)
Set value
fof(<chip.hipChannelFormatDesc*>self._ptr)[i].
- set_w(self, i, int value)
Set value
wof(<chip.hipChannelFormatDesc*>self._ptr)[i].
- set_x(self, i, int value)
Set value
xof(<chip.hipChannelFormatDesc*>self._ptr)[i].
- set_y(self, i, int value)
Set value
yof(<chip.hipChannelFormatDesc*>self._ptr)[i].
- set_z(self, i, int value)
Set value
zof(<chip.hipChannelFormatDesc*>self._ptr)[i].
- w
(undocumented)
- x
(undocumented)
- y
(undocumented)
- z
(undocumented)
- class cuda.cuda.CUarray_st
Bases:
hipArray- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anhipArrayreference, this method returns it directly. No newhipArrayis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.cudaArray
Bases:
hipArray- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anhipArrayreference, this method returns it directly. No newhipArrayis created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cuda.CUarray
alias of
hipArray
- cuda.cuda.cudaArray_t
alias of
hipArray
- cuda.cuda.cudaArray_const_t
alias of
hipArray
- class cuda.cuda.CUarray_format(value)
Bases:
_hipArray_Format__BaseAn 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.cuda.CUarray_format_enum(value)
Bases:
_hipArray_Format__BaseAn 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.cuda.CUDA_ARRAY_DESCRIPTOR
Bases:
HIP_ARRAY_DESCRIPTOR- Format
(undocumented)
- Height
(undocumented)
- NumChannels
(undocumented)
- static PROPERTIES()
- Width
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_ARRAY_DESCRIPTOR.
Constructor for type HIP_ARRAY_DESCRIPTOR.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_ARRAY_DESCRIPTORreference, this method returns it directly. No newHIP_ARRAY_DESCRIPTORis created in this case.
- get_Format(self, i)
Get value of
Formatof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_Height(self, i)
Get value
Heightof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_NumChannels(self, i)
Get value
NumChannelsof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_Width(self, i)
Get value
Widthof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Format(self, i, value)
Set value
Formatof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_NumChannels(self, i, unsigned int value)
Set value
NumChannelsof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_Width(self, i, unsigned long value)
Set value
Widthof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- class cuda.cuda.CUDA_ARRAY_DESCRIPTOR_st
Bases:
HIP_ARRAY_DESCRIPTOR- Format
(undocumented)
- Height
(undocumented)
- NumChannels
(undocumented)
- static PROPERTIES()
- Width
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_ARRAY_DESCRIPTOR.
Constructor for type HIP_ARRAY_DESCRIPTOR.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_ARRAY_DESCRIPTORreference, this method returns it directly. No newHIP_ARRAY_DESCRIPTORis created in this case.
- get_Format(self, i)
Get value of
Formatof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_Height(self, i)
Get value
Heightof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_NumChannels(self, i)
Get value
NumChannelsof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_Width(self, i)
Get value
Widthof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Format(self, i, value)
Set value
Formatof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_NumChannels(self, i, unsigned int value)
Set value
NumChannelsof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_Width(self, i, unsigned long value)
Set value
Widthof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- class cuda.cuda.CUDA_ARRAY_DESCRIPTOR_v1
Bases:
HIP_ARRAY_DESCRIPTOR- Format
(undocumented)
- Height
(undocumented)
- NumChannels
(undocumented)
- static PROPERTIES()
- Width
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_ARRAY_DESCRIPTOR.
Constructor for type HIP_ARRAY_DESCRIPTOR.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_ARRAY_DESCRIPTORreference, this method returns it directly. No newHIP_ARRAY_DESCRIPTORis created in this case.
- get_Format(self, i)
Get value of
Formatof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_Height(self, i)
Get value
Heightof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_NumChannels(self, i)
Get value
NumChannelsof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_Width(self, i)
Get value
Widthof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Format(self, i, value)
Set value
Formatof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_NumChannels(self, i, unsigned int value)
Set value
NumChannelsof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_Width(self, i, unsigned long value)
Set value
Widthof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- class cuda.cuda.CUDA_ARRAY_DESCRIPTOR_v1_st
Bases:
HIP_ARRAY_DESCRIPTOR- Format
(undocumented)
- Height
(undocumented)
- NumChannels
(undocumented)
- static PROPERTIES()
- Width
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_ARRAY_DESCRIPTOR.
Constructor for type HIP_ARRAY_DESCRIPTOR.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_ARRAY_DESCRIPTORreference, this method returns it directly. No newHIP_ARRAY_DESCRIPTORis created in this case.
- get_Format(self, i)
Get value of
Formatof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_Height(self, i)
Get value
Heightof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_NumChannels(self, i)
Get value
NumChannelsof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_Width(self, i)
Get value
Widthof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Format(self, i, value)
Set value
Formatof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_NumChannels(self, i, unsigned int value)
Set value
NumChannelsof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_Width(self, i, unsigned long value)
Set value
Widthof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- class cuda.cuda.CUDA_ARRAY_DESCRIPTOR_v2
Bases:
HIP_ARRAY_DESCRIPTOR- Format
(undocumented)
- Height
(undocumented)
- NumChannels
(undocumented)
- static PROPERTIES()
- Width
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_ARRAY_DESCRIPTOR.
Constructor for type HIP_ARRAY_DESCRIPTOR.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_ARRAY_DESCRIPTORreference, this method returns it directly. No newHIP_ARRAY_DESCRIPTORis created in this case.
- get_Format(self, i)
Get value of
Formatof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_Height(self, i)
Get value
Heightof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_NumChannels(self, i)
Get value
NumChannelsof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- get_Width(self, i)
Get value
Widthof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Format(self, i, value)
Set value
Formatof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_NumChannels(self, i, unsigned int value)
Set value
NumChannelsof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- set_Width(self, i, unsigned long value)
Set value
Widthof(<chip.HIP_ARRAY_DESCRIPTOR*>self._ptr)[i].
- class cuda.cuda.CUDA_ARRAY3D_DESCRIPTOR
Bases:
HIP_ARRAY3D_DESCRIPTOR- Depth
(undocumented)
- Flags
(undocumented)
- Format
(undocumented)
- Height
(undocumented)
- NumChannels
(undocumented)
- static PROPERTIES()
- Width
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_ARRAY3D_DESCRIPTOR.
Constructor for type HIP_ARRAY3D_DESCRIPTOR.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_ARRAY3D_DESCRIPTORreference, this method returns it directly. No newHIP_ARRAY3D_DESCRIPTORis created in this case.
- get_Depth(self, i)
Get value
Depthof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_Flags(self, i)
Get value
Flagsof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_Format(self, i)
Get value of
Formatof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_Height(self, i)
Get value
Heightof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_NumChannels(self, i)
Get value
NumChannelsof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_Width(self, i)
Get value
Widthof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Depth(self, i, unsigned long value)
Set value
Depthof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_Flags(self, i, unsigned int value)
Set value
Flagsof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_Format(self, i, value)
Set value
Formatof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_NumChannels(self, i, unsigned int value)
Set value
NumChannelsof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_Width(self, i, unsigned long value)
Set value
Widthof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- class cuda.cuda.CUDA_ARRAY3D_DESCRIPTOR_st
Bases:
HIP_ARRAY3D_DESCRIPTOR- Depth
(undocumented)
- Flags
(undocumented)
- Format
(undocumented)
- Height
(undocumented)
- NumChannels
(undocumented)
- static PROPERTIES()
- Width
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_ARRAY3D_DESCRIPTOR.
Constructor for type HIP_ARRAY3D_DESCRIPTOR.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_ARRAY3D_DESCRIPTORreference, this method returns it directly. No newHIP_ARRAY3D_DESCRIPTORis created in this case.
- get_Depth(self, i)
Get value
Depthof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_Flags(self, i)
Get value
Flagsof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_Format(self, i)
Get value of
Formatof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_Height(self, i)
Get value
Heightof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_NumChannels(self, i)
Get value
NumChannelsof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_Width(self, i)
Get value
Widthof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Depth(self, i, unsigned long value)
Set value
Depthof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_Flags(self, i, unsigned int value)
Set value
Flagsof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_Format(self, i, value)
Set value
Formatof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_NumChannels(self, i, unsigned int value)
Set value
NumChannelsof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_Width(self, i, unsigned long value)
Set value
Widthof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- class cuda.cuda.CUDA_ARRAY3D_DESCRIPTOR_v2
Bases:
HIP_ARRAY3D_DESCRIPTOR- Depth
(undocumented)
- Flags
(undocumented)
- Format
(undocumented)
- Height
(undocumented)
- NumChannels
(undocumented)
- static PROPERTIES()
- Width
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_ARRAY3D_DESCRIPTOR.
Constructor for type HIP_ARRAY3D_DESCRIPTOR.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_ARRAY3D_DESCRIPTORreference, this method returns it directly. No newHIP_ARRAY3D_DESCRIPTORis created in this case.
- get_Depth(self, i)
Get value
Depthof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_Flags(self, i)
Get value
Flagsof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_Format(self, i)
Get value of
Formatof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_Height(self, i)
Get value
Heightof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_NumChannels(self, i)
Get value
NumChannelsof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- get_Width(self, i)
Get value
Widthof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Depth(self, i, unsigned long value)
Set value
Depthof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_Flags(self, i, unsigned int value)
Set value
Flagsof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_Format(self, i, value)
Set value
Formatof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_NumChannels(self, i, unsigned int value)
Set value
NumChannelsof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- set_Width(self, i, unsigned long value)
Set value
Widthof(<chip.HIP_ARRAY3D_DESCRIPTOR*>self._ptr)[i].
- class cuda.cuda.CUDA_MEMCPY2D
Bases:
hip_Memcpy2D- Height
(undocumented)
- static PROPERTIES()
- WidthInBytes
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hip_Memcpy2D.
Constructor for type hip_Memcpy2D.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhip_Memcpy2Dreference, this method returns it directly. No newhip_Memcpy2Dis created in this case.
- get_Height(self, i)
Get value
Heightof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_WidthInBytes(self, i)
Get value
WidthInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstDevice(self, i)
Get value
dstDeviceof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstHost(self, i)
Get value
dstHostof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstMemoryType(self, i)
Get value of
dstMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstPitch(self, i)
Get value
dstPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstXInBytes(self, i)
Get value
dstXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstY(self, i)
Get value
dstYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcDevice(self, i)
Get value
srcDeviceof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcHost(self, i)
Get value
srcHostof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcMemoryType(self, i)
Get value of
srcMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcPitch(self, i)
Get value
srcPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcXInBytes(self, i)
Get value
srcXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcY(self, i)
Get value
srcYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_WidthInBytes(self, i, unsigned long value)
Set value
WidthInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstDevice(self, i, value)
Set value
dstDeviceof(<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
dstHostof(<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
dstMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstPitch(self, i, unsigned long value)
Set value
dstPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstXInBytes(self, i, unsigned long value)
Set value
dstXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstY(self, i, unsigned long value)
Set value
dstYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcDevice(self, i, value)
Set value
srcDeviceof(<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
srcHostof(<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
srcMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcPitch(self, i, unsigned long value)
Set value
srcPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcXInBytes(self, i, unsigned long value)
Set value
srcXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcY(self, i, unsigned long value)
Set value
srcYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- srcDevice
(undocumented) Note:
Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcHost
(undocumented) Note:
Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcMemoryType
(undocumented)
- srcPitch
(undocumented)
- srcXInBytes
(undocumented)
- srcY
(undocumented)
- class cuda.cuda.CUDA_MEMCPY2D_st
Bases:
hip_Memcpy2D- Height
(undocumented)
- static PROPERTIES()
- WidthInBytes
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hip_Memcpy2D.
Constructor for type hip_Memcpy2D.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhip_Memcpy2Dreference, this method returns it directly. No newhip_Memcpy2Dis created in this case.
- get_Height(self, i)
Get value
Heightof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_WidthInBytes(self, i)
Get value
WidthInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstDevice(self, i)
Get value
dstDeviceof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstHost(self, i)
Get value
dstHostof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstMemoryType(self, i)
Get value of
dstMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstPitch(self, i)
Get value
dstPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstXInBytes(self, i)
Get value
dstXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstY(self, i)
Get value
dstYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcDevice(self, i)
Get value
srcDeviceof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcHost(self, i)
Get value
srcHostof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcMemoryType(self, i)
Get value of
srcMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcPitch(self, i)
Get value
srcPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcXInBytes(self, i)
Get value
srcXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcY(self, i)
Get value
srcYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_WidthInBytes(self, i, unsigned long value)
Set value
WidthInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstDevice(self, i, value)
Set value
dstDeviceof(<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
dstHostof(<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
dstMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstPitch(self, i, unsigned long value)
Set value
dstPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstXInBytes(self, i, unsigned long value)
Set value
dstXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstY(self, i, unsigned long value)
Set value
dstYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcDevice(self, i, value)
Set value
srcDeviceof(<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
srcHostof(<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
srcMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcPitch(self, i, unsigned long value)
Set value
srcPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcXInBytes(self, i, unsigned long value)
Set value
srcXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcY(self, i, unsigned long value)
Set value
srcYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- srcDevice
(undocumented) Note:
Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcHost
(undocumented) Note:
Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcMemoryType
(undocumented)
- srcPitch
(undocumented)
- srcXInBytes
(undocumented)
- srcY
(undocumented)
- class cuda.cuda.CUDA_MEMCPY2D_v1
Bases:
hip_Memcpy2D- Height
(undocumented)
- static PROPERTIES()
- WidthInBytes
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hip_Memcpy2D.
Constructor for type hip_Memcpy2D.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhip_Memcpy2Dreference, this method returns it directly. No newhip_Memcpy2Dis created in this case.
- get_Height(self, i)
Get value
Heightof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_WidthInBytes(self, i)
Get value
WidthInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstDevice(self, i)
Get value
dstDeviceof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstHost(self, i)
Get value
dstHostof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstMemoryType(self, i)
Get value of
dstMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstPitch(self, i)
Get value
dstPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstXInBytes(self, i)
Get value
dstXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstY(self, i)
Get value
dstYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcDevice(self, i)
Get value
srcDeviceof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcHost(self, i)
Get value
srcHostof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcMemoryType(self, i)
Get value of
srcMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcPitch(self, i)
Get value
srcPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcXInBytes(self, i)
Get value
srcXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcY(self, i)
Get value
srcYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_WidthInBytes(self, i, unsigned long value)
Set value
WidthInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstDevice(self, i, value)
Set value
dstDeviceof(<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
dstHostof(<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
dstMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstPitch(self, i, unsigned long value)
Set value
dstPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstXInBytes(self, i, unsigned long value)
Set value
dstXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstY(self, i, unsigned long value)
Set value
dstYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcDevice(self, i, value)
Set value
srcDeviceof(<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
srcHostof(<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
srcMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcPitch(self, i, unsigned long value)
Set value
srcPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcXInBytes(self, i, unsigned long value)
Set value
srcXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcY(self, i, unsigned long value)
Set value
srcYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- srcDevice
(undocumented) Note:
Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcHost
(undocumented) Note:
Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcMemoryType
(undocumented)
- srcPitch
(undocumented)
- srcXInBytes
(undocumented)
- srcY
(undocumented)
- class cuda.cuda.CUDA_MEMCPY2D_v1_st
Bases:
hip_Memcpy2D- Height
(undocumented)
- static PROPERTIES()
- WidthInBytes
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hip_Memcpy2D.
Constructor for type hip_Memcpy2D.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhip_Memcpy2Dreference, this method returns it directly. No newhip_Memcpy2Dis created in this case.
- get_Height(self, i)
Get value
Heightof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_WidthInBytes(self, i)
Get value
WidthInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstDevice(self, i)
Get value
dstDeviceof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstHost(self, i)
Get value
dstHostof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstMemoryType(self, i)
Get value of
dstMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstPitch(self, i)
Get value
dstPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstXInBytes(self, i)
Get value
dstXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstY(self, i)
Get value
dstYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcDevice(self, i)
Get value
srcDeviceof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcHost(self, i)
Get value
srcHostof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcMemoryType(self, i)
Get value of
srcMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcPitch(self, i)
Get value
srcPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcXInBytes(self, i)
Get value
srcXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcY(self, i)
Get value
srcYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_WidthInBytes(self, i, unsigned long value)
Set value
WidthInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstDevice(self, i, value)
Set value
dstDeviceof(<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
dstHostof(<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
dstMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstPitch(self, i, unsigned long value)
Set value
dstPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstXInBytes(self, i, unsigned long value)
Set value
dstXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstY(self, i, unsigned long value)
Set value
dstYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcDevice(self, i, value)
Set value
srcDeviceof(<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
srcHostof(<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
srcMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcPitch(self, i, unsigned long value)
Set value
srcPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcXInBytes(self, i, unsigned long value)
Set value
srcXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcY(self, i, unsigned long value)
Set value
srcYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- srcDevice
(undocumented) Note:
Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcHost
(undocumented) Note:
Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcMemoryType
(undocumented)
- srcPitch
(undocumented)
- srcXInBytes
(undocumented)
- srcY
(undocumented)
- class cuda.cuda.CUDA_MEMCPY2D_v2
Bases:
hip_Memcpy2D- Height
(undocumented)
- static PROPERTIES()
- WidthInBytes
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hip_Memcpy2D.
Constructor for type hip_Memcpy2D.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhip_Memcpy2Dreference, this method returns it directly. No newhip_Memcpy2Dis created in this case.
- get_Height(self, i)
Get value
Heightof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_WidthInBytes(self, i)
Get value
WidthInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstDevice(self, i)
Get value
dstDeviceof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstHost(self, i)
Get value
dstHostof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstMemoryType(self, i)
Get value of
dstMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstPitch(self, i)
Get value
dstPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstXInBytes(self, i)
Get value
dstXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_dstY(self, i)
Get value
dstYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcDevice(self, i)
Get value
srcDeviceof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcHost(self, i)
Get value
srcHostof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcMemoryType(self, i)
Get value of
srcMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcPitch(self, i)
Get value
srcPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcXInBytes(self, i)
Get value
srcXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- get_srcY(self, i)
Get value
srcYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_WidthInBytes(self, i, unsigned long value)
Set value
WidthInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstDevice(self, i, value)
Set value
dstDeviceof(<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
dstHostof(<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
dstMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstPitch(self, i, unsigned long value)
Set value
dstPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstXInBytes(self, i, unsigned long value)
Set value
dstXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_dstY(self, i, unsigned long value)
Set value
dstYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcDevice(self, i, value)
Set value
srcDeviceof(<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
srcHostof(<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
srcMemoryTypeof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcPitch(self, i, unsigned long value)
Set value
srcPitchof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcXInBytes(self, i, unsigned long value)
Set value
srcXInBytesof(<chip.hip_Memcpy2D*>self._ptr)[i].
- set_srcY(self, i, unsigned long value)
Set value
srcYof(<chip.hip_Memcpy2D*>self._ptr)[i].
- srcDevice
(undocumented) Note:
Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcHost
(undocumented) Note:
Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcMemoryType
(undocumented)
- srcPitch
(undocumented)
- srcXInBytes
(undocumented)
- srcY
(undocumented)
- class cuda.cuda.CUmipmappedArray_st
Bases:
hipMipmappedArray- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMipmappedArray.
Constructor for type hipMipmappedArray.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMipmappedArrayreference, this method returns it directly. No newhipMipmappedArrayis created in this case.
- get_data(self, i)
Get value
dataof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_depth(self, i)
Get value
depthof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_desc(self, i)
Get value of
descof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_flags(self, i)
Get value
flagsof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_format(self, i)
Get value of
formatof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_height(self, i)
Get value
heightof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_max_mipmap_level(self, i)
Get value
max_mipmap_levelof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_min_mipmap_level(self, i)
Get value
min_mipmap_levelof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_num_channels(self, i)
Get value
num_channelsof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_type(self, i)
Get value
typeof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_width(self, i)
Get value
widthof(<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
dataof(<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
depthof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_flags(self, i, unsigned int value)
Set value
flagsof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_format(self, i, value)
Set value
formatof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_height(self, i, unsigned int value)
Set value
heightof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_max_mipmap_level(self, i, unsigned int value)
Set value
max_mipmap_levelof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_min_mipmap_level(self, i, unsigned int value)
Set value
min_mipmap_levelof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_num_channels(self, i, unsigned int value)
Set value
num_channelsof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_type(self, i, unsigned int value)
Set value
typeof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_width(self, i, unsigned int value)
Set value
widthof(<chip.hipMipmappedArray*>self._ptr)[i].
- type
(undocumented)
- width
(undocumented)
- class cuda.cuda.cudaMipmappedArray
Bases:
hipMipmappedArray- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMipmappedArray.
Constructor for type hipMipmappedArray.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMipmappedArrayreference, this method returns it directly. No newhipMipmappedArrayis created in this case.
- get_data(self, i)
Get value
dataof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_depth(self, i)
Get value
depthof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_desc(self, i)
Get value of
descof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_flags(self, i)
Get value
flagsof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_format(self, i)
Get value of
formatof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_height(self, i)
Get value
heightof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_max_mipmap_level(self, i)
Get value
max_mipmap_levelof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_min_mipmap_level(self, i)
Get value
min_mipmap_levelof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_num_channels(self, i)
Get value
num_channelsof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_type(self, i)
Get value
typeof(<chip.hipMipmappedArray*>self._ptr)[i].
- get_width(self, i)
Get value
widthof(<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
dataof(<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
depthof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_flags(self, i, unsigned int value)
Set value
flagsof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_format(self, i, value)
Set value
formatof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_height(self, i, unsigned int value)
Set value
heightof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_max_mipmap_level(self, i, unsigned int value)
Set value
max_mipmap_levelof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_min_mipmap_level(self, i, unsigned int value)
Set value
min_mipmap_levelof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_num_channels(self, i, unsigned int value)
Set value
num_channelsof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_type(self, i, unsigned int value)
Set value
typeof(<chip.hipMipmappedArray*>self._ptr)[i].
- set_width(self, i, unsigned int value)
Set value
widthof(<chip.hipMipmappedArray*>self._ptr)[i].
- type
(undocumented)
- width
(undocumented)
- cuda.cuda.CUmipmappedArray
alias of
hipMipmappedArray
- cuda.cuda.cudaMipmappedArray_t
alias of
hipMipmappedArray
- cuda.cuda.cudaMipmappedArray_const_t
alias of
hipMipmappedArray
- class cuda.cuda.cudaResourceType(value)
Bases:
_hipResourceType__BaseAn 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.cuda.CUresourcetype_enum(value)
Bases:
_HIPresourcetype_enum__BaseAn 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.cuda.CUresourcetype(value)
Bases:
_HIPresourcetype_enum__BaseAn 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.cuda.CUaddress_mode_enum(value)
Bases:
_HIPaddress_mode_enum__BaseAn 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.cuda.CUaddress_mode(value)
Bases:
_HIPaddress_mode_enum__BaseAn 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.cuda.CUfilter_mode_enum(value)
Bases:
_HIPfilter_mode_enum__BaseAn 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.cuda.CUfilter_mode(value)
Bases:
_HIPfilter_mode_enum__BaseAn 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.cuda.CUDA_TEXTURE_DESC_st
Bases:
HIP_TEXTURE_DESC_st- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_TEXTURE_DESC_st.
Constructor for type HIP_TEXTURE_DESC_st.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_TEXTURE_DESC_streference, this method returns it directly. No newHIP_TEXTURE_DESC_stis created in this case.
- get_borderColor(self, i)
Get value of
borderColorof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- get_filterMode(self, i)
Get value of
filterModeof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- get_flags(self, i)
Get value
flagsof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- get_maxAnisotropy(self, i)
Get value
maxAnisotropyof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- get_maxMipmapLevelClamp(self, i)
Get value
maxMipmapLevelClampof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- get_minMipmapLevelClamp(self, i)
Get value
minMipmapLevelClampof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- get_mipmapFilterMode(self, i)
Get value of
mipmapFilterModeof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- get_mipmapLevelBias(self, i)
Get value
mipmapLevelBiasof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<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
filterModeof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- set_flags(self, i, unsigned int value)
Set value
flagsof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- set_maxAnisotropy(self, i, unsigned int value)
Set value
maxAnisotropyof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- set_maxMipmapLevelClamp(self, i, float value)
Set value
maxMipmapLevelClampof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- set_minMipmapLevelClamp(self, i, float value)
Set value
minMipmapLevelClampof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- set_mipmapFilterMode(self, i, value)
Set value
mipmapFilterModeof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- set_mipmapLevelBias(self, i, float value)
Set value
mipmapLevelBiasof(<chip.HIP_TEXTURE_DESC_st*>self._ptr)[i].
- cuda.cuda.CUDA_TEXTURE_DESC
alias of
HIP_TEXTURE_DESC_st
- cuda.cuda.CUDA_TEXTURE_DESC_v1
alias of
HIP_TEXTURE_DESC_st
- class cuda.cuda.cudaResourceViewFormat(value)
Bases:
_hipResourceViewFormat__BaseAn 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.cuda.CUresourceViewFormat_enum(value)
Bases:
_HIPresourceViewFormat_enum__BaseAn 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.cuda.CUresourceViewFormat(value)
Bases:
_HIPresourceViewFormat_enum__BaseAn 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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipResourceDescreference, this method returns it directly. No newhipResourceDescis created in this case.
- get_res(self, i)
Get value of
resof(<chip.hipResourceDesc*>self._ptr)[i].
- get_resType(self, i)
Get value of
resTypeof(<chip.hipResourceDesc*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- res
(undocumented)
- resType
(undocumented)
- set_resType(self, i, value)
Set value
resTypeof(<chip.hipResourceDesc*>self._ptr)[i].
- class cuda.cuda.CUDA_RESOURCE_DESC_st
Bases:
HIP_RESOURCE_DESC_st- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_RESOURCE_DESC_st.
Constructor for type HIP_RESOURCE_DESC_st.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_RESOURCE_DESC_streference, this method returns it directly. No newHIP_RESOURCE_DESC_stis created in this case.
- get_flags(self, i)
Get value
flagsof(<chip.HIP_RESOURCE_DESC_st*>self._ptr)[i].
- get_res(self, i)
Get value of
resof(<chip.HIP_RESOURCE_DESC_st*>self._ptr)[i].
- get_resType(self, i)
Get value of
resTypeof(<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
flagsof(<chip.HIP_RESOURCE_DESC_st*>self._ptr)[i].
- set_resType(self, i, value)
Set value
resTypeof(<chip.HIP_RESOURCE_DESC_st*>self._ptr)[i].
- cuda.cuda.CUDA_RESOURCE_DESC
alias of
HIP_RESOURCE_DESC_st
- cuda.cuda.CUDA_RESOURCE_DESC_v1
alias of
HIP_RESOURCE_DESC_st
- class cuda.cuda.cudaResourceViewDesc
Bases:
hipResourceViewDesc- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipResourceViewDesc.
Constructor for type hipResourceViewDesc.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipResourceViewDescreference, this method returns it directly. No newhipResourceViewDescis created in this case.
- get_depth(self, i)
Get value
depthof(<chip.hipResourceViewDesc*>self._ptr)[i].
- get_firstLayer(self, i)
Get value
firstLayerof(<chip.hipResourceViewDesc*>self._ptr)[i].
- get_firstMipmapLevel(self, i)
Get value
firstMipmapLevelof(<chip.hipResourceViewDesc*>self._ptr)[i].
- get_format(self, i)
Get value of
formatof(<chip.hipResourceViewDesc*>self._ptr)[i].
- get_height(self, i)
Get value
heightof(<chip.hipResourceViewDesc*>self._ptr)[i].
- get_lastLayer(self, i)
Get value
lastLayerof(<chip.hipResourceViewDesc*>self._ptr)[i].
- get_lastMipmapLevel(self, i)
Get value
lastMipmapLevelof(<chip.hipResourceViewDesc*>self._ptr)[i].
- get_width(self, i)
Get value
widthof(<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
depthof(<chip.hipResourceViewDesc*>self._ptr)[i].
- set_firstLayer(self, i, unsigned int value)
Set value
firstLayerof(<chip.hipResourceViewDesc*>self._ptr)[i].
- set_firstMipmapLevel(self, i, unsigned int value)
Set value
firstMipmapLevelof(<chip.hipResourceViewDesc*>self._ptr)[i].
- set_format(self, i, value)
Set value
formatof(<chip.hipResourceViewDesc*>self._ptr)[i].
- set_height(self, i, unsigned long value)
Set value
heightof(<chip.hipResourceViewDesc*>self._ptr)[i].
- set_lastLayer(self, i, unsigned int value)
Set value
lastLayerof(<chip.hipResourceViewDesc*>self._ptr)[i].
- set_lastMipmapLevel(self, i, unsigned int value)
Set value
lastMipmapLevelof(<chip.hipResourceViewDesc*>self._ptr)[i].
- set_width(self, i, unsigned long value)
Set value
widthof(<chip.hipResourceViewDesc*>self._ptr)[i].
- width
(undocumented)
- class cuda.cuda.CUDA_RESOURCE_VIEW_DESC_st
Bases:
HIP_RESOURCE_VIEW_DESC_st- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_RESOURCE_VIEW_DESC_st.
Constructor for type HIP_RESOURCE_VIEW_DESC_st.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_RESOURCE_VIEW_DESC_streference, this method returns it directly. No newHIP_RESOURCE_VIEW_DESC_stis created in this case.
- get_depth(self, i)
Get value
depthof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- get_firstLayer(self, i)
Get value
firstLayerof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- get_firstMipmapLevel(self, i)
Get value
firstMipmapLevelof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- get_format(self, i)
Get value of
formatof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- get_height(self, i)
Get value
heightof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- get_lastLayer(self, i)
Get value
lastLayerof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- get_lastMipmapLevel(self, i)
Get value
lastMipmapLevelof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- get_width(self, i)
Get value
widthof(<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
depthof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- set_firstLayer(self, i, unsigned int value)
Set value
firstLayerof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- set_firstMipmapLevel(self, i, unsigned int value)
Set value
firstMipmapLevelof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- set_format(self, i, value)
Set value
formatof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- set_height(self, i, unsigned long value)
Set value
heightof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- set_lastLayer(self, i, unsigned int value)
Set value
lastLayerof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- set_lastMipmapLevel(self, i, unsigned int value)
Set value
lastMipmapLevelof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- set_width(self, i, unsigned long value)
Set value
widthof(<chip.HIP_RESOURCE_VIEW_DESC_st*>self._ptr)[i].
- width
Width of the resource view
- cuda.cuda.CUDA_RESOURCE_VIEW_DESC
alias of
HIP_RESOURCE_VIEW_DESC_st
- cuda.cuda.CUDA_RESOURCE_VIEW_DESC_v1
alias of
HIP_RESOURCE_VIEW_DESC_st
- class cuda.cuda.cudaMemcpyKind(value)
Bases:
_hipMemcpyKind__BaseAn 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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipPitchedPtrreference, this method returns it directly. No newhipPitchedPtris created in this case.
- get_pitch(self, i)
Get value
pitchof(<chip.hipPitchedPtr*>self._ptr)[i].
- get_ptr(self, i)
Get value
ptrof(<chip.hipPitchedPtr*>self._ptr)[i].
- get_xsize(self, i)
Get value
xsizeof(<chip.hipPitchedPtr*>self._ptr)[i].
- get_ysize(self, i)
Get value
ysizeof(<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
pitchof(<chip.hipPitchedPtr*>self._ptr)[i].
- set_ptr(self, i, value)
Set value
ptrof(<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
xsizeof(<chip.hipPitchedPtr*>self._ptr)[i].
- set_ysize(self, i, unsigned long value)
Set value
ysizeof(<chip.hipPitchedPtr*>self._ptr)[i].
- xsize
(undocumented)
- ysize
(undocumented)
- class cuda.cuda.cudaExtent
Bases:
hipExtent- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExtent.
Constructor for type hipExtent.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExtentreference, this method returns it directly. No newhipExtentis created in this case.
- get_depth(self, i)
Get value
depthof(<chip.hipExtent*>self._ptr)[i].
- get_height(self, i)
Get value
heightof(<chip.hipExtent*>self._ptr)[i].
- get_width(self, i)
Get value
widthof(<chip.hipExtent*>self._ptr)[i].
- height
(undocumented)
- is_ptr_null
If data pointer is NULL.
- set_depth(self, i, unsigned long value)
Set value
depthof(<chip.hipExtent*>self._ptr)[i].
- set_height(self, i, unsigned long value)
Set value
heightof(<chip.hipExtent*>self._ptr)[i].
- set_width(self, i, unsigned long value)
Set value
widthof(<chip.hipExtent*>self._ptr)[i].
- width
(undocumented)
- class cuda.cuda.cudaPos
Bases:
hipPos- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipPos.
Constructor for type hipPos.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipPosreference, this method returns it directly. No newhipPosis created in this case.
- get_x(self, i)
Get value
xof(<chip.hipPos*>self._ptr)[i].
- get_y(self, i)
Get value
yof(<chip.hipPos*>self._ptr)[i].
- get_z(self, i)
Get value
zof(<chip.hipPos*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_x(self, i, unsigned long value)
Set value
xof(<chip.hipPos*>self._ptr)[i].
- set_y(self, i, unsigned long value)
Set value
yof(<chip.hipPos*>self._ptr)[i].
- set_z(self, i, unsigned long value)
Set value
zof(<chip.hipPos*>self._ptr)[i].
- x
(undocumented)
- y
(undocumented)
- z
(undocumented)
- class cuda.cuda.cudaMemcpy3DParms
Bases:
hipMemcpy3DParms- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemcpy3DParms.
Constructor for type hipMemcpy3DParms.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemcpy3DParmsreference, this method returns it directly. No newhipMemcpy3DParmsis created in this case.
- get_dstPos(self, i)
Get value of
dstPosof(<chip.hipMemcpy3DParms*>self._ptr)[i].
- get_dstPtr(self, i)
Get value of
dstPtrof(<chip.hipMemcpy3DParms*>self._ptr)[i].
- get_extent(self, i)
Get value of
extentof(<chip.hipMemcpy3DParms*>self._ptr)[i].
- get_kind(self, i)
Get value of
kindof(<chip.hipMemcpy3DParms*>self._ptr)[i].
- get_srcPos(self, i)
Get value of
srcPosof(<chip.hipMemcpy3DParms*>self._ptr)[i].
- get_srcPtr(self, i)
Get value of
srcPtrof(<chip.hipMemcpy3DParms*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- kind
(undocumented)
- set_kind(self, i, value)
Set value
kindof(<chip.hipMemcpy3DParms*>self._ptr)[i].
- srcPos
(undocumented)
- srcPtr
(undocumented)
- class cuda.cuda.CUDA_MEMCPY3D
Bases:
HIP_MEMCPY3D- Depth
(undocumented)
- Height
(undocumented)
- static PROPERTIES()
- WidthInBytes
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_MEMCPY3D.
Constructor for type HIP_MEMCPY3D.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_MEMCPY3Dreference, this method returns it directly. No newHIP_MEMCPY3Dis created in this case.
- get_Depth(self, i)
Get value
Depthof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_Height(self, i)
Get value
Heightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_WidthInBytes(self, i)
Get value
WidthInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstDevice(self, i)
Get value
dstDeviceof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstHeight(self, i)
Get value
dstHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstHost(self, i)
Get value
dstHostof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstLOD(self, i)
Get value
dstLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstMemoryType(self, i)
Get value of
dstMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstPitch(self, i)
Get value
dstPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstXInBytes(self, i)
Get value
dstXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstY(self, i)
Get value
dstYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstZ(self, i)
Get value
dstZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcDevice(self, i)
Get value
srcDeviceof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcHeight(self, i)
Get value
srcHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcHost(self, i)
Get value
srcHostof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcLOD(self, i)
Get value
srcLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcMemoryType(self, i)
Get value of
srcMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcPitch(self, i)
Get value
srcPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcXInBytes(self, i)
Get value
srcXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcY(self, i)
Get value
srcYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcZ(self, i)
Get value
srcZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Depth(self, i, unsigned long value)
Set value
Depthof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_WidthInBytes(self, i, unsigned long value)
Set value
WidthInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstDevice(self, i, value)
Set value
dstDeviceof(<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
dstHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstHost(self, i, value)
Set value
dstHostof(<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
dstLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstMemoryType(self, i, value)
Set value
dstMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstPitch(self, i, unsigned long value)
Set value
dstPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstXInBytes(self, i, unsigned long value)
Set value
dstXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstY(self, i, unsigned long value)
Set value
dstYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstZ(self, i, unsigned long value)
Set value
dstZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcDevice(self, i, value)
Set value
srcDeviceof(<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
srcHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcHost(self, i, value)
Set value
srcHostof(<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
srcLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcMemoryType(self, i, value)
Set value
srcMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcPitch(self, i, unsigned long value)
Set value
srcPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcXInBytes(self, i, unsigned long value)
Set value
srcXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcY(self, i, unsigned long value)
Set value
srcYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcZ(self, i, unsigned long value)
Set value
srcZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- srcDevice
(undocumented) Note:
Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcHeight
(undocumented)
- srcHost
(undocumented) Note:
Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcLOD
(undocumented)
- srcMemoryType
(undocumented)
- srcPitch
(undocumented)
- srcXInBytes
(undocumented)
- srcY
(undocumented)
- srcZ
(undocumented)
- class cuda.cuda.CUDA_MEMCPY3D_st
Bases:
HIP_MEMCPY3D- Depth
(undocumented)
- Height
(undocumented)
- static PROPERTIES()
- WidthInBytes
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_MEMCPY3D.
Constructor for type HIP_MEMCPY3D.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_MEMCPY3Dreference, this method returns it directly. No newHIP_MEMCPY3Dis created in this case.
- get_Depth(self, i)
Get value
Depthof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_Height(self, i)
Get value
Heightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_WidthInBytes(self, i)
Get value
WidthInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstDevice(self, i)
Get value
dstDeviceof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstHeight(self, i)
Get value
dstHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstHost(self, i)
Get value
dstHostof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstLOD(self, i)
Get value
dstLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstMemoryType(self, i)
Get value of
dstMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstPitch(self, i)
Get value
dstPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstXInBytes(self, i)
Get value
dstXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstY(self, i)
Get value
dstYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstZ(self, i)
Get value
dstZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcDevice(self, i)
Get value
srcDeviceof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcHeight(self, i)
Get value
srcHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcHost(self, i)
Get value
srcHostof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcLOD(self, i)
Get value
srcLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcMemoryType(self, i)
Get value of
srcMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcPitch(self, i)
Get value
srcPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcXInBytes(self, i)
Get value
srcXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcY(self, i)
Get value
srcYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcZ(self, i)
Get value
srcZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Depth(self, i, unsigned long value)
Set value
Depthof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_WidthInBytes(self, i, unsigned long value)
Set value
WidthInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstDevice(self, i, value)
Set value
dstDeviceof(<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
dstHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstHost(self, i, value)
Set value
dstHostof(<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
dstLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstMemoryType(self, i, value)
Set value
dstMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstPitch(self, i, unsigned long value)
Set value
dstPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstXInBytes(self, i, unsigned long value)
Set value
dstXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstY(self, i, unsigned long value)
Set value
dstYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstZ(self, i, unsigned long value)
Set value
dstZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcDevice(self, i, value)
Set value
srcDeviceof(<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
srcHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcHost(self, i, value)
Set value
srcHostof(<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
srcLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcMemoryType(self, i, value)
Set value
srcMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcPitch(self, i, unsigned long value)
Set value
srcPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcXInBytes(self, i, unsigned long value)
Set value
srcXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcY(self, i, unsigned long value)
Set value
srcYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcZ(self, i, unsigned long value)
Set value
srcZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- srcDevice
(undocumented) Note:
Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcHeight
(undocumented)
- srcHost
(undocumented) Note:
Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcLOD
(undocumented)
- srcMemoryType
(undocumented)
- srcPitch
(undocumented)
- srcXInBytes
(undocumented)
- srcY
(undocumented)
- srcZ
(undocumented)
- class cuda.cuda.CUDA_MEMCPY3D_v1
Bases:
HIP_MEMCPY3D- Depth
(undocumented)
- Height
(undocumented)
- static PROPERTIES()
- WidthInBytes
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_MEMCPY3D.
Constructor for type HIP_MEMCPY3D.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_MEMCPY3Dreference, this method returns it directly. No newHIP_MEMCPY3Dis created in this case.
- get_Depth(self, i)
Get value
Depthof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_Height(self, i)
Get value
Heightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_WidthInBytes(self, i)
Get value
WidthInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstDevice(self, i)
Get value
dstDeviceof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstHeight(self, i)
Get value
dstHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstHost(self, i)
Get value
dstHostof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstLOD(self, i)
Get value
dstLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstMemoryType(self, i)
Get value of
dstMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstPitch(self, i)
Get value
dstPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstXInBytes(self, i)
Get value
dstXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstY(self, i)
Get value
dstYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstZ(self, i)
Get value
dstZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcDevice(self, i)
Get value
srcDeviceof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcHeight(self, i)
Get value
srcHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcHost(self, i)
Get value
srcHostof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcLOD(self, i)
Get value
srcLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcMemoryType(self, i)
Get value of
srcMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcPitch(self, i)
Get value
srcPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcXInBytes(self, i)
Get value
srcXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcY(self, i)
Get value
srcYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcZ(self, i)
Get value
srcZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Depth(self, i, unsigned long value)
Set value
Depthof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_WidthInBytes(self, i, unsigned long value)
Set value
WidthInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstDevice(self, i, value)
Set value
dstDeviceof(<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
dstHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstHost(self, i, value)
Set value
dstHostof(<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
dstLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstMemoryType(self, i, value)
Set value
dstMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstPitch(self, i, unsigned long value)
Set value
dstPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstXInBytes(self, i, unsigned long value)
Set value
dstXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstY(self, i, unsigned long value)
Set value
dstYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstZ(self, i, unsigned long value)
Set value
dstZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcDevice(self, i, value)
Set value
srcDeviceof(<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
srcHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcHost(self, i, value)
Set value
srcHostof(<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
srcLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcMemoryType(self, i, value)
Set value
srcMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcPitch(self, i, unsigned long value)
Set value
srcPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcXInBytes(self, i, unsigned long value)
Set value
srcXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcY(self, i, unsigned long value)
Set value
srcYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcZ(self, i, unsigned long value)
Set value
srcZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- srcDevice
(undocumented) Note:
Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcHeight
(undocumented)
- srcHost
(undocumented) Note:
Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcLOD
(undocumented)
- srcMemoryType
(undocumented)
- srcPitch
(undocumented)
- srcXInBytes
(undocumented)
- srcY
(undocumented)
- srcZ
(undocumented)
- class cuda.cuda.CUDA_MEMCPY3D_v1_st
Bases:
HIP_MEMCPY3D- Depth
(undocumented)
- Height
(undocumented)
- static PROPERTIES()
- WidthInBytes
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_MEMCPY3D.
Constructor for type HIP_MEMCPY3D.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_MEMCPY3Dreference, this method returns it directly. No newHIP_MEMCPY3Dis created in this case.
- get_Depth(self, i)
Get value
Depthof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_Height(self, i)
Get value
Heightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_WidthInBytes(self, i)
Get value
WidthInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstDevice(self, i)
Get value
dstDeviceof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstHeight(self, i)
Get value
dstHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstHost(self, i)
Get value
dstHostof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstLOD(self, i)
Get value
dstLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstMemoryType(self, i)
Get value of
dstMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstPitch(self, i)
Get value
dstPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstXInBytes(self, i)
Get value
dstXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstY(self, i)
Get value
dstYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstZ(self, i)
Get value
dstZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcDevice(self, i)
Get value
srcDeviceof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcHeight(self, i)
Get value
srcHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcHost(self, i)
Get value
srcHostof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcLOD(self, i)
Get value
srcLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcMemoryType(self, i)
Get value of
srcMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcPitch(self, i)
Get value
srcPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcXInBytes(self, i)
Get value
srcXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcY(self, i)
Get value
srcYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcZ(self, i)
Get value
srcZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Depth(self, i, unsigned long value)
Set value
Depthof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_WidthInBytes(self, i, unsigned long value)
Set value
WidthInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstDevice(self, i, value)
Set value
dstDeviceof(<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
dstHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstHost(self, i, value)
Set value
dstHostof(<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
dstLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstMemoryType(self, i, value)
Set value
dstMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstPitch(self, i, unsigned long value)
Set value
dstPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstXInBytes(self, i, unsigned long value)
Set value
dstXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstY(self, i, unsigned long value)
Set value
dstYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstZ(self, i, unsigned long value)
Set value
dstZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcDevice(self, i, value)
Set value
srcDeviceof(<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
srcHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcHost(self, i, value)
Set value
srcHostof(<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
srcLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcMemoryType(self, i, value)
Set value
srcMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcPitch(self, i, unsigned long value)
Set value
srcPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcXInBytes(self, i, unsigned long value)
Set value
srcXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcY(self, i, unsigned long value)
Set value
srcYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcZ(self, i, unsigned long value)
Set value
srcZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- srcDevice
(undocumented) Note:
Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcHeight
(undocumented)
- srcHost
(undocumented) Note:
Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcLOD
(undocumented)
- srcMemoryType
(undocumented)
- srcPitch
(undocumented)
- srcXInBytes
(undocumented)
- srcY
(undocumented)
- srcZ
(undocumented)
- class cuda.cuda.CUDA_MEMCPY3D_v2
Bases:
HIP_MEMCPY3D- Depth
(undocumented)
- Height
(undocumented)
- static PROPERTIES()
- WidthInBytes
(undocumented)
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type HIP_MEMCPY3D.
Constructor for type HIP_MEMCPY3D.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anHIP_MEMCPY3Dreference, this method returns it directly. No newHIP_MEMCPY3Dis created in this case.
- get_Depth(self, i)
Get value
Depthof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_Height(self, i)
Get value
Heightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_WidthInBytes(self, i)
Get value
WidthInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstDevice(self, i)
Get value
dstDeviceof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstHeight(self, i)
Get value
dstHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstHost(self, i)
Get value
dstHostof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstLOD(self, i)
Get value
dstLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstMemoryType(self, i)
Get value of
dstMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstPitch(self, i)
Get value
dstPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstXInBytes(self, i)
Get value
dstXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstY(self, i)
Get value
dstYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_dstZ(self, i)
Get value
dstZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcDevice(self, i)
Get value
srcDeviceof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcHeight(self, i)
Get value
srcHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcHost(self, i)
Get value
srcHostof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcLOD(self, i)
Get value
srcLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcMemoryType(self, i)
Get value of
srcMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcPitch(self, i)
Get value
srcPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcXInBytes(self, i)
Get value
srcXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcY(self, i)
Get value
srcYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- get_srcZ(self, i)
Get value
srcZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_Depth(self, i, unsigned long value)
Set value
Depthof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_Height(self, i, unsigned long value)
Set value
Heightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_WidthInBytes(self, i, unsigned long value)
Set value
WidthInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstDevice(self, i, value)
Set value
dstDeviceof(<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
dstHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstHost(self, i, value)
Set value
dstHostof(<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
dstLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstMemoryType(self, i, value)
Set value
dstMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstPitch(self, i, unsigned long value)
Set value
dstPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstXInBytes(self, i, unsigned long value)
Set value
dstXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstY(self, i, unsigned long value)
Set value
dstYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_dstZ(self, i, unsigned long value)
Set value
dstZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcDevice(self, i, value)
Set value
srcDeviceof(<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
srcHeightof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcHost(self, i, value)
Set value
srcHostof(<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
srcLODof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcMemoryType(self, i, value)
Set value
srcMemoryTypeof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcPitch(self, i, unsigned long value)
Set value
srcPitchof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcXInBytes(self, i, unsigned long value)
Set value
srcXInBytesof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcY(self, i, unsigned long value)
Set value
srcYof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- set_srcZ(self, i, unsigned long value)
Set value
srcZof(<chip.HIP_MEMCPY3D*>self._ptr)[i].
- srcDevice
(undocumented) Note:
Setting this srcDevice can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcHeight
(undocumented)
- srcHost
(undocumented) Note:
Setting this srcHost can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- srcLOD
(undocumented)
- srcMemoryType
(undocumented)
- srcPitch
(undocumented)
- srcXInBytes
(undocumented)
- srcY
(undocumented)
- srcZ
(undocumented)
- class cuda.cuda.CUfunction_attribute(value)
Bases:
_hipFunction_attribute__BaseAn 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.cuda.CUfunction_attribute_enum(value)
Bases:
_hipFunction_attribute__BaseAn 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.cuda.CUpointer_attribute(value)
Bases:
_hipPointer_attribute__BaseAn 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.cuda.CUpointer_attribute_enum(value)
Bases:
_hipPointer_attribute__BaseAn 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.cuda.cudaCreateChannelDesc(x, y, z, w, f)
hipCreateChannelDesc(int x, int y, int z, int w, f) (No short description, might be part of a group.)
- Args:
- x (
int): (undocumented)
- y (
int): (undocumented)
- z (
int): (undocumented)
- w (
int): (undocumented)
- f (
hipChannelFormatKind): (undocumented)
- x (
- Returns:
A
tupleof size 1 that contains (in that order):hipError_t:Always returns
hipSuccess.
- cuda.cuda.CUtexObject
alias of
__hip_texture
- cuda.cuda.CUtexObject_v1
alias of
__hip_texture
- cuda.cuda.cudaTextureObject_t
alias of
__hip_texture
- class cuda.cuda.cudaTextureAddressMode(value)
Bases:
_hipTextureAddressMode__BaseAn 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.cuda.cudaTextureFilterMode(value)
Bases:
_hipTextureFilterMode__BaseAn 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.cuda.cudaTextureReadMode(value)
Bases:
_hipTextureReadMode__BaseAn 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.cuda.CUtexref_st
Bases:
textureReference- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type textureReference.
Constructor for type textureReference.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself antextureReferencereference, this method returns it directly. No newtextureReferenceis created in this case.
- get_channelDesc(self, i)
Get value of
channelDescof(<chip.textureReference*>self._ptr)[i].
- get_filterMode(self, i)
Get value of
filterModeof(<chip.textureReference*>self._ptr)[i].
- get_format(self, i)
Get value of
formatof(<chip.textureReference*>self._ptr)[i].
- get_maxAnisotropy(self, i)
Get value
maxAnisotropyof(<chip.textureReference*>self._ptr)[i].
- get_maxMipmapLevelClamp(self, i)
Get value
maxMipmapLevelClampof(<chip.textureReference*>self._ptr)[i].
- get_minMipmapLevelClamp(self, i)
Get value
minMipmapLevelClampof(<chip.textureReference*>self._ptr)[i].
- get_mipmapFilterMode(self, i)
Get value of
mipmapFilterModeof(<chip.textureReference*>self._ptr)[i].
- get_mipmapLevelBias(self, i)
Get value
mipmapLevelBiasof(<chip.textureReference*>self._ptr)[i].
- get_normalized(self, i)
Get value
normalizedof(<chip.textureReference*>self._ptr)[i].
- get_numChannels(self, i)
Get value
numChannelsof(<chip.textureReference*>self._ptr)[i].
- get_readMode(self, i)
Get value of
readModeof(<chip.textureReference*>self._ptr)[i].
- get_sRGB(self, i)
Get value
sRGBof(<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
filterModeof(<chip.textureReference*>self._ptr)[i].
- set_format(self, i, value)
Set value
formatof(<chip.textureReference*>self._ptr)[i].
- set_maxAnisotropy(self, i, unsigned int value)
Set value
maxAnisotropyof(<chip.textureReference*>self._ptr)[i].
- set_maxMipmapLevelClamp(self, i, float value)
Set value
maxMipmapLevelClampof(<chip.textureReference*>self._ptr)[i].
- set_minMipmapLevelClamp(self, i, float value)
Set value
minMipmapLevelClampof(<chip.textureReference*>self._ptr)[i].
- set_mipmapFilterMode(self, i, value)
Set value
mipmapFilterModeof(<chip.textureReference*>self._ptr)[i].
- set_mipmapLevelBias(self, i, float value)
Set value
mipmapLevelBiasof(<chip.textureReference*>self._ptr)[i].
- set_normalized(self, i, int value)
Set value
normalizedof(<chip.textureReference*>self._ptr)[i].
- set_numChannels(self, i, int value)
Set value
numChannelsof(<chip.textureReference*>self._ptr)[i].
- set_readMode(self, i, value)
Set value
readModeof(<chip.textureReference*>self._ptr)[i].
- set_sRGB(self, i, int value)
Set value
sRGBof(<chip.textureReference*>self._ptr)[i].
- class cuda.cuda.textureReference
Bases:
textureReference- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type textureReference.
Constructor for type textureReference.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself antextureReferencereference, this method returns it directly. No newtextureReferenceis created in this case.
- get_channelDesc(self, i)
Get value of
channelDescof(<chip.textureReference*>self._ptr)[i].
- get_filterMode(self, i)
Get value of
filterModeof(<chip.textureReference*>self._ptr)[i].
- get_format(self, i)
Get value of
formatof(<chip.textureReference*>self._ptr)[i].
- get_maxAnisotropy(self, i)
Get value
maxAnisotropyof(<chip.textureReference*>self._ptr)[i].
- get_maxMipmapLevelClamp(self, i)
Get value
maxMipmapLevelClampof(<chip.textureReference*>self._ptr)[i].
- get_minMipmapLevelClamp(self, i)
Get value
minMipmapLevelClampof(<chip.textureReference*>self._ptr)[i].
- get_mipmapFilterMode(self, i)
Get value of
mipmapFilterModeof(<chip.textureReference*>self._ptr)[i].
- get_mipmapLevelBias(self, i)
Get value
mipmapLevelBiasof(<chip.textureReference*>self._ptr)[i].
- get_normalized(self, i)
Get value
normalizedof(<chip.textureReference*>self._ptr)[i].
- get_numChannels(self, i)
Get value
numChannelsof(<chip.textureReference*>self._ptr)[i].
- get_readMode(self, i)
Get value of
readModeof(<chip.textureReference*>self._ptr)[i].
- get_sRGB(self, i)
Get value
sRGBof(<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
filterModeof(<chip.textureReference*>self._ptr)[i].
- set_format(self, i, value)
Set value
formatof(<chip.textureReference*>self._ptr)[i].
- set_maxAnisotropy(self, i, unsigned int value)
Set value
maxAnisotropyof(<chip.textureReference*>self._ptr)[i].
- set_maxMipmapLevelClamp(self, i, float value)
Set value
maxMipmapLevelClampof(<chip.textureReference*>self._ptr)[i].
- set_minMipmapLevelClamp(self, i, float value)
Set value
minMipmapLevelClampof(<chip.textureReference*>self._ptr)[i].
- set_mipmapFilterMode(self, i, value)
Set value
mipmapFilterModeof(<chip.textureReference*>self._ptr)[i].
- set_mipmapLevelBias(self, i, float value)
Set value
mipmapLevelBiasof(<chip.textureReference*>self._ptr)[i].
- set_normalized(self, i, int value)
Set value
normalizedof(<chip.textureReference*>self._ptr)[i].
- set_numChannels(self, i, int value)
Set value
numChannelsof(<chip.textureReference*>self._ptr)[i].
- set_readMode(self, i, value)
Set value
readModeof(<chip.textureReference*>self._ptr)[i].
- set_sRGB(self, i, int value)
Set value
sRGBof(<chip.textureReference*>self._ptr)[i].
- class cuda.cuda.cudaTextureDesc
Bases:
hipTextureDesc- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipTextureDesc.
Constructor for type hipTextureDesc.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipTextureDescreference, this method returns it directly. No newhipTextureDescis created in this case.
- get_borderColor(self, i)
Get value of
borderColorof(<chip.hipTextureDesc*>self._ptr)[i].
- get_filterMode(self, i)
Get value of
filterModeof(<chip.hipTextureDesc*>self._ptr)[i].
- get_maxAnisotropy(self, i)
Get value
maxAnisotropyof(<chip.hipTextureDesc*>self._ptr)[i].
- get_maxMipmapLevelClamp(self, i)
Get value
maxMipmapLevelClampof(<chip.hipTextureDesc*>self._ptr)[i].
- get_minMipmapLevelClamp(self, i)
Get value
minMipmapLevelClampof(<chip.hipTextureDesc*>self._ptr)[i].
- get_mipmapFilterMode(self, i)
Get value of
mipmapFilterModeof(<chip.hipTextureDesc*>self._ptr)[i].
- get_mipmapLevelBias(self, i)
Get value
mipmapLevelBiasof(<chip.hipTextureDesc*>self._ptr)[i].
- get_normalizedCoords(self, i)
Get value
normalizedCoordsof(<chip.hipTextureDesc*>self._ptr)[i].
- get_readMode(self, i)
Get value of
readModeof(<chip.hipTextureDesc*>self._ptr)[i].
- get_sRGB(self, i)
Get value
sRGBof(<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
filterModeof(<chip.hipTextureDesc*>self._ptr)[i].
- set_maxAnisotropy(self, i, unsigned int value)
Set value
maxAnisotropyof(<chip.hipTextureDesc*>self._ptr)[i].
- set_maxMipmapLevelClamp(self, i, float value)
Set value
maxMipmapLevelClampof(<chip.hipTextureDesc*>self._ptr)[i].
- set_minMipmapLevelClamp(self, i, float value)
Set value
minMipmapLevelClampof(<chip.hipTextureDesc*>self._ptr)[i].
- set_mipmapFilterMode(self, i, value)
Set value
mipmapFilterModeof(<chip.hipTextureDesc*>self._ptr)[i].
- set_mipmapLevelBias(self, i, float value)
Set value
mipmapLevelBiasof(<chip.hipTextureDesc*>self._ptr)[i].
- set_normalizedCoords(self, i, int value)
Set value
normalizedCoordsof(<chip.hipTextureDesc*>self._ptr)[i].
- set_readMode(self, i, value)
Set value
readModeof(<chip.hipTextureDesc*>self._ptr)[i].
- set_sRGB(self, i, int value)
Set value
sRGBof(<chip.hipTextureDesc*>self._ptr)[i].
- cuda.cuda.CUsurfObject
alias of
__hip_surface
- cuda.cuda.CUsurfObject_v1
alias of
__hip_surface
- cuda.cuda.cudaSurfaceObject_t
alias of
__hip_surface
- class cuda.cuda.surfaceReference
Bases:
surfaceReference- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type surfaceReference.
Constructor for type surfaceReference.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself ansurfaceReferencereference, this method returns it directly. No newsurfaceReferenceis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.cudaSurfaceBoundaryMode(value)
Bases:
_hipSurfaceBoundaryMode__BaseAn 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.cuda.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_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anihipCtx_treference, this method returns it directly. No newihipCtx_tis created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cuda.CUcontext
alias of
ihipCtx_t
- class cuda.cuda.CUdevice_P2PAttribute(value)
Bases:
_hipDeviceP2PAttr__BaseAn 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.cuda.CUdevice_P2PAttribute_enum(value)
Bases:
_hipDeviceP2PAttr__BaseAn 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.cuda.cudaDeviceP2PAttr(value)
Bases:
_hipDeviceP2PAttr__BaseAn 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.cuda.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_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anihipStream_treference, this method returns it directly. No newihipStream_tis created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cuda.CUstream
alias of
ihipStream_t
- cuda.cuda.cudaStream_t
alias of
ihipStream_t
- class cuda.cuda.CUipcMemHandle_st
Bases:
hipIpcMemHandle_st- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipIpcMemHandle_st.
Constructor for type hipIpcMemHandle_st.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipIpcMemHandle_streference, this method returns it directly. No newhipIpcMemHandle_stis created in this case.
- get_reserved(self, i)
Get value of
reservedof(<chip.hipIpcMemHandle_st*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- reserved
(undocumented)
- class cuda.cuda.cudaIpcMemHandle_st
Bases:
hipIpcMemHandle_st- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipIpcMemHandle_st.
Constructor for type hipIpcMemHandle_st.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipIpcMemHandle_streference, this method returns it directly. No newhipIpcMemHandle_stis created in this case.
- get_reserved(self, i)
Get value of
reservedof(<chip.hipIpcMemHandle_st*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- reserved
(undocumented)
- cuda.cuda.CUipcMemHandle
alias of
hipIpcMemHandle_st
- cuda.cuda.CUipcMemHandle_v1
alias of
hipIpcMemHandle_st
- cuda.cuda.cudaIpcMemHandle_t
alias of
hipIpcMemHandle_st
- class cuda.cuda.CUipcEventHandle_st
Bases:
hipIpcEventHandle_st- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipIpcEventHandle_st.
Constructor for type hipIpcEventHandle_st.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipIpcEventHandle_streference, this method returns it directly. No newhipIpcEventHandle_stis created in this case.
- get_reserved(self, i)
Get value of
reservedof(<chip.hipIpcEventHandle_st*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- reserved
(undocumented)
- class cuda.cuda.cudaIpcEventHandle_st
Bases:
hipIpcEventHandle_st- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipIpcEventHandle_st.
Constructor for type hipIpcEventHandle_st.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipIpcEventHandle_streference, this method returns it directly. No newhipIpcEventHandle_stis created in this case.
- get_reserved(self, i)
Get value of
reservedof(<chip.hipIpcEventHandle_st*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- reserved
(undocumented)
- cuda.cuda.CUipcEventHandle
alias of
hipIpcEventHandle_st
- cuda.cuda.CUipcEventHandle_v1
alias of
hipIpcEventHandle_st
- cuda.cuda.cudaIpcEventHandle_t
alias of
hipIpcEventHandle_st
- class cuda.cuda.CUmod_st
Bases:
ihipModule_t- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anihipModule_treference, this method returns it directly. No newihipModule_tis created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cuda.CUmodule
alias of
ihipModule_t
- class cuda.cuda.CUfunc_st
Bases:
ihipModuleSymbol_t- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anihipModuleSymbol_treference, this method returns it directly. No newihipModuleSymbol_tis created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cuda.CUfunction
alias of
ihipModuleSymbol_t
- cuda.cuda.cudaFunction_t
alias of
ihipModuleSymbol_t
- class cuda.cuda.CUmemPoolHandle_st
Bases:
ihipMemPoolHandle_t- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anihipMemPoolHandle_treference, this method returns it directly. No newihipMemPoolHandle_tis created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cuda.CUmemoryPool
alias of
ihipMemPoolHandle_t
- cuda.cuda.cudaMemPool_t
alias of
ihipMemPoolHandle_t
- class cuda.cuda.cudaFuncAttributes
Bases:
hipFuncAttributes- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipFuncAttributes.
Constructor for type hipFuncAttributes.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipFuncAttributesreference, this method returns it directly. No newhipFuncAttributesis created in this case.
- get_binaryVersion(self, i)
Get value
binaryVersionof(<chip.hipFuncAttributes*>self._ptr)[i].
- get_cacheModeCA(self, i)
Get value
cacheModeCAof(<chip.hipFuncAttributes*>self._ptr)[i].
- get_constSizeBytes(self, i)
Get value
constSizeBytesof(<chip.hipFuncAttributes*>self._ptr)[i].
- get_localSizeBytes(self, i)
Get value
localSizeBytesof(<chip.hipFuncAttributes*>self._ptr)[i].
- get_maxDynamicSharedSizeBytes(self, i)
Get value
maxDynamicSharedSizeBytesof(<chip.hipFuncAttributes*>self._ptr)[i].
- get_maxThreadsPerBlock(self, i)
Get value
maxThreadsPerBlockof(<chip.hipFuncAttributes*>self._ptr)[i].
- get_numRegs(self, i)
Get value
numRegsof(<chip.hipFuncAttributes*>self._ptr)[i].
- get_preferredShmemCarveout(self, i)
Get value
preferredShmemCarveoutof(<chip.hipFuncAttributes*>self._ptr)[i].
- get_ptxVersion(self, i)
Get value
ptxVersionof(<chip.hipFuncAttributes*>self._ptr)[i].
- get_sharedSizeBytes(self, i)
Get value
sharedSizeBytesof(<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
binaryVersionof(<chip.hipFuncAttributes*>self._ptr)[i].
- set_cacheModeCA(self, i, int value)
Set value
cacheModeCAof(<chip.hipFuncAttributes*>self._ptr)[i].
- set_constSizeBytes(self, i, unsigned long value)
Set value
constSizeBytesof(<chip.hipFuncAttributes*>self._ptr)[i].
- set_localSizeBytes(self, i, unsigned long value)
Set value
localSizeBytesof(<chip.hipFuncAttributes*>self._ptr)[i].
- set_maxDynamicSharedSizeBytes(self, i, int value)
Set value
maxDynamicSharedSizeBytesof(<chip.hipFuncAttributes*>self._ptr)[i].
- set_maxThreadsPerBlock(self, i, int value)
Set value
maxThreadsPerBlockof(<chip.hipFuncAttributes*>self._ptr)[i].
- set_numRegs(self, i, int value)
Set value
numRegsof(<chip.hipFuncAttributes*>self._ptr)[i].
- set_preferredShmemCarveout(self, i, int value)
Set value
preferredShmemCarveoutof(<chip.hipFuncAttributes*>self._ptr)[i].
- set_ptxVersion(self, i, int value)
Set value
ptxVersionof(<chip.hipFuncAttributes*>self._ptr)[i].
- set_sharedSizeBytes(self, i, unsigned long value)
Set value
sharedSizeBytesof(<chip.hipFuncAttributes*>self._ptr)[i].
- sharedSizeBytes
(undocumented)
- class cuda.cuda.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_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anihipEvent_treference, this method returns it directly. No newihipEvent_tis created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cuda.CUevent
alias of
ihipEvent_t
- cuda.cuda.cudaEvent_t
alias of
ihipEvent_t
- class cuda.cuda.CUlimit(value)
Bases:
_hipLimit_t__BaseAn 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.cuda.CUlimit_enum(value)
Bases:
_hipLimit_t__BaseAn 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.cuda.cudaLimit(value)
Bases:
_hipLimit_t__BaseAn 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.cuda.CUmem_advise(value)
Bases:
_hipMemoryAdvise__BaseAn 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.cuda.CUmem_advise_enum(value)
Bases:
_hipMemoryAdvise__BaseAn 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.cuda.cudaMemoryAdvise(value)
Bases:
_hipMemoryAdvise__BaseAn 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.cuda.CUmem_range_attribute(value)
Bases:
_hipMemRangeAttribute__BaseAn 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.cuda.CUmem_range_attribute_enum(value)
Bases:
_hipMemRangeAttribute__BaseAn 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.cuda.cudaMemRangeAttribute(value)
Bases:
_hipMemRangeAttribute__BaseAn 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.cuda.CUmemPool_attribute(value)
Bases:
_hipMemPoolAttr__BaseAn 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.cuda.CUmemPool_attribute_enum(value)
Bases:
_hipMemPoolAttr__BaseAn 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.cuda.cudaMemPoolAttr(value)
Bases:
_hipMemPoolAttr__BaseAn 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.cuda.CUmemLocationType(value)
Bases:
_hipMemLocationType__BaseAn 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.cuda.CUmemLocationType_enum(value)
Bases:
_hipMemLocationType__BaseAn 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.cuda.cudaMemLocationType(value)
Bases:
_hipMemLocationType__BaseAn 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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipMemLocationreference, this method returns it directly. No newhipMemLocationis created in this case.
- get_id(self, i)
Get value
idof(<chip.hipMemLocation*>self._ptr)[i].
- get_type(self, i)
Get value of
typeof(<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
idof(<chip.hipMemLocation*>self._ptr)[i].
- set_type(self, i, value)
Set value
typeof(<chip.hipMemLocation*>self._ptr)[i].
- type
Specifies the location type, which describes the meaning of id
- class cuda.cuda.CUmemLocation_st
Bases:
hipMemLocation- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemLocation.
Constructor for type hipMemLocation.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemLocationreference, this method returns it directly. No newhipMemLocationis created in this case.
- get_id(self, i)
Get value
idof(<chip.hipMemLocation*>self._ptr)[i].
- get_type(self, i)
Get value of
typeof(<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
idof(<chip.hipMemLocation*>self._ptr)[i].
- set_type(self, i, value)
Set value
typeof(<chip.hipMemLocation*>self._ptr)[i].
- type
Specifies the location type, which describes the meaning of id
- class cuda.cuda.CUmemLocation_v1
Bases:
hipMemLocation- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemLocation.
Constructor for type hipMemLocation.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemLocationreference, this method returns it directly. No newhipMemLocationis created in this case.
- get_id(self, i)
Get value
idof(<chip.hipMemLocation*>self._ptr)[i].
- get_type(self, i)
Get value of
typeof(<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
idof(<chip.hipMemLocation*>self._ptr)[i].
- set_type(self, i, value)
Set value
typeof(<chip.hipMemLocation*>self._ptr)[i].
- type
Specifies the location type, which describes the meaning of id
- class cuda.cuda.cudaMemLocation
Bases:
hipMemLocation- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemLocation.
Constructor for type hipMemLocation.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemLocationreference, this method returns it directly. No newhipMemLocationis created in this case.
- get_id(self, i)
Get value
idof(<chip.hipMemLocation*>self._ptr)[i].
- get_type(self, i)
Get value of
typeof(<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
idof(<chip.hipMemLocation*>self._ptr)[i].
- set_type(self, i, value)
Set value
typeof(<chip.hipMemLocation*>self._ptr)[i].
- type
Specifies the location type, which describes the meaning of id
- class cuda.cuda.CUmemAccess_flags(value)
Bases:
_hipMemAccessFlags__BaseAn 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.cuda.CUmemAccess_flags_enum(value)
Bases:
_hipMemAccessFlags__BaseAn 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.cuda.cudaMemAccessFlags(value)
Bases:
_hipMemAccessFlags__BaseAn 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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipMemAccessDescreference, this method returns it directly. No newhipMemAccessDescis created in this case.
- get_flags(self, i)
Get value of
flagsof(<chip.hipMemAccessDesc*>self._ptr)[i].
- get_location(self, i)
Get value of
locationof(<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
flagsof(<chip.hipMemAccessDesc*>self._ptr)[i].
- class cuda.cuda.CUmemAccessDesc_st
Bases:
hipMemAccessDesc- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAccessDesc.
Constructor for type hipMemAccessDesc.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemAccessDescreference, this method returns it directly. No newhipMemAccessDescis created in this case.
- get_flags(self, i)
Get value of
flagsof(<chip.hipMemAccessDesc*>self._ptr)[i].
- get_location(self, i)
Get value of
locationof(<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
flagsof(<chip.hipMemAccessDesc*>self._ptr)[i].
- class cuda.cuda.CUmemAccessDesc_v1
Bases:
hipMemAccessDesc- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAccessDesc.
Constructor for type hipMemAccessDesc.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemAccessDescreference, this method returns it directly. No newhipMemAccessDescis created in this case.
- get_flags(self, i)
Get value of
flagsof(<chip.hipMemAccessDesc*>self._ptr)[i].
- get_location(self, i)
Get value of
locationof(<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
flagsof(<chip.hipMemAccessDesc*>self._ptr)[i].
- class cuda.cuda.cudaMemAccessDesc
Bases:
hipMemAccessDesc- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAccessDesc.
Constructor for type hipMemAccessDesc.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemAccessDescreference, this method returns it directly. No newhipMemAccessDescis created in this case.
- get_flags(self, i)
Get value of
flagsof(<chip.hipMemAccessDesc*>self._ptr)[i].
- get_location(self, i)
Get value of
locationof(<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
flagsof(<chip.hipMemAccessDesc*>self._ptr)[i].
- class cuda.cuda.CUmemAllocationType(value)
Bases:
_hipMemAllocationType__BaseAn 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.cuda.CUmemAllocationType_enum(value)
Bases:
_hipMemAllocationType__BaseAn 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.cuda.cudaMemAllocationType(value)
Bases:
_hipMemAllocationType__BaseAn 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.cuda.CUmemAllocationHandleType(value)
Bases:
_hipMemAllocationHandleType__BaseAn 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.cuda.CUmemAllocationHandleType_enum(value)
Bases:
_hipMemAllocationHandleType__BaseAn 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.cuda.cudaMemAllocationHandleType(value)
Bases:
_hipMemAllocationHandleType__BaseAn 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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipMemPoolPropsreference, this method returns it directly. No newhipMemPoolPropsis created in this case.
- get_allocType(self, i)
Get value of
allocTypeof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_handleTypes(self, i)
Get value of
handleTypesof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_location(self, i)
Get value of
locationof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_win32SecurityAttributes(self, i)
Get value
win32SecurityAttributesof(<chip.hipMemPoolProps*>self._ptr)[i].
- handleTypes
Handle types that will be supported by allocations from the pool
- is_ptr_null
If data pointer is NULL.
- location
Location where allocations should reside
- reserved
Reserved for future use, must be 0
- set_allocType(self, i, value)
Set value
allocTypeof(<chip.hipMemPoolProps*>self._ptr)[i].
- set_handleTypes(self, i, value)
Set value
handleTypesof(<chip.hipMemPoolProps*>self._ptr)[i].
- set_win32SecurityAttributes(self, i, value)
Set value
win32SecurityAttributesof(<chip.hipMemPoolProps*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- win32SecurityAttributes
Windows-specific LPSECURITYATTRIBUTES required when hipMemHandleTypeWin32 is specified Note:
Setting this win32SecurityAttributes can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- class cuda.cuda.CUmemPoolProps_st
Bases:
hipMemPoolProps- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolProps.
Constructor for type hipMemPoolProps.
- allocType
Allocation type. Currently must be specified as hipMemAllocationTypePinned
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemPoolPropsreference, this method returns it directly. No newhipMemPoolPropsis created in this case.
- get_allocType(self, i)
Get value of
allocTypeof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_handleTypes(self, i)
Get value of
handleTypesof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_location(self, i)
Get value of
locationof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_win32SecurityAttributes(self, i)
Get value
win32SecurityAttributesof(<chip.hipMemPoolProps*>self._ptr)[i].
- handleTypes
Handle types that will be supported by allocations from the pool
- is_ptr_null
If data pointer is NULL.
- location
Location where allocations should reside
- reserved
Reserved for future use, must be 0
- set_allocType(self, i, value)
Set value
allocTypeof(<chip.hipMemPoolProps*>self._ptr)[i].
- set_handleTypes(self, i, value)
Set value
handleTypesof(<chip.hipMemPoolProps*>self._ptr)[i].
- set_win32SecurityAttributes(self, i, value)
Set value
win32SecurityAttributesof(<chip.hipMemPoolProps*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- win32SecurityAttributes
Windows-specific LPSECURITYATTRIBUTES required when hipMemHandleTypeWin32 is specified Note:
Setting this win32SecurityAttributes can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- class cuda.cuda.CUmemPoolProps_v1
Bases:
hipMemPoolProps- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolProps.
Constructor for type hipMemPoolProps.
- allocType
Allocation type. Currently must be specified as hipMemAllocationTypePinned
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemPoolPropsreference, this method returns it directly. No newhipMemPoolPropsis created in this case.
- get_allocType(self, i)
Get value of
allocTypeof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_handleTypes(self, i)
Get value of
handleTypesof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_location(self, i)
Get value of
locationof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_win32SecurityAttributes(self, i)
Get value
win32SecurityAttributesof(<chip.hipMemPoolProps*>self._ptr)[i].
- handleTypes
Handle types that will be supported by allocations from the pool
- is_ptr_null
If data pointer is NULL.
- location
Location where allocations should reside
- reserved
Reserved for future use, must be 0
- set_allocType(self, i, value)
Set value
allocTypeof(<chip.hipMemPoolProps*>self._ptr)[i].
- set_handleTypes(self, i, value)
Set value
handleTypesof(<chip.hipMemPoolProps*>self._ptr)[i].
- set_win32SecurityAttributes(self, i, value)
Set value
win32SecurityAttributesof(<chip.hipMemPoolProps*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- win32SecurityAttributes
Windows-specific LPSECURITYATTRIBUTES required when hipMemHandleTypeWin32 is specified Note:
Setting this win32SecurityAttributes can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- class cuda.cuda.cudaMemPoolProps
Bases:
hipMemPoolProps- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolProps.
Constructor for type hipMemPoolProps.
- allocType
Allocation type. Currently must be specified as hipMemAllocationTypePinned
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemPoolPropsreference, this method returns it directly. No newhipMemPoolPropsis created in this case.
- get_allocType(self, i)
Get value of
allocTypeof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_handleTypes(self, i)
Get value of
handleTypesof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_location(self, i)
Get value of
locationof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<chip.hipMemPoolProps*>self._ptr)[i].
- get_win32SecurityAttributes(self, i)
Get value
win32SecurityAttributesof(<chip.hipMemPoolProps*>self._ptr)[i].
- handleTypes
Handle types that will be supported by allocations from the pool
- is_ptr_null
If data pointer is NULL.
- location
Location where allocations should reside
- reserved
Reserved for future use, must be 0
- set_allocType(self, i, value)
Set value
allocTypeof(<chip.hipMemPoolProps*>self._ptr)[i].
- set_handleTypes(self, i, value)
Set value
handleTypesof(<chip.hipMemPoolProps*>self._ptr)[i].
- set_win32SecurityAttributes(self, i, value)
Set value
win32SecurityAttributesof(<chip.hipMemPoolProps*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- win32SecurityAttributes
Windows-specific LPSECURITYATTRIBUTES required when hipMemHandleTypeWin32 is specified Note:
Setting this win32SecurityAttributes can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- class cuda.cuda.CUmemPoolPtrExportData
Bases:
hipMemPoolPtrExportData- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolPtrExportData.
Constructor for type hipMemPoolPtrExportData.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemPoolPtrExportDatareference, this method returns it directly. No newhipMemPoolPtrExportDatais created in this case.
- get_reserved(self, i)
Get value of
reservedof(<chip.hipMemPoolPtrExportData*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- reserved
(undocumented)
- class cuda.cuda.CUmemPoolPtrExportData_st
Bases:
hipMemPoolPtrExportData- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolPtrExportData.
Constructor for type hipMemPoolPtrExportData.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemPoolPtrExportDatareference, this method returns it directly. No newhipMemPoolPtrExportDatais created in this case.
- get_reserved(self, i)
Get value of
reservedof(<chip.hipMemPoolPtrExportData*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- reserved
(undocumented)
- class cuda.cuda.CUmemPoolPtrExportData_v1
Bases:
hipMemPoolPtrExportData- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolPtrExportData.
Constructor for type hipMemPoolPtrExportData.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemPoolPtrExportDatareference, this method returns it directly. No newhipMemPoolPtrExportDatais created in this case.
- get_reserved(self, i)
Get value of
reservedof(<chip.hipMemPoolPtrExportData*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- reserved
(undocumented)
- class cuda.cuda.cudaMemPoolPtrExportData
Bases:
hipMemPoolPtrExportData- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemPoolPtrExportData.
Constructor for type hipMemPoolPtrExportData.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemPoolPtrExportDatareference, this method returns it directly. No newhipMemPoolPtrExportDatais created in this case.
- get_reserved(self, i)
Get value of
reservedof(<chip.hipMemPoolPtrExportData*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- reserved
(undocumented)
- class cuda.cuda.CUjit_option(value)
Bases:
_hipJitOption__BaseAn 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.cuda.CUjit_option_enum(value)
Bases:
_hipJitOption__BaseAn 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.cuda.cudaFuncAttribute(value)
Bases:
_hipFuncAttribute__BaseAn 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.cuda.CUfunc_cache(value)
Bases:
_hipFuncCache_t__BaseAn 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.cuda.CUfunc_cache_enum(value)
Bases:
_hipFuncCache_t__BaseAn 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.cuda.cudaFuncCache(value)
Bases:
_hipFuncCache_t__BaseAn 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.cuda.CUsharedconfig(value)
Bases:
_hipSharedMemConfig__BaseAn 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.cuda.CUsharedconfig_enum(value)
Bases:
_hipSharedMemConfig__BaseAn 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.cuda.cudaSharedMemConfig(value)
Bases:
_hipSharedMemConfig__BaseAn 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.cuda.cudaLaunchParams
alias of
hipLaunchParams_t
- class cuda.cuda.CUDA_LAUNCH_PARAMS_st
Bases:
hipFunctionLaunchParams_t- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipFunctionLaunchParams_t.
Constructor for type hipFunctionLaunchParams_t.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipFunctionLaunchParams_treference, this method returns it directly. No newhipFunctionLaunchParams_tis created in this case.
- get_blockDimX(self, i)
Get value
blockDimXof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- get_blockDimY(self, i)
Get value
blockDimYof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- get_blockDimZ(self, i)
Get value
blockDimZof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- get_gridDimX(self, i)
Get value
gridDimXof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- get_gridDimY(self, i)
Get value
gridDimYof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- get_gridDimZ(self, i)
Get value
gridDimZof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- get_kernelParams(self, i)
Get value
kernelParamsof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- get_sharedMemBytes(self, i)
Get value
sharedMemBytesof(<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
blockDimXof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- set_blockDimY(self, i, unsigned int value)
Set value
blockDimYof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- set_blockDimZ(self, i, unsigned int value)
Set value
blockDimZof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- set_gridDimX(self, i, unsigned int value)
Set value
gridDimXof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- set_gridDimY(self, i, unsigned int value)
Set value
gridDimYof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- set_gridDimZ(self, i, unsigned int value)
Set value
gridDimZof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- set_kernelParams(self, i, value)
Set value
kernelParamsof(<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
sharedMemBytesof(<chip.hipFunctionLaunchParams_t*>self._ptr)[i].
- sharedMemBytes
Shared memory
- cuda.cuda.CUDA_LAUNCH_PARAMS
alias of
hipFunctionLaunchParams_t
- cuda.cuda.CUDA_LAUNCH_PARAMS_v1
alias of
hipFunctionLaunchParams_t
- class cuda.cuda.CUexternalMemoryHandleType_enum(value)
Bases:
_hipExternalMemoryHandleType_enum__BaseAn 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.cuda.CUexternalMemoryHandleType(value)
Bases:
_hipExternalMemoryHandleType_enum__BaseAn 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.cuda.cudaExternalMemoryHandleType(value)
Bases:
_hipExternalMemoryHandleType_enum__BaseAn 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.cuda.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st
Bases:
hipExternalMemoryHandleDesc_st- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalMemoryHandleDesc_st.
Constructor for type hipExternalMemoryHandleDesc_st.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalMemoryHandleDesc_streference, this method returns it directly. No newhipExternalMemoryHandleDesc_stis created in this case.
- get_flags(self, i)
Get value
flagsof(<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].
- get_handle(self, i)
Get value of
handleof(<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].
- get_size(self, i)
Get value
sizeof(<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].
- get_type(self, i)
Get value of
typeof(<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
flagsof(<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].
- set_size(self, i, unsigned long long value)
Set value
sizeof(<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].
- set_type(self, i, value)
Set value
typeof(<chip.hipExternalMemoryHandleDesc_st*>self._ptr)[i].
- size
(undocumented)
- type
(undocumented)
- cuda.cuda.CUDA_EXTERNAL_MEMORY_HANDLE_DESC
alias of
hipExternalMemoryHandleDesc_st
- cuda.cuda.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1
alias of
hipExternalMemoryHandleDesc_st
- cuda.cuda.cudaExternalMemoryHandleDesc
alias of
hipExternalMemoryHandleDesc_st
- class cuda.cuda.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st
Bases:
hipExternalMemoryBufferDesc_st- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalMemoryBufferDesc_st.
Constructor for type hipExternalMemoryBufferDesc_st.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalMemoryBufferDesc_streference, this method returns it directly. No newhipExternalMemoryBufferDesc_stis created in this case.
- get_flags(self, i)
Get value
flagsof(<chip.hipExternalMemoryBufferDesc_st*>self._ptr)[i].
- get_offset(self, i)
Get value
offsetof(<chip.hipExternalMemoryBufferDesc_st*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<chip.hipExternalMemoryBufferDesc_st*>self._ptr)[i].
- get_size(self, i)
Get value
sizeof(<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
flagsof(<chip.hipExternalMemoryBufferDesc_st*>self._ptr)[i].
- set_offset(self, i, unsigned long long value)
Set value
offsetof(<chip.hipExternalMemoryBufferDesc_st*>self._ptr)[i].
- set_size(self, i, unsigned long long value)
Set value
sizeof(<chip.hipExternalMemoryBufferDesc_st*>self._ptr)[i].
- size
(undocumented)
- cuda.cuda.CUDA_EXTERNAL_MEMORY_BUFFER_DESC
alias of
hipExternalMemoryBufferDesc_st
- cuda.cuda.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1
alias of
hipExternalMemoryBufferDesc_st
- cuda.cuda.cudaExternalMemoryBufferDesc
alias of
hipExternalMemoryBufferDesc_st
- cuda.cuda.CUexternalMemory
alias of
hipExternalMemory_t
- cuda.cuda.cudaExternalMemory_t
alias of
hipExternalMemory_t
- class cuda.cuda.CUexternalSemaphoreHandleType_enum(value)
Bases:
_hipExternalSemaphoreHandleType_enum__BaseAn 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.cuda.CUexternalSemaphoreHandleType(value)
Bases:
_hipExternalSemaphoreHandleType_enum__BaseAn 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.cuda.cudaExternalSemaphoreHandleType(value)
Bases:
_hipExternalSemaphoreHandleType_enum__BaseAn 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.cuda.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st
Bases:
hipExternalSemaphoreHandleDesc_st- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreHandleDesc_st.
Constructor for type hipExternalSemaphoreHandleDesc_st.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreHandleDesc_streference, this method returns it directly. No newhipExternalSemaphoreHandleDesc_stis created in this case.
- get_flags(self, i)
Get value
flagsof(<chip.hipExternalSemaphoreHandleDesc_st*>self._ptr)[i].
- get_handle(self, i)
Get value of
handleof(<chip.hipExternalSemaphoreHandleDesc_st*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<chip.hipExternalSemaphoreHandleDesc_st*>self._ptr)[i].
- get_type(self, i)
Get value of
typeof(<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
flagsof(<chip.hipExternalSemaphoreHandleDesc_st*>self._ptr)[i].
- set_type(self, i, value)
Set value
typeof(<chip.hipExternalSemaphoreHandleDesc_st*>self._ptr)[i].
- type
(undocumented)
- cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
alias of
hipExternalSemaphoreHandleDesc_st
- cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1
alias of
hipExternalSemaphoreHandleDesc_st
- cuda.cuda.cudaExternalSemaphoreHandleDesc
alias of
hipExternalSemaphoreHandleDesc_st
- cuda.cuda.CUexternalSemaphore
alias of
hipExternalSemaphore_t
- cuda.cuda.cudaExternalSemaphore_t
alias of
hipExternalSemaphore_t
- class cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st
Bases:
hipExternalSemaphoreSignalParams_st- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreSignalParams_st.
Constructor for type hipExternalSemaphoreSignalParams_st.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreSignalParams_streference, this method returns it directly. No newhipExternalSemaphoreSignalParams_stis created in this case.
- get_flags(self, i)
Get value
flagsof(<chip.hipExternalSemaphoreSignalParams_st*>self._ptr)[i].
- get_params(self, i)
Get value of
paramsof(<chip.hipExternalSemaphoreSignalParams_st*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<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
flagsof(<chip.hipExternalSemaphoreSignalParams_st*>self._ptr)[i].
- cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS
alias of
hipExternalSemaphoreSignalParams_st
- cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1
alias of
hipExternalSemaphoreSignalParams_st
- cuda.cuda.cudaExternalSemaphoreSignalParams
alias of
hipExternalSemaphoreSignalParams_st
- cuda.cuda.cudaExternalSemaphoreSignalParams_v1
alias of
hipExternalSemaphoreSignalParams_st
- class cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st
Bases:
hipExternalSemaphoreWaitParams_st- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreWaitParams_st.
Constructor for type hipExternalSemaphoreWaitParams_st.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreWaitParams_streference, this method returns it directly. No newhipExternalSemaphoreWaitParams_stis created in this case.
- get_flags(self, i)
Get value
flagsof(<chip.hipExternalSemaphoreWaitParams_st*>self._ptr)[i].
- get_params(self, i)
Get value of
paramsof(<chip.hipExternalSemaphoreWaitParams_st*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<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
flagsof(<chip.hipExternalSemaphoreWaitParams_st*>self._ptr)[i].
- cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
alias of
hipExternalSemaphoreWaitParams_st
- cuda.cuda.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1
alias of
hipExternalSemaphoreWaitParams_st
- cuda.cuda.cudaExternalSemaphoreWaitParams
alias of
hipExternalSemaphoreWaitParams_st
- cuda.cuda.cudaExternalSemaphoreWaitParams_v1
alias of
hipExternalSemaphoreWaitParams_st
- class cuda.cuda.CUgraphicsRegisterFlags(value)
Bases:
_hipGraphicsRegisterFlags__BaseAn 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.cuda.CUgraphicsRegisterFlags_enum(value)
Bases:
_hipGraphicsRegisterFlags__BaseAn 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.cuda.cudaGraphicsRegisterFlags(value)
Bases:
_hipGraphicsRegisterFlags__BaseAn 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.cuda.CUgraphicsResource_st
alias of
_hipGraphicsResource
- cuda.cuda.cudaGraphicsResource
alias of
_hipGraphicsResource
- cuda.cuda.CUgraphicsResource
alias of
_hipGraphicsResource
- cuda.cuda.cudaGraphicsResource_t
alias of
_hipGraphicsResource
- class cuda.cuda.CUgraph_st
Bases:
ihipGraph- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anihipGraphreference, this method returns it directly. No newihipGraphis created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cuda.CUgraph
alias of
ihipGraph
- cuda.cuda.cudaGraph_t
alias of
ihipGraph
- class cuda.cuda.CUgraphNode_st
Bases:
hipGraphNode- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anhipGraphNodereference, this method returns it directly. No newhipGraphNodeis created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cuda.CUgraphNode
alias of
hipGraphNode
- cuda.cuda.cudaGraphNode_t
alias of
hipGraphNode
- class cuda.cuda.CUgraphExec_st
Bases:
hipGraphExec- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anhipGraphExecreference, this method returns it directly. No newhipGraphExecis created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cuda.CUgraphExec
alias of
hipGraphExec
- cuda.cuda.cudaGraphExec_t
alias of
hipGraphExec
- class cuda.cuda.CUuserObject_st
Bases:
hipUserObject- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anhipUserObjectreference, this method returns it directly. No newhipUserObjectis created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cuda.CUuserObject
alias of
hipUserObject
- cuda.cuda.cudaUserObject_t
alias of
hipUserObject
- class cuda.cuda.CUgraphNodeType(value)
Bases:
_hipGraphNodeType__BaseAn 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.cuda.CUgraphNodeType_enum(value)
Bases:
_hipGraphNodeType__BaseAn 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.cuda.cudaGraphNodeType(value)
Bases:
_hipGraphNodeType__BaseAn 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.cuda.CUhostFn
Bases:
hipHostFn_t- __getitem__()
Returns a new Pointer whose pointer is this instance’s pointer offsetted by
offset.- Args:
offset (
int): Offset (in bytes) to add to this instance’s pointer.
- __init__()
Constructor.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anhipHostFn_treference, this method returns it directly. No newhipHostFn_tis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.cudaHostFn_t
Bases:
hipHostFn_t- __getitem__()
Returns a new Pointer whose pointer is this instance’s pointer offsetted by
offset.- Args:
offset (
int): Offset (in bytes) to add to this instance’s pointer.
- __init__()
Constructor.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anhipHostFn_treference, this method returns it directly. No newhipHostFn_tis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.CUDA_HOST_NODE_PARAMS
Bases:
hipHostNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipHostNodeParams.
Constructor for type hipHostNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipHostNodeParamsreference, this method returns it directly. No newhipHostNodeParamsis created in this case.
- get_userData(self, i)
Get value
userDataof(<chip.hipHostNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_userData(self, i, value)
Set value
userDataof(<chip.hipHostNodeParams*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- userData
(undocumented) Note:
Setting this userData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- class cuda.cuda.CUDA_HOST_NODE_PARAMS_st
Bases:
hipHostNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipHostNodeParams.
Constructor for type hipHostNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipHostNodeParamsreference, this method returns it directly. No newhipHostNodeParamsis created in this case.
- get_userData(self, i)
Get value
userDataof(<chip.hipHostNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_userData(self, i, value)
Set value
userDataof(<chip.hipHostNodeParams*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- userData
(undocumented) Note:
Setting this userData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- class cuda.cuda.CUDA_HOST_NODE_PARAMS_v1
Bases:
hipHostNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipHostNodeParams.
Constructor for type hipHostNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipHostNodeParamsreference, this method returns it directly. No newhipHostNodeParamsis created in this case.
- get_userData(self, i)
Get value
userDataof(<chip.hipHostNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_userData(self, i, value)
Set value
userDataof(<chip.hipHostNodeParams*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- userData
(undocumented) Note:
Setting this userData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- class cuda.cuda.cudaHostNodeParams
Bases:
hipHostNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipHostNodeParams.
Constructor for type hipHostNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipHostNodeParamsreference, this method returns it directly. No newhipHostNodeParamsis created in this case.
- get_userData(self, i)
Get value
userDataof(<chip.hipHostNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_userData(self, i, value)
Set value
userDataof(<chip.hipHostNodeParams*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- userData
(undocumented) Note:
Setting this userData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- class cuda.cuda.CUDA_KERNEL_NODE_PARAMS
Bases:
hipKernelNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipKernelNodeParams.
Constructor for type hipKernelNodeParams.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipKernelNodeParamsreference, this method returns it directly. No newhipKernelNodeParamsis 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
blockDimof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_extra(self, i)
Get value
extraof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_func(self, i)
Get value
funcof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_gridDim(self, i)
Get value of
gridDimof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_kernelParams(self, i)
Get value
kernelParamsof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_sharedMemBytes(self, i)
Get value
sharedMemBytesof(<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
extraof(<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
funcof(<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
kernelParamsof(<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
sharedMemBytesof(<chip.hipKernelNodeParams*>self._ptr)[i].
- sharedMemBytes
(undocumented)
- class cuda.cuda.CUDA_KERNEL_NODE_PARAMS_st
Bases:
hipKernelNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipKernelNodeParams.
Constructor for type hipKernelNodeParams.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipKernelNodeParamsreference, this method returns it directly. No newhipKernelNodeParamsis 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
blockDimof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_extra(self, i)
Get value
extraof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_func(self, i)
Get value
funcof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_gridDim(self, i)
Get value of
gridDimof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_kernelParams(self, i)
Get value
kernelParamsof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_sharedMemBytes(self, i)
Get value
sharedMemBytesof(<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
extraof(<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
funcof(<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
kernelParamsof(<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
sharedMemBytesof(<chip.hipKernelNodeParams*>self._ptr)[i].
- sharedMemBytes
(undocumented)
- class cuda.cuda.CUDA_KERNEL_NODE_PARAMS_v1
Bases:
hipKernelNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipKernelNodeParams.
Constructor for type hipKernelNodeParams.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipKernelNodeParamsreference, this method returns it directly. No newhipKernelNodeParamsis 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
blockDimof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_extra(self, i)
Get value
extraof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_func(self, i)
Get value
funcof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_gridDim(self, i)
Get value of
gridDimof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_kernelParams(self, i)
Get value
kernelParamsof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_sharedMemBytes(self, i)
Get value
sharedMemBytesof(<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
extraof(<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
funcof(<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
kernelParamsof(<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
sharedMemBytesof(<chip.hipKernelNodeParams*>self._ptr)[i].
- sharedMemBytes
(undocumented)
- class cuda.cuda.cudaKernelNodeParams
Bases:
hipKernelNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipKernelNodeParams.
Constructor for type hipKernelNodeParams.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipKernelNodeParamsreference, this method returns it directly. No newhipKernelNodeParamsis 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
blockDimof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_extra(self, i)
Get value
extraof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_func(self, i)
Get value
funcof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_gridDim(self, i)
Get value of
gridDimof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_kernelParams(self, i)
Get value
kernelParamsof(<chip.hipKernelNodeParams*>self._ptr)[i].
- get_sharedMemBytes(self, i)
Get value
sharedMemBytesof(<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
extraof(<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
funcof(<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
kernelParamsof(<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
sharedMemBytesof(<chip.hipKernelNodeParams*>self._ptr)[i].
- sharedMemBytes
(undocumented)
- class cuda.cuda.CUDA_MEMSET_NODE_PARAMS
Bases:
hipMemsetParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemsetParams.
Constructor for type hipMemsetParams.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemsetParamsreference, this method returns it directly. No newhipMemsetParamsis created in this case.
- get_dst(self, i)
Get value
dstof(<chip.hipMemsetParams*>self._ptr)[i].
- get_elementSize(self, i)
Get value
elementSizeof(<chip.hipMemsetParams*>self._ptr)[i].
- get_height(self, i)
Get value
heightof(<chip.hipMemsetParams*>self._ptr)[i].
- get_pitch(self, i)
Get value
pitchof(<chip.hipMemsetParams*>self._ptr)[i].
- get_value(self, i)
Get value
valueof(<chip.hipMemsetParams*>self._ptr)[i].
- get_width(self, i)
Get value
widthof(<chip.hipMemsetParams*>self._ptr)[i].
- height
(undocumented)
- is_ptr_null
If data pointer is NULL.
- pitch
(undocumented)
- set_dst(self, i, value)
Set value
dstof(<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
elementSizeof(<chip.hipMemsetParams*>self._ptr)[i].
- set_height(self, i, unsigned long value)
Set value
heightof(<chip.hipMemsetParams*>self._ptr)[i].
- set_pitch(self, i, unsigned long value)
Set value
pitchof(<chip.hipMemsetParams*>self._ptr)[i].
- set_value(self, i, unsigned int value)
Set value
valueof(<chip.hipMemsetParams*>self._ptr)[i].
- set_width(self, i, unsigned long value)
Set value
widthof(<chip.hipMemsetParams*>self._ptr)[i].
- value
(undocumented)
- width
(undocumented)
- class cuda.cuda.CUDA_MEMSET_NODE_PARAMS_st
Bases:
hipMemsetParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemsetParams.
Constructor for type hipMemsetParams.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemsetParamsreference, this method returns it directly. No newhipMemsetParamsis created in this case.
- get_dst(self, i)
Get value
dstof(<chip.hipMemsetParams*>self._ptr)[i].
- get_elementSize(self, i)
Get value
elementSizeof(<chip.hipMemsetParams*>self._ptr)[i].
- get_height(self, i)
Get value
heightof(<chip.hipMemsetParams*>self._ptr)[i].
- get_pitch(self, i)
Get value
pitchof(<chip.hipMemsetParams*>self._ptr)[i].
- get_value(self, i)
Get value
valueof(<chip.hipMemsetParams*>self._ptr)[i].
- get_width(self, i)
Get value
widthof(<chip.hipMemsetParams*>self._ptr)[i].
- height
(undocumented)
- is_ptr_null
If data pointer is NULL.
- pitch
(undocumented)
- set_dst(self, i, value)
Set value
dstof(<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
elementSizeof(<chip.hipMemsetParams*>self._ptr)[i].
- set_height(self, i, unsigned long value)
Set value
heightof(<chip.hipMemsetParams*>self._ptr)[i].
- set_pitch(self, i, unsigned long value)
Set value
pitchof(<chip.hipMemsetParams*>self._ptr)[i].
- set_value(self, i, unsigned int value)
Set value
valueof(<chip.hipMemsetParams*>self._ptr)[i].
- set_width(self, i, unsigned long value)
Set value
widthof(<chip.hipMemsetParams*>self._ptr)[i].
- value
(undocumented)
- width
(undocumented)
- class cuda.cuda.CUDA_MEMSET_NODE_PARAMS_v1
Bases:
hipMemsetParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemsetParams.
Constructor for type hipMemsetParams.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemsetParamsreference, this method returns it directly. No newhipMemsetParamsis created in this case.
- get_dst(self, i)
Get value
dstof(<chip.hipMemsetParams*>self._ptr)[i].
- get_elementSize(self, i)
Get value
elementSizeof(<chip.hipMemsetParams*>self._ptr)[i].
- get_height(self, i)
Get value
heightof(<chip.hipMemsetParams*>self._ptr)[i].
- get_pitch(self, i)
Get value
pitchof(<chip.hipMemsetParams*>self._ptr)[i].
- get_value(self, i)
Get value
valueof(<chip.hipMemsetParams*>self._ptr)[i].
- get_width(self, i)
Get value
widthof(<chip.hipMemsetParams*>self._ptr)[i].
- height
(undocumented)
- is_ptr_null
If data pointer is NULL.
- pitch
(undocumented)
- set_dst(self, i, value)
Set value
dstof(<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
elementSizeof(<chip.hipMemsetParams*>self._ptr)[i].
- set_height(self, i, unsigned long value)
Set value
heightof(<chip.hipMemsetParams*>self._ptr)[i].
- set_pitch(self, i, unsigned long value)
Set value
pitchof(<chip.hipMemsetParams*>self._ptr)[i].
- set_value(self, i, unsigned int value)
Set value
valueof(<chip.hipMemsetParams*>self._ptr)[i].
- set_width(self, i, unsigned long value)
Set value
widthof(<chip.hipMemsetParams*>self._ptr)[i].
- value
(undocumented)
- width
(undocumented)
- class cuda.cuda.cudaMemsetParams
Bases:
hipMemsetParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemsetParams.
Constructor for type hipMemsetParams.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemsetParamsreference, this method returns it directly. No newhipMemsetParamsis created in this case.
- get_dst(self, i)
Get value
dstof(<chip.hipMemsetParams*>self._ptr)[i].
- get_elementSize(self, i)
Get value
elementSizeof(<chip.hipMemsetParams*>self._ptr)[i].
- get_height(self, i)
Get value
heightof(<chip.hipMemsetParams*>self._ptr)[i].
- get_pitch(self, i)
Get value
pitchof(<chip.hipMemsetParams*>self._ptr)[i].
- get_value(self, i)
Get value
valueof(<chip.hipMemsetParams*>self._ptr)[i].
- get_width(self, i)
Get value
widthof(<chip.hipMemsetParams*>self._ptr)[i].
- height
(undocumented)
- is_ptr_null
If data pointer is NULL.
- pitch
(undocumented)
- set_dst(self, i, value)
Set value
dstof(<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
elementSizeof(<chip.hipMemsetParams*>self._ptr)[i].
- set_height(self, i, unsigned long value)
Set value
heightof(<chip.hipMemsetParams*>self._ptr)[i].
- set_pitch(self, i, unsigned long value)
Set value
pitchof(<chip.hipMemsetParams*>self._ptr)[i].
- set_value(self, i, unsigned int value)
Set value
valueof(<chip.hipMemsetParams*>self._ptr)[i].
- set_width(self, i, unsigned long value)
Set value
widthof(<chip.hipMemsetParams*>self._ptr)[i].
- value
(undocumented)
- width
(undocumented)
- class cuda.cuda.CUDA_MEM_ALLOC_NODE_PARAMS
Bases:
hipMemAllocNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAllocNodeParams.
Constructor for type hipMemAllocNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- accessDescCount
The number of access descriptors
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemAllocNodeParamsreference, this method returns it directly. No newhipMemAllocNodeParamsis created in this case.
- get_accessDescCount(self, i)
Get value
accessDescCountof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_bytesize(self, i)
Get value
bytesizeof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_dptr(self, i)
Get value
dptrof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_poolProps(self, i)
Get value of
poolPropsof(<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
accessDescCountof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- set_bytesize(self, i, unsigned long value)
Set value
bytesizeof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- set_dptr(self, i, value)
Set value
dptrof(<chip.hipMemAllocNodeParams*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- class cuda.cuda.CUDA_MEM_ALLOC_NODE_PARAMS_st
Bases:
hipMemAllocNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAllocNodeParams.
Constructor for type hipMemAllocNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- accessDescCount
The number of access descriptors
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemAllocNodeParamsreference, this method returns it directly. No newhipMemAllocNodeParamsis created in this case.
- get_accessDescCount(self, i)
Get value
accessDescCountof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_bytesize(self, i)
Get value
bytesizeof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_dptr(self, i)
Get value
dptrof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_poolProps(self, i)
Get value of
poolPropsof(<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
accessDescCountof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- set_bytesize(self, i, unsigned long value)
Set value
bytesizeof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- set_dptr(self, i, value)
Set value
dptrof(<chip.hipMemAllocNodeParams*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- class cuda.cuda.CUDA_MEM_ALLOC_NODE_PARAMS_v1
Bases:
hipMemAllocNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAllocNodeParams.
Constructor for type hipMemAllocNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- accessDescCount
The number of access descriptors
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemAllocNodeParamsreference, this method returns it directly. No newhipMemAllocNodeParamsis created in this case.
- get_accessDescCount(self, i)
Get value
accessDescCountof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_bytesize(self, i)
Get value
bytesizeof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_dptr(self, i)
Get value
dptrof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_poolProps(self, i)
Get value of
poolPropsof(<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
accessDescCountof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- set_bytesize(self, i, unsigned long value)
Set value
bytesizeof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- set_dptr(self, i, value)
Set value
dptrof(<chip.hipMemAllocNodeParams*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- class cuda.cuda.CUDA_MEM_ALLOC_NODE_PARAMS_v1_st
Bases:
hipMemAllocNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAllocNodeParams.
Constructor for type hipMemAllocNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- accessDescCount
The number of access descriptors
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemAllocNodeParamsreference, this method returns it directly. No newhipMemAllocNodeParamsis created in this case.
- get_accessDescCount(self, i)
Get value
accessDescCountof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_bytesize(self, i)
Get value
bytesizeof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_dptr(self, i)
Get value
dptrof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_poolProps(self, i)
Get value of
poolPropsof(<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
accessDescCountof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- set_bytesize(self, i, unsigned long value)
Set value
bytesizeof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- set_dptr(self, i, value)
Set value
dptrof(<chip.hipMemAllocNodeParams*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- class cuda.cuda.cudaMemAllocNodeParams
Bases:
hipMemAllocNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAllocNodeParams.
Constructor for type hipMemAllocNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- accessDescCount
The number of access descriptors
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemAllocNodeParamsreference, this method returns it directly. No newhipMemAllocNodeParamsis created in this case.
- get_accessDescCount(self, i)
Get value
accessDescCountof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_bytesize(self, i)
Get value
bytesizeof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_dptr(self, i)
Get value
dptrof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- get_poolProps(self, i)
Get value of
poolPropsof(<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
accessDescCountof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- set_bytesize(self, i, unsigned long value)
Set value
bytesizeof(<chip.hipMemAllocNodeParams*>self._ptr)[i].
- set_dptr(self, i, value)
Set value
dptrof(<chip.hipMemAllocNodeParams*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- class cuda.cuda.CUkernelNodeAttrID(value)
Bases:
_hipKernelNodeAttrID__BaseAn 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
- hipKernelNodeAttributeAccessPolicyWindow = 1
- CU_KERNEL_NODE_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1
- cudaKernelNodeAttributeAccessPolicyWindow = 1
- hipKernelNodeAttributeCooperative = 2
- CU_KERNEL_NODE_ATTRIBUTE_COOPERATIVE = 2
- cudaKernelNodeAttributeCooperative = 2
- class cuda.cuda.CUkernelNodeAttrID_enum(value)
Bases:
_hipKernelNodeAttrID__BaseAn 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
- hipKernelNodeAttributeAccessPolicyWindow = 1
- CU_KERNEL_NODE_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1
- cudaKernelNodeAttributeAccessPolicyWindow = 1
- hipKernelNodeAttributeCooperative = 2
- CU_KERNEL_NODE_ATTRIBUTE_COOPERATIVE = 2
- cudaKernelNodeAttributeCooperative = 2
- class cuda.cuda.cudaKernelNodeAttrID(value)
Bases:
_hipKernelNodeAttrID__BaseAn 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
- hipKernelNodeAttributeAccessPolicyWindow = 1
- CU_KERNEL_NODE_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1
- cudaKernelNodeAttributeAccessPolicyWindow = 1
- hipKernelNodeAttributeCooperative = 2
- CU_KERNEL_NODE_ATTRIBUTE_COOPERATIVE = 2
- cudaKernelNodeAttributeCooperative = 2
- class cuda.cuda.CUaccessProperty(value)
Bases:
_hipAccessProperty__BaseAn 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.cuda.CUaccessProperty_enum(value)
Bases:
_hipAccessProperty__BaseAn 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.cuda.cudaAccessProperty(value)
Bases:
_hipAccessProperty__BaseAn 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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipAccessPolicyWindowreference, this method returns it directly. No newhipAccessPolicyWindowis created in this case.
- get_base_ptr(self, i)
Get value
base_ptrof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- get_hitProp(self, i)
Get value of
hitPropof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- get_hitRatio(self, i)
Get value
hitRatioof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- get_missProp(self, i)
Get value of
missPropof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- get_num_bytes(self, i)
Get value
num_bytesof(<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_ptrof(<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
hitPropof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- set_hitRatio(self, i, float value)
Set value
hitRatioof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- set_missProp(self, i, value)
Set value
missPropof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- set_num_bytes(self, i, unsigned long value)
Set value
num_bytesof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- class cuda.cuda.CUaccessPolicyWindow_st
Bases:
hipAccessPolicyWindow- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipAccessPolicyWindow.
Constructor for type hipAccessPolicyWindow.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipAccessPolicyWindowreference, this method returns it directly. No newhipAccessPolicyWindowis created in this case.
- get_base_ptr(self, i)
Get value
base_ptrof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- get_hitProp(self, i)
Get value of
hitPropof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- get_hitRatio(self, i)
Get value
hitRatioof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- get_missProp(self, i)
Get value of
missPropof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- get_num_bytes(self, i)
Get value
num_bytesof(<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_ptrof(<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
hitPropof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- set_hitRatio(self, i, float value)
Set value
hitRatioof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- set_missProp(self, i, value)
Set value
missPropof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- set_num_bytes(self, i, unsigned long value)
Set value
num_bytesof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- class cuda.cuda.cudaAccessPolicyWindow
Bases:
hipAccessPolicyWindow- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipAccessPolicyWindow.
Constructor for type hipAccessPolicyWindow.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipAccessPolicyWindowreference, this method returns it directly. No newhipAccessPolicyWindowis created in this case.
- get_base_ptr(self, i)
Get value
base_ptrof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- get_hitProp(self, i)
Get value of
hitPropof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- get_hitRatio(self, i)
Get value
hitRatioof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- get_missProp(self, i)
Get value of
missPropof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- get_num_bytes(self, i)
Get value
num_bytesof(<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_ptrof(<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
hitPropof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- set_hitRatio(self, i, float value)
Set value
hitRatioof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- set_missProp(self, i, value)
Set value
missPropof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- set_num_bytes(self, i, unsigned long value)
Set value
num_bytesof(<chip.hipAccessPolicyWindow*>self._ptr)[i].
- class cuda.cuda.CUkernelNodeAttrValue
Bases:
hipKernelNodeAttrValue- static PROPERTIES()
- __getitem__()
Returns a new Pointer whose pointer is this instance’s pointer offsetted by
offset.- Args:
offset (
int): Offset (in bytes) to add to this instance’s pointer.
- __init__()
Constructor type hipKernelNodeAttrValue.
Constructor for type hipKernelNodeAttrValue.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- accessPolicyWindow
(undocumented)
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- c_sizeof(self)
Returns the size of the underlying C type in bytes. Note:
Implemented as function to not collide with autogenerated property names.
- cooperative
(undocumented)
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat stores the address of this `~.Pointer’s data pointer.- Note:
No ownership information is transferred.
- static fromObj(pyobj)
Creates a hipKernelNodeAttrValue from a Python object.
Derives a hipKernelNodeAttrValue from the given Python object
pyobj. In casepyobjis itself anhipKernelNodeAttrValuereference, this method returns it directly. No newhipKernelNodeAttrValueis created in this case.
- get_accessPolicyWindow(self, i)
Get value of
accessPolicyWindowof(<chip.hipKernelNodeAttrValue*>self._ptr)[i].
- get_cooperative(self, i)
Get value
cooperativeof(<chip.hipKernelNodeAttrValue*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_cooperative(self, i, int value)
Set value
cooperativeof(<chip.hipKernelNodeAttrValue*>self._ptr)[i].
- class cuda.cuda.CUkernelNodeAttrValue_union
Bases:
hipKernelNodeAttrValue- static PROPERTIES()
- __getitem__()
Returns a new Pointer whose pointer is this instance’s pointer offsetted by
offset.- Args:
offset (
int): Offset (in bytes) to add to this instance’s pointer.
- __init__()
Constructor type hipKernelNodeAttrValue.
Constructor for type hipKernelNodeAttrValue.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- accessPolicyWindow
(undocumented)
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- c_sizeof(self)
Returns the size of the underlying C type in bytes. Note:
Implemented as function to not collide with autogenerated property names.
- cooperative
(undocumented)
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat stores the address of this `~.Pointer’s data pointer.- Note:
No ownership information is transferred.
- static fromObj(pyobj)
Creates a hipKernelNodeAttrValue from a Python object.
Derives a hipKernelNodeAttrValue from the given Python object
pyobj. In casepyobjis itself anhipKernelNodeAttrValuereference, this method returns it directly. No newhipKernelNodeAttrValueis created in this case.
- get_accessPolicyWindow(self, i)
Get value of
accessPolicyWindowof(<chip.hipKernelNodeAttrValue*>self._ptr)[i].
- get_cooperative(self, i)
Get value
cooperativeof(<chip.hipKernelNodeAttrValue*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_cooperative(self, i, int value)
Set value
cooperativeof(<chip.hipKernelNodeAttrValue*>self._ptr)[i].
- class cuda.cuda.CUkernelNodeAttrValue_v1
Bases:
hipKernelNodeAttrValue- static PROPERTIES()
- __getitem__()
Returns a new Pointer whose pointer is this instance’s pointer offsetted by
offset.- Args:
offset (
int): Offset (in bytes) to add to this instance’s pointer.
- __init__()
Constructor type hipKernelNodeAttrValue.
Constructor for type hipKernelNodeAttrValue.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- accessPolicyWindow
(undocumented)
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- c_sizeof(self)
Returns the size of the underlying C type in bytes. Note:
Implemented as function to not collide with autogenerated property names.
- cooperative
(undocumented)
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat stores the address of this `~.Pointer’s data pointer.- Note:
No ownership information is transferred.
- static fromObj(pyobj)
Creates a hipKernelNodeAttrValue from a Python object.
Derives a hipKernelNodeAttrValue from the given Python object
pyobj. In casepyobjis itself anhipKernelNodeAttrValuereference, this method returns it directly. No newhipKernelNodeAttrValueis created in this case.
- get_accessPolicyWindow(self, i)
Get value of
accessPolicyWindowof(<chip.hipKernelNodeAttrValue*>self._ptr)[i].
- get_cooperative(self, i)
Get value
cooperativeof(<chip.hipKernelNodeAttrValue*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_cooperative(self, i, int value)
Set value
cooperativeof(<chip.hipKernelNodeAttrValue*>self._ptr)[i].
- class cuda.cuda.cudaKernelNodeAttrValue
Bases:
hipKernelNodeAttrValue- static PROPERTIES()
- __getitem__()
Returns a new Pointer whose pointer is this instance’s pointer offsetted by
offset.- Args:
offset (
int): Offset (in bytes) to add to this instance’s pointer.
- __init__()
Constructor type hipKernelNodeAttrValue.
Constructor for type hipKernelNodeAttrValue.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- accessPolicyWindow
(undocumented)
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- c_sizeof(self)
Returns the size of the underlying C type in bytes. Note:
Implemented as function to not collide with autogenerated property names.
- cooperative
(undocumented)
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat stores the address of this `~.Pointer’s data pointer.- Note:
No ownership information is transferred.
- static fromObj(pyobj)
Creates a hipKernelNodeAttrValue from a Python object.
Derives a hipKernelNodeAttrValue from the given Python object
pyobj. In casepyobjis itself anhipKernelNodeAttrValuereference, this method returns it directly. No newhipKernelNodeAttrValueis created in this case.
- get_accessPolicyWindow(self, i)
Get value of
accessPolicyWindowof(<chip.hipKernelNodeAttrValue*>self._ptr)[i].
- get_cooperative(self, i)
Get value
cooperativeof(<chip.hipKernelNodeAttrValue*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_cooperative(self, i, int value)
Set value
cooperativeof(<chip.hipKernelNodeAttrValue*>self._ptr)[i].
- class cuda.cuda.CUgraphExecUpdateResult(value)
Bases:
_hipGraphExecUpdateResult__BaseAn 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.cuda.CUgraphExecUpdateResult_enum(value)
Bases:
_hipGraphExecUpdateResult__BaseAn 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.cuda.cudaGraphExecUpdateResult(value)
Bases:
_hipGraphExecUpdateResult__BaseAn 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.cuda.CUstreamCaptureMode(value)
Bases:
_hipStreamCaptureMode__BaseAn 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.cuda.CUstreamCaptureMode_enum(value)
Bases:
_hipStreamCaptureMode__BaseAn 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.cuda.cudaStreamCaptureMode(value)
Bases:
_hipStreamCaptureMode__BaseAn 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.cuda.CUstreamCaptureStatus(value)
Bases:
_hipStreamCaptureStatus__BaseAn 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.cuda.CUstreamCaptureStatus_enum(value)
Bases:
_hipStreamCaptureStatus__BaseAn 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.cuda.cudaStreamCaptureStatus(value)
Bases:
_hipStreamCaptureStatus__BaseAn 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.cuda.CUstreamUpdateCaptureDependencies_flags(value)
Bases:
_hipStreamUpdateCaptureDependenciesFlags__BaseAn 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.cuda.CUstreamUpdateCaptureDependencies_flags_enum(value)
Bases:
_hipStreamUpdateCaptureDependenciesFlags__BaseAn 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.cuda.cudaStreamUpdateCaptureDependenciesFlags(value)
Bases:
_hipStreamUpdateCaptureDependenciesFlags__BaseAn 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.cuda.CUgraphMem_attribute(value)
Bases:
_hipGraphMemAttributeType__BaseAn 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.cuda.CUgraphMem_attribute_enum(value)
Bases:
_hipGraphMemAttributeType__BaseAn 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.cuda.cudaGraphMemAttributeType(value)
Bases:
_hipGraphMemAttributeType__BaseAn 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.cuda.CUuserObject_flags(value)
Bases:
_hipUserObjectFlags__BaseAn 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.cuda.CUuserObject_flags_enum(value)
Bases:
_hipUserObjectFlags__BaseAn 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.cuda.cudaUserObjectFlags(value)
Bases:
_hipUserObjectFlags__BaseAn 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.cuda.CUuserObjectRetain_flags(value)
Bases:
_hipUserObjectRetainFlags__BaseAn 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.cuda.CUuserObjectRetain_flags_enum(value)
Bases:
_hipUserObjectRetainFlags__BaseAn 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.cuda.cudaUserObjectRetainFlags(value)
Bases:
_hipUserObjectRetainFlags__BaseAn 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.cuda.CUgraphInstantiate_flags(value)
Bases:
_hipGraphInstantiateFlags__BaseAn 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.cuda.CUgraphInstantiate_flags_enum(value)
Bases:
_hipGraphInstantiateFlags__BaseAn 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.cuda.cudaGraphInstantiateFlags(value)
Bases:
_hipGraphInstantiateFlags__BaseAn 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.cuda.CUgraphDebugDot_flags(value)
Bases:
_hipGraphDebugDotFlags__BaseAn 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.cuda.CUgraphDebugDot_flags_enum(value)
Bases:
_hipGraphDebugDotFlags__BaseAn 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.cuda.cudaGraphDebugDotFlags(value)
Bases:
_hipGraphDebugDotFlags__BaseAn 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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipMemAllocationPropreference, this method returns it directly. No newhipMemAllocationPropis created in this case.
- get_allocFlags(self, i)
Get value of
allocFlagsof(<chip.hipMemAllocationProp*>self._ptr)[i].
- get_location(self, i)
Get value of
locationof(<chip.hipMemAllocationProp*>self._ptr)[i].
- get_requestedHandleType(self, i)
Get value of
requestedHandleTypeof(<chip.hipMemAllocationProp*>self._ptr)[i].
- get_type(self, i)
Get value of
typeof(<chip.hipMemAllocationProp*>self._ptr)[i].
- get_win32HandleMetaData(self, i)
Get value
win32HandleMetaDataof(<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
requestedHandleTypeof(<chip.hipMemAllocationProp*>self._ptr)[i].
- set_type(self, i, value)
Set value
typeof(<chip.hipMemAllocationProp*>self._ptr)[i].
- set_win32HandleMetaData(self, i, value)
Set value
win32HandleMetaDataof(<chip.hipMemAllocationProp*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- type
Memory allocation type
- win32HandleMetaData
Metadata for Win32 handles Note:
Setting this win32HandleMetaData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- class cuda.cuda.CUmemAllocationProp_st
Bases:
hipMemAllocationProp- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAllocationProp.
Constructor for type hipMemAllocationProp.
- allocFlags
(undocumented)
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemAllocationPropreference, this method returns it directly. No newhipMemAllocationPropis created in this case.
- get_allocFlags(self, i)
Get value of
allocFlagsof(<chip.hipMemAllocationProp*>self._ptr)[i].
- get_location(self, i)
Get value of
locationof(<chip.hipMemAllocationProp*>self._ptr)[i].
- get_requestedHandleType(self, i)
Get value of
requestedHandleTypeof(<chip.hipMemAllocationProp*>self._ptr)[i].
- get_type(self, i)
Get value of
typeof(<chip.hipMemAllocationProp*>self._ptr)[i].
- get_win32HandleMetaData(self, i)
Get value
win32HandleMetaDataof(<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
requestedHandleTypeof(<chip.hipMemAllocationProp*>self._ptr)[i].
- set_type(self, i, value)
Set value
typeof(<chip.hipMemAllocationProp*>self._ptr)[i].
- set_win32HandleMetaData(self, i, value)
Set value
win32HandleMetaDataof(<chip.hipMemAllocationProp*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- type
Memory allocation type
- win32HandleMetaData
Metadata for Win32 handles Note:
Setting this win32HandleMetaData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- class cuda.cuda.CUmemAllocationProp_v1
Bases:
hipMemAllocationProp- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipMemAllocationProp.
Constructor for type hipMemAllocationProp.
- allocFlags
(undocumented)
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipMemAllocationPropreference, this method returns it directly. No newhipMemAllocationPropis created in this case.
- get_allocFlags(self, i)
Get value of
allocFlagsof(<chip.hipMemAllocationProp*>self._ptr)[i].
- get_location(self, i)
Get value of
locationof(<chip.hipMemAllocationProp*>self._ptr)[i].
- get_requestedHandleType(self, i)
Get value of
requestedHandleTypeof(<chip.hipMemAllocationProp*>self._ptr)[i].
- get_type(self, i)
Get value of
typeof(<chip.hipMemAllocationProp*>self._ptr)[i].
- get_win32HandleMetaData(self, i)
Get value
win32HandleMetaDataof(<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
requestedHandleTypeof(<chip.hipMemAllocationProp*>self._ptr)[i].
- set_type(self, i, value)
Set value
typeof(<chip.hipMemAllocationProp*>self._ptr)[i].
- set_win32HandleMetaData(self, i, value)
Set value
win32HandleMetaDataof(<chip.hipMemAllocationProp*>self._ptr)[i].- Note:
This can be dangerous if the pointer is from a python object that is later on garbage collected.
- type
Memory allocation type
- win32HandleMetaData
Metadata for Win32 handles Note:
Setting this win32HandleMetaData can be dangerous if the underlying pointer is from a python object that is later on garbage collected.
- class cuda.cuda.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS
Bases:
hipExternalSemaphoreSignalNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreSignalNodeParams.
Constructor for type hipExternalSemaphoreSignalNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreSignalNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- class cuda.cuda.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st
Bases:
hipExternalSemaphoreSignalNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreSignalNodeParams.
Constructor for type hipExternalSemaphoreSignalNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreSignalNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- class cuda.cuda.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1
Bases:
hipExternalSemaphoreSignalNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreSignalNodeParams.
Constructor for type hipExternalSemaphoreSignalNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreSignalNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- class cuda.cuda.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2
Bases:
hipExternalSemaphoreSignalNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreSignalNodeParams.
Constructor for type hipExternalSemaphoreSignalNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreSignalNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- class cuda.cuda.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st
Bases:
hipExternalSemaphoreSignalNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreSignalNodeParams.
Constructor for type hipExternalSemaphoreSignalNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreSignalNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- class cuda.cuda.cudaExternalSemaphoreSignalNodeParams
Bases:
hipExternalSemaphoreSignalNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreSignalNodeParams.
Constructor for type hipExternalSemaphoreSignalNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreSignalNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- class cuda.cuda.cudaExternalSemaphoreSignalNodeParamsV2
Bases:
hipExternalSemaphoreSignalNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreSignalNodeParams.
Constructor for type hipExternalSemaphoreSignalNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreSignalNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreSignalNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreSignalNodeParams*>self._ptr)[i].
- class cuda.cuda.CUDA_EXT_SEM_WAIT_NODE_PARAMS
Bases:
hipExternalSemaphoreWaitNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreWaitNodeParams.
Constructor for type hipExternalSemaphoreWaitNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreWaitNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- class cuda.cuda.CUDA_EXT_SEM_WAIT_NODE_PARAMS_st
Bases:
hipExternalSemaphoreWaitNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreWaitNodeParams.
Constructor for type hipExternalSemaphoreWaitNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreWaitNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- class cuda.cuda.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1
Bases:
hipExternalSemaphoreWaitNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreWaitNodeParams.
Constructor for type hipExternalSemaphoreWaitNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreWaitNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- class cuda.cuda.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2
Bases:
hipExternalSemaphoreWaitNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreWaitNodeParams.
Constructor for type hipExternalSemaphoreWaitNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreWaitNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- class cuda.cuda.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st
Bases:
hipExternalSemaphoreWaitNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreWaitNodeParams.
Constructor for type hipExternalSemaphoreWaitNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreWaitNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- class cuda.cuda.cudaExternalSemaphoreWaitNodeParams
Bases:
hipExternalSemaphoreWaitNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreWaitNodeParams.
Constructor for type hipExternalSemaphoreWaitNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreWaitNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- class cuda.cuda.cudaExternalSemaphoreWaitNodeParamsV2
Bases:
hipExternalSemaphoreWaitNodeParams- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipExternalSemaphoreWaitNodeParams.
Constructor for type hipExternalSemaphoreWaitNodeParams.
- Args:
- **kwargs:
Can be used to initialize member variables at construction, Just pass an argument expression of the form <member>=<value> per member that you want to initialize.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipExternalSemaphoreWaitNodeParamsreference, this method returns it directly. No newhipExternalSemaphoreWaitNodeParamsis created in this case.
- get_extSemArray(self, i)
Get value
extSemArrayof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- get_numExtSems(self, i)
Get value
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- numExtSems
(undocumented)
- set_extSemArray(self, i, value)
Set value
extSemArrayof(<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
numExtSemsof(<chip.hipExternalSemaphoreWaitNodeParams*>self._ptr)[i].
- cuda.cuda.CUmemGenericAllocationHandle
alias of
ihipMemGenericAllocationHandle
- cuda.cuda.CUmemGenericAllocationHandle_v1
alias of
ihipMemGenericAllocationHandle
- class cuda.cuda.CUmemAllocationGranularity_flags(value)
Bases:
_hipMemAllocationGranularity_flags__BaseAn 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.cuda.CUmemAllocationGranularity_flags_enum(value)
Bases:
_hipMemAllocationGranularity_flags__BaseAn 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.cuda.CUmemHandleType(value)
Bases:
_hipMemHandleType__BaseAn 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.cuda.CUmemHandleType_enum(value)
Bases:
_hipMemHandleType__BaseAn 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.cuda.CUmemOperationType(value)
Bases:
_hipMemOperationType__BaseAn 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.cuda.CUmemOperationType_enum(value)
Bases:
_hipMemOperationType__BaseAn 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.cuda.CUarraySparseSubresourceType(value)
Bases:
_hipArraySparseSubresourceType__BaseAn 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.cuda.CUarraySparseSubresourceType_enum(value)
Bases:
_hipArraySparseSubresourceType__BaseAn 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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipArrayMapInforeference, this method returns it directly. No newhipArrayMapInfois created in this case.
- get_deviceBitMask(self, i)
Get value
deviceBitMaskof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_flags(self, i)
Get value
flagsof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_memHandle(self, i)
Get value of
memHandleof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_memHandleType(self, i)
Get value of
memHandleTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_memOperationType(self, i)
Get value of
memOperationTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_offset(self, i)
Get value
offsetof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_resource(self, i)
Get value of
resourceof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_resourceType(self, i)
Get value of
resourceTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_subresource(self, i)
Get value of
subresourceof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_subresourceType(self, i)
Get value of
subresourceTypeof(<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
deviceBitMaskof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_flags(self, i, unsigned int value)
Set value
flagsof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_memHandleType(self, i, value)
Set value
memHandleTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_memOperationType(self, i, value)
Set value
memOperationTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_offset(self, i, unsigned long long value)
Set value
offsetof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_resourceType(self, i, value)
Set value
resourceTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_subresourceType(self, i, value)
Set value
subresourceTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- subresource
(undocumented)
- subresourceType
Sparse subresource type
- class cuda.cuda.CUarrayMapInfo_st
Bases:
hipArrayMapInfo- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipArrayMapInfo.
Constructor for type hipArrayMapInfo.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipArrayMapInforeference, this method returns it directly. No newhipArrayMapInfois created in this case.
- get_deviceBitMask(self, i)
Get value
deviceBitMaskof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_flags(self, i)
Get value
flagsof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_memHandle(self, i)
Get value of
memHandleof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_memHandleType(self, i)
Get value of
memHandleTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_memOperationType(self, i)
Get value of
memOperationTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_offset(self, i)
Get value
offsetof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_resource(self, i)
Get value of
resourceof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_resourceType(self, i)
Get value of
resourceTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_subresource(self, i)
Get value of
subresourceof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_subresourceType(self, i)
Get value of
subresourceTypeof(<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
deviceBitMaskof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_flags(self, i, unsigned int value)
Set value
flagsof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_memHandleType(self, i, value)
Set value
memHandleTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_memOperationType(self, i, value)
Set value
memOperationTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_offset(self, i, unsigned long long value)
Set value
offsetof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_resourceType(self, i, value)
Set value
resourceTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_subresourceType(self, i, value)
Set value
subresourceTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- subresource
(undocumented)
- subresourceType
Sparse subresource type
- class cuda.cuda.CUarrayMapInfo_v1
Bases:
hipArrayMapInfo- static PROPERTIES()
- __getitem__(key, /)
Return self[key].
- __init__()
Constructor type hipArrayMapInfo.
Constructor for type hipArrayMapInfo.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote: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
Pointerthat 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 casepyobjis itself anhipArrayMapInforeference, this method returns it directly. No newhipArrayMapInfois created in this case.
- get_deviceBitMask(self, i)
Get value
deviceBitMaskof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_flags(self, i)
Get value
flagsof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_memHandle(self, i)
Get value of
memHandleof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_memHandleType(self, i)
Get value of
memHandleTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_memOperationType(self, i)
Get value of
memOperationTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_offset(self, i)
Get value
offsetof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_resource(self, i)
Get value of
resourceof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_resourceType(self, i)
Get value of
resourceTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_subresource(self, i)
Get value of
subresourceof(<chip.hipArrayMapInfo*>self._ptr)[i].
- get_subresourceType(self, i)
Get value of
subresourceTypeof(<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
deviceBitMaskof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_flags(self, i, unsigned int value)
Set value
flagsof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_memHandleType(self, i, value)
Set value
memHandleTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_memOperationType(self, i, value)
Set value
memOperationTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_offset(self, i, unsigned long long value)
Set value
offsetof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_resourceType(self, i, value)
Set value
resourceTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- set_subresourceType(self, i, value)
Set value
subresourceTypeof(<chip.hipArrayMapInfo*>self._ptr)[i].
- subresource
(undocumented)
- subresourceType
Sparse subresource type
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipMemcpyNodeParamsreference, this method returns it directly. No newhipMemcpyNodeParamsis created in this case.
- get_copyParams(self, i)
Get value of
copyParamsof(<chip.hipMemcpyNodeParams*>self._ptr)[i].
- get_flags(self, i)
Get value
flagsof(<chip.hipMemcpyNodeParams*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<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
flagsof(<chip.hipMemcpyNodeParams*>self._ptr)[i].
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipMemcpyNodeParamsreference, this method returns it directly. No newhipMemcpyNodeParamsis created in this case.
- get_copyParams(self, i)
Get value of
copyParamsof(<chip.hipMemcpyNodeParams*>self._ptr)[i].
- get_flags(self, i)
Get value
flagsof(<chip.hipMemcpyNodeParams*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<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
flagsof(<chip.hipMemcpyNodeParams*>self._ptr)[i].
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipMemcpyNodeParamsreference, this method returns it directly. No newhipMemcpyNodeParamsis created in this case.
- get_copyParams(self, i)
Get value of
copyParamsof(<chip.hipMemcpyNodeParams*>self._ptr)[i].
- get_flags(self, i)
Get value
flagsof(<chip.hipMemcpyNodeParams*>self._ptr)[i].
- get_reserved(self, i)
Get value of
reservedof(<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
flagsof(<chip.hipMemcpyNodeParams*>self._ptr)[i].
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipChildGraphNodeParamsreference, this method returns it directly. No newhipChildGraphNodeParamsis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipChildGraphNodeParamsreference, this method returns it directly. No newhipChildGraphNodeParamsis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipChildGraphNodeParamsreference, this method returns it directly. No newhipChildGraphNodeParamsis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipEventWaitNodeParamsreference, this method returns it directly. No newhipEventWaitNodeParamsis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipEventWaitNodeParamsreference, this method returns it directly. No newhipEventWaitNodeParamsis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipEventWaitNodeParamsreference, this method returns it directly. No newhipEventWaitNodeParamsis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipEventRecordNodeParamsreference, this method returns it directly. No newhipEventRecordNodeParamsis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipEventRecordNodeParamsreference, this method returns it directly. No newhipEventRecordNodeParamsis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipEventRecordNodeParamsreference, this method returns it directly. No newhipEventRecordNodeParamsis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipMemFreeNodeParamsreference, this method returns it directly. No newhipMemFreeNodeParamsis created in this case.
- get_dptr(self, i)
Get value
dptrof(<chip.hipMemFreeNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_dptr(self, i, value)
Set value
dptrof(<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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipMemFreeNodeParamsreference, this method returns it directly. No newhipMemFreeNodeParamsis created in this case.
- get_dptr(self, i)
Get value
dptrof(<chip.hipMemFreeNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_dptr(self, i, value)
Set value
dptrof(<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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipMemFreeNodeParamsreference, this method returns it directly. No newhipMemFreeNodeParamsis created in this case.
- get_dptr(self, i)
Get value
dptrof(<chip.hipMemFreeNodeParams*>self._ptr)[i].
- is_ptr_null
If data pointer is NULL.
- set_dptr(self, i, value)
Set value
dptrof(<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.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipGraphNodeParamsreference, this method returns it directly. No newhipGraphNodeParamsis created in this case.
- get_reserved0(self, i)
Get value of
reserved0of(<chip.hipGraphNodeParams*>self._ptr)[i].
- get_reserved2(self, i)
Get value
reserved2of(<chip.hipGraphNodeParams*>self._ptr)[i].
- get_type(self, i)
Get value of
typeof(<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
reserved2of(<chip.hipGraphNodeParams*>self._ptr)[i].
- set_type(self, i, value)
Set value
typeof(<chip.hipGraphNodeParams*>self._ptr)[i].
- type
(undocumented)
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipGraphNodeParamsreference, this method returns it directly. No newhipGraphNodeParamsis created in this case.
- get_reserved0(self, i)
Get value of
reserved0of(<chip.hipGraphNodeParams*>self._ptr)[i].
- get_reserved2(self, i)
Get value
reserved2of(<chip.hipGraphNodeParams*>self._ptr)[i].
- get_type(self, i)
Get value of
typeof(<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
reserved2of(<chip.hipGraphNodeParams*>self._ptr)[i].
- set_type(self, i, value)
Set value
typeof(<chip.hipGraphNodeParams*>self._ptr)[i].
- type
(undocumented)
- class cuda.cuda.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_pNote: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
Pointerthat 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 casepyobjis itself anhipGraphNodeParamsreference, this method returns it directly. No newhipGraphNodeParamsis created in this case.
- get_reserved0(self, i)
Get value of
reserved0of(<chip.hipGraphNodeParams*>self._ptr)[i].
- get_reserved2(self, i)
Get value
reserved2of(<chip.hipGraphNodeParams*>self._ptr)[i].
- get_type(self, i)
Get value of
typeof(<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
reserved2of(<chip.hipGraphNodeParams*>self._ptr)[i].
- set_type(self, i, value)
Set value
typeof(<chip.hipGraphNodeParams*>self._ptr)[i].
- type
(undocumented)
- cuda.cuda.cuInit(flags)
hipInit(unsigned int flags) Explicitly initializes the HIP runtime.
Defines the HIP API. See the individual sections for more information.
This section describes the initializtion and version functions of HIP runtime API.
Most HIP APIs implicitly initialize the HIP runtime. This API provides control over the timing of the initialization.
- cuda.cuda.cuDriverGetVersion()
hipDriverGetVersion() Returns the approximate HIP driver version.
- Warning:
The HIP feature set does not correspond to an exact CUDA SDK driver revision. This function always set *driverVersion to 4 as an approximation though HIP supports some features which were introduced in later CUDA SDK revisions. HIP apps code should not rely on the driver revision number here and should use arch feature flags to test device capabilities or conditional compilation.
- See:
- Returns:
A
tupleof size 2 that contains (in that order):int:driver version
- cuda.cuda.cudaDriverGetVersion()
hipDriverGetVersion() Returns the approximate HIP driver version.
- Warning:
The HIP feature set does not correspond to an exact CUDA SDK driver revision. This function always set *driverVersion to 4 as an approximation though HIP supports some features which were introduced in later CUDA SDK revisions. HIP apps code should not rely on the driver revision number here and should use arch feature flags to test device capabilities or conditional compilation.
- See:
- Returns:
A
tupleof size 2 that contains (in that order):int:driver version
- cuda.cuda.cudaRuntimeGetVersion()
hipRuntimeGetVersion() Returns the approximate HIP Runtime version.
- Warning:
The version definition of HIP runtime is different from CUDA. On AMD platform, the function returns HIP runtime version, while on NVIDIA platform, it returns CUDA runtime version. And there is no mapping/correlation between HIP version and CUDA version.
- See:
- Returns:
A
tupleof size 2 that contains (in that order):int:HIP runtime version
- cuda.cuda.cuDeviceGet(ordinal)
hipDeviceGet(int ordinal) Returns a handle to a compute device
- cuda.cuda.cuDeviceComputeCapability(device)
hipDeviceComputeCapability(int device) Returns the compute capability of the device
- cuda.cuda.cuDeviceGetName(len, device)
hipDeviceGetName(int len, int device) Returns an identifer string for the device.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cuDeviceGetUuid(device)
hipDeviceGetUuid(int device) Returns an UUID for the device.[BETA]
- cuda.cuda.cuDeviceGetUuid_v2(device)
hipDeviceGetUuid(int device) Returns an UUID for the device.[BETA]
- cuda.cuda.cudaDeviceGetP2PAttribute(attr, srcDevice, dstDevice)
hipDeviceGetP2PAttribute(attr, int srcDevice, int dstDevice) Returns a value for attribute of link between two devices
- Args:
- attr (
hipDeviceP2PAttr) – IN: enum of hipDeviceP2PAttr to query
- srcDevice (
int) – IN: The source device of the link
- dstDevice (
int) – IN: The destination device of the link
- attr (
- Returns:
A
tupleof size 2 that contains (in that order):int:Pointer of the value for the attrubute
- cuda.cuda.cuDeviceGetP2PAttribute(attr, srcDevice, dstDevice)
hipDeviceGetP2PAttribute(attr, int srcDevice, int dstDevice) Returns a value for attribute of link between two devices
- Args:
- attr (
hipDeviceP2PAttr) – IN: enum of hipDeviceP2PAttr to query
- srcDevice (
int) – IN: The source device of the link
- dstDevice (
int) – IN: The destination device of the link
- attr (
- Returns:
A
tupleof size 2 that contains (in that order):int:Pointer of the value for the attrubute
- cuda.cuda.cudaDeviceGetPCIBusId(len, device)
hipDeviceGetPCIBusId(int len, int device) Returns a PCI Bus Id string for the device, overloaded to take int device ID.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cuDeviceGetPCIBusId(len, device)
hipDeviceGetPCIBusId(int len, int device) Returns a PCI Bus Id string for the device, overloaded to take int device ID.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cudaDeviceGetByPCIBusId(pciBusId)
hipDeviceGetByPCIBusId(pciBusId) Returns a handle to a compute device.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:The handle of the device
- cuda.cuda.cuDeviceGetByPCIBusId(pciBusId)
hipDeviceGetByPCIBusId(pciBusId) Returns a handle to a compute device.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:The handle of the device
- cuda.cuda.cuDeviceTotalMem(device)
hipDeviceTotalMem(int device) Returns the total amount of memory on the device.
- cuda.cuda.cuDeviceTotalMem_v2(device)
hipDeviceTotalMem(int device) Returns the total amount of memory on the device.
- cuda.cuda.cudaDeviceSynchronize()
hipDeviceSynchronize() Waits on all active streams on current device
This section describes the device management functions of HIP runtime API.
When this command is invoked, the host thread gets blocked until all the commands associated with streams associated with the device. HIP does not support multiple blocking modes (yet!).
- See:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaThreadSynchronize()
hipDeviceSynchronize() Waits on all active streams on current device
This section describes the device management functions of HIP runtime API.
When this command is invoked, the host thread gets blocked until all the commands associated with streams associated with the device. HIP does not support multiple blocking modes (yet!).
- See:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaDeviceReset()
hipDeviceReset() The state of current device is discarded and updated to a fresh state.
Calling this function deletes all streams created, memory allocated, kernels running, events created. Make sure that no other thread is using the device or streams, memory, kernels, events associated with the current device.
- See:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaThreadExit()
hipDeviceReset() The state of current device is discarded and updated to a fresh state.
Calling this function deletes all streams created, memory allocated, kernels running, events created. Make sure that no other thread is using the device or streams, memory, kernels, events associated with the current device.
- See:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaSetDevice(deviceId)
hipSetDevice(int deviceId) Set default device to be used for subsequent hip API calls from this thread.
Sets
deviceas 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.cuda.cudaGetDevice()
hipGetDevice() Return the default device id for the calling host thread.
HIP maintains an default device for each thread using thread-local-storage. This device is used implicitly for HIP runtime APIs called by this thread. hipGetDevice returns in *
devicethe default device for the calling host thread.- See:
hipSetDevice,hipGetDevicesizeBytes- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cuDeviceGetCount()
hipGetDeviceCount() Return number of compute-capable devices.
Returns in
*countthe number of devices that have ability to run compute commands. If there are no such devices, thenhipGetDeviceCountwill returnhipErrorNoDevice. If 1 or more devices can be found, then hipGetDeviceCount returnshipSuccess.
- cuda.cuda.cudaGetDeviceCount()
hipGetDeviceCount() Return number of compute-capable devices.
Returns in
*countthe number of devices that have ability to run compute commands. If there are no such devices, thenhipGetDeviceCountwill returnhipErrorNoDevice. If 1 or more devices can be found, then hipGetDeviceCount returnshipSuccess.
- cuda.cuda.cuDeviceGetAttribute(attr, deviceId)
hipDeviceGetAttribute(attr, int deviceId) Query for a specific device attribute.
- Args:
- attr (
hipDeviceAttribute_t) – IN: attribute to query
- deviceId (
int) – IN: which device to query for information
- attr (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:pointer to value to return
- cuda.cuda.cudaDeviceGetAttribute(attr, deviceId)
hipDeviceGetAttribute(attr, int deviceId) Query for a specific device attribute.
- Args:
- attr (
hipDeviceAttribute_t) – IN: attribute to query
- deviceId (
int) – IN: which device to query for information
- attr (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:pointer to value to return
- cuda.cuda.cuDeviceGetDefaultMemPool(device)
hipDeviceGetDefaultMemPool(int device) Returns the default memory pool of the specified device
- See:
hipDeviceGetDefaultMemPool,hipMallocAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- device (
int) – IN: Device index for query the default memory pool
- device (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue,hipErrorNotSupportedihipMemPoolHandle_t:Default memory pool to return
- cuda.cuda.cudaDeviceGetDefaultMemPool(device)
hipDeviceGetDefaultMemPool(int device) Returns the default memory pool of the specified device
- See:
hipDeviceGetDefaultMemPool,hipMallocAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- device (
int) – IN: Device index for query the default memory pool
- device (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue,hipErrorNotSupportedihipMemPoolHandle_t:Default memory pool to return
- cuda.cuda.cuDeviceSetMemPool(device, mem_pool)
hipDeviceSetMemPool(int device, mem_pool) Sets the current memory pool of a device
The memory pool must be local to the specified device.
hipMallocAsyncallocates 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
hipMallocFromPoolAsyncfor 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaDeviceSetMemPool(device, mem_pool)
hipDeviceSetMemPool(int device, mem_pool) Sets the current memory pool of a device
The memory pool must be local to the specified device.
hipMallocAsyncallocates 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
hipMallocFromPoolAsyncfor 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuDeviceGetMemPool(device)
hipDeviceGetMemPool(int device) Gets the current memory pool for the specified device
Returns the last pool provided to
hipDeviceSetMemPoolfor this device or the device’s default memory pool ifhipDeviceSetMemPoolhas 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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemPoolHandle_t:Current memory pool on the specified device
- cuda.cuda.cudaDeviceGetMemPool(device)
hipDeviceGetMemPool(int device) Gets the current memory pool for the specified device
Returns the last pool provided to
hipDeviceSetMemPoolfor this device or the device’s default memory pool ifhipDeviceSetMemPoolhas 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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemPoolHandle_t:Current memory pool on the specified device
- cuda.cuda.cudaGetDeviceProperties(prop, deviceId)
hipGetDeviceProperties(prop, int deviceId) (No short description, might be part of a group.)
- Args:
- prop (
hipDeviceProp_t/object): (undocumented)
- deviceId (
int): (undocumented)
- prop (
- cuda.cuda.cudaDeviceSetCacheConfig(cacheConfig)
hipDeviceSetCacheConfig(cacheConfig) Set L1/Shared cache partition.
Note: AMD devices do not support reconfigurable cache. This API is not implemented on AMD platform. If the function is called, it will return hipErrorNotSupported.
- Args:
- cacheConfig (
hipFuncCache_t) – IN: Cache configuration
- cacheConfig (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaThreadSetCacheConfig(cacheConfig)
hipDeviceSetCacheConfig(cacheConfig) Set L1/Shared cache partition.
Note: AMD devices do not support reconfigurable cache. This API is not implemented on AMD platform. If the function is called, it will return hipErrorNotSupported.
- Args:
- cacheConfig (
hipFuncCache_t) – IN: Cache configuration
- cacheConfig (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaDeviceGetCacheConfig()
hipDeviceGetCacheConfig() Get Cache configuration for a specific Device
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorNotInitializedNote: AMD devices do not support reconfigurable cache. This hint is ignored on these architectures.
hipFuncCache_t:Pointer of cache configuration
- cuda.cuda.cudaThreadGetCacheConfig()
hipDeviceGetCacheConfig() Get Cache configuration for a specific Device
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorNotInitializedNote: AMD devices do not support reconfigurable cache. This hint is ignored on these architectures.
hipFuncCache_t:Pointer of cache configuration
- cuda.cuda.cudaDeviceGetLimit(limit)
hipDeviceGetLimit(limit) Gets resource limits of current device
The function queries the size of limit value, as required by the input enum value hipLimit_t, which can be either
hipLimitStackSize, orhipLimitMallocHeapSize. Any other input as default, the function will returnhipErrorUnsupportedLimit.- Args:
- limit (
hipLimit_t) – IN: The limit to query
- limit (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorUnsupportedLimit,hipErrorInvalidValueint:Returns the size of the limit in bytes
- cuda.cuda.cuCtxGetLimit(limit)
hipDeviceGetLimit(limit) Gets resource limits of current device
The function queries the size of limit value, as required by the input enum value hipLimit_t, which can be either
hipLimitStackSize, orhipLimitMallocHeapSize. Any other input as default, the function will returnhipErrorUnsupportedLimit.- Args:
- limit (
hipLimit_t) – IN: The limit to query
- limit (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorUnsupportedLimit,hipErrorInvalidValueint:Returns the size of the limit in bytes
- cuda.cuda.cudaDeviceSetLimit(limit, value)
hipDeviceSetLimit(limit, unsigned long value) Sets resource limits of current device.
As the input enum limit,
hipLimitStackSizesets 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).hipLimitMallocHeapSizesets the limit value of the heap used by the malloc()/free() calls. For limit size, use thehipDeviceGetLimitAPI.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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuCtxSetLimit(limit, value)
hipDeviceSetLimit(limit, unsigned long value) Sets resource limits of current device.
As the input enum limit,
hipLimitStackSizesets 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).hipLimitMallocHeapSizesets the limit value of the heap used by the malloc()/free() calls. For limit size, use thehipDeviceGetLimitAPI.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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaDeviceGetSharedMemConfig()
hipDeviceGetSharedMemConfig() Returns bank width of shared memory for current device
Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotInitializedhipSharedMemConfig:The pointer of the bank width for shared memory
- cuda.cuda.cudaGetDeviceFlags()
hipGetDeviceFlags() Gets the flags set for current device
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:Pointer of the flags
- cuda.cuda.cudaDeviceSetSharedMemConfig(config)
hipDeviceSetSharedMemConfig(config) The bank width of shared memory on current device is set
Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
- Args:
- config (
hipSharedMemConfig) – IN: Configuration for the bank width of shared memory
- config (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaSetDeviceFlags(flags)
hipSetDeviceFlags(unsigned int flags) The current device behavior is changed according the flags passed.
The schedule flags impact how HIP waits for the completion of a command running on a device. hipDeviceScheduleSpin : HIP runtime will actively spin in the thread which submitted the work until the command completes. This offers the lowest latency, but will consume a CPU core and may increase power. hipDeviceScheduleYield : The HIP runtime will yield the CPU to system so that other tasks can use it. This may increase latency to detect the completion but will consume less power and is friendlier to other tasks in the system. hipDeviceScheduleBlockingSync : On ROCm platform, this is a synonym for hipDeviceScheduleYield. hipDeviceScheduleAuto : Use a hueristic to select between Spin and Yield modes. If the number of HIP contexts is greater than the number of logical processors in the system, use Spin scheduling. Else use Yield scheduling.
hipDeviceMapHost : Allow mapping host memory. On ROCM, this is always allowed and the flag is ignored. hipDeviceLmemResizeToMax :
- cuda.cuda.cudaChooseDevice(prop)
hipChooseDevice(prop) (No short description, might be part of a group.)
- Args:
- prop (
hipDeviceProp_t/object): (undocumented)
- prop (
- Returns:
A
tupleof size 1 that contains (in that order):- device (
int): (undocumented)
- device (
- cuda.cuda.cudaIpcGetMemHandle(devPtr)
hipIpcGetMemHandle(devPtr) Gets an interprocess memory handle for an existing device memory
allocation
Takes a pointer to the base of an existing device memory allocation created with hipMalloc and exports it for use in another process. This is a lightweight operation and may be called multiple times on an allocation without adverse effects.
If a region of memory is freed with hipFree and a subsequent call to hipMalloc returns memory with the same device address, hipIpcGetMemHandle will return a unique handle for the new memory.
- Note:
This IPC memory related feature API on Windows may behave differently from Linux.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidHandle,hipErrorOutOfMemory,hipErrorMapFailedhipIpcMemHandle_st:Pointer to user allocated hipIpcMemHandle to return
the handle in.
- cuda.cuda.cuIpcGetMemHandle(devPtr)
hipIpcGetMemHandle(devPtr) Gets an interprocess memory handle for an existing device memory
allocation
Takes a pointer to the base of an existing device memory allocation created with hipMalloc and exports it for use in another process. This is a lightweight operation and may be called multiple times on an allocation without adverse effects.
If a region of memory is freed with hipFree and a subsequent call to hipMalloc returns memory with the same device address, hipIpcGetMemHandle will return a unique handle for the new memory.
- Note:
This IPC memory related feature API on Windows may behave differently from Linux.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidHandle,hipErrorOutOfMemory,hipErrorMapFailedhipIpcMemHandle_st:Pointer to user allocated hipIpcMemHandle to return
the handle in.
- cuda.cuda.cudaIpcOpenMemHandle(handle, flags)
hipIpcOpenMemHandle(handle, unsigned int flags) Opens an interprocess memory handle exported from another process
and returns a device pointer usable in the local process.
Maps memory exported from another process with hipIpcGetMemHandle into the current device address space. For contexts on different devices hipIpcOpenMemHandle can attempt to enable peer access between the devices as if the user called hipDeviceEnablePeerAccess. This behavior is controlled by the hipIpcMemLazyEnablePeerAccess flag. hipDeviceCanAccessPeer can determine if a mapping is possible.
Contexts that may open hipIpcMemHandles are restricted in the following way. hipIpcMemHandles from each device in a given process may only be opened by one context per device per other process.
Memory returned from hipIpcOpenMemHandle must be freed with hipIpcCloseMemHandle.
Calling hipFree on an exported memory region before calling hipIpcCloseMemHandle in the importing context will result in undefined behavior.
- Note:
During multiple processes, using the same memory handle opened by the current context, there is no guarantee that the same device poiter will be returned in
*devPtr.This is diffrent from CUDA.- Note:
This IPC memory related feature API on Windows may behave differently from Linux.
- Args:
- handle (
hipIpcMemHandle_st): hipIpcMemHandle to open
- flags (
int): Flags for this operation. Must be specified as hipIpcMemLazyEnablePeerAccess
- handle (
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cuIpcOpenMemHandle(handle, flags)
hipIpcOpenMemHandle(handle, unsigned int flags) Opens an interprocess memory handle exported from another process
and returns a device pointer usable in the local process.
Maps memory exported from another process with hipIpcGetMemHandle into the current device address space. For contexts on different devices hipIpcOpenMemHandle can attempt to enable peer access between the devices as if the user called hipDeviceEnablePeerAccess. This behavior is controlled by the hipIpcMemLazyEnablePeerAccess flag. hipDeviceCanAccessPeer can determine if a mapping is possible.
Contexts that may open hipIpcMemHandles are restricted in the following way. hipIpcMemHandles from each device in a given process may only be opened by one context per device per other process.
Memory returned from hipIpcOpenMemHandle must be freed with hipIpcCloseMemHandle.
Calling hipFree on an exported memory region before calling hipIpcCloseMemHandle in the importing context will result in undefined behavior.
- Note:
During multiple processes, using the same memory handle opened by the current context, there is no guarantee that the same device poiter will be returned in
*devPtr.This is diffrent from CUDA.- Note:
This IPC memory related feature API on Windows may behave differently from Linux.
- Args:
- handle (
hipIpcMemHandle_st): hipIpcMemHandle to open
- flags (
int): Flags for this operation. Must be specified as hipIpcMemLazyEnablePeerAccess
- handle (
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cudaIpcCloseMemHandle(devPtr)
hipIpcCloseMemHandle(devPtr) Close memory mapped with hipIpcOpenMemHandle
Unmaps memory returnd by hipIpcOpenMemHandle. The original allocation in the exporting process as well as imported mappings in other processes will be unaffected.
Any resources used to enable peer access will be freed if this is the last mapping using them.
- Note:
This IPC memory related feature API on Windows may behave differently from Linux.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuIpcCloseMemHandle(devPtr)
hipIpcCloseMemHandle(devPtr) Close memory mapped with hipIpcOpenMemHandle
Unmaps memory returnd by hipIpcOpenMemHandle. The original allocation in the exporting process as well as imported mappings in other processes will be unaffected.
Any resources used to enable peer access will be freed if this is the last mapping using them.
- Note:
This IPC memory related feature API on Windows may behave differently from Linux.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaIpcGetEventHandle(handle, event)
hipIpcGetEventHandle(handle, event) Gets an opaque interprocess handle for an event.
This opaque handle may be copied into other processes and opened with hipIpcOpenEventHandle. Then hipEventRecord, hipEventSynchronize, hipStreamWaitEvent and hipEventQuery may be used in either process. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior.
- Note:
This IPC event related feature API is currently applicable on Linux.
- Args:
- handle (
hipIpcEventHandle_st/object) – OUT: Pointer to hipIpcEventHandle to return the opaque event handle
- event (
ihipEvent_t/object) – IN: Event allocated with hipEventInterprocess and hipEventDisableTiming flags
- handle (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuIpcGetEventHandle(handle, event)
hipIpcGetEventHandle(handle, event) Gets an opaque interprocess handle for an event.
This opaque handle may be copied into other processes and opened with hipIpcOpenEventHandle. Then hipEventRecord, hipEventSynchronize, hipStreamWaitEvent and hipEventQuery may be used in either process. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior.
- Note:
This IPC event related feature API is currently applicable on Linux.
- Args:
- handle (
hipIpcEventHandle_st/object) – OUT: Pointer to hipIpcEventHandle to return the opaque event handle
- event (
ihipEvent_t/object) – IN: Event allocated with hipEventInterprocess and hipEventDisableTiming flags
- handle (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaIpcOpenEventHandle(handle)
hipIpcOpenEventHandle(handle) Opens an interprocess event handles.
Opens an interprocess event handle exported from another process with cudaIpcGetEventHandle. The returned hipEvent_t behaves like a locally created event with the hipEventDisableTiming flag specified. This event need be freed with hipEventDestroy. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior. If the function is called within the same process where handle is returned by hipIpcGetEventHandle, it will return hipErrorInvalidContext.
- Note:
This IPC event related feature API is currently applicable on Linux.
- Args:
- handle (
hipIpcEventHandle_st) – IN: The opaque interprocess handle to open
- handle (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorInvalidContextihipEvent_t:Pointer to hipEvent_t to return the event
- cuda.cuda.cuIpcOpenEventHandle(handle)
hipIpcOpenEventHandle(handle) Opens an interprocess event handles.
Opens an interprocess event handle exported from another process with cudaIpcGetEventHandle. The returned hipEvent_t behaves like a locally created event with the hipEventDisableTiming flag specified. This event need be freed with hipEventDestroy. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior. If the function is called within the same process where handle is returned by hipIpcGetEventHandle, it will return hipErrorInvalidContext.
- Note:
This IPC event related feature API is currently applicable on Linux.
- Args:
- handle (
hipIpcEventHandle_st) – IN: The opaque interprocess handle to open
- handle (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorInvalidContextihipEvent_t:Pointer to hipEvent_t to return the event
- cuda.cuda.cudaFuncSetAttribute(func, attr, value)
hipFuncSetAttribute(func, attr, int value) Set attribute for a specific function
This section describes the execution control functions of HIP runtime API.
Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
- Args:
- func (
Pointer/object) – IN: Pointer of the function
- attr (
hipFuncAttribute) – IN: Attribute to set
- value (
int) – IN: Value to set
- func (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaFuncSetCacheConfig(func, config)
hipFuncSetCacheConfig(func, config) Set Cache configuration for a specific function
- Args:
- func (
Pointer/object) – IN: Pointer of the function.
- config (
hipFuncCache_t) – IN: Configuration to set.
- func (
- Returns:
A
tupleof size 1 that contains (in that order):hipError_t:hipSuccess,hipErrorNotInitializedNote: AMD devices and some Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.
- cuda.cuda.cudaFuncSetSharedMemConfig(func, config)
hipFuncSetSharedMemConfig(func, config) Set shared memory configuation for a specific function
Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
- Args:
- func (
Pointer/object) – IN: Pointer of the function
- config (
hipSharedMemConfig) – IN: Configuration
- func (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGetLastError()
hipGetLastError() Return last error returned by any HIP runtime API call and resets the stored error code to
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
tupleof size 1 that contains (in that order):hipError_t: return code from last HIP called from the active host thread
- cuda.cuda.cudaPeekAtLastError()
hipPeekAtLastError() Return last error returned by any HIP runtime API call.
Returns the last error that has been returned by any of the runtime calls in the same host thread. Unlike hipGetLastError, this function does not reset the saved error code.
- See:
hipGetErrorString,hipGetLastError,hipPeakAtLastError,hipError_t- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGetErrorName(hip_error)
hipGetErrorName(hip_error) Return hip error as text string form.
- See:
hipGetErrorString,hipGetLastError,hipPeakAtLastError,hipError_t- Args:
- hip_error (
hipError_t): Error code to convert to name.
- hip_error (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:Always returns
hipSuccess.
bytes: const char pointer to the NULL-terminated error name
- cuda.cuda.cudaGetErrorString(hipError)
hipGetErrorString(hipError) Return handy text string message to explain the error which occurred
- See:
hipGetErrorName,hipGetLastError,hipPeakAtLastError,hipError_t- Args:
- hipError (
hipError_t): Error code to convert to string.
- hipError (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:Always returns
hipSuccess.
bytes: const char pointer to the NULL-terminated error string
- cuda.cuda.cuGetErrorName(hipError)
hipDrvGetErrorName(hipError) Return hip error as text string form.
- See:
hipGetErrorName,hipGetLastError,hipPeakAtLastError,hipError_t- Args:
- hipError (
hipError_t) – IN: Error code to convert to string.
- hipError (
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cuGetErrorString(hipError)
hipDrvGetErrorString(hipError) Return handy text string message to explain the error which occurred
- See:
hipGetErrorName,hipGetLastError,hipPeakAtLastError,hipError_t- Args:
- hipError (
hipError_t) – IN: Error code to convert to string.
- hipError (
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cudaStreamCreate()
hipStreamCreate() Create an asynchronous stream.
Create a new asynchronous stream.
streamreturns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, applicaiton must call hipStreamDestroy.- See:
hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy- Returns:
A
tupleof 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.cuda.cuStreamCreate(flags)
hipStreamCreateWithFlags(unsigned int flags) Create an asynchronous stream.
Create a new asynchronous stream.
streamreturns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, applicaiton must call hipStreamDestroy. Flags controls behavior of the stream. SeehipStreamDefault,hipStreamNonBlocking.- See:
hipStreamCreate,hipStreamCreateWithPriority,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy- Args:
- flags (
int) – IN: to control stream creation.
- flags (
- Returns:
A
tupleof size 2 that contains (in that order):ihipStream_t:Pointer to new stream
- cuda.cuda.cudaStreamCreateWithFlags(flags)
hipStreamCreateWithFlags(unsigned int flags) Create an asynchronous stream.
Create a new asynchronous stream.
streamreturns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, applicaiton must call hipStreamDestroy. Flags controls behavior of the stream. SeehipStreamDefault,hipStreamNonBlocking.- See:
hipStreamCreate,hipStreamCreateWithPriority,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy- Args:
- flags (
int) – IN: to control stream creation.
- flags (
- Returns:
A
tupleof size 2 that contains (in that order):ihipStream_t:Pointer to new stream
- cuda.cuda.cuStreamCreateWithPriority(flags, priority)
hipStreamCreateWithPriority(unsigned int flags, int priority) Create an asynchronous stream with the specified priority.
Create a new asynchronous stream with the specified priority.
streamreturns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, applicaiton must call hipStreamDestroy. Flags controls behavior of the stream. SeehipStreamDefault,hipStreamNonBlocking.- See:
hipStreamCreate,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy- Args:
- Returns:
A
tupleof size 2 that contains (in that order):ihipStream_t:Pointer to new stream
- cuda.cuda.cudaStreamCreateWithPriority(flags, priority)
hipStreamCreateWithPriority(unsigned int flags, int priority) Create an asynchronous stream with the specified priority.
Create a new asynchronous stream with the specified priority.
streamreturns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, applicaiton must call hipStreamDestroy. Flags controls behavior of the stream. SeehipStreamDefault,hipStreamNonBlocking.- See:
hipStreamCreate,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy- Args:
- Returns:
A
tupleof size 2 that contains (in that order):ihipStream_t:Pointer to new stream
- cuda.cuda.cudaDeviceGetStreamPriorityRange()
hipDeviceGetStreamPriorityRange() Returns numerical values that correspond to the least and greatest stream priority.
Returns in *leastPriority and *greatestPriority the numerical values that correspond to the least and greatest stream priority respectively. Stream priorities follow a convention where lower numbers imply greater priorities. The range of meaningful stream priorities is given by [*greatestPriority, *leastPriority]. If the user attempts to create a stream with a priority value that is outside the the meaningful range as specified by this API, the priority is automatically clamped to within the valid range.
- cuda.cuda.cuCtxGetStreamPriorityRange()
hipDeviceGetStreamPriorityRange() Returns numerical values that correspond to the least and greatest stream priority.
Returns in *leastPriority and *greatestPriority the numerical values that correspond to the least and greatest stream priority respectively. Stream priorities follow a convention where lower numbers imply greater priorities. The range of meaningful stream priorities is given by [*greatestPriority, *leastPriority]. If the user attempts to create a stream with a priority value that is outside the the meaningful range as specified by this API, the priority is automatically clamped to within the valid range.
- cuda.cuda.cuStreamDestroy(stream)
hipStreamDestroy(stream) Destroys the specified stream.
Destroys the specified stream.
If commands are still executing on the specified stream, some may complete execution before the queue is deleted.
The queue may be destroyed while some commands are still inflight, or may wait for all commands queued to the stream before destroying it.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamQuery,hipStreamWaitEvent,hipStreamSynchronize- Args:
- stream (
ihipStream_t/object) – IN: stream identifier.
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamDestroy_v2(stream)
hipStreamDestroy(stream) Destroys the specified stream.
Destroys the specified stream.
If commands are still executing on the specified stream, some may complete execution before the queue is deleted.
The queue may be destroyed while some commands are still inflight, or may wait for all commands queued to the stream before destroying it.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamQuery,hipStreamWaitEvent,hipStreamSynchronize- Args:
- stream (
ihipStream_t/object) – IN: stream identifier.
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaStreamDestroy(stream)
hipStreamDestroy(stream) Destroys the specified stream.
Destroys the specified stream.
If commands are still executing on the specified stream, some may complete execution before the queue is deleted.
The queue may be destroyed while some commands are still inflight, or may wait for all commands queued to the stream before destroying it.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamQuery,hipStreamWaitEvent,hipStreamSynchronize- Args:
- stream (
ihipStream_t/object) – IN: stream identifier.
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamQuery(stream)
hipStreamQuery(stream) Return
hipSuccessif all of the operations in the specifiedstreamhave completed, orhipErrorNotReadyif 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaStreamQuery(stream)
hipStreamQuery(stream) Return
hipSuccessif all of the operations in the specifiedstreamhave completed, orhipErrorNotReadyif 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamSynchronize(stream)
hipStreamSynchronize(stream) Wait for all commands in stream to complete.
This command is host-synchronous : the host will block until the specified stream is empty.
This command follows standard null-stream semantics. Specifically, specifying the null stream will cause the command to wait for other streams on the same device to complete all pending operations.
This command honors the hipDeviceLaunchBlocking flag, which controls whether the wait is active or blocking.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamWaitEvent,hipStreamDestroy- Args:
- stream (
ihipStream_t/object) – IN: stream identifier.
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaStreamSynchronize(stream)
hipStreamSynchronize(stream) Wait for all commands in stream to complete.
This command is host-synchronous : the host will block until the specified stream is empty.
This command follows standard null-stream semantics. Specifically, specifying the null stream will cause the command to wait for other streams on the same device to complete all pending operations.
This command honors the hipDeviceLaunchBlocking flag, which controls whether the wait is active or blocking.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamWaitEvent,hipStreamDestroy- Args:
- stream (
ihipStream_t/object) – IN: stream identifier.
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamWaitEvent(stream, event, flags)
hipStreamWaitEvent(stream, event, unsigned int flags) Make the specified compute stream wait for an event
This function inserts a wait operation into the specified stream. All future work submitted to
streamwill wait untileventreports completion before beginning execution.This function only waits for commands in the current stream to complete. Notably,, this function does not impliciy wait for commands in the default stream to complete, even if the specified stream is created with hipStreamNonBlocking = 0.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamSynchronize,hipStreamDestroy- Args:
- stream (
ihipStream_t/object) – IN: stream to make wait.
- event (
ihipEvent_t/object) – IN: event to wait on
- flags (
int) – IN: control operation [must be 0]
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaStreamWaitEvent(stream, event, flags)
hipStreamWaitEvent(stream, event, unsigned int flags) Make the specified compute stream wait for an event
This function inserts a wait operation into the specified stream. All future work submitted to
streamwill wait untileventreports completion before beginning execution.This function only waits for commands in the current stream to complete. Notably,, this function does not impliciy wait for commands in the default stream to complete, even if the specified stream is created with hipStreamNonBlocking = 0.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamSynchronize,hipStreamDestroy- Args:
- stream (
ihipStream_t/object) – IN: stream to make wait.
- event (
ihipEvent_t/object) – IN: event to wait on
- flags (
int) – IN: control operation [must be 0]
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamGetFlags(stream)
hipStreamGetFlags(stream) Return flags associated with this stream.
Return flags associated with this stream in *
flags.- See:
- Args:
- stream (
ihipStream_t/object) – IN: stream to be queried
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):int:Pointer to an unsigned integer in which the stream’s flags are returned
- cuda.cuda.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
tupleof size 2 that contains (in that order):int:Pointer to an unsigned integer in which the stream’s flags are returned
- cuda.cuda.cuStreamGetPriority(stream)
hipStreamGetPriority(stream) Query the priority of a stream.
Query the priority of a stream. The priority is returned in in priority.
- See:
- Args:
- stream (
ihipStream_t/object) – IN: stream to be queried
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):int:Pointer to an unsigned integer in which the stream’s priority is returned
- cuda.cuda.cudaStreamGetPriority(stream)
hipStreamGetPriority(stream) Query the priority of a stream.
Query the priority of a stream. The priority is returned in in priority.
- See:
- Args:
- stream (
ihipStream_t/object) – IN: stream to be queried
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):int:Pointer to an unsigned integer in which the stream’s priority is returned
- class cuda.cuda.CUstreamCallback
Bases:
hipStreamCallback_t- __getitem__()
Returns a new Pointer whose pointer is this instance’s pointer offsetted by
offset.- Args:
offset (
int): Offset (in bytes) to add to this instance’s pointer.
- __init__()
Constructor.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anhipStreamCallback_treference, this method returns it directly. No newhipStreamCallback_tis created in this case.
- is_ptr_null
If data pointer is NULL.
- class cuda.cuda.cudaStreamCallback_t
Bases:
hipStreamCallback_t- __getitem__()
Returns a new Pointer whose pointer is this instance’s pointer offsetted by
offset.- Args:
offset (
int): Offset (in bytes) to add to this instance’s pointer.
- __init__()
Constructor.
- as_c_void_p(self)
Returns the data’s address as
ctypes.c_void_pNote:Implemented as function to not collide with autogenerated property names.
- createRef(self) Pointer
Creates are reference to this pointer.
Returns a
Pointerthat 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 casepyobjis itself anhipStreamCallback_treference, this method returns it directly. No newhipStreamCallback_tis created in this case.
- is_ptr_null
If data pointer is NULL.
- cuda.cuda.cuStreamAddCallback(stream, callback, userData, flags)
hipStreamAddCallback(stream, callback, userData, unsigned int flags) Adds a callback to be called on the host after all currently enqueued
items in the stream have completed. For each hipStreamAddCallback call, a callback will be executed exactly once. The callback will block later work in the stream until it is finished.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamQuery,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy,hipStreamCreateWithPriority- Args:
- stream (
ihipStream_t/object) – IN: Stream to add callback to
- callback (
hipStreamCallback_t/object) – IN: The function to call once preceding stream operations are complete
- userData (
Pointer/object) – IN: User specified data to be passed to the callback function
- flags (
int) – IN: Reserved for future use, must be 0
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaStreamAddCallback(stream, callback, userData, flags)
hipStreamAddCallback(stream, callback, userData, unsigned int flags) Adds a callback to be called on the host after all currently enqueued
items in the stream have completed. For each hipStreamAddCallback call, a callback will be executed exactly once. The callback will block later work in the stream until it is finished.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamQuery,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy,hipStreamCreateWithPriority- Args:
- stream (
ihipStream_t/object) – IN: Stream to add callback to
- callback (
hipStreamCallback_t/object) – IN: The function to call once preceding stream operations are complete
- userData (
Pointer/object) – IN: User specified data to be passed to the callback function
- flags (
int) – IN: Reserved for future use, must be 0
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamWaitValue32(stream, ptr, value, flags, mask)
hipStreamWaitValue32(stream, ptr, unsigned int value, unsigned int flags, unsigned int mask) Enqueues a wait command to the stream.[BETA]
This section describes Stream Memory Wait and Write functions of HIP runtime API.
Enqueues a wait command to the stream, all operations enqueued on this stream after this, will not execute until the defined wait condition is true.
hipStreamWaitValueGte: waits until *ptr&mask >= value hipStreamWaitValueEq : waits until *ptr&mask == value hipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0 hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0
- Note:
when using ‘hipStreamWaitValueNor’, mask is applied on both ‘value’ and ‘*ptr’.
- Note:
Support for hipStreamWaitValue32 can be queried using ‘hipDeviceGetAttribute()’ and ‘hipDeviceAttributeCanUseStreamWaitValue’ flag.
- 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamWaitValue32_v2(stream, ptr, value, flags, mask)
hipStreamWaitValue32(stream, ptr, unsigned int value, unsigned int flags, unsigned int mask) Enqueues a wait command to the stream.[BETA]
This section describes Stream Memory Wait and Write functions of HIP runtime API.
Enqueues a wait command to the stream, all operations enqueued on this stream after this, will not execute until the defined wait condition is true.
hipStreamWaitValueGte: waits until *ptr&mask >= value hipStreamWaitValueEq : waits until *ptr&mask == value hipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0 hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0
- Note:
when using ‘hipStreamWaitValueNor’, mask is applied on both ‘value’ and ‘*ptr’.
- Note:
Support for hipStreamWaitValue32 can be queried using ‘hipDeviceGetAttribute()’ and ‘hipDeviceAttributeCanUseStreamWaitValue’ flag.
- 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamWaitValue64(stream, ptr, value, flags, mask)
hipStreamWaitValue64(stream, ptr, unsigned long value, unsigned int flags, unsigned long mask) Enqueues a wait command to the stream.[BETA]
Enqueues a wait command to the stream, all operations enqueued on this stream after this, will not execute until the defined wait condition is true.
hipStreamWaitValueGte: waits until *ptr&mask >= value hipStreamWaitValueEq : waits until *ptr&mask == value hipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0 hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0
- Note:
when using ‘hipStreamWaitValueNor’, mask is applied on both ‘value’ and ‘*ptr’.
- Note:
Support for hipStreamWaitValue64 can be queried using ‘hipDeviceGetAttribute()’ and ‘hipDeviceAttributeCanUseStreamWaitValue’ flag.
- 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamWaitValue64_v2(stream, ptr, value, flags, mask)
hipStreamWaitValue64(stream, ptr, unsigned long value, unsigned int flags, unsigned long mask) Enqueues a wait command to the stream.[BETA]
Enqueues a wait command to the stream, all operations enqueued on this stream after this, will not execute until the defined wait condition is true.
hipStreamWaitValueGte: waits until *ptr&mask >= value hipStreamWaitValueEq : waits until *ptr&mask == value hipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0 hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0
- Note:
when using ‘hipStreamWaitValueNor’, mask is applied on both ‘value’ and ‘*ptr’.
- Note:
Support for hipStreamWaitValue64 can be queried using ‘hipDeviceGetAttribute()’ and ‘hipDeviceAttributeCanUseStreamWaitValue’ flag.
- 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamWriteValue32(stream, ptr, value, flags)
hipStreamWriteValue32(stream, ptr, unsigned int value, unsigned int flags) Enqueues a write command to the stream.[BETA]
Enqueues a write command to the stream, write operation is performed after all earlier commands on this stream have completed the execution.
- 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamWriteValue32_v2(stream, ptr, value, flags)
hipStreamWriteValue32(stream, ptr, unsigned int value, unsigned int flags) Enqueues a write command to the stream.[BETA]
Enqueues a write command to the stream, write operation is performed after all earlier commands on this stream have completed the execution.
- 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamWriteValue64(stream, ptr, value, flags)
hipStreamWriteValue64(stream, ptr, unsigned long value, unsigned int flags) Enqueues a write command to the stream.[BETA]
Enqueues a write command to the stream, write operation is performed after all earlier commands on this stream have completed the execution.
- 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamWriteValue64_v2(stream, ptr, value, flags)
hipStreamWriteValue64(stream, ptr, unsigned long value, unsigned int flags) Enqueues a write command to the stream.[BETA]
Enqueues a write command to the stream, write operation is performed after all earlier commands on this stream have completed the execution.
- 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuEventCreate(flags)
hipEventCreateWithFlags(unsigned int flags) Create an event with the specified flags
- See:
hipEventCreate,hipEventSynchronize,hipEventDestroy,hipEventElapsedTime- Args:
- flags (
int) – IN: Flags to control event behavior. Valid values are
hipEventDefault,hipEventBlockingSync,hipEventDisableTiming,hipEventInterprocesshipEventDefault: 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
tupleof size 2 that contains (in that order):ihipEvent_t:Returns the newly created event.
- cuda.cuda.cudaEventCreateWithFlags(flags)
hipEventCreateWithFlags(unsigned int flags) Create an event with the specified flags
- See:
hipEventCreate,hipEventSynchronize,hipEventDestroy,hipEventElapsedTime- Args:
- flags (
int) – IN: Flags to control event behavior. Valid values are
hipEventDefault,hipEventBlockingSync,hipEventDisableTiming,hipEventInterprocesshipEventDefault: 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
tupleof size 2 that contains (in that order):ihipEvent_t:Returns the newly created event.
- cuda.cuda.cudaEventCreate()
hipEventCreate() (No short description, might be part of a group.)
Create an event
- See:
hipEventCreateWithFlags,hipEventRecord,hipEventQuery,hipEventSynchronize,hipEventDestroy,hipEventElapsedTime- Returns:
A
tupleof size 2 that contains (in that order):ihipEvent_t:Returns the newly created event.
- cuda.cuda.cuEventRecord(event, stream)
hipEventRecord(event, stream) (No short description, might be part of a group.)
- Args:
- event (
ihipEvent_t/object): (undocumented)
- stream (
ihipStream_t/object): (undocumented)
- event (
- cuda.cuda.cudaEventRecord(event, stream)
hipEventRecord(event, stream) (No short description, might be part of a group.)
- Args:
- event (
ihipEvent_t/object): (undocumented)
- stream (
ihipStream_t/object): (undocumented)
- event (
- cuda.cuda.cuEventDestroy(event)
hipEventDestroy(event) Destroy the specified event.
Releases memory associated with the event. If the event is recording but has not completed recording when hipEventDestroy() is called, the function will return immediately and the completion_future resources will be released later, when the hipDevice is synchronized.
- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventSynchronize,hipEventRecord,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: Event to destroy.
- event (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuEventDestroy_v2(event)
hipEventDestroy(event) Destroy the specified event.
Releases memory associated with the event. If the event is recording but has not completed recording when hipEventDestroy() is called, the function will return immediately and the completion_future resources will be released later, when the hipDevice is synchronized.
- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventSynchronize,hipEventRecord,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: Event to destroy.
- event (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaEventDestroy(event)
hipEventDestroy(event) Destroy the specified event.
Releases memory associated with the event. If the event is recording but has not completed recording when hipEventDestroy() is called, the function will return immediately and the completion_future resources will be released later, when the hipDevice is synchronized.
- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventSynchronize,hipEventRecord,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: Event to destroy.
- event (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuEventSynchronize(event)
hipEventSynchronize(event) Wait for an event to complete.
This function will block until the event is ready, waiting for all previous work in the stream specified when event was recorded with hipEventRecord().
If hipEventRecord() has not been called on
event,this function returnshipSuccesswhen no event is captured.This function needs to support hipEventBlockingSync parameter.
- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventDestroy,hipEventRecord,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: Event on which to wait.
- event (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaEventSynchronize(event)
hipEventSynchronize(event) Wait for an event to complete.
This function will block until the event is ready, waiting for all previous work in the stream specified when event was recorded with hipEventRecord().
If hipEventRecord() has not been called on
event,this function returnshipSuccesswhen no event is captured.This function needs to support hipEventBlockingSync parameter.
- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventDestroy,hipEventRecord,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: Event on which to wait.
- event (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuEventElapsedTime(start, stop)
hipEventElapsedTime(start, stop) Return the elapsed time between two events.
Computes the elapsed time between two events. Time is computed in ms, with a resolution of approximately 1 us.
Events which are recorded in a NULL stream will block until all commands on all other streams complete execution, and then record the timestamp.
Events which are recorded in a non-NULL stream will record their timestamp when they reach the head of the specified stream, after all previous commands in that stream have completed executing. Thus the time that the event recorded may be significantly after the host calls hipEventRecord().
If hipEventRecord() has not been called on either event, then
hipErrorInvalidHandleis 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 returnhipErrorNotReadyon at least one of the events), thenhipErrorNotReadyis 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
tupleof size 2 that contains (in that order):float:Return time between start and stop in ms.
- cuda.cuda.cudaEventElapsedTime(start, stop)
hipEventElapsedTime(start, stop) Return the elapsed time between two events.
Computes the elapsed time between two events. Time is computed in ms, with a resolution of approximately 1 us.
Events which are recorded in a NULL stream will block until all commands on all other streams complete execution, and then record the timestamp.
Events which are recorded in a non-NULL stream will record their timestamp when they reach the head of the specified stream, after all previous commands in that stream have completed executing. Thus the time that the event recorded may be significantly after the host calls hipEventRecord().
If hipEventRecord() has not been called on either event, then
hipErrorInvalidHandleis 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 returnhipErrorNotReadyon at least one of the events), thenhipErrorNotReadyis 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
tupleof size 2 that contains (in that order):float:Return time between start and stop in ms.
- cuda.cuda.cuEventQuery(event)
hipEventQuery(event) Query event status
Query the status of the specified event. This function will return
hipSuccessif all commands in the appropriate stream (specified to hipEventRecord()) have completed. If any execution has not completed, thenhipErrorNotReadyis 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaEventQuery(event)
hipEventQuery(event) Query event status
Query the status of the specified event. This function will return
hipSuccessif all commands in the appropriate stream (specified to hipEventRecord()) have completed. If any execution has not completed, thenhipErrorNotReadyis 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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
hipMemoryTypeenum 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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuPointerGetAttributes(numAttributes, attributes, ptr)
hipDrvPointerGetAttributes(unsigned int numAttributes, attributes, ptr) Returns information about the specified pointer.[BETA]
- 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
tupleof size 2 that contains (in that order):
- cuda.cuda.cuImportExternalSemaphore(extSem_out, semHandleDesc)
hipImportExternalSemaphore(extSem_out, semHandleDesc) Imports an external semaphore.
This section describes the external resource interoperability functions of HIP runtime API.
See:
- Args:
- extSem_out (
Pointer/object) – OUT: External semaphores to be waited on
- semHandleDesc (
hipExternalSemaphoreHandleDesc_st/object) – IN: Semaphore import handle descriptor
- extSem_out (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaImportExternalSemaphore(extSem_out, semHandleDesc)
hipImportExternalSemaphore(extSem_out, semHandleDesc) Imports an external semaphore.
This section describes the external resource interoperability functions of HIP runtime API.
See:
- Args:
- extSem_out (
Pointer/object) – OUT: External semaphores to be waited on
- semHandleDesc (
hipExternalSemaphoreHandleDesc_st/object) – IN: Semaphore import handle descriptor
- extSem_out (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)
hipSignalExternalSemaphoresAsync(extSemArray, paramsArray, unsigned int numExtSems, stream) Signals a set of external semaphore objects.
See:
- Args:
- extSemArray (
Pointer/object) – 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)
hipSignalExternalSemaphoresAsync(extSemArray, paramsArray, unsigned int numExtSems, stream) Signals a set of external semaphore objects.
See:
- Args:
- extSemArray (
Pointer/object) – 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)
hipWaitExternalSemaphoresAsync(extSemArray, paramsArray, unsigned int numExtSems, stream) Waits on a set of external semaphore objects
See:
- Args:
- extSemArray (
Pointer/object) – 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)
hipWaitExternalSemaphoresAsync(extSemArray, paramsArray, unsigned int numExtSems, stream) Waits on a set of external semaphore objects
See:
- Args:
- extSemArray (
Pointer/object) – 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuDestroyExternalSemaphore(extSem)
hipDestroyExternalSemaphore(extSem) Destroys an external semaphore object and releases any references to the underlying resource. Any outstanding signals or waits must have completed before the semaphore is destroyed.
See:
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaDestroyExternalSemaphore(extSem)
hipDestroyExternalSemaphore(extSem) Destroys an external semaphore object and releases any references to the underlying resource. Any outstanding signals or waits must have completed before the semaphore is destroyed.
See:
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuImportExternalMemory(extMem_out, memHandleDesc)
hipImportExternalMemory(extMem_out, memHandleDesc) Imports an external memory object.
See:
- Args:
- extMem_out (
Pointer/object) – OUT: Returned handle to an external memory object
- memHandleDesc (
hipExternalMemoryHandleDesc_st/object) – IN: Memory import handle descriptor
- extMem_out (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaImportExternalMemory(extMem_out, memHandleDesc)
hipImportExternalMemory(extMem_out, memHandleDesc) Imports an external memory object.
See:
- Args:
- extMem_out (
Pointer/object) – OUT: Returned handle to an external memory object
- memHandleDesc (
hipExternalMemoryHandleDesc_st/object) – IN: Memory import handle descriptor
- extMem_out (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuExternalMemoryGetMappedBuffer(extMem, bufferDesc)
hipExternalMemoryGetMappedBuffer(extMem, bufferDesc) Maps a buffer onto an imported memory object.
See:
- Args:
- extMem (
Pointer/object) – IN: Handle to external memory object
- bufferDesc (
hipExternalMemoryBufferDesc_st/object) – IN: Buffer descriptor
- extMem (
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cudaExternalMemoryGetMappedBuffer(extMem, bufferDesc)
hipExternalMemoryGetMappedBuffer(extMem, bufferDesc) Maps a buffer onto an imported memory object.
See:
- Args:
- extMem (
Pointer/object) – IN: Handle to external memory object
- bufferDesc (
hipExternalMemoryBufferDesc_st/object) – IN: Buffer descriptor
- extMem (
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cuDestroyExternalMemory(extMem)
hipDestroyExternalMemory(extMem) Destroys an external memory object.
See:
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaDestroyExternalMemory(extMem)
hipDestroyExternalMemory(extMem) Destroys an external memory object.
See:
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemAlloc(size)
hipMalloc(unsigned long size) Allocate memory on the default accelerator
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
- See:
hipMallocPitch,hipFree,hipMallocArray,hipFreeArray,hipMalloc3D,hipMalloc3DArray,hipHostFree,hipHostMalloc- Args:
- size (
int) – IN: Requested memory size
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorOutOfMemory,hipErrorInvalidValue(bad context, null *ptr)DeviceArray/object:Pointer to the allocated memory
- cuda.cuda.cuMemAlloc_v2(size)
hipMalloc(unsigned long size) Allocate memory on the default accelerator
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
- See:
hipMallocPitch,hipFree,hipMallocArray,hipFreeArray,hipMalloc3D,hipMalloc3DArray,hipHostFree,hipHostMalloc- Args:
- size (
int) – IN: Requested memory size
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorOutOfMemory,hipErrorInvalidValue(bad context, null *ptr)DeviceArray/object:Pointer to the allocated memory
- cuda.cuda.cudaMalloc(size)
hipMalloc(unsigned long size) Allocate memory on the default accelerator
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
- See:
hipMallocPitch,hipFree,hipMallocArray,hipFreeArray,hipMalloc3D,hipMalloc3DArray,hipHostFree,hipHostMalloc- Args:
- size (
int) – IN: Requested memory size
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorOutOfMemory,hipErrorInvalidValue(bad context, null *ptr)DeviceArray/object:Pointer to the allocated memory
- cuda.cuda.cuMemAllocHost(size)
hipMemAllocHost(unsigned long size) Allocate pinned host memory [Deprecated]
- cuda.cuda.cuMemAllocHost_v2(size)
hipMemAllocHost(unsigned long size) Allocate pinned host memory [Deprecated]
- cuda.cuda.cudaMallocHost(size, flags)
hipHostMalloc(unsigned long size, unsigned int flags) Allocates device accessible page locked (pinned) host memory
This API allocates pinned host memory which is mapped into the address space of all GPUs in the system, the memory can be accessed directly by the GPU device, and can be read or written with much higher bandwidth than pageable memory obtained with functions such as malloc().
Using the pinned host memory, applications can implement faster data transfers for HostToDevice and DeviceToHost. The runtime tracks the hipHostMalloc allocations and can avoid some of the setup required for regular unpinned memory.
When the memory accesses are infrequent, zero-copy memory can be a good choice, for coherent allocation. GPU can directly access the host memory over the CPU/GPU interconnect, without need to copy the data.
Currently the allocation granularity is 4KB for the API.
Developers need to choose proper allocation flag with consideration of synchronization.
If no input for flags, it will be the default pinned memory allocation on the host.
- See:
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cuMemAllocManaged(size, flags)
hipMallocManaged(unsigned long size, unsigned int flags) Allocates memory that will be automatically managed by HIP.
This section describes the managed memory management functions of HIP runtime API.
- Note:
The managed memory management APIs are implemented on Linux, under developement on Windows.
This API is used for managed memory, allows data be shared and accessible to both CPU and GPU using a single pointer.
The API returns the allocation pointer, managed by HMM, can be used further to execute kernels on device and fetch data between the host and device as needed.
- Note:
It is recommend to do the capability check before call this API.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorMemoryAllocation,hipErrorNotSupported,hipErrorInvalidValueDeviceArray/object:pointer to allocated device memory
- cuda.cuda.cudaMallocManaged(size, flags)
hipMallocManaged(unsigned long size, unsigned int flags) Allocates memory that will be automatically managed by HIP.
This section describes the managed memory management functions of HIP runtime API.
- Note:
The managed memory management APIs are implemented on Linux, under developement on Windows.
This API is used for managed memory, allows data be shared and accessible to both CPU and GPU using a single pointer.
The API returns the allocation pointer, managed by HMM, can be used further to execute kernels on device and fetch data between the host and device as needed.
- Note:
It is recommend to do the capability check before call this API.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorMemoryAllocation,hipErrorNotSupported,hipErrorInvalidValueDeviceArray/object:pointer to allocated device memory
- cuda.cuda.cudaMemPrefetchAsync(dev_ptr, count, device, stream)
hipMemPrefetchAsync(dev_ptr, unsigned long count, int device, stream) Prefetches memory to the specified destination device using HIP.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemPrefetchAsync(dev_ptr, count, device, stream)
hipMemPrefetchAsync(dev_ptr, unsigned long count, int device, stream) Prefetches memory to the specified destination device using HIP.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemAdvise(dev_ptr, count, advice, device)
hipMemAdvise(dev_ptr, unsigned long count, advice, int device) Advise about the usage of a given memory range to HIP.
This HIP API advises about the usage to be applied on unified memory allocation in the range starting from the pointer address devPtr, with the size of count bytes. The memory range must refer to managed memory allocated via the API hipMallocManaged, and the range will be handled with proper round down and round up respectively in the driver to be aligned to CPU page size, the same way as corresponding CUDA API behaves in CUDA version 8.0 and afterwards.
- Note:
This API is implemented on Linux and is under development on Windows.
- Args:
- dev_ptr (
Pointer/object) – IN: pointer to memory to set the advice for
- count (
int) – IN: size in bytes of the memory range, it should be CPU page size alligned.
- advice (
hipMemoryAdvise) – IN: advice to be applied for the specified memory range
- device (
int) – IN: device to apply the advice for
- dev_ptr (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemAdvise(dev_ptr, count, advice, device)
hipMemAdvise(dev_ptr, unsigned long count, advice, int device) Advise about the usage of a given memory range to HIP.
This HIP API advises about the usage to be applied on unified memory allocation in the range starting from the pointer address devPtr, with the size of count bytes. The memory range must refer to managed memory allocated via the API hipMallocManaged, and the range will be handled with proper round down and round up respectively in the driver to be aligned to CPU page size, the same way as corresponding CUDA API behaves in CUDA version 8.0 and afterwards.
- Note:
This API is implemented on Linux and is under development on Windows.
- Args:
- dev_ptr (
Pointer/object) – IN: pointer to memory to set the advice for
- count (
int) – IN: size in bytes of the memory range, it should be CPU page size alligned.
- advice (
hipMemoryAdvise) – IN: advice to be applied for the specified memory range
- device (
int) – IN: device to apply the advice for
- dev_ptr (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemRangeGetAttribute(data, data_size, attribute, dev_ptr, count)
hipMemRangeGetAttribute(data, unsigned long data_size, attribute, dev_ptr, unsigned long count) Query an attribute of a given memory range in HIP.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- data (
Pointer/object) – IN,OUT: a pointer to a memory location where the result of each attribute query will be written to
- data_size (
int) – IN: the size of data
- attribute (
hipMemRangeAttribute) – IN: the attribute to query
- dev_ptr (
Pointer/object) – IN: start of the range to query
- count (
int) – IN: size of the range to query
- data (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemRangeGetAttribute(data, data_size, attribute, dev_ptr, count)
hipMemRangeGetAttribute(data, unsigned long data_size, attribute, dev_ptr, unsigned long count) Query an attribute of a given memory range in HIP.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- data (
Pointer/object) – IN,OUT: a pointer to a memory location where the result of each attribute query will be written to
- data_size (
int) – IN: the size of data
- attribute (
hipMemRangeAttribute) – IN: the attribute to query
- dev_ptr (
Pointer/object) – IN: start of the range to query
- count (
int) – IN: size of the range to query
- data (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemRangeGetAttributes(attributes, num_attributes, dev_ptr, count)
hipMemRangeGetAttributes(attributes, unsigned long num_attributes, dev_ptr, unsigned long count) Query attributes of a given memory range in HIP.
- cuda.cuda.cuMemRangeGetAttributes(attributes, num_attributes, dev_ptr, count)
hipMemRangeGetAttributes(attributes, unsigned long num_attributes, dev_ptr, unsigned long count) Query attributes of a given memory range in HIP.
- cuda.cuda.cuStreamAttachMemAsync(stream, dev_ptr, length, flags)
hipStreamAttachMemAsync(stream, dev_ptr, unsigned long length, unsigned int flags) Attach memory to a stream asynchronously in HIP.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- stream (
ihipStream_t/object) – IN: stream in which to enqueue the attach operation
- dev_ptr (
Pointer/object) – IN: pointer to memory (must be a pointer to managed memory or
to a valid host-accessible region of system-allocated memory)
- length (
int) – IN: length of memory (defaults to zero)
- flags (
int) – IN: must be one of hipMemAttachGlobal, hipMemAttachHost or
hipMemAttachSingle (defaults to hipMemAttachSingle)
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaStreamAttachMemAsync(stream, dev_ptr, length, flags)
hipStreamAttachMemAsync(stream, dev_ptr, unsigned long length, unsigned int flags) Attach memory to a stream asynchronously in HIP.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- stream (
ihipStream_t/object) – IN: stream in which to enqueue the attach operation
- dev_ptr (
Pointer/object) – IN: pointer to memory (must be a pointer to managed memory or
to a valid host-accessible region of system-allocated memory)
- length (
int) – IN: length of memory (defaults to zero)
- flags (
int) – IN: must be one of hipMemAttachGlobal, hipMemAttachHost or
hipMemAttachSingle (defaults to hipMemAttachSingle)
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMallocAsync(size, stream)
hipMallocAsync(unsigned long size, stream) Allocates memory with stream ordered semantics
Inserts a memory allocation operation into
stream.A pointer to the allocated memory is returned immediately in *dptr. The allocation must not be accessed until the the allocation operation completes. The allocation comes from the memory pool associated with the stream’s device.- Note:
The default memory pool of a device contains device memory from that device.
- Note:
Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.
- Note:
During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.
- See:
hipMallocFromPoolAsync,hipFreeAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- size (
int) – IN: Number of bytes to allocate
- stream (
ihipStream_t/object) – IN: The stream establishing the stream ordering contract and the memory pool to allocate from
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported,hipErrorOutOfMemoryDeviceArray/object:Returned device pointer of memory allocation
- cuda.cuda.cuMemAllocAsync(size, stream)
hipMallocAsync(unsigned long size, stream) Allocates memory with stream ordered semantics
Inserts a memory allocation operation into
stream.A pointer to the allocated memory is returned immediately in *dptr. The allocation must not be accessed until the the allocation operation completes. The allocation comes from the memory pool associated with the stream’s device.- Note:
The default memory pool of a device contains device memory from that device.
- Note:
Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.
- Note:
During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.
- See:
hipMallocFromPoolAsync,hipFreeAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- size (
int) – IN: Number of bytes to allocate
- stream (
ihipStream_t/object) – IN: The stream establishing the stream ordering contract and the memory pool to allocate from
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported,hipErrorOutOfMemoryDeviceArray/object:Returned device pointer of memory allocation
- cuda.cuda.cudaFreeAsync(dev_ptr, stream)
hipFreeAsync(dev_ptr, stream) Frees memory with stream ordered semantics
Inserts a free operation into
stream.The allocation must not be used after stream execution reaches the free. After this API returns, accessing the memory from any subsequent work launched on the GPU or querying its pointer attributes results in undefined behavior.- Note:
During stream capture, this function results in the creation of a free node and must therefore be passed the address of a graph allocation.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- dev_ptr (
Pointer/object) – IN: Pointer to device memory to free
- stream (
ihipStream_t/object) – IN: The stream, where the destruciton will occur according to the execution order
- dev_ptr (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemFreeAsync(dev_ptr, stream)
hipFreeAsync(dev_ptr, stream) Frees memory with stream ordered semantics
Inserts a free operation into
stream.The allocation must not be used after stream execution reaches the free. After this API returns, accessing the memory from any subsequent work launched on the GPU or querying its pointer attributes results in undefined behavior.- Note:
During stream capture, this function results in the creation of a free node and must therefore be passed the address of a graph allocation.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- dev_ptr (
Pointer/object) – IN: Pointer to device memory to free
- stream (
ihipStream_t/object) – IN: The stream, where the destruciton will occur according to the execution order
- dev_ptr (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemPoolTrimTo(mem_pool, min_bytes_to_hold)
hipMemPoolTrimTo(mem_pool, unsigned long min_bytes_to_hold) Releases freed memory back to the OS
Releases memory back to the OS until the pool contains fewer than
min_bytes_to_keepreserved 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemPoolTrimTo(mem_pool, min_bytes_to_hold)
hipMemPoolTrimTo(mem_pool, unsigned long min_bytes_to_hold) Releases freed memory back to the OS
Releases memory back to the OS until the pool contains fewer than
min_bytes_to_keepreserved 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemPoolSetAttribute(mem_pool, attr, value)
hipMemPoolSetAttribute(mem_pool, attr, value) Sets attributes of a memory pool
Supported attributes are: -
hipMemPoolAttrReleaseThreshold:(value type = cuuint64_t)Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0)
hipMemPoolReuseFollowEventDependencies:(value type = int)Allow
hipMallocAsyncto 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
hipMallocAsyncto 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemPoolSetAttribute(mem_pool, attr, value)
hipMemPoolSetAttribute(mem_pool, attr, value) Sets attributes of a memory pool
Supported attributes are: -
hipMemPoolAttrReleaseThreshold:(value type = cuuint64_t)Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0)
hipMemPoolReuseFollowEventDependencies:(value type = int)Allow
hipMallocAsyncto 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
hipMallocAsyncto 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemPoolGetAttribute(mem_pool, attr, value)
hipMemPoolGetAttribute(mem_pool, attr, value) Gets attributes of a memory pool
Supported attributes are: -
hipMemPoolAttrReleaseThreshold:(value type = cuuint64_t)Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0)
hipMemPoolReuseFollowEventDependencies:(value type = int)Allow
hipMallocAsyncto 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
hipMallocAsyncto 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemPoolGetAttribute(mem_pool, attr, value)
hipMemPoolGetAttribute(mem_pool, attr, value) Gets attributes of a memory pool
Supported attributes are: -
hipMemPoolAttrReleaseThreshold:(value type = cuuint64_t)Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0)
hipMemPoolReuseFollowEventDependencies:(value type = int)Allow
hipMallocAsyncto 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
hipMallocAsyncto 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemPoolSetAccess(mem_pool, desc_list, count)
hipMemPoolSetAccess(mem_pool, desc_list, unsigned long count) Controls visibility of the specified pool between devices
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolGetAccess- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool for acccess change
- desc_list (
hipMemAccessDesc/object) – IN: Array of access descriptors. Each descriptor instructs the access to enable for a single gpu
- count (
int) – IN: Number of descriptors in the map array.
- mem_pool (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemPoolSetAccess(mem_pool, desc_list, count)
hipMemPoolSetAccess(mem_pool, desc_list, unsigned long count) Controls visibility of the specified pool between devices
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolGetAccess- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool for acccess change
- desc_list (
hipMemAccessDesc/object) – IN: Array of access descriptors. Each descriptor instructs the access to enable for a single gpu
- count (
int) – IN: Number of descriptors in the map array.
- mem_pool (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemPoolGetAccess(flags, mem_pool, location)
hipMemPoolGetAccess(flags, mem_pool, location) Returns the accessibility of a pool from a device
Returns the accessibility of the pool’s memory from the specified location.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- flags (
Pointer/object) – OUT: Accessibility of the memory pool from the specified location/device
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool being queried
- location (
hipMemLocation/object) – IN: Location/device for memory pool access
- flags (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemPoolGetAccess(flags, mem_pool, location)
hipMemPoolGetAccess(flags, mem_pool, location) Returns the accessibility of a pool from a device
Returns the accessibility of the pool’s memory from the specified location.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- flags (
Pointer/object) – OUT: Accessibility of the memory pool from the specified location/device
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool being queried
- location (
hipMemLocation/object) – IN: Location/device for memory pool access
- flags (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemPoolCreate(pool_props)
hipMemPoolCreate(pool_props) Creates a memory pool
Creates a HIP memory pool and returns the handle in
mem_pool.Thepool_propsdetermines 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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemPoolHandle_t:Contains createed memory pool
- cuda.cuda.cuMemPoolCreate(pool_props)
hipMemPoolCreate(pool_props) Creates a memory pool
Creates a HIP memory pool and returns the handle in
mem_pool.Thepool_propsdetermines 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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemPoolHandle_t:Contains createed memory pool
- cuda.cuda.cudaMemPoolDestroy(mem_pool)
hipMemPoolDestroy(mem_pool) Destroys the specified memory pool
If any pointers obtained from this pool haven’t been freed or the pool has free operations that haven’t completed when
hipMemPoolDestroyis 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,hipMemPoolCreatehipMemPoolTrimTo,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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemPoolDestroy(mem_pool)
hipMemPoolDestroy(mem_pool) Destroys the specified memory pool
If any pointers obtained from this pool haven’t been freed or the pool has free operations that haven’t completed when
hipMemPoolDestroyis 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,hipMemPoolCreatehipMemPoolTrimTo,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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMallocFromPoolAsync(size, mem_pool, stream)
hipMallocFromPoolAsync(unsigned long size, mem_pool, stream) Allocates memory from a specified pool with stream ordered semantics.
Inserts an allocation operation into
stream.A pointer to the allocated memory is returned immediately indev_ptr.The allocation must not be accessed until the the allocation operation completes. The allocation comes from the specified memory pool.- Note:
The specified memory pool may be from a device different than that of the specified
stream.
Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.
- Note:
During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.
- See:
hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolCreatehipMemPoolTrimTo,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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported,hipErrorOutOfMemoryDeviceArray/object:Returned device pointer
- cuda.cuda.cuMemAllocFromPoolAsync(size, mem_pool, stream)
hipMallocFromPoolAsync(unsigned long size, mem_pool, stream) Allocates memory from a specified pool with stream ordered semantics.
Inserts an allocation operation into
stream.A pointer to the allocated memory is returned immediately indev_ptr.The allocation must not be accessed until the the allocation operation completes. The allocation comes from the specified memory pool.- Note:
The specified memory pool may be from a device different than that of the specified
stream.
Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.
- Note:
During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.
- See:
hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolCreatehipMemPoolTrimTo,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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported,hipErrorOutOfMemoryDeviceArray/object:Returned device pointer
- cuda.cuda.cudaMemPoolExportToShareableHandle(shared_handle, mem_pool, handle_type, flags)
hipMemPoolExportToShareableHandle(shared_handle, mem_pool, handle_type, unsigned int flags) Exports a memory pool to the requested handle type.
Given an IPC capable mempool, create an OS handle to share the pool with another process. A recipient process can convert the shareable handle into a mempool with
hipMemPoolImportFromShareableHandle.Individual pointers can then be shared with thehipMemPoolExportPointerandhipMemPoolImportPointerAPIs. 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
hipMemAllocationHandleTypeother 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemPoolExportToShareableHandle(shared_handle, mem_pool, handle_type, flags)
hipMemPoolExportToShareableHandle(shared_handle, mem_pool, handle_type, unsigned int flags) Exports a memory pool to the requested handle type.
Given an IPC capable mempool, create an OS handle to share the pool with another process. A recipient process can convert the shareable handle into a mempool with
hipMemPoolImportFromShareableHandle.Individual pointers can then be shared with thehipMemPoolExportPointerandhipMemPoolImportPointerAPIs. 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
hipMemAllocationHandleTypeother 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemPoolImportFromShareableHandle(shared_handle, handle_type, flags)
hipMemPoolImportFromShareableHandle(shared_handle, handle_type, unsigned int flags) Imports a memory pool from a shared handle.
Specific allocations can be imported from the imported pool with
hipMemPoolImportPointer.- Note:
Imported memory pools do not support creating new allocations. As such imported memory pools may not be used in
hipDeviceSetMemPoolorhipMallocFromPoolAsynccalls.- 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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorOutOfMemoryihipMemPoolHandle_t:Returned memory pool
- cuda.cuda.cuMemPoolImportFromShareableHandle(shared_handle, handle_type, flags)
hipMemPoolImportFromShareableHandle(shared_handle, handle_type, unsigned int flags) Imports a memory pool from a shared handle.
Specific allocations can be imported from the imported pool with
hipMemPoolImportPointer.- Note:
Imported memory pools do not support creating new allocations. As such imported memory pools may not be used in
hipDeviceSetMemPoolorhipMallocFromPoolAsynccalls.- 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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorOutOfMemoryihipMemPoolHandle_t:Returned memory pool
- cuda.cuda.cudaMemPoolExportPointer(export_data, dev_ptr)
hipMemPoolExportPointer(export_data, dev_ptr) Export data to share a memory pool allocation between processes.
Constructs
export_datafor sharing a specific allocation from an already shared memory pool. The recipient process can import the allocation with thehipMemPoolImportPointerapi. 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemPoolExportPointer(export_data, dev_ptr)
hipMemPoolExportPointer(export_data, dev_ptr) Export data to share a memory pool allocation between processes.
Constructs
export_datafor sharing a specific allocation from an already shared memory pool. The recipient process can import the allocation with thehipMemPoolImportPointerapi. 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemPoolImportPointer(mem_pool, export_data)
hipMemPoolImportPointer(mem_pool, export_data) Import a memory pool allocation from another process.
Returns in
dev_ptra 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 withhipFreeorhipFreeAsync.IfhipFreeAsyncis used, the free must be completed on the importing process before the free operation on the exporting process.- Note:
The
hipFreeAsyncapi may be used in the exporting process before thehipFreeAsyncoperation completes in its stream as long as thehipFreeAsyncin 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
tupleof size 2 that contains (in that order):
- cuda.cuda.cuMemPoolImportPointer(mem_pool, export_data)
hipMemPoolImportPointer(mem_pool, export_data) Import a memory pool allocation from another process.
Returns in
dev_ptra 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 withhipFreeorhipFreeAsync.IfhipFreeAsyncis used, the free must be completed on the importing process before the free operation on the exporting process.- Note:
The
hipFreeAsyncapi may be used in the exporting process before thehipFreeAsyncoperation completes in its stream as long as thehipFreeAsyncin 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
tupleof size 2 that contains (in that order):
- cuda.cuda.cuMemHostAlloc(size, flags)
hipHostAlloc(unsigned long size, unsigned int flags) Allocate device accessible page locked host memory [Deprecated]
- cuda.cuda.cudaHostAlloc(size, flags)
hipHostAlloc(unsigned long size, unsigned int flags) Allocate device accessible page locked host memory [Deprecated]
- cuda.cuda.cuMemHostGetDevicePointer(hstPtr, flags)
hipHostGetDevicePointer(hstPtr, unsigned int flags) Get Device pointer from Host Pointer allocated through hipHostMalloc
- See:
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cuMemHostGetDevicePointer_v2(hstPtr, flags)
hipHostGetDevicePointer(hstPtr, unsigned int flags) Get Device pointer from Host Pointer allocated through hipHostMalloc
- See:
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cudaHostGetDevicePointer(hstPtr, flags)
hipHostGetDevicePointer(hstPtr, unsigned int flags) Get Device pointer from Host Pointer allocated through hipHostMalloc
- See:
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cuMemHostGetFlags(hostPtr)
hipHostGetFlags(hostPtr) Return flags associated with host pointer
- cuda.cuda.cudaHostGetFlags(hostPtr)
hipHostGetFlags(hostPtr) Return flags associated with host pointer
- cuda.cuda.cuMemHostRegister(hostPtr, sizeBytes, flags)
hipHostRegister(hostPtr, unsigned long sizeBytes, unsigned int flags) Register host memory so it can be accessed from the current device.
- Flags:
hipHostRegisterDefaultMemory is Mapped and PortablehipHostRegisterPortableMemory is considered registered by all contexts. HIP only supports
- one context so this is always assumed true.
hipHostRegisterMappedMap the allocation into the address space for the current device.
The device pointer can be obtained with
hipHostGetDevicePointer.After registering the memory, use
hipHostGetDevicePointerto 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemHostRegister_v2(hostPtr, sizeBytes, flags)
hipHostRegister(hostPtr, unsigned long sizeBytes, unsigned int flags) Register host memory so it can be accessed from the current device.
- Flags:
hipHostRegisterDefaultMemory is Mapped and PortablehipHostRegisterPortableMemory is considered registered by all contexts. HIP only supports
- one context so this is always assumed true.
hipHostRegisterMappedMap the allocation into the address space for the current device.
The device pointer can be obtained with
hipHostGetDevicePointer.After registering the memory, use
hipHostGetDevicePointerto 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaHostRegister(hostPtr, sizeBytes, flags)
hipHostRegister(hostPtr, unsigned long sizeBytes, unsigned int flags) Register host memory so it can be accessed from the current device.
- Flags:
hipHostRegisterDefaultMemory is Mapped and PortablehipHostRegisterPortableMemory is considered registered by all contexts. HIP only supports
- one context so this is always assumed true.
hipHostRegisterMappedMap the allocation into the address space for the current device.
The device pointer can be obtained with
hipHostGetDevicePointer.After registering the memory, use
hipHostGetDevicePointerto 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemHostUnregister(hostPtr)
hipHostUnregister(hostPtr) Un-register host pointer
- See:
- Args:
- hostPtr (
Pointer/object) – IN: Host pointer previously registered with
hipHostRegister
- hostPtr (
- Returns:
A
tupleof size 1 that contains (in that order):hipError_t: Error code
- cuda.cuda.cudaHostUnregister(hostPtr)
hipHostUnregister(hostPtr) Un-register host pointer
- See:
- Args:
- hostPtr (
Pointer/object) – IN: Host pointer previously registered with
hipHostRegister
- hostPtr (
- Returns:
A
tupleof size 1 that contains (in that order):hipError_t: Error code
- cuda.cuda.cudaMallocPitch(width, height)
hipMallocPitch(unsigned long width, unsigned long height) (No short description, might be part of a group.)
Allocates at least width (in bytes) * height bytes of linear memory Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be returned in *pitch. Currently the alignment is set to 128 bytes
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
- See:
hipMalloc,hipFree,hipMallocArray,hipFreeArray,hipHostFree,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: Error codeint:Pitch for allocation (in bytes)
- cuda.cuda.cuMemAllocPitch(widthInBytes, height, elementSizeBytes)
hipMemAllocPitch(unsigned long widthInBytes, unsigned long height, unsigned int elementSizeBytes) (No short description, might be part of a group.)
Allocates at least width (in bytes) * height bytes of linear memory Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be returned in *pitch. Currently the alignment is set to 128 bytes
If size is 0, no memory is allocated, ptr returns nullptr, and hipSuccess is returned. The intended usage of pitch is as a separate parameter of the allocation, used to compute addresses within the 2D array. Given the row and column of an array element of type T, the address is computed as: T pElement = (T*)((char*)BaseAddress + Row * Pitch) + Column;
- See:
hipMalloc,hipFree,hipMallocArray,hipFreeArray,hipHostFree,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: Error codeint:Pitch for allocation (in bytes)
- cuda.cuda.cuMemAllocPitch_v2(widthInBytes, height, elementSizeBytes)
hipMemAllocPitch(unsigned long widthInBytes, unsigned long height, unsigned int elementSizeBytes) (No short description, might be part of a group.)
Allocates at least width (in bytes) * height bytes of linear memory Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be returned in *pitch. Currently the alignment is set to 128 bytes
If size is 0, no memory is allocated, ptr returns nullptr, and hipSuccess is returned. The intended usage of pitch is as a separate parameter of the allocation, used to compute addresses within the 2D array. Given the row and column of an array element of type T, the address is computed as: T pElement = (T*)((char*)BaseAddress + Row * Pitch) + Column;
- See:
hipMalloc,hipFree,hipMallocArray,hipFreeArray,hipHostFree,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: Error codeint:Pitch for allocation (in bytes)
- cuda.cuda.cuMemFree(ptr)
hipFree(ptr) Free memory allocated by the hcc hip memory allocation API.
This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.
- See:
hipMalloc,hipMallocPitch,hipMallocArray,hipFreeArray,hipHostFree,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipError_t: One of:hipErrorInvalidDevicePointer(if pointer is invalid, including host pointers allocatedwith hipHostMalloc)
- cuda.cuda.cuMemFree_v2(ptr)
hipFree(ptr) Free memory allocated by the hcc hip memory allocation API.
This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.
- See:
hipMalloc,hipMallocPitch,hipMallocArray,hipFreeArray,hipHostFree,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipError_t: One of:hipErrorInvalidDevicePointer(if pointer is invalid, including host pointers allocatedwith hipHostMalloc)
- cuda.cuda.cudaFree(ptr)
hipFree(ptr) Free memory allocated by the hcc hip memory allocation API.
This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.
- See:
hipMalloc,hipMallocPitch,hipMallocArray,hipFreeArray,hipHostFree,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipError_t: One of:hipErrorInvalidDevicePointer(if pointer is invalid, including host pointers allocatedwith hipHostMalloc)
- cuda.cuda.cuMemFreeHost(ptr)
hipHostFree(ptr) Free memory allocated by the hcc hip host memory allocation API
This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.
- See:
hipMalloc,hipMallocPitch,hipFree,hipMallocArray,hipFreeArray,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue(if pointer is invalid, including device pointers allocated withhipMalloc)
- cuda.cuda.cudaFreeHost(ptr)
hipHostFree(ptr) Free memory allocated by the hcc hip host memory allocation API
This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.
- See:
hipMalloc,hipMallocPitch,hipFree,hipMallocArray,hipFreeArray,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue(if pointer is invalid, including device pointers allocated withhipMalloc)
- cuda.cuda.cudaMemcpy(dst, src, sizeBytes, kind)
hipMemcpy(dst, src, unsigned long sizeBytes, kind) Copy data from src to dst.
It supports memory from host to device, device to host, device to device and host to host The src and dst must not overlap.
For hipMemcpy, the copy is always performed by the current device (set by hipSetDevice). For multi-gpu or peer-to-peer configurations, it is recommended to set the current device to the device where the src data is physically located. For optimal peer-to-peer copies, the copy device must be able to access the src and dst pointers (by calling hipDeviceEnablePeerAccess with copy agent as the current device and src/dest as the peerDevice argument. if this is not done, the hipMemcpy will still work, but will perform the copy using a staging buffer on the host. Calling hipMemcpy with dst and src pointers that do not match the hipMemcpyKind results in undefined behavior.
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyHtoD(dst, src, sizeBytes)
hipMemcpyHtoD(dst, src, unsigned long sizeBytes) Copy data from Host to Device
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyHtoD_v2(dst, src, sizeBytes)
hipMemcpyHtoD(dst, src, unsigned long sizeBytes) Copy data from Host to Device
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyDtoH(dst, src, sizeBytes)
hipMemcpyDtoH(dst, src, unsigned long sizeBytes) Copy data from Device to Host
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyDtoH_v2(dst, src, sizeBytes)
hipMemcpyDtoH(dst, src, unsigned long sizeBytes) Copy data from Device to Host
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyDtoD(dst, src, sizeBytes)
hipMemcpyDtoD(dst, src, unsigned long sizeBytes) Copy data from Device to Device
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyDtoD_v2(dst, src, sizeBytes)
hipMemcpyDtoD(dst, src, unsigned long sizeBytes) Copy data from Device to Device
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyHtoDAsync(dst, src, sizeBytes, stream)
hipMemcpyHtoDAsync(dst, src, unsigned long sizeBytes, stream) Copy data from Host to Device asynchronously
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyHtoDAsync_v2(dst, src, sizeBytes, stream)
hipMemcpyHtoDAsync(dst, src, unsigned long sizeBytes, stream) Copy data from Host to Device asynchronously
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyDtoHAsync(dst, src, sizeBytes, stream)
hipMemcpyDtoHAsync(dst, src, unsigned long sizeBytes, stream) Copy data from Device to Host asynchronously
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyDtoHAsync_v2(dst, src, sizeBytes, stream)
hipMemcpyDtoHAsync(dst, src, unsigned long sizeBytes, stream) Copy data from Device to Host asynchronously
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyDtoDAsync(dst, src, sizeBytes, stream)
hipMemcpyDtoDAsync(dst, src, unsigned long sizeBytes, stream) Copy data from Device to Device asynchronously
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyDtoDAsync_v2(dst, src, sizeBytes, stream)
hipMemcpyDtoDAsync(dst, src, unsigned long sizeBytes, stream) Copy data from Device to Device asynchronously
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuModuleGetGlobal(hmod, name)
hipModuleGetGlobal(hmod, name) Returns a global pointer from a module.
Returns in *dptr and *bytes the pointer and size of the global of name name located in module hmod. If no variable of that name exists, it returns hipErrorNotFound. Both parameters dptr and bytes are optional. If one of them is NULL, it is ignored and hipSuccess is returned.
- Args:
- hmod (
ihipModule_t/object) – IN: Module to retrieve global from
- name (
CStr/object) – IN: Name of global to retrieve
- hmod (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotFound,hipErrorInvalidContextint:Returns global size in bytes
- cuda.cuda.cuModuleGetGlobal_v2(hmod, name)
hipModuleGetGlobal(hmod, name) Returns a global pointer from a module.
Returns in *dptr and *bytes the pointer and size of the global of name name located in module hmod. If no variable of that name exists, it returns hipErrorNotFound. Both parameters dptr and bytes are optional. If one of them is NULL, it is ignored and hipSuccess is returned.
- Args:
- hmod (
ihipModule_t/object) – IN: Module to retrieve global from
- name (
CStr/object) – IN: Name of global to retrieve
- hmod (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotFound,hipErrorInvalidContextint:Returns global size in bytes
- cuda.cuda.cudaGetSymbolAddress(symbol)
hipGetSymbolAddress(symbol) Gets device pointer associated with symbol on the device.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cudaGetSymbolSize(symbol)
hipGetSymbolSize(symbol) Gets the size of the given symbol on the device.
- cuda.cuda.cudaMemcpyToSymbol(symbol, src, sizeBytes, offset, kind)
hipMemcpyToSymbol(symbol, src, unsigned long sizeBytes, unsigned long offset, kind) Copies data to the given symbol on the device.
Symbol HIP APIs allow a kernel to define a device-side data symbol which can be accessed on the host side. The symbol can be in __constant or device space. Note that the symbol name needs to be encased in the HIP_SYMBOL macro. This also applies to hipMemcpyFromSymbol, hipGetSymbolAddress, and hipGetSymbolSize. For detail usage, see the example at ROCm/HIP
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemcpyToSymbolAsync(symbol, src, sizeBytes, offset, kind, stream)
hipMemcpyToSymbolAsync(symbol, src, unsigned long sizeBytes, unsigned long offset, kind, stream) Copies data to the given symbol on the device asynchronously.
- Args:
- symbol (
Pointer/object) – OUT: pointer to the device symbole
- src (
Pointer/object) – IN: pointer to the source address
- sizeBytes (
int) – IN: size in bytes to copy
- offset (
int) – IN: offset in bytes from start of symbole
- kind (
hipMemcpyKind) – IN: type of memory transfer
- stream (
ihipStream_t/object) – IN: stream identifier
- symbol (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemcpyFromSymbol(dst, symbol, sizeBytes, offset, kind)
hipMemcpyFromSymbol(dst, symbol, unsigned long sizeBytes, unsigned long offset, kind) Copies data from the given symbol on the device.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemcpyFromSymbolAsync(dst, symbol, sizeBytes, offset, kind, stream)
hipMemcpyFromSymbolAsync(dst, symbol, unsigned long sizeBytes, unsigned long offset, kind, stream) Copies data from the given symbol on the device asynchronously.
- Args:
- dst (
Pointer/object) – 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemcpyAsync(dst, src, sizeBytes, kind, stream)
hipMemcpyAsync(dst, src, unsigned long sizeBytes, kind, stream) Copy data from src to dst asynchronously.
- Warning:
If host or dest are not pinned, the memory copy will be performed synchronously. For best performance, use hipHostMalloc to allocate host memory that is transferred asynchronously.
- Warning:
on HCC hipMemcpyAsync does not support overlapped H2D and D2H copies. For hipMemcpy, the copy is always performed by the device associated with the specified stream.
For multi-gpu or peer-to-peer configurations, it is recommended to use a stream which is a attached to the device where the src data is physically located. For optimal peer-to-peer copies, the copy device must be able to access the src and dst pointers (by calling hipDeviceEnablePeerAccess with copy agent as the current device and src/dest as the peerDevice argument. if this is not done, the hipMemcpy will still work, but will perform the copy using a staging buffer on the host.
- See:
hipMemcpy,hipMemcpy2D,hipMemcpyToArray,hipMemcpy2DToArray,hipMemcpyFromArray,hipMemcpy2DFromArray,hipMemcpyArrayToArray,hipMemcpy2DArrayToArray,hipMemcpyToSymbol,hipMemcpyFromSymbol,hipMemcpy2DAsync,hipMemcpyToArrayAsync,hipMemcpy2DToArrayAsync,hipMemcpyFromArrayAsync,hipMemcpy2DFromArrayAsync,hipMemcpyToSymbolAsync,hipMemcpyFromSymbolAsync- Args:
- dst (
Pointer/object) – OUT: Data being copy to
- src (
Pointer/object) – IN: Data being copy from
- sizeBytes (
int) – IN: Data size in bytes
- kind (
hipMemcpyKind) – IN: Type of memory transfer
- stream (
ihipStream_t/object) – IN: Stream identifier
- dst (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemset(dst, value, sizeBytes)
hipMemset(dst, int value, unsigned long sizeBytes) Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant
byte value value.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemsetD8(dest, value, count)
hipMemsetD8(dest, unsigned char value, unsigned long count) Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant
byte value value.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemsetD8_v2(dest, value, count)
hipMemsetD8(dest, unsigned char value, unsigned long count) Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant
byte value value.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemsetD8Async(dest, value, count, stream)
hipMemsetD8Async(dest, unsigned char value, unsigned long count, stream) Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant
byte value value.
hipMemsetD8Async() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemsetD16(dest, value, count)
hipMemsetD16(dest, unsigned short value, unsigned long count) Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant
short value value.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemsetD16_v2(dest, value, count)
hipMemsetD16(dest, unsigned short value, unsigned long count) Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant
short value value.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemsetD16Async(dest, value, count, stream)
hipMemsetD16Async(dest, unsigned short value, unsigned long count, stream) Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant
short value value.
hipMemsetD16Async() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemsetD32(dest, value, count)
hipMemsetD32(dest, int value, unsigned long count) Fills the memory area pointed to by dest with the constant integer
value for specified number of times.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemsetD32_v2(dest, value, count)
hipMemsetD32(dest, int value, unsigned long count) Fills the memory area pointed to by dest with the constant integer
value for specified number of times.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemsetAsync(dst, value, sizeBytes, stream)
hipMemsetAsync(dst, int value, unsigned long sizeBytes, stream) Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant
byte value value.
hipMemsetAsync() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemsetD32Async(dst, value, count, stream)
hipMemsetD32Async(dst, int value, unsigned long count, stream) Fills the memory area pointed to by dev with the constant integer
value for specified number of times.
hipMemsetD32Async() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemset2D(dst, pitch, value, width, height)
hipMemset2D(dst, unsigned long pitch, int value, unsigned long width, unsigned long height) Fills the memory area pointed to by dst with the constant value.
- cuda.cuda.cudaMemset2DAsync(dst, pitch, value, width, height, stream)
hipMemset2DAsync(dst, unsigned long pitch, int value, unsigned long width, unsigned long height, stream) Fills asynchronously the memory area pointed to by dst with the constant value.
- Args:
- dst (
Pointer/object) – IN: Pointer to 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemset3D(pitchedDevPtr, value, extent)
hipMemset3D(pitchedDevPtr, int value, extent) Fills synchronously the memory area pointed to by pitchedDevPtr with the constant value.
- Args:
- pitchedDevPtr (
hipPitchedPtr) – IN: 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemset3DAsync(pitchedDevPtr, value, extent, stream)
hipMemset3DAsync(pitchedDevPtr, int value, extent, stream) Fills asynchronously the memory area pointed to by pitchedDevPtr with the constant value.
- Args:
- pitchedDevPtr (
hipPitchedPtr) – IN: 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemGetInfo()
hipMemGetInfo() Query memory info.
On ROCM, this function gets the actual free memory left on the current device, so supports the cases while running multi-workload (such as multiple processes, multiple threads, and multiple GPUs).
- Warning:
On Windows, the free memory only accounts for memory allocated by this process and may be optimistic.
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:Returns free memory on the current device in bytes
int:Returns total allocatable memory on the current device in bytes
- cuda.cuda.cuMemGetInfo_v2()
hipMemGetInfo() Query memory info.
On ROCM, this function gets the actual free memory left on the current device, so supports the cases while running multi-workload (such as multiple processes, multiple threads, and multiple GPUs).
- Warning:
On Windows, the free memory only accounts for memory allocated by this process and may be optimistic.
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:Returns free memory on the current device in bytes
int:Returns total allocatable memory on the current device in bytes
- cuda.cuda.cudaMemGetInfo()
hipMemGetInfo() Query memory info.
On ROCM, this function gets the actual free memory left on the current device, so supports the cases while running multi-workload (such as multiple processes, multiple threads, and multiple GPUs).
- Warning:
On Windows, the free memory only accounts for memory allocated by this process and may be optimistic.
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:Returns free memory on the current device in bytes
int:Returns total allocatable memory on the current device in bytes
- cuda.cuda.cudaMallocArray(desc, width, height, flags)
hipMallocArray(desc, unsigned long width, unsigned long height, unsigned int flags) Allocate an array on the device.
- See:
hipMalloc,hipMallocPitch,hipFree,hipFreeArray,hipHostMalloc,hipHostFree- Args:
- desc (
hipChannelFormatDesc/object) – IN: Requested channel format
- width (
int) – IN: Requested array allocation width
- height (
int) – IN: Requested array allocation height
- flags (
int) – IN: Requested properties of allocated array
- desc (
- Returns:
A
tupleof size 2 that contains (in that order):hipArray:Pointer to allocated array in device memory
- cuda.cuda.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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipArray:Pointer to the array memory
- cuda.cuda.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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipArray:Pointer to the array memory
- cuda.cuda.cuArrayDestroy(array)
hipArrayDestroy(array) Destroy an array memory pointer on the device.
- See:
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipArray:Pointer to the 3D array memory
- cuda.cuda.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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipArray:Pointer to the 3D array memory
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaFreeArray(array)
hipFreeArray(array) Frees an array on the device.
- See:
hipMalloc,hipMallocPitch,hipFree,hipMallocArray,hipHostMalloc,hipHostFree- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMalloc3DArray(desc, extent, flags)
hipMalloc3DArray(desc, extent, unsigned int flags) Allocate an array on the device.
- See:
hipMalloc,hipMallocPitch,hipFree,hipFreeArray,hipHostMalloc,hipHostFree- Args:
- desc (
hipChannelFormatDesc/object) – IN: Requested channel format
- extent (
hipExtent) – IN: Requested array allocation width, height and depth
- flags (
int) – IN: Requested properties of allocated array
- desc (
- Returns:
A
tupleof size 2 that contains (in that order):hipArray:Pointer to allocated array in device memory
- cuda.cuda.cudaArrayGetInfo(desc, extent, array)
hipArrayGetInfo(desc, extent, array) Gets info about the specified array
- See:
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValuehipErrorInvalidHandleint:Returned array flags
- cuda.cuda.cuArrayGetDescriptor(pArrayDescriptor, array)
hipArrayGetDescriptor(pArrayDescriptor, array) Gets a 1D or 2D array descriptor
- See:
hipArray3DCreate,hipArray3DGetDescriptor,hipArrayCreate,hipArrayDestroy,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpy3D,hipMemcpy3DAsync,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoD,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer,hipMemsetD8,hipMemsetD16,hipMemsetD32,hipArrayGetInfo- Args:
- pArrayDescriptor (
HIP_ARRAY_DESCRIPTOR/object) – OUT: Returned array descriptor
- array (
hipArray/object) – IN: Array to get descriptor of
- pArrayDescriptor (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuArrayGetDescriptor_v2(pArrayDescriptor, array)
hipArrayGetDescriptor(pArrayDescriptor, array) Gets a 1D or 2D array descriptor
- See:
hipArray3DCreate,hipArray3DGetDescriptor,hipArrayCreate,hipArrayDestroy,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpy3D,hipMemcpy3DAsync,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoD,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer,hipMemsetD8,hipMemsetD16,hipMemsetD32,hipArrayGetInfo- Args:
- pArrayDescriptor (
HIP_ARRAY_DESCRIPTOR/object) – OUT: Returned array descriptor
- array (
hipArray/object) – IN: Array to get descriptor of
- pArrayDescriptor (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuArray3DGetDescriptor(pArrayDescriptor, array)
hipArray3DGetDescriptor(pArrayDescriptor, array) Gets a 3D array descriptor
- See:
hipArray3DCreate,hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpy3D,hipMemcpy3DAsync,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoD,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer,hipMemsetD8,hipMemsetD16,hipMemsetD32,hipArrayGetInfo- Args:
- pArrayDescriptor (
HIP_ARRAY3D_DESCRIPTOR/object) – OUT: Returned 3D array descriptor
- array (
hipArray/object) – IN: 3D array to get descriptor of
- pArrayDescriptor (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuArray3DGetDescriptor_v2(pArrayDescriptor, array)
hipArray3DGetDescriptor(pArrayDescriptor, array) Gets a 3D array descriptor
- See:
hipArray3DCreate,hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpy3D,hipMemcpy3DAsync,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoD,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer,hipMemsetD8,hipMemsetD16,hipMemsetD32,hipArrayGetInfo- Args:
- pArrayDescriptor (
HIP_ARRAY3D_DESCRIPTOR/object) – OUT: Returned 3D array descriptor
- array (
hipArray/object) – IN: 3D array to get descriptor of
- pArrayDescriptor (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind)
hipMemcpy2D(dst, unsigned long dpitch, src, unsigned long spitch, unsigned long width, unsigned long height, kind) Copies data between host and device.
- See:
hipMemcpy,hipMemcpyToArray,hipMemcpy2DToArray,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- dst (
Pointer/object) – IN: Destination memory address
- dpitch (
int) – IN: Pitch of destination memory
- src (
Pointer/object) – IN: Source memory address
- spitch (
int) – IN: Pitch of source memory
- width (
int) – IN: Width of matrix transfer (columns in bytes)
- height (
int) – IN: Height of matrix transfer (rows)
- kind (
hipMemcpyKind) – IN: Type of transfer
- dst (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream)
hipMemcpy2DAsync(dst, unsigned long dpitch, src, unsigned long spitch, unsigned long width, unsigned long height, kind, stream) Copies data between host and device.
- See:
hipMemcpy,hipMemcpyToArray,hipMemcpy2DToArray,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- dst (
Pointer/object) – IN: Destination memory address
- dpitch (
int) – IN: Pitch of destination memory
- src (
Pointer/object) – IN: Source memory address
- spitch (
int) – IN: Pitch of source memory
- width (
int) – IN: Width of matrix transfer (columns in bytes)
- height (
int) – IN: Height of matrix transfer (rows)
- kind (
hipMemcpyKind) – IN: Type of transfer
- stream (
ihipStream_t/object) – IN: Stream to use
- dst (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind)
hipMemcpy2DToArray(dst, unsigned long wOffset, unsigned long hOffset, src, unsigned long spitch, unsigned long width, unsigned long height, kind) Copies data between host and device.
- See:
hipMemcpy,hipMemcpyToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- dst (
hipArray/object) – IN: Destination memory address
- wOffset (
int) – IN: Destination starting X offset
- hOffset (
int) – IN: Destination starting Y offset
- src (
Pointer/object) – IN: Source memory address
- spitch (
int) – IN: Pitch of source memory
- width (
int) – IN: Width of matrix transfer (columns in bytes)
- height (
int) – IN: Height of matrix transfer (rows)
- kind (
hipMemcpyKind) – IN: Type of transfer
- dst (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream)
hipMemcpy2DToArrayAsync(dst, unsigned long wOffset, unsigned long hOffset, src, unsigned long spitch, unsigned long width, unsigned long height, kind, stream) Copies data between host and device.
- See:
hipMemcpy,hipMemcpyToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- dst (
hipArray/object) – IN: Destination memory address
- wOffset (
int) – IN: Destination starting X offset
- hOffset (
int) – IN: Destination starting Y offset
- src (
Pointer/object) – IN: Source memory address
- spitch (
int) – IN: Pitch of source memory
- width (
int) – IN: Width of matrix transfer (columns in bytes)
- height (
int) – IN: Height of matrix transfer (rows)
- kind (
hipMemcpyKind) – IN: Type of transfer
- stream (
ihipStream_t/object) – IN: Accelerator view which the copy is being enqueued
- dst (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind)
hipMemcpyToArray(dst, unsigned long wOffset, unsigned long hOffset, src, unsigned long count, kind) Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Warning:
This API is deprecated.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemcpyFromArray(dst, srcArray, wOffset, hOffset, count, kind)
hipMemcpyFromArray(dst, srcArray, unsigned long wOffset, unsigned long hOffset, unsigned long count, kind) Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Warning:
This API is deprecated.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind)
hipMemcpy2DFromArray(dst, unsigned long dpitch, src, unsigned long wOffset, unsigned long hOffset, unsigned long width, unsigned long height, kind) Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- dst (
Pointer/object) – IN: Destination memory address
- dpitch (
int) – IN: Pitch of destination memory
- src (
hipArray/object) – IN: Source memory address
- wOffset (
int) – IN: Source starting X offset
- hOffset (
int) – IN: Source starting Y offset
- width (
int) – IN: Width of matrix transfer (columns in bytes)
- height (
int) – IN: Height of matrix transfer (rows)
- kind (
hipMemcpyKind) – IN: Type of transfer
- dst (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream)
hipMemcpy2DFromArrayAsync(dst, unsigned long dpitch, src, unsigned long wOffset, unsigned long hOffset, unsigned long width, unsigned long height, kind, stream) Copies data between host and device asynchronously.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- dst (
Pointer/object) – IN: Destination memory address
- dpitch (
int) – IN: Pitch of destination memory
- src (
hipArray/object) – IN: Source memory address
- wOffset (
int) – IN: Source starting X offset
- hOffset (
int) – IN: Source starting Y offset
- width (
int) – IN: Width of matrix transfer (columns in bytes)
- height (
int) – IN: Height of matrix transfer (rows)
- kind (
hipMemcpyKind) – IN: Type of transfer
- stream (
ihipStream_t/object) – IN: Accelerator view which the copy is being enqueued
- dst (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyAtoH(dst, srcArray, srcOffset, count)
hipMemcpyAtoH(dst, srcArray, unsigned long srcOffset, unsigned long count) Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyAtoH_v2(dst, srcArray, srcOffset, count)
hipMemcpyAtoH(dst, srcArray, unsigned long srcOffset, unsigned long count) Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyHtoA(dstArray, dstOffset, srcHost, count)
hipMemcpyHtoA(dstArray, unsigned long dstOffset, srcHost, unsigned long count) Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpyHtoA_v2(dstArray, dstOffset, srcHost, count)
hipMemcpyHtoA(dstArray, unsigned long dstOffset, srcHost, unsigned long count) Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuDeviceCanAccessPeer(deviceId, peerDeviceId)
hipDeviceCanAccessPeer(int deviceId, int peerDeviceId) Determine if a device can access a peer’s memory.
- Warning:
PeerToPeer support is experimental. This section describes the PeerToPeer device memory access functions of HIP runtime API.
Returns “1” in
canAccessPeerif the specifieddeviceis capable of directly accessing memory physically located on peerDevice , or “0” if not.Returns “0” in
canAccessPeerif deviceId == peerDeviceId, and both are valid devices : a device is not a peer of itself.- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: One of:hipErrorInvalidDeviceif deviceId or peerDeviceId are not valid devices
int:Returns the peer access capability (0 or 1)
- cuda.cuda.cudaDeviceCanAccessPeer(deviceId, peerDeviceId)
hipDeviceCanAccessPeer(int deviceId, int peerDeviceId) Determine if a device can access a peer’s memory.
- Warning:
PeerToPeer support is experimental. This section describes the PeerToPeer device memory access functions of HIP runtime API.
Returns “1” in
canAccessPeerif the specifieddeviceis capable of directly accessing memory physically located on peerDevice , or “0” if not.Returns “0” in
canAccessPeerif deviceId == peerDeviceId, and both are valid devices : a device is not a peer of itself.- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: One of:hipErrorInvalidDeviceif deviceId or peerDeviceId are not valid devices
int:Returns the peer access capability (0 or 1)
- cuda.cuda.cudaDeviceEnablePeerAccess(peerDeviceId, flags)
hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags) Enable direct access from current device’s virtual address space to memory allocations
physically located on a peer device.
Memory which already allocated on peer device will be mapped into the address space of the current device. In addition, all future memory allocations on peerDeviceId will be mapped into the address space of the current device when the memory is allocated. The peer memory remains accessible from the current device until a call to hipDeviceDisablePeerAccess or hipDeviceReset.
Returns
hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue,- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipError_t:hipErrorPeerAccessAlreadyEnabledif peer access is already enabled for this device.
- cuda.cuda.cudaDeviceDisablePeerAccess(peerDeviceId)
hipDeviceDisablePeerAccess(int peerDeviceId) Disable direct access from current device’s virtual address space to memory allocations
- cuda.cuda.cuMemGetAddressRange(dptr)
hipMemGetAddressRange(dptr) Get information on memory allocations.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Args:
- Returns:
A
tupleof size 3 that contains (in that order):int:Size of allocation
- cuda.cuda.cuMemGetAddressRange_v2(dptr)
hipMemGetAddressRange(dptr) Get information on memory allocations.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Args:
- Returns:
A
tupleof size 3 that contains (in that order):int:Size of allocation
- cuda.cuda.cudaMemcpyPeer(dst, dstDeviceId, src, srcDeviceId, sizeBytes)
hipMemcpyPeer(dst, int dstDeviceId, src, int srcDeviceId, unsigned long sizeBytes) Copies memory from one device to memory on another device.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMemcpyPeerAsync(dst, dstDeviceId, src, srcDevice, sizeBytes, stream)
hipMemcpyPeerAsync(dst, int dstDeviceId, src, int srcDevice, unsigned long sizeBytes, stream) Copies memory from one device to memory on another device.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuCtxCreate(flags, device)
hipCtxCreate(unsigned int flags, int device) Create a context and set it as current/default context
- 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
tupleof size 2 that contains (in that order):ihipCtx_t:Context to create
- cuda.cuda.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
tupleof size 2 that contains (in that order):ihipCtx_t:Context to create
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuCtxDestroy_v2(ctx)
hipCtxDestroy(ctx) Destroy a HIP context.
- See:
hipCtxCreate,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,`~.hipCtxSetCurrent`,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuCtxPopCurrent()
hipCtxPopCurrent() Pop the current/default context and return the popped context.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxSetCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):ihipCtx_t:The current context to pop
- cuda.cuda.cuCtxPopCurrent_v2()
hipCtxPopCurrent() Pop the current/default context and return the popped context.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxSetCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):ihipCtx_t:The current context to pop
- cuda.cuda.cuCtxPushCurrent(ctx)
hipCtxPushCurrent(ctx) Push the context to be set as current/ default context
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuCtxPushCurrent_v2(ctx)
hipCtxPushCurrent(ctx) Push the context to be set as current/ default context
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuCtxSetCurrent(ctx)
hipCtxSetCurrent(ctx) Set the passed context as current/default
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuCtxGetCurrent()
hipCtxGetCurrent() Get the handle of the current/ default context
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetDevice,hipCtxGetFlags,hipCtxPopCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):ihipCtx_t:The context to get as current
- cuda.cuda.cuCtxGetDevice()
hipCtxGetDevice() Get the handle of the device associated with current/default context
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):int:The device from the current context
- cuda.cuda.cuCtxGetApiVersion(ctx)
hipCtxGetApiVersion(ctx) Returns the approximate HIP api version.
- Warning:
The HIP feature set does not correspond to an exact CUDA SDK api revision. This function always set *apiVersion to 4 as an approximation though HIP supports some features which were introduced in later CUDA SDK revisions. HIP apps code should not rely on the api revision number here and should use arch feature flags to test device capabilities or conditional compilation.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetDevice,hipCtxGetFlags,hipCtxPopCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):int:API version to get
- cuda.cuda.cuCtxGetCacheConfig()
hipCtxGetCacheConfig() Get Cache configuration for a specific function
- Warning:
AMD devices and some Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):hipFuncCache_t:Cache configuration
- cuda.cuda.cuCtxSetCacheConfig(cacheConfig)
hipCtxSetCacheConfig(cacheConfig) Set L1/Shared cache partition.
- Warning:
AMD devices and some Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuCtxSetSharedMemConfig(config)
hipCtxSetSharedMemConfig(config) Set Shared memory bank configuration.
- Warning:
AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuCtxGetSharedMemConfig()
hipCtxGetSharedMemConfig() Get Shared memory bank configuration.
- Warning:
AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):hipSharedMemConfig:Pointer of shared memory configuration
- cuda.cuda.cuCtxSynchronize()
hipCtxSynchronize() Blocks until the default context has completed all preceding requested tasks.
- Warning:
This function waits for all streams on the default context to complete execution, and then returns.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuCtxGetFlags()
hipCtxGetFlags() Return flags used for creating default context.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):int:Pointer of flags
- cuda.cuda.cuCtxEnablePeerAccess(peerCtx, flags)
hipCtxEnablePeerAccess(peerCtx, unsigned int flags) Enables direct access to memory allocations in a peer context.
Memory which already allocated on peer device will be mapped into the address space of the current device. In addition, all future memory allocations on peerDeviceId will be mapped into the address space of the current device when the memory is allocated. The peer memory remains accessible from the current device until a call to hipDeviceDisablePeerAccess or hipDeviceReset.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
PeerToPeer support is experimental.
- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuCtxDisablePeerAccess(peerCtx)
hipCtxDisablePeerAccess(peerCtx) Disable direct access from current context’s virtual address space to memory allocations
physically located on a peer context.Disables direct access to memory allocations in a peer context and unregisters any registered allocations.
Returns
hipErrorPeerAccessNotEnabledif 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuDevicePrimaryCtxGetState(dev)
hipDevicePrimaryCtxGetState(int dev) Get the state of the primary context.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- 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
tupleof size 3 that contains (in that order):
- cuda.cuda.cuDevicePrimaryCtxRelease(dev)
hipDevicePrimaryCtxRelease(int dev) Release the primary context on the GPU.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This function return
hipSuccessthough 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuDevicePrimaryCtxRelease_v2(dev)
hipDevicePrimaryCtxRelease(int dev) Release the primary context on the GPU.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This function return
hipSuccessthough 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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 2 that contains (in that order):ihipCtx_t:Returned context handle of the new context
- cuda.cuda.cuDevicePrimaryCtxReset(dev)
hipDevicePrimaryCtxReset(int dev) Resets the primary context on the GPU.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuDevicePrimaryCtxReset_v2(dev)
hipDevicePrimaryCtxReset(int dev) Resets the primary context on the GPU.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- 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
tupleof size 1 that contains (in that order):
- cuda.cuda.cuDevicePrimaryCtxSetFlags(dev, flags)
hipDevicePrimaryCtxSetFlags(int dev, unsigned int flags) Set flags for the primary context.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuDevicePrimaryCtxSetFlags_v2(dev, flags)
hipDevicePrimaryCtxSetFlags(int dev, unsigned int flags) Set flags for the primary context.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuModuleLoad(fname)
hipModuleLoad(fname) Loads code object from file into a module the currrent context.
This section describes the module management functions of HIP runtime API.
- Warning:
File/memory resources allocated in this function are released only in hipModuleUnload.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cuModuleUnload(module)
hipModuleUnload(module) Frees the module
The module is freed, and the code objects associated with it are destroyed.
- Args:
- module (
ihipModule_t/object) – IN: Module to free
- module (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuModuleGetFunction(module, kname)
hipModuleGetFunction(module, kname) Function with kname will be extracted if present in module
- Args:
- module (
ihipModule_t/object) – IN: Module to get function from
- kname (
CStr/object) – IN: Pointer to the name of function
- module (
- Returns:
A
tupleof size 2 that contains (in that order):ihipModuleSymbol_t:Pointer to function handle
- cuda.cuda.cudaFuncGetAttributes(attr, func)
hipFuncGetAttributes(attr, func) Find out attributes for a given function.
- Args:
- attr (
hipFuncAttributes/object) – OUT: Attributes of funtion
- func (
Pointer/object) – IN: Pointer to the function handle
- attr (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuFuncGetAttribute(attrib, hfunc)
hipFuncGetAttribute(attrib, hfunc) Find out a specific attribute for a given function.
- Args:
- attrib (
hipFunction_attribute) – IN: Attributes of the given funtion
- hfunc (
ihipModuleSymbol_t/object) – IN: Function to get attributes from
- attrib (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorInvalidDeviceFunctionint:Pointer to the value
- cuda.cuda.cuModuleGetTexRef(hmod, name)
hipModuleGetTexRef(hmod, name) returns the handle of the texture reference with the name from the module.
- Args:
- hmod (
ihipModule_t/object) – IN: Module
- name (
CStr/object) – IN: Pointer of name of texture reference
- hmod (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorNotInitialized,hipErrorNotFound,hipErrorInvalidValuetextureReference:Pointer of texture reference
- cuda.cuda.cuModuleLoadData(image)
hipModuleLoadData(image) builds module from code object which resides in host memory. Image is pointer to that
location.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: hipSuccess, hipErrorNotInitialized, hipErrorOutOfMemory, hipErrorNotInitializedihipModule_t:Retuned module
- cuda.cuda.cuModuleLoadDataEx(image, numOptions, options, optionValues)
hipModuleLoadDataEx(image, unsigned int numOptions, options, optionValues) builds module from code object which resides in host memory. Image is pointer to that
location. Options are not used. hipModuleLoadData is called.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: hipSuccess, hipErrorNotInitialized, hipErrorOutOfMemory, hipErrorNotInitializedihipModule_t:Retuned module
- cuda.cuda.cuLaunchKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, stream, kernelParams, extra)
hipModuleLaunchKernel(f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, stream, kernelParams, extra) launches kernel f with launch parameters and shared memory on stream with arguments passed
to kernelparams or extra
Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32. So gridDim.x * blockDim.x, gridDim.y * blockDim.y and gridDim.z * blockDim.z are always less than 2^32.
- Args:
- f (
ihipModuleSymbol_t/object) – IN: Kernel to launch.
- gridDimX (
int) – IN: X grid dimension specified as multiple of blockDimX.
- gridDimY (
int) – IN: Y grid dimension specified as multiple of blockDimY.
- gridDimZ (
int) – IN: Z grid dimension specified as multiple of blockDimZ.
- blockDimX (
int) – IN: X block dimensions specified in work-items
- blockDimY (
int) – IN: Y grid dimension specified in work-items
- blockDimZ (
int) – IN: Z grid dimension specified in work-items
- sharedMemBytes (
int) – IN: Amount of dynamic shared memory to allocate for this kernel. The HIP-Clang compiler provides support for extern shared declarations.
- stream (
ihipStream_t/object) – IN: Stream where the kernel should be dispatched. May be 0, in which case th default stream is used with associated synchronization rules.
- kernelParams (
Pointer/object) – IN: Kernel parameters to launch
- extra (
HipModuleLaunchKernel_extra/object) – IN: Pointer to kernel arguments. These are passed directly to the kernel and must be in the memory layout and alignment expected by the kernel. All passed arguments must be naturally aligned according to their type. The memory address of each argument should be a multiple of its size in bytes. Please refer to hip_porting_driver_api.md for sample usage.
- f (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuLaunchCooperativeKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, stream, kernelParams)
hipModuleLaunchCooperativeKernel(f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, stream, kernelParams) launches kernel f with launch parameters and shared memory on stream with arguments passed
to kernelParams, where thread blocks can cooperate and synchronize as they execute
Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.
- Args:
- f (
ihipModuleSymbol_t/object) – IN: Kernel to launch.
- gridDimX (
int) – IN: X grid dimension specified as multiple of blockDimX.
- gridDimY (
int) – IN: Y grid dimension specified as multiple of blockDimY.
- gridDimZ (
int) – IN: Z grid dimension specified as multiple of blockDimZ.
- blockDimX (
int) – IN: X block dimension specified in work-items.
- blockDimY (
int) – IN: Y block dimension specified in work-items.
- blockDimZ (
int) – IN: Z block dimension specified in work-items.
- sharedMemBytes (
int) – IN: Amount of dynamic shared memory to allocate for this kernel. The HIP-Clang compiler provides support for extern shared declarations.
- stream (
ihipStream_t/object) – IN: Stream where the kernel should be dispatched. May be 0, in which case the default stream is used with associated synchronization rules.
- kernelParams (
Pointer/object) – IN: A list of kernel arguments.
- f (
- Returns:
A
tupleof size 1 that contains (in that order):hipError_t:hipSuccess,hipErrorDeinitialized,hipErrorNotInitialized,hipErrorInvalidContext,hipErrorInvalidHandle,hipErrorInvalidImage,hipErrorInvalidValue,hipErrorInvalidConfiguration,hipErrorLaunchFailure,hipErrorLaunchOutOfResources,hipErrorLaunchTimeOut,hipErrorCooperativeLaunchTooLarge,hipErrorSharedObjectInitFailed
- cuda.cuda.cuLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags)
hipModuleLaunchCooperativeKernelMultiDevice(launchParamsList, unsigned int numDevices, unsigned int flags) Launches kernels on multiple devices where thread blocks can cooperate and
synchronize as they execute.
- Args:
- launchParamsList (
hipFunctionLaunchParams_t/object) – IN: List of launch parameters, one per device.
- numDevices (
int) – IN: Size of the launchParamsList array.
- flags (
int) – IN: Flags to control launch behavior.
- launchParamsList (
- Returns:
A
tupleof size 1 that contains (in that order):hipError_t:hipSuccess,hipErrorDeinitialized,hipErrorNotInitialized,hipErrorInvalidContext,hipErrorInvalidHandle,hipErrorInvalidImage,hipErrorInvalidValue,hipErrorInvalidConfiguration,hipErrorInvalidResourceHandle,hipErrorLaunchFailure,hipErrorLaunchOutOfResources,hipErrorLaunchTimeOut,hipErrorCooperativeLaunchTooLarge,hipErrorSharedObjectInitFailed
- cuda.cuda.cudaLaunchCooperativeKernel(f, gridDim, blockDimX, kernelParams, sharedMemBytes, stream)
hipLaunchCooperativeKernel(f, gridDim, blockDimX, kernelParams, unsigned int sharedMemBytes, stream) launches kernel f with launch parameters and shared memory on stream with arguments passed
to kernelparams or extra, where thread blocks can cooperate and synchronize as they execute
Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.
- Args:
- f (
Pointer/object) – IN: Kernel to launch.
- gridDim (
dim3) – IN: Grid dimensions specified as multiple of blockDim.
- blockDimX (
dim3) – IN: Block dimensions specified in work-items
- kernelParams (
Pointer/object) – IN: A list of kernel arguments
- sharedMemBytes (
int) – IN: Amount of dynamic shared memory to allocate for this kernel. The HIP-Clang compiler provides support for extern shared declarations.
- stream (
ihipStream_t/object) – IN: Stream where the kernel should be dispatched. May be 0, in which case th default stream is used with associated synchronization rules.
- f (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags)
hipLaunchCooperativeKernelMultiDevice(launchParamsList, int numDevices, unsigned int flags) Launches kernels on multiple devices where thread blocks can cooperate and
synchronize as they execute.
- Args:
- launchParamsList (
hipLaunchParams_t/object) – IN: List of launch parameters, one per device.
- numDevices (
int) – IN: Size of the launchParamsList array.
- flags (
int) – IN: Flags to control launch behavior.
- launchParamsList (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuOccupancyMaxPotentialBlockSize(f, dynSharedMemPerBlk, blockSizeLimit)
hipModuleOccupancyMaxPotentialBlockSize(f, unsigned long dynSharedMemPerBlk, int blockSizeLimit) determine the grid and block sizes to achieves maximum occupancy for a kernel
This section describes the occupancy functions of HIP runtime API.
Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.
- Args:
- f (
ihipModuleSymbol_t/object) – IN: kernel function for which occupancy is calulated
- dynSharedMemPerBlk (
int) – IN: dynamic shared memory usage (in bytes) intended for each block
- blockSizeLimit (
int) – IN: the maximum block size for the kernel, use 0 for no limit
- f (
- Returns:
A
tupleof size 3 that contains (in that order):
- cuda.cuda.cuOccupancyMaxPotentialBlockSizeWithFlags(f, dynSharedMemPerBlk, blockSizeLimit, flags)
hipModuleOccupancyMaxPotentialBlockSizeWithFlags(f, unsigned long dynSharedMemPerBlk, int blockSizeLimit, unsigned int flags) determine the grid and block sizes to achieves maximum occupancy for a kernel
Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.
- Args:
- f (
ihipModuleSymbol_t/object) – IN: kernel function for which occupancy is calulated
- dynSharedMemPerBlk (
int) – IN: dynamic shared memory usage (in bytes) intended for each block
- blockSizeLimit (
int) – IN: the maximum block size for the kernel, use 0 for no limit
- flags (
int) – IN: Extra flags for occupancy calculation (only default supported)
- f (
- Returns:
A
tupleof size 3 that contains (in that order):
- cuda.cuda.cuOccupancyMaxActiveBlocksPerMultiprocessor(f, blockSize, dynSharedMemPerBlk)
hipModuleOccupancyMaxActiveBlocksPerMultiprocessor(f, int blockSize, unsigned long dynSharedMemPerBlk) Returns occupancy for a device function.
- Args:
- f (
ihipModuleSymbol_t/object) – IN: Kernel function (hipFunction) for which occupancy is calulated
- blockSize (
int) – IN: Block size the kernel is intended to be launched with
- dynSharedMemPerBlk (
int) – IN: Dynamic shared memory usage (in bytes) intended for each block
- f (
- Returns:
A
tupleof size 2 that contains (in that order):int:Returned occupancy
- cuda.cuda.cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, blockSize, dynSharedMemPerBlk, flags)
hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, int blockSize, unsigned long dynSharedMemPerBlk, unsigned int flags) Returns occupancy for a device function.
- Args:
- f (
ihipModuleSymbol_t/object) – IN: Kernel function(hipFunction_t) for which occupancy is calulated
- blockSize (
int) – IN: Block size the kernel is intended to be launched with
- dynSharedMemPerBlk (
int) – IN: Dynamic shared memory usage (in bytes) intended for each block
- flags (
int) – IN: Extra flags for occupancy calculation (only default supported)
- f (
- Returns:
A
tupleof size 2 that contains (in that order):int:Returned occupancy
- cuda.cuda.cudaOccupancyMaxActiveBlocksPerMultiprocessor(f, blockSize, dynSharedMemPerBlk)
hipOccupancyMaxActiveBlocksPerMultiprocessor(f, int blockSize, unsigned long dynSharedMemPerBlk) Returns occupancy for a device function.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidDeviceFunction,hipErrorInvalidValueint:Returned occupancy
- cuda.cuda.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, blockSize, dynSharedMemPerBlk, flags)
hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, int blockSize, unsigned long dynSharedMemPerBlk, unsigned int flags) Returns occupancy for a device function.
- Args:
- f (
Pointer/object) – IN: Kernel function for which occupancy is calulated
- blockSize (
int) – IN: Block size the kernel is intended to be launched with
- dynSharedMemPerBlk (
int) – IN: Dynamic shared memory usage (in bytes) intended for each block
- flags (
int) – IN: Extra flags for occupancy calculation (currently ignored)
- f (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidDeviceFunction,hipErrorInvalidValueint:Returned occupancy
- cuda.cuda.cudaOccupancyMaxPotentialBlockSize(f, dynSharedMemPerBlk, blockSizeLimit)
hipOccupancyMaxPotentialBlockSize(f, unsigned long dynSharedMemPerBlk, int blockSizeLimit) determine the grid and block sizes to achieves maximum occupancy for a kernel
- cuda.cuda.cuProfilerStart()
hipProfilerStart() Start recording of profiling information
When using this API, start the profiler with profiling disabled. (–startdisabled)
- Warning:
hipProfilerStart API is deprecated, use roctracer/rocTX instead.
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaProfilerStart()
hipProfilerStart() Start recording of profiling information
When using this API, start the profiler with profiling disabled. (–startdisabled)
- Warning:
hipProfilerStart API is deprecated, use roctracer/rocTX instead.
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuProfilerStop()
hipProfilerStop() Stop recording of profiling information.
When using this API, start the profiler with profiling disabled. (–startdisabled)
- Warning:
hipProfilerStart API is deprecated, use roctracer/rocTX instead.
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaProfilerStop()
hipProfilerStop() Stop recording of profiling information.
When using this API, start the profiler with profiling disabled. (–startdisabled)
- Warning:
hipProfilerStart API is deprecated, use roctracer/rocTX instead.
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaConfigureCall(gridDim, blockDim, sharedMem, stream)
hipConfigureCall(gridDim, blockDim, unsigned long sharedMem, stream) Configure a kernel launch.
This section describes the API to support the triple-chevron syntax.
Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.
- Args:
- gridDim (
dim3) – IN: grid dimension specified as multiple of blockDim.
- blockDim (
dim3) – IN: block dimensions specified in work-items
- sharedMem (
int) – IN: Amount of dynamic shared memory to allocate for this kernel. The HIP-Clang compiler provides support for extern shared declarations.
- stream (
ihipStream_t/object) – IN: Stream where the kernel should be dispatched. May be 0, in which case the default stream is used with associated synchronization rules.
- gridDim (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaSetupArgument(arg, size, offset)
hipSetupArgument(arg, unsigned long size, unsigned long offset) Set a kernel argument.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaLaunch(func)
hipLaunchByPtr(func) Launch a kernel.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaLaunchKernel(function_address, numBlocks, dimBlocks, args, sharedMemBytes, stream)
hipLaunchKernel(function_address, numBlocks, dimBlocks, args, unsigned long sharedMemBytes, stream) C compliant kernel launch API
- Args:
- function_address (
Pointer/object) – IN: kernel stub function pointer.
- numBlocks (
dim3) – IN: number of blocks
- dimBlocks (
dim3) – IN: dimension of a block
- args (
Pointer/object) – IN: kernel arguments
- sharedMemBytes (
int) – IN: Amount of dynamic shared memory to allocate for this kernel. The
HIP-Clang compiler provides support for extern shared declarations.
- stream (
ihipStream_t/object) – IN: Stream where the kernel should be dispatched. May be 0, in which case th
default stream is used with associated synchronization rules.
- function_address (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuLaunchHostFunc(stream, fn, userData)
hipLaunchHostFunc(stream, fn, userData) Enqueues a host function call in a stream.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: stream to enqueue work to.
- fn (
hipHostFn_t/object) – IN: function to call once operations enqueued preceeding are complete.
- userData (
Pointer/object) – IN: User-specified data to be passed to the function.
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaLaunchHostFunc(stream, fn, userData)
hipLaunchHostFunc(stream, fn, userData) Enqueues a host function call in a stream.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: stream to enqueue work to.
- fn (
hipHostFn_t/object) – IN: function to call once operations enqueued preceeding are complete.
- userData (
Pointer/object) – IN: User-specified data to be passed to the function.
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpy2DUnaligned(pCopy)
hipDrvMemcpy2DUnaligned(pCopy) (No short description, might be part of a group.)
Copies memory for 2D arrays.
- Args:
- pCopy (
hip_Memcpy2D/object): Parameters for the memory copy
- pCopy (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemcpy2DUnaligned_v2(pCopy)
hipDrvMemcpy2DUnaligned(pCopy) (No short description, might be part of a group.)
Copies memory for 2D arrays.
- Args:
- pCopy (
hip_Memcpy2D/object): Parameters for the memory copy
- pCopy (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaCreateTextureObject(pResDesc, pTexDesc, pResViewDesc)
hipCreateTextureObject(pResDesc, pTexDesc, pResViewDesc) Creates a texture object.
- Note:
3D liner filter isn’t supported on GFX90A boards, on which the API
hipCreateTextureObjectwill 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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported,hipErrorOutOfMemory__hip_texture:pointer to the texture object to create
- cuda.cuda.cudaDestroyTextureObject(textureObject)
hipDestroyTextureObject(textureObject) Destroys a texture object.
- cuda.cuda.cudaGetChannelDesc(desc, array)
hipGetChannelDesc(desc, array) Gets the channel descriptor in an array.
- Args:
- desc (
hipChannelFormatDesc/object) – IN: pointer to channel format descriptor
- array (
hipArray/object) – OUT: memory array on the device
- desc (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGetTextureObjectResourceDesc(pResDesc, textureObject)
hipGetTextureObjectResourceDesc(pResDesc, textureObject) Gets resource descriptor for the texture object.
- Args:
- pResDesc (
hipResourceDesc/object) – OUT: pointer to resource descriptor
- textureObject (
__hip_texture/object) – IN: texture object
- pResDesc (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGetTextureObjectResourceViewDesc(pResViewDesc, textureObject)
hipGetTextureObjectResourceViewDesc(pResViewDesc, textureObject) Gets resource view descriptor for the texture object.
- Args:
- pResViewDesc (
hipResourceViewDesc/object) – OUT: pointer to resource view descriptor
- textureObject (
__hip_texture/object) – IN: texture object
- pResViewDesc (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGetTextureObjectTextureDesc(pTexDesc, textureObject)
hipGetTextureObjectTextureDesc(pTexDesc, textureObject) Gets texture descriptor for the texture object.
- Args:
- pTexDesc (
hipTextureDesc/object) – OUT: pointer to texture descriptor
- textureObject (
__hip_texture/object) – IN: texture object
- pTexDesc (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexObjectCreate(pResDesc, pTexDesc, pResViewDesc)
hipTexObjectCreate(pResDesc, pTexDesc, pResViewDesc) Creates a texture object.
- Args:
- pResDesc (
HIP_RESOURCE_DESC_st/object) – IN: pointer to resource descriptor
- pTexDesc (
HIP_TEXTURE_DESC_st/object) – IN: pointer to texture descriptor
- pResViewDesc (
HIP_RESOURCE_VIEW_DESC_st/object) – IN: pointer to resource view descriptor
- pResDesc (
- Returns:
A
tupleof size 2 that contains (in that order):__hip_texture:pointer to texture object to create
- cuda.cuda.cuTexObjectDestroy(texObject)
hipTexObjectDestroy(texObject) Destroys a texture object.
- cuda.cuda.cuTexObjectGetResourceDesc(pResDesc, texObject)
hipTexObjectGetResourceDesc(pResDesc, texObject) Gets resource descriptor of a texture object.
- Args:
- pResDesc (
HIP_RESOURCE_DESC_st/object) – OUT: pointer to resource descriptor
- texObject (
__hip_texture/object) – IN: texture object
- pResDesc (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexObjectGetResourceViewDesc(pResViewDesc, texObject)
hipTexObjectGetResourceViewDesc(pResViewDesc, texObject) Gets resource view descriptor of a texture object.
- Args:
- pResViewDesc (
HIP_RESOURCE_VIEW_DESC_st/object) – OUT: pointer to resource view descriptor
- texObject (
__hip_texture/object) – IN: texture object
- pResViewDesc (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexObjectGetTextureDesc(pTexDesc, texObject)
hipTexObjectGetTextureDesc(pTexDesc, texObject) Gets texture descriptor of a texture object.
- Args:
- pTexDesc (
HIP_TEXTURE_DESC_st/object) – OUT: pointer to texture descriptor
- texObject (
__hip_texture/object) – IN: texture object
- pTexDesc (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaMallocMipmappedArray(desc, extent, numLevels, flags)
hipMallocMipmappedArray(desc, extent, unsigned int numLevels, unsigned int flags) Allocate a mipmapped array on the device.
- Note:
This API is implemented on Windows, under development on Linux.
- Args:
- desc (
hipChannelFormatDesc/object) – IN: Requested channel format
- extent (
hipExtent) – IN: Requested allocation size (width field in elements)
- numLevels (
int) – IN: Number of mipmap levels to allocate
- flags (
int) – IN: Flags for extensions
- desc (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorMemoryAllocationhipMipmappedArray:Pointer to allocated mipmapped array in device memory
- cuda.cuda.cudaFreeMipmappedArray(mipmappedArray)
hipFreeMipmappedArray(mipmappedArray) Frees a mipmapped array on the device.
- Note:
This API is implemented on Windows, under development on Linux.
- Args:
- mipmappedArray (
hipMipmappedArray/object) – IN: Pointer to mipmapped array to free
- mipmappedArray (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGetMipmappedArrayLevel(mipmappedArray, level)
hipGetMipmappedArrayLevel(mipmappedArray, unsigned int level) Gets a mipmap level of a HIP mipmapped array.
- Note:
This API is implemented on Windows, under development on Linux.
- Args:
- mipmappedArray (
hipMipmappedArray/object) – IN: HIP mipmapped array
- level (
int) – IN: Mipmap level
- mipmappedArray (
- Returns:
A
tupleof size 2 that contains (in that order):hipArray:Returned mipmap level HIP array
- cuda.cuda.cuMipmappedArrayCreate(pMipmappedArrayDesc, numMipmapLevels)
hipMipmappedArrayCreate(pMipmappedArrayDesc, unsigned int numMipmapLevels) Create a mipmapped array.
- Note:
This API is implemented on Windows, under development on Linux.
- Args:
- pMipmappedArrayDesc (
HIP_ARRAY3D_DESCRIPTOR/object) – IN: mipmapped array descriptor
- numMipmapLevels (
int) – IN: mipmap level
- pMipmappedArrayDesc (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorNotSupported,hipErrorInvalidValuehipMipmappedArray:pointer to mipmapped array
- cuda.cuda.cuMipmappedArrayDestroy(hMipmappedArray)
hipMipmappedArrayDestroy(hMipmappedArray) Destroy a mipmapped array.
- Note:
This API is implemented on Windows, under development on Linux.
- Args:
- hMipmappedArray (
hipMipmappedArray/object) – OUT: pointer to mipmapped array to destroy
- hMipmappedArray (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMipmappedArrayGetLevel(hMipMappedArray, level)
hipMipmappedArrayGetLevel(hMipMappedArray, unsigned int level) Get a mipmapped array on a mipmapped level.
- Note:
This API is implemented on Windows, under development on Linux.
- Args:
- hMipMappedArray (
hipMipmappedArray/object) – OUT: Pointer of mipmapped array on the requested mipmap level
- level (
int) – OUT: Mipmap level
- hMipMappedArray (
- Returns:
A
tupleof size 2 that contains (in that order):hipArray:Pointer of array
- cuda.cuda.cudaBindTextureToMipmappedArray(tex, mipmappedArray, desc)
hipBindTextureToMipmappedArray(tex, mipmappedArray, desc) Binds a mipmapped array to a texture.
- Args:
- tex (
textureReference/object) – IN: pointer to the texture reference to bind
- mipmappedArray (
hipMipmappedArray/object) – IN: memory mipmapped array on the device
- desc (
hipChannelFormatDesc/object) – IN: opointer to the channel format
- tex (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGetTextureReference(symbol)
hipGetTextureReference(symbol) Gets the texture reference related with the symbol.
- Warning:
This API is deprecated.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):textureReference:texture reference
- cuda.cuda.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
tupleof size 2 that contains (in that order):hipArray:Returned array.
- cuda.cuda.cuTexRefSetAddressMode(texRef, dim, am)
hipTexRefSetAddressMode(texRef, int dim, am) Sets address mode for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: texture reference.
- dim (
int) – IN: Dimension of the texture.
- am (
hipTextureAddressMode) – IN: Value of the texture address mode.
- texRef (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexRefSetArray(tex, array, flags)
hipTexRefSetArray(tex, array, unsigned int flags) Binds an array as a texture reference.
- cuda.cuda.cuTexRefSetFilterMode(texRef, fm)
hipTexRefSetFilterMode(texRef, fm) Set filter mode for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer texture reference.
- fm (
hipTextureFilterMode) – IN: Value of texture filter mode.
- texRef (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexRefSetFlags(texRef, Flags)
hipTexRefSetFlags(texRef, unsigned int Flags) Set flags for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer texture reference.
- Flags (
int) – IN: Value of flags.
- texRef (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexRefSetFormat(texRef, fmt, NumPackedComponents)
hipTexRefSetFormat(texRef, fmt, int NumPackedComponents) Set format for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer texture reference.
- fmt (
hipArray_Format) – IN: Value of format.
- NumPackedComponents (
int) – IN: Number of components per array.
- texRef (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaBindTexture(tex, devPtr, desc, size)
hipBindTexture(tex, devPtr, desc, unsigned long size) Binds a memory area to a texture.
- Warning:
This API is deprecated.
- Args:
- tex (
textureReference/object) – IN: Texture to bind.
- devPtr (
Pointer/object) – IN: Pointer of memory on the device.
- desc (
hipChannelFormatDesc/object) – IN: Pointer of channel format descriptor.
- size (
int) – IN: Size of memory in bites.
- tex (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedint:Offset in bytes.
- cuda.cuda.cudaBindTexture2D(tex, devPtr, desc, width, height, pitch)
hipBindTexture2D(tex, devPtr, desc, unsigned long width, unsigned long height, unsigned long pitch) Binds a 2D memory area to a texture.
- Warning:
This API is deprecated.
- Args:
- tex (
textureReference/object) – IN: Texture to bind.
- devPtr (
Pointer/object) – IN: Pointer of 2D memory area on the device.
- desc (
hipChannelFormatDesc/object) – IN: Pointer of channel format descriptor.
- width (
int) – IN: Width in texel units.
- height (
int) – IN: Height in texel units.
- pitch (
int) – IN: Pitch in bytes.
- tex (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedint:Offset in bytes.
- cuda.cuda.cudaBindTextureToArray(tex, array, desc)
hipBindTextureToArray(tex, array, desc) Binds a memory area to a texture.
- Warning:
This API is deprecated.
- Args:
- tex (
textureReference/object) – IN: Pointer of texture reference.
- array (
hipArray/object) – IN: Array to bind.
- desc (
hipChannelFormatDesc/object) – IN: Pointer of channel format descriptor.
- tex (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGetTextureAlignmentOffset(texref)
hipGetTextureAlignmentOffset(texref) Get the offset of the alignment in a texture.
- Warning:
This API is deprecated.
- Args:
- texref (
textureReference/object) – IN: Pointer of texture reference.
- texref (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedint:Offset in bytes.
- cuda.cuda.cudaUnbindTexture(tex)
hipUnbindTexture(tex) Unbinds a texture.
- Warning:
This API is deprecated.
- Args:
- tex (
textureReference/object) – IN: Texture to unbind.
- tex (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexRefGetAddress(texRef)
hipTexRefGetAddress(texRef) Gets the the address for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cuTexRefGetAddress_v2(texRef)
hipTexRefGetAddress(texRef) Gets the the address for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cuTexRefGetAddressMode(texRef, dim)
hipTexRefGetAddressMode(texRef, int dim) Gets the address mode for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- dim (
int) – IN: Dimension.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipTextureAddressMode:Pointer of address mode.
- cuda.cuda.cuTexRefGetFilterMode(texRef)
hipTexRefGetFilterMode(texRef) Gets filter mode for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipTextureFilterMode:Pointer of filter mode.
- cuda.cuda.cuTexRefGetFlags(texRef)
hipTexRefGetFlags(texRef) Gets flags for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedint:Pointer of flags.
- cuda.cuda.cuTexRefGetFormat(texRef)
hipTexRefGetFormat(texRef) Gets texture format for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipArray_Format:Pointer of the format.
int:Pointer of number of channels.
- cuda.cuda.cuTexRefGetMaxAnisotropy(texRef)
hipTexRefGetMaxAnisotropy(texRef) Gets the maximum anisotropy for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):int:Pointer of the maximum anisotropy.
- cuda.cuda.cuTexRefGetMipmapFilterMode(texRef)
hipTexRefGetMipmapFilterMode(texRef) Gets the mipmap filter mode for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipTextureFilterMode:Pointer of the mipmap filter mode.
- cuda.cuda.cuTexRefGetMipmapLevelBias(texRef)
hipTexRefGetMipmapLevelBias(texRef) Gets the mipmap level bias for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):float:Pointer of the mipmap level bias.
- cuda.cuda.cuTexRefGetMipmapLevelClamp(texRef)
hipTexRefGetMipmapLevelClamp(texRef) Gets the minimum and maximum mipmap level clamps for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 3 that contains (in that order):
- cuda.cuda.cuTexRefGetMipmappedArray(texRef)
hipTexRefGetMipMappedArray(texRef) Gets the mipmapped array bound to a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipMipmappedArray:Pointer of the mipmapped array.
- cuda.cuda.cuTexRefSetAddress(texRef, dptr, bytes)
hipTexRefSetAddress(texRef, dptr, unsigned long bytes) Sets an bound address for a texture reference.
- cuda.cuda.cuTexRefSetAddress_v2(texRef, dptr, bytes)
hipTexRefSetAddress(texRef, dptr, unsigned long bytes) Sets an bound address for a texture reference.
- cuda.cuda.cuTexRefSetAddress2D(texRef, desc, dptr, Pitch)
hipTexRefSetAddress2D(texRef, desc, dptr, unsigned long Pitch) Set a bind an address as a 2D texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- desc (
HIP_ARRAY_DESCRIPTOR/object) – IN: Pointer of array descriptor.
- dptr (
Pointer/object) – IN: Pointer of device address to bind.
- Pitch (
int) – IN: Pitch in bytes.
- texRef (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexRefSetAddress2D_v2(texRef, desc, dptr, Pitch)
hipTexRefSetAddress2D(texRef, desc, dptr, unsigned long Pitch) Set a bind an address as a 2D texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- desc (
HIP_ARRAY_DESCRIPTOR/object) – IN: Pointer of array descriptor.
- dptr (
Pointer/object) – IN: Pointer of device address to bind.
- Pitch (
int) – IN: Pitch in bytes.
- texRef (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexRefSetAddress2D_v3(texRef, desc, dptr, Pitch)
hipTexRefSetAddress2D(texRef, desc, dptr, unsigned long Pitch) Set a bind an address as a 2D texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- desc (
HIP_ARRAY_DESCRIPTOR/object) – IN: Pointer of array descriptor.
- dptr (
Pointer/object) – IN: Pointer of device address to bind.
- Pitch (
int) – IN: Pitch in bytes.
- texRef (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexRefSetMaxAnisotropy(texRef, maxAniso)
hipTexRefSetMaxAnisotropy(texRef, unsigned int maxAniso) Sets the maximum anisotropy for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- maxAniso (
int) – OUT: Value of the maximum anisotropy.
- texRef (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexRefSetBorderColor(texRef)
hipTexRefSetBorderColor(texRef) Sets border color for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedfloat:Pointer of border color.
- cuda.cuda.cuTexRefSetMipmapFilterMode(texRef, fm)
hipTexRefSetMipmapFilterMode(texRef, fm) Sets mipmap filter mode for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- fm (
hipTextureFilterMode) – IN: Value of filter mode.
- texRef (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexRefSetMipmapLevelBias(texRef, bias)
hipTexRefSetMipmapLevelBias(texRef, float bias) Sets mipmap level bias for a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- bias (
float/int) – IN: Value of mipmap bias.
- texRef (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexRefSetMipmapLevelClamp(texRef, minMipMapLevelClamp, maxMipMapLevelClamp)
hipTexRefSetMipmapLevelClamp(texRef, float minMipMapLevelClamp, float maxMipMapLevelClamp) Sets mipmap level clamp for a texture reference.
- Warning:
This API is deprecated.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuTexRefSetMipmappedArray(texRef, mipmappedArray, Flags)
hipTexRefSetMipmappedArray(texRef, mipmappedArray, unsigned int Flags) Binds mipmapped array to a texture reference.
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference to bind.
- mipmappedArray (
hipMipmappedArray/object) – IN: Pointer of mipmapped array to bind.
- Flags (
int) – IN: Flags should be set as HIP_TRSA_OVERRIDE_FORMAT, as a valid value.
- texRef (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamBeginCapture(stream, mode)
hipStreamBeginCapture(stream, mode) Begins graph capture on a stream.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to initiate capture.
- mode (
hipStreamCaptureMode) – IN: Controls the interaction of this capture sequence with other API calls that
are not safe.
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamBeginCapture_v2(stream, mode)
hipStreamBeginCapture(stream, mode) Begins graph capture on a stream.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to initiate capture.
- mode (
hipStreamCaptureMode) – IN: Controls the interaction of this capture sequence with other API calls that
are not safe.
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaStreamBeginCapture(stream, mode)
hipStreamBeginCapture(stream, mode) Begins graph capture on a stream.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to initiate capture.
- mode (
hipStreamCaptureMode) – IN: Controls the interaction of this capture sequence with other API calls that
are not safe.
- stream (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuStreamEndCapture(stream)
hipStreamEndCapture(stream) Ends capture on a stream, returning the captured graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to end capture.
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):ihipGraph:returns the graph captured.
- cuda.cuda.cudaStreamEndCapture(stream)
hipStreamEndCapture(stream) Ends capture on a stream, returning the captured graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to end capture.
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):ihipGraph:returns the graph captured.
- cuda.cuda.cuStreamGetCaptureInfo(stream)
hipStreamGetCaptureInfo(stream) Get capture status of a stream.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: Stream under capture.
- stream (
- Returns:
A
tupleof size 3 that contains (in that order):hipStreamCaptureStatus:returns current status of the capture.
int:unique ID of the capture.
- cuda.cuda.cudaStreamGetCaptureInfo(stream)
hipStreamGetCaptureInfo(stream) Get capture status of a stream.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: Stream under capture.
- stream (
- Returns:
A
tupleof size 3 that contains (in that order):hipStreamCaptureStatus:returns current status of the capture.
int:unique ID of the capture.
- cuda.cuda.cuStreamGetCaptureInfo_v2(stream, dependencies_out)
hipStreamGetCaptureInfo_v2(stream, dependencies_out) Get stream’s capture state
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: Stream under capture.
- dependencies_out (
Pointer/object) – OUT: returns pointer to an array of nodes.
- stream (
- Returns:
A
tupleof size 5 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorStreamCaptureImplicithipStreamCaptureStatus: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.cuda.cuStreamIsCapturing(stream)
hipStreamIsCapturing(stream) Get stream’s capture state
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: Stream under capture.
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorStreamCaptureImplicithipStreamCaptureStatus:returns current status of the capture.
- cuda.cuda.cudaStreamIsCapturing(stream)
hipStreamIsCapturing(stream) Get stream’s capture state
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: Stream under capture.
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorStreamCaptureImplicithipStreamCaptureStatus:returns current status of the capture.
- cuda.cuda.cuStreamUpdateCaptureDependencies(stream, numDependencies, flags)
hipStreamUpdateCaptureDependencies(stream, unsigned long numDependencies, unsigned int flags) Update the set of dependencies in a capturing stream
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: Stream under capture.
- numDependencies (
int) – IN: size of the array in dependencies.
- flags (
int) – IN: Flag how to update dependency set. Should be one of value in enum
hipStreamUpdateCaptureDependenciesFlags
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorIllegalStatehipGraphNode:pointer to an array of nodes to Add/Replace.
- cuda.cuda.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
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorIllegalStatehipGraphNode:pointer to an array of nodes to Add/Replace.
- cuda.cuda.cuThreadExchangeStreamCaptureMode(mode)
hipThreadExchangeStreamCaptureMode(mode) Swaps the stream capture mode of a thread.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaThreadExchangeStreamCaptureMode(mode)
hipThreadExchangeStreamCaptureMode(mode) Swaps the stream capture mode of a thread.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphCreate(flags)
hipGraphCreate(unsigned int flags) Creates a graph
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- flags (
int) – IN: flags for graph creation, must be 0.
- flags (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorMemoryAllocationihipGraph:pointer to graph to create.
- cuda.cuda.cudaGraphCreate(flags)
hipGraphCreate(unsigned int flags) Creates a graph
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- flags (
int) – IN: flags for graph creation, must be 0.
- flags (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorMemoryAllocationihipGraph:pointer to graph to create.
- cuda.cuda.cuGraphDestroy(graph)
hipGraphDestroy(graph) Destroys a graph
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphDestroy(graph)
hipGraphDestroy(graph) Destroys a graph
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphAddDependencies(graph, numDependencies)
hipGraphAddDependencies(graph, unsigned long numDependencies) Adds dependency edges to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cudaGraphAddDependencies(graph, numDependencies)
hipGraphAddDependencies(graph, unsigned long numDependencies) Adds dependency edges to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cuGraphRemoveDependencies(graph, numDependencies)
hipGraphRemoveDependencies(graph, unsigned long numDependencies) Removes dependency edges from a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipGraphNode:Array of nodes that provide the dependencies.
hipGraphNode:Array of dependent nodes.
- cuda.cuda.cudaGraphRemoveDependencies(graph, numDependencies)
hipGraphRemoveDependencies(graph, unsigned long numDependencies) Removes dependency edges from a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipGraphNode:Array of nodes that provide the dependencies.
hipGraphNode:Array of dependent nodes.
- cuda.cuda.cuGraphGetEdges(graph)
hipGraphGetEdges(graph) Returns a graph’s dependency edges.
from and to may both be NULL, in which case this function only returns the number of edges in numEdges. Otherwise, numEdges entries will be filled in. If numEdges is higher than the actual number of edges, the remaining entries in from and to will be set to NULL, and the number of edges actually returned will be written to numEdges
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cudaGraphGetEdges(graph)
hipGraphGetEdges(graph) Returns a graph’s dependency edges.
from and to may both be NULL, in which case this function only returns the number of edges in numEdges. Otherwise, numEdges entries will be filled in. If numEdges is higher than the actual number of edges, the remaining entries in from and to will be set to NULL, and the number of edges actually returned will be written to numEdges
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cuGraphGetNodes(graph)
hipGraphGetNodes(graph) Returns graph nodes.
nodes may be NULL, in which case this function will return the number of nodes in numNodes. Otherwise, numNodes entries will be filled in. If numNodes is higher than the actual number of nodes, the remaining entries in nodes will be set to NULL, and the number of nodes actually obtained will be returned in numNodes.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipGraphNode:pointer to return the graph nodes.
int:returns number of graph nodes.
- cuda.cuda.cudaGraphGetNodes(graph)
hipGraphGetNodes(graph) Returns graph nodes.
nodes may be NULL, in which case this function will return the number of nodes in numNodes. Otherwise, numNodes entries will be filled in. If numNodes is higher than the actual number of nodes, the remaining entries in nodes will be set to NULL, and the number of nodes actually obtained will be returned in numNodes.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipGraphNode:pointer to return the graph nodes.
int:returns number of graph nodes.
- cuda.cuda.cuGraphGetRootNodes(graph)
hipGraphGetRootNodes(graph) Returns graph’s root nodes.
pRootNodes may be NULL, in which case this function will return the number of root nodes in pNumRootNodes. Otherwise, pNumRootNodes entries will be filled in. If pNumRootNodes is higher than the actual number of root nodes, the remaining entries in pRootNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumRootNodes.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cudaGraphGetRootNodes(graph)
hipGraphGetRootNodes(graph) Returns graph’s root nodes.
pRootNodes may be NULL, in which case this function will return the number of root nodes in pNumRootNodes. Otherwise, pNumRootNodes entries will be filled in. If pNumRootNodes is higher than the actual number of root nodes, the remaining entries in pRootNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumRootNodes.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cuGraphNodeGetDependencies(node)
hipGraphNodeGetDependencies(node) Returns a node’s dependencies.
pDependencies may be NULL, in which case this function will return the number of dependencies in pNumDependencies. Otherwise, pNumDependencies entries will be filled in. If pNumDependencies is higher than the actual number of dependencies, the remaining entries in pDependencies will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependencies.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: graph node to get the dependencies from.
- node (
- Returns:
A
tupleof size 3 that contains (in that order):hipGraphNode:pointer to to return the dependencies.
int:returns the number of graph node dependencies.
- cuda.cuda.cudaGraphNodeGetDependencies(node)
hipGraphNodeGetDependencies(node) Returns a node’s dependencies.
pDependencies may be NULL, in which case this function will return the number of dependencies in pNumDependencies. Otherwise, pNumDependencies entries will be filled in. If pNumDependencies is higher than the actual number of dependencies, the remaining entries in pDependencies will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependencies.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: graph node to get the dependencies from.
- node (
- Returns:
A
tupleof size 3 that contains (in that order):hipGraphNode:pointer to to return the dependencies.
int:returns the number of graph node dependencies.
- cuda.cuda.cuGraphNodeGetDependentNodes(node)
hipGraphNodeGetDependentNodes(node) Returns a node’s dependent nodes.
DependentNodes may be NULL, in which case this function will return the number of dependent nodes in pNumDependentNodes. Otherwise, pNumDependentNodes entries will be filled in. If pNumDependentNodes is higher than the actual number of dependent nodes, the remaining entries in pDependentNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependentNodes.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: graph node to get the Dependent nodes from.
- node (
- Returns:
A
tupleof 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.cuda.cudaGraphNodeGetDependentNodes(node)
hipGraphNodeGetDependentNodes(node) Returns a node’s dependent nodes.
DependentNodes may be NULL, in which case this function will return the number of dependent nodes in pNumDependentNodes. Otherwise, pNumDependentNodes entries will be filled in. If pNumDependentNodes is higher than the actual number of dependent nodes, the remaining entries in pDependentNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependentNodes.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: graph node to get the Dependent nodes from.
- node (
- Returns:
A
tupleof 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.cuda.cuGraphNodeGetType(node)
hipGraphNodeGetType(node) Returns a node’s type.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the graph to add dependencies.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipGraphNodeType:pointer to the return the type
- cuda.cuda.cudaGraphNodeGetType(node)
hipGraphNodeGetType(node) Returns a node’s type.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the graph to add dependencies.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipGraphNodeType:pointer to the return the type
- cuda.cuda.cuGraphDestroyNode(node)
hipGraphDestroyNode(node) Remove a node from the graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: graph node to remove
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphDestroyNode(node)
hipGraphDestroyNode(node) Remove a node from the graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: graph node to remove
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphClone(originalGraph)
hipGraphClone(originalGraph) Clones a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorMemoryAllocationihipGraph:Returns newly created cloned graph.
- cuda.cuda.cudaGraphClone(originalGraph)
hipGraphClone(originalGraph) Clones a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorMemoryAllocationihipGraph:Returns newly created cloned graph.
- cuda.cuda.cuGraphNodeFindInClone(originalNode, clonedGraph)
hipGraphNodeFindInClone(originalNode, clonedGraph) Finds a cloned version of a node.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- originalNode (
hipGraphNode/object) – IN: original node handle.
- clonedGraph (
ihipGraph/object) – IN: Cloned graph to query.
- originalNode (
- Returns:
A
tupleof size 2 that contains (in that order):hipGraphNode:Returns the cloned node.
- cuda.cuda.cudaGraphNodeFindInClone(originalNode, clonedGraph)
hipGraphNodeFindInClone(originalNode, clonedGraph) Finds a cloned version of a node.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- originalNode (
hipGraphNode/object) – IN: original node handle.
- clonedGraph (
ihipGraph/object) – IN: Cloned graph to query.
- originalNode (
- Returns:
A
tupleof size 2 that contains (in that order):hipGraphNode:Returns the cloned node.
- cuda.cuda.cuGraphInstantiate(graph, pLogBuffer, bufferSize)
hipGraphInstantiate(graph, pLogBuffer, unsigned long bufferSize) Creates an executable graph from a graph
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cuGraphInstantiate_v2(graph, pLogBuffer, bufferSize)
hipGraphInstantiate(graph, pLogBuffer, unsigned long bufferSize) Creates an executable graph from a graph
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cudaGraphInstantiate(graph, pLogBuffer, bufferSize)
hipGraphInstantiate(graph, pLogBuffer, unsigned long bufferSize) Creates an executable graph from a graph
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cuGraphInstantiateWithFlags(graph, flags)
hipGraphInstantiateWithFlags(graph, unsigned long long flags) Creates an executable graph from a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.It does not support any of flag and is behaving as hipGraphInstantiate.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipGraphExec:pointer to instantiated executable graph that is created.
- cuda.cuda.cudaGraphInstantiateWithFlags(graph, flags)
hipGraphInstantiateWithFlags(graph, unsigned long long flags) Creates an executable graph from a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.It does not support any of flag and is behaving as hipGraphInstantiate.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipGraphExec:pointer to instantiated executable graph that is created.
- cuda.cuda.cuGraphLaunch(graphExec, stream)
hipGraphLaunch(graphExec, stream) launches an executable graph in a stream
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graphExec (
hipGraphExec/object) – IN: instance of executable graph to launch.
- stream (
ihipStream_t/object) – IN: instance of stream in which to launch executable graph.
- graphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphLaunch(graphExec, stream)
hipGraphLaunch(graphExec, stream) launches an executable graph in a stream
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graphExec (
hipGraphExec/object) – IN: instance of executable graph to launch.
- stream (
ihipStream_t/object) – IN: instance of stream in which to launch executable graph.
- graphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphUpload(graphExec, stream)
hipGraphUpload(graphExec, stream) uploads an executable graph in a stream
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graphExec (
hipGraphExec/object) – IN: instance of executable graph to launch.
- stream (
ihipStream_t/object) – IN: instance of stream in which to launch executable graph.
- graphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphUpload(graphExec, stream)
hipGraphUpload(graphExec, stream) uploads an executable graph in a stream
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graphExec (
hipGraphExec/object) – IN: instance of executable graph to launch.
- stream (
ihipStream_t/object) – IN: instance of stream in which to launch executable graph.
- graphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphExecDestroy(graphExec)
hipGraphExecDestroy(graphExec) Destroys an executable graph
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graphExec (
hipGraphExec/object) – IN: instance of executable graph to destry.
- graphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphExecDestroy(graphExec)
hipGraphExecDestroy(graphExec) Destroys an executable graph
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graphExec (
hipGraphExec/object) – IN: instance of executable graph to destry.
- graphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphExecUpdate(hGraphExec, hGraph)
hipGraphExecUpdate(hGraphExec, hGraph) Check whether an executable graph can be updated with a graph and perform the update if *
possible.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of executable graph to update.
- hGraph (
ihipGraph/object) – IN: graph that contains the updated parameters.
- hGraphExec (
- Returns:
A
tupleof 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.cuda.cudaGraphExecUpdate(hGraphExec, hGraph)
hipGraphExecUpdate(hGraphExec, hGraph) Check whether an executable graph can be updated with a graph and perform the update if *
possible.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of executable graph to update.
- hGraph (
ihipGraph/object) – IN: graph that contains the updated parameters.
- hGraphExec (
- Returns:
A
tupleof 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.cuda.cuGraphAddKernelNode(graph, numDependencies, pNodeParams)
hipGraphAddKernelNode(graph, unsigned long numDependencies, pNodeParams) Creates a kernel execution node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: instance of graph to add the created node.
- numDependencies (
int) – IN: the number of the dependencies.
- pNodeParams (
hipKernelNodeParams/object) – IN: pointer to the parameters to the kernel execution node on the GPU.
- graph (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorInvalidDeviceFunctionhipGraphNode:pointer to graph node to create.
hipGraphNode:pointer to the dependencies on the kernel execution node.
- cuda.cuda.cudaGraphAddKernelNode(graph, numDependencies, pNodeParams)
hipGraphAddKernelNode(graph, unsigned long numDependencies, pNodeParams) Creates a kernel execution node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: instance of graph to add the created node.
- numDependencies (
int) – IN: the number of the dependencies.
- pNodeParams (
hipKernelNodeParams/object) – IN: pointer to the parameters to the kernel execution node on the GPU.
- graph (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorInvalidDeviceFunctionhipGraphNode:pointer to graph node to create.
hipGraphNode:pointer to the dependencies on the kernel execution node.
- cuda.cuda.cuGraphKernelNodeGetParams(node, pNodeParams)
hipGraphKernelNodeGetParams(node, pNodeParams) Gets kernel node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to get parameters from.
- pNodeParams (
hipKernelNodeParams/object) – OUT: pointer to the parameters
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphKernelNodeGetParams(node, pNodeParams)
hipGraphKernelNodeGetParams(node, pNodeParams) Gets kernel node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to get parameters from.
- pNodeParams (
hipKernelNodeParams/object) – OUT: pointer to the parameters
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphKernelNodeSetParams(node, pNodeParams)
hipGraphKernelNodeSetParams(node, pNodeParams) Sets a kernel node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipKernelNodeParams/object) – IN: const pointer to the parameters.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphKernelNodeSetParams(node, pNodeParams)
hipGraphKernelNodeSetParams(node, pNodeParams) Sets a kernel node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipKernelNodeParams/object) – IN: const pointer to the parameters.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams)
hipGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) Sets the parameters for a kernel node in the given graphExec.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipKernelNodeParams/object) – IN: const pointer to the kernel node parameters.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams)
hipGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) Sets the parameters for a kernel node in the given graphExec.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipKernelNodeParams/object) – IN: const pointer to the kernel node parameters.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphAddMemcpyNode(hGraph, numDependencies, copyParams, ctx)
hipDrvGraphAddMemcpyNode(hGraph, unsigned long numDependencies, copyParams, ctx) Creates a memcpy node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cudaGraphAddMemcpyNode(graph, numDependencies, pCopyParams)
hipGraphAddMemcpyNode(graph, unsigned long numDependencies, pCopyParams) Creates a memcpy node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: instance of graph to add the created node.
- numDependencies (
int) – IN: the number of the dependencies.
- pCopyParams (
hipMemcpy3DParms/object) – IN: const pointer to the parameters for the memory copy.
- graph (
- Returns:
A
tupleof 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.cuda.cudaGraphMemcpyNodeGetParams(node, pNodeParams)
hipGraphMemcpyNodeGetParams(node, pNodeParams) Gets a memcpy node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to get parameters from.
- pNodeParams (
hipMemcpy3DParms/object) – OUT: pointer to the parameters.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphMemcpyNodeSetParams(node, pNodeParams)
hipGraphMemcpyNodeSetParams(node, pNodeParams) Sets a memcpy node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipMemcpy3DParms/object) – IN: const pointer to the parameters.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphKernelNodeSetAttribute(hNode, attr, value)
hipGraphKernelNodeSetAttribute(hNode, attr, value) Sets a node attribute.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hNode (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- attr (
hipKernelNodeAttrID) – IN: the attribute node is set to.
- value (
hipKernelNodeAttrValue/object) – IN: const pointer to the parameters.
- hNode (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphKernelNodeSetAttribute(hNode, attr, value)
hipGraphKernelNodeSetAttribute(hNode, attr, value) Sets a node attribute.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hNode (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- attr (
hipKernelNodeAttrID) – IN: the attribute node is set to.
- value (
hipKernelNodeAttrValue/object) – IN: const pointer to the parameters.
- hNode (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphKernelNodeGetAttribute(hNode, attr, value)
hipGraphKernelNodeGetAttribute(hNode, attr, value) Gets a node attribute.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hNode (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- attr (
hipKernelNodeAttrID) – IN: the attribute node is set to.
- value (
hipKernelNodeAttrValue/object) – IN: const pointer to the parameters.
- hNode (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphKernelNodeGetAttribute(hNode, attr, value)
hipGraphKernelNodeGetAttribute(hNode, attr, value) Gets a node attribute.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hNode (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- attr (
hipKernelNodeAttrID) – IN: the attribute node is set to.
- value (
hipKernelNodeAttrValue/object) – IN: const pointer to the parameters.
- hNode (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams)
hipGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) Sets the parameters for a memcpy node in the given graphExec.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipMemcpy3DParms/object) – IN: const pointer to the kernel node parameters.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphAddMemcpyNode1D(graph, numDependencies, dst, src, count, kind)
hipGraphAddMemcpyNode1D(graph, unsigned long numDependencies, dst, src, unsigned long count, kind) Creates a 1D memcpy node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: instance of graph to add the created node.
- numDependencies (
int) – IN: the number of the dependencies.
- dst (
Pointer/object) – IN: pointer to memory address to the destination.
- src (
Pointer/object) – IN: pointer to memory address to the source.
- count (
int) – IN: the size of the memory to copy.
- kind (
hipMemcpyKind) – IN: the type of memory copy.
- graph (
- Returns:
A
tupleof 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.cuda.cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind)
hipGraphMemcpyNodeSetParams1D(node, dst, src, unsigned long count, kind) Sets a memcpy node’s parameters to perform a 1-dimensional copy.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- dst (
Pointer/object) – IN: pointer to memory address to the destination.
- src (
Pointer/object) – IN: pointer to memory address to the source.
- count (
int) – IN: the size of the memory to copy.
- kind (
hipMemcpyKind) – IN: the type of memory copy.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind)
hipGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, unsigned long count, kind) Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional
copy.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- dst (
Pointer/object) – IN: pointer to memory address to the destination.
- src (
Pointer/object) – IN: pointer to memory address to the source.
- count (
int) – IN: the size of the memory to copy.
- kind (
hipMemcpyKind) – IN: the type of memory copy.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphAddMemcpyNodeFromSymbol(graph, numDependencies, dst, symbol, count, offset, kind)
hipGraphAddMemcpyNodeFromSymbol(graph, unsigned long numDependencies, dst, symbol, unsigned long count, unsigned long offset, kind) Creates a memcpy node to copy from a symbol on the device and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: instance of graph to add the created node.
- numDependencies (
int) – IN: the number of the dependencies.
- dst (
Pointer/object) – IN: pointer to memory address to the destination.
- symbol (
Pointer/object) – IN: Device symbol address.
- count (
int) – IN: the size of the memory to copy.
- offset (
int) – IN: Offset from start of symbol in bytes.
- kind (
hipMemcpyKind) – IN: the type of memory copy.
- graph (
- Returns:
A
tupleof 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.cuda.cudaGraphMemcpyNodeSetParamsFromSymbol(node, dst, symbol, count, offset, kind)
hipGraphMemcpyNodeSetParamsFromSymbol(node, dst, symbol, unsigned long count, unsigned long offset, kind) Sets a memcpy node’s parameters to copy from a symbol on the device.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- dst (
Pointer/object) – IN: pointer to memory address to the destination.
- symbol (
Pointer/object) – IN: Device symbol address.
- count (
int) – IN: the size of the memory to copy.
- offset (
int) – IN: Offset from start of symbol in bytes.
- kind (
hipMemcpyKind) – IN: the type of memory copy.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphExecMemcpyNodeSetParamsFromSymbol(hGraphExec, node, dst, symbol, count, offset, kind)
hipGraphExecMemcpyNodeSetParamsFromSymbol(hGraphExec, node, dst, symbol, unsigned long count, unsigned long offset, kind) Sets the parameters for a memcpy node in the given graphExec to copy from a symbol on the
device.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- dst (
Pointer/object) – IN: pointer to memory address to the destination.
- symbol (
Pointer/object) – IN: Device symbol address.
- count (
int) – IN: the size of the memory to copy.
- offset (
int) – IN: Offset from start of symbol in bytes.
- kind (
hipMemcpyKind) – IN: the type of memory copy.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphAddMemcpyNodeToSymbol(graph, numDependencies, symbol, src, count, offset, kind)
hipGraphAddMemcpyNodeToSymbol(graph, unsigned long numDependencies, symbol, src, unsigned long count, unsigned long offset, kind) Creates a memcpy node to copy to a symbol on the device and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: instance of graph to add the created node.
- numDependencies (
int) – IN: the number of the dependencies.
- symbol (
Pointer/object) – IN: Device symbol address.
- src (
Pointer/object) – IN: pointer to memory address of the src.
- count (
int) – IN: the size of the memory to copy.
- offset (
int) – IN: Offset from start of symbol in bytes.
- kind (
hipMemcpyKind) – IN: the type of memory copy.
- graph (
- Returns:
A
tupleof 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.cuda.cudaGraphMemcpyNodeSetParamsToSymbol(node, symbol, src, count, offset, kind)
hipGraphMemcpyNodeSetParamsToSymbol(node, symbol, src, unsigned long count, unsigned long offset, kind) Sets a memcpy node’s parameters to copy to a symbol on the device.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- symbol (
Pointer/object) – IN: Device symbol address.
- src (
Pointer/object) – IN: pointer to memory address of the src.
- count (
int) – IN: the size of the memory to copy.
- offset (
int) – IN: Offset from start of symbol in bytes.
- kind (
hipMemcpyKind) – IN: the type of memory copy.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphExecMemcpyNodeSetParamsToSymbol(hGraphExec, node, symbol, src, count, offset, kind)
hipGraphExecMemcpyNodeSetParamsToSymbol(hGraphExec, node, symbol, src, unsigned long count, unsigned long offset, kind) Sets the parameters for a memcpy node in the given graphExec to copy to a symbol on the
device.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- symbol (
Pointer/object) – IN: Device symbol address.
- src (
Pointer/object) – IN: pointer to memory address of the src.
- count (
int) – IN: the size of the memory to copy.
- offset (
int) – IN: Offset from start of symbol in bytes.
- kind (
hipMemcpyKind) – IN: the type of memory copy.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphAddMemsetNode(graph, numDependencies, pMemsetParams)
hipGraphAddMemsetNode(graph, unsigned long numDependencies, pMemsetParams) Creates a memset node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: instance of the graph to add the created node.
- numDependencies (
int) – IN: the number of the dependencies.
- pMemsetParams (
hipMemsetParams/object) – IN: const pointer to the parameters for the memory set.
- graph (
- Returns:
A
tupleof 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.cuda.cuGraphMemsetNodeGetParams(node, pNodeParams)
hipGraphMemsetNodeGetParams(node, pNodeParams) Gets a memset node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to get parameters from.
- pNodeParams (
hipMemsetParams/object) – OUT: pointer to the parameters.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphMemsetNodeGetParams(node, pNodeParams)
hipGraphMemsetNodeGetParams(node, pNodeParams) Gets a memset node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to get parameters from.
- pNodeParams (
hipMemsetParams/object) – OUT: pointer to the parameters.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphMemsetNodeSetParams(node, pNodeParams)
hipGraphMemsetNodeSetParams(node, pNodeParams) Sets a memset node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipMemsetParams/object) – IN: pointer to the parameters.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphMemsetNodeSetParams(node, pNodeParams)
hipGraphMemsetNodeSetParams(node, pNodeParams) Sets a memset node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipMemsetParams/object) – IN: pointer to the parameters.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams)
hipGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) Sets the parameters for a memset node in the given graphExec.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipMemsetParams/object) – IN: pointer to the parameters.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphAddHostNode(graph, numDependencies, pNodeParams)
hipGraphAddHostNode(graph, unsigned long numDependencies, pNodeParams) Creates a host execution node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: instance of the graph to add the created node.
- numDependencies (
int) – IN: the number of the dependencies.
- pNodeParams (
hipHostNodeParams/object) – IN: -pointer to the parameters.
- graph (
- Returns:
A
tupleof 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.cuda.cudaGraphAddHostNode(graph, numDependencies, pNodeParams)
hipGraphAddHostNode(graph, unsigned long numDependencies, pNodeParams) Creates a host execution node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: instance of the graph to add the created node.
- numDependencies (
int) – IN: the number of the dependencies.
- pNodeParams (
hipHostNodeParams/object) – IN: -pointer to the parameters.
- graph (
- Returns:
A
tupleof 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.cuda.cuGraphHostNodeGetParams(node, pNodeParams)
hipGraphHostNodeGetParams(node, pNodeParams) Returns a host node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to get parameters from.
- pNodeParams (
hipHostNodeParams/object) – OUT: pointer to the parameters.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphHostNodeGetParams(node, pNodeParams)
hipGraphHostNodeGetParams(node, pNodeParams) Returns a host node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to get parameters from.
- pNodeParams (
hipHostNodeParams/object) – OUT: pointer to the parameters.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphHostNodeSetParams(node, pNodeParams)
hipGraphHostNodeSetParams(node, pNodeParams) Sets a host node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipHostNodeParams/object) – IN: pointer to the parameters.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphHostNodeSetParams(node, pNodeParams)
hipGraphHostNodeSetParams(node, pNodeParams) Sets a host node’s parameters.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipHostNodeParams/object) – IN: pointer to the parameters.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams)
hipGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) Sets the parameters for a host node in the given graphExec.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipHostNodeParams/object) – IN: pointer to the parameters.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams)
hipGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) Sets the parameters for a host node in the given graphExec.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipHostNodeParams/object) – IN: pointer to the parameters.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphAddChildGraphNode(graph, numDependencies, childGraph)
hipGraphAddChildGraphNode(graph, unsigned long numDependencies, childGraph) Creates a child graph node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cudaGraphAddChildGraphNode(graph, numDependencies, childGraph)
hipGraphAddChildGraphNode(graph, unsigned long numDependencies, childGraph) Creates a child graph node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cuGraphChildGraphNodeGetGraph(node)
hipGraphChildGraphNodeGetGraph(node) Gets a handle to the embedded graph of a child graph node.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to get child graph.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):ihipGraph:pointer to get the graph.
- cuda.cuda.cudaGraphChildGraphNodeGetGraph(node)
hipGraphChildGraphNodeGetGraph(node) Gets a handle to the embedded graph of a child graph node.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to get child graph.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):ihipGraph:pointer to get the graph.
- cuda.cuda.cuGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph)
hipGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) Updates node parameters in the child graph node in the given graphExec.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: node from the graph which was used to instantiate graphExec.
- childGraph (
ihipGraph/object) – IN: child graph with updated parameters.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph)
hipGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) Updates node parameters in the child graph node in the given graphExec.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: node from the graph which was used to instantiate graphExec.
- childGraph (
ihipGraph/object) – IN: child graph with updated parameters.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphAddEmptyNode(graph, numDependencies)
hipGraphAddEmptyNode(graph, unsigned long numDependencies) Creates an empty node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cudaGraphAddEmptyNode(graph, numDependencies)
hipGraphAddEmptyNode(graph, unsigned long numDependencies) Creates an empty node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cuGraphAddEventRecordNode(graph, numDependencies, event)
hipGraphAddEventRecordNode(graph, unsigned long numDependencies, event) Creates an event record node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: instane of the graph the node to be added.
- numDependencies (
int) – IN: the number of dependencies.
- event (
ihipEvent_t/object) – IN: Event for the node.
- graph (
- Returns:
A
tupleof 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.cuda.cudaGraphAddEventRecordNode(graph, numDependencies, event)
hipGraphAddEventRecordNode(graph, unsigned long numDependencies, event) Creates an event record node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: instane of the graph the node to be added.
- numDependencies (
int) – IN: the number of dependencies.
- event (
ihipEvent_t/object) – IN: Event for the node.
- graph (
- Returns:
A
tupleof 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.cuda.cuGraphEventRecordNodeGetEvent(node)
hipGraphEventRecordNodeGetEvent(node) Returns the event associated with an event record node.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to get event from.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):ihipEvent_t:Pointer to return the event.
- cuda.cuda.cudaGraphEventRecordNodeGetEvent(node)
hipGraphEventRecordNodeGetEvent(node) Returns the event associated with an event record node.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to get event from.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):ihipEvent_t:Pointer to return the event.
- cuda.cuda.cuGraphEventRecordNodeSetEvent(node, event)
hipGraphEventRecordNodeSetEvent(node, event) Sets an event record node’s event.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to set event to.
- event (
ihipEvent_t/object) – IN: pointer to the event.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphEventRecordNodeSetEvent(node, event)
hipGraphEventRecordNodeSetEvent(node, event) Sets an event record node’s event.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to set event to.
- event (
ihipEvent_t/object) – IN: pointer to the event.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event)
hipGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) Sets the event for an event record node in the given graphExec.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- hNode (
hipGraphNode/object) – IN: node from the graph which was used to instantiate graphExec.
- event (
ihipEvent_t/object) – IN: pointer to the event.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event)
hipGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) Sets the event for an event record node in the given graphExec.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- hNode (
hipGraphNode/object) – IN: node from the graph which was used to instantiate graphExec.
- event (
ihipEvent_t/object) – IN: pointer to the event.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphAddEventWaitNode(graph, numDependencies, event)
hipGraphAddEventWaitNode(graph, unsigned long numDependencies, event) Creates an event wait node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: instane of the graph the node to be added.
- numDependencies (
int) – IN: the number of dependencies.
- event (
ihipEvent_t/object) – IN: Event for the node.
- graph (
- Returns:
A
tupleof 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.cuda.cudaGraphAddEventWaitNode(graph, numDependencies, event)
hipGraphAddEventWaitNode(graph, unsigned long numDependencies, event) Creates an event wait node and adds it to a graph.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: instane of the graph the node to be added.
- numDependencies (
int) – IN: the number of dependencies.
- event (
ihipEvent_t/object) – IN: Event for the node.
- graph (
- Returns:
A
tupleof 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.cuda.cuGraphEventWaitNodeGetEvent(node)
hipGraphEventWaitNodeGetEvent(node) Returns the event associated with an event wait node.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to get event from.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):ihipEvent_t:Pointer to return the event.
- cuda.cuda.cudaGraphEventWaitNodeGetEvent(node)
hipGraphEventWaitNodeGetEvent(node) Returns the event associated with an event wait node.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to get event from.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):ihipEvent_t:Pointer to return the event.
- cuda.cuda.cuGraphEventWaitNodeSetEvent(node, event)
hipGraphEventWaitNodeSetEvent(node, event) Sets an event wait node’s event.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to set event to.
- event (
ihipEvent_t/object) – IN: pointer to the event.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphEventWaitNodeSetEvent(node, event)
hipGraphEventWaitNodeSetEvent(node, event) Sets an event wait node’s event.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: instane of the node to set event to.
- event (
ihipEvent_t/object) – IN: pointer to the event.
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event)
hipGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) Sets the event for an event record node in the given graphExec.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- hNode (
hipGraphNode/object) – IN: node from the graph which was used to instantiate graphExec.
- event (
ihipEvent_t/object) – IN: pointer to the event.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event)
hipGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) Sets the event for an event record node in the given graphExec.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- hNode (
hipGraphNode/object) – IN: node from the graph which was used to instantiate graphExec.
- event (
ihipEvent_t/object) – IN: pointer to the event.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphAddMemAllocNode(graph, numDependencies, pNodeParams)
hipGraphAddMemAllocNode(graph, unsigned long numDependencies, pNodeParams) Creates a memory allocation node and adds it to a graph
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: Instane of the graph the node to be added
- numDependencies (
int) – IN: The number of dependencies
- pNodeParams (
hipMemAllocNodeParams/object) – IN: Node parameters for memory allocation
- graph (
- Returns:
A
tupleof 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.cuda.cudaGraphAddMemAllocNode(graph, numDependencies, pNodeParams)
hipGraphAddMemAllocNode(graph, unsigned long numDependencies, pNodeParams) Creates a memory allocation node and adds it to a graph
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: Instane of the graph the node to be added
- numDependencies (
int) – IN: The number of dependencies
- pNodeParams (
hipMemAllocNodeParams/object) – IN: Node parameters for memory allocation
- graph (
- Returns:
A
tupleof 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.cuda.cuGraphMemAllocNodeGetParams(node, pNodeParams)
hipGraphMemAllocNodeGetParams(node, pNodeParams) Returns parameters for memory allocation node
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: Memory allocation node for a query
- pNodeParams (
hipMemAllocNodeParams/object) – OUT: Parameters for the specified memory allocation node
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphMemAllocNodeGetParams(node, pNodeParams)
hipGraphMemAllocNodeGetParams(node, pNodeParams) Returns parameters for memory allocation node
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: Memory allocation node for a query
- pNodeParams (
hipMemAllocNodeParams/object) – OUT: Parameters for the specified memory allocation node
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphAddMemFreeNode(graph, numDependencies, dev_ptr)
hipGraphAddMemFreeNode(graph, unsigned long numDependencies, dev_ptr) Creates a memory free node and adds it to a graph
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof 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.cuda.cuGraphMemFreeNodeGetParams(node, dev_ptr)
hipGraphMemFreeNodeGetParams(node, dev_ptr) Returns parameters for memory free node
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: Memory free node for a query
- dev_ptr (
Pointer/object) – OUT: Device pointer for the specified memory free node
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphMemFreeNodeGetParams(node, dev_ptr)
hipGraphMemFreeNodeGetParams(node, dev_ptr) Returns parameters for memory free node
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- node (
hipGraphNode/object) – IN: Memory free node for a query
- dev_ptr (
Pointer/object) – OUT: Device pointer for the specified memory free node
- node (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuDeviceGetGraphMemAttribute(device, attr, value)
hipDeviceGetGraphMemAttribute(int device, attr, value) Get the mem attribute for graphs.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- device (
int) – IN: device the attr is get for.
- attr (
hipGraphMemAttributeType) – IN: attr to get.
- value (
Pointer/object) – OUT: value for specific attr.
- device (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaDeviceGetGraphMemAttribute(device, attr, value)
hipDeviceGetGraphMemAttribute(int device, attr, value) Get the mem attribute for graphs.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- device (
int) – IN: device the attr is get for.
- attr (
hipGraphMemAttributeType) – IN: attr to get.
- value (
Pointer/object) – OUT: value for specific attr.
- device (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuDeviceSetGraphMemAttribute(device, attr, value)
hipDeviceSetGraphMemAttribute(int device, attr, value) Set the mem attribute for graphs.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- device (
int) – IN: device the attr is set for.
- attr (
hipGraphMemAttributeType) – IN: attr to set.
- value (
Pointer/object) – IN: value for specific attr.
- device (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaDeviceSetGraphMemAttribute(device, attr, value)
hipDeviceSetGraphMemAttribute(int device, attr, value) Set the mem attribute for graphs.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- device (
int) – IN: device the attr is set for.
- attr (
hipGraphMemAttributeType) – IN: attr to set.
- value (
Pointer/object) – IN: value for specific attr.
- device (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuDeviceGraphMemTrim(device)
hipDeviceGraphMemTrim(int device) Free unused memory on specific device used for graph back to OS.
- cuda.cuda.cudaDeviceGraphMemTrim(device)
hipDeviceGraphMemTrim(int device) Free unused memory on specific device used for graph back to OS.
- cuda.cuda.cuUserObjectCreate(ptr, destroy, initialRefcount, flags)
hipUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags) Create an instance of userObject to manage lifetime of a resource.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipUserObject:pointer to instace of userobj.
- cuda.cuda.cudaUserObjectCreate(ptr, destroy, initialRefcount, flags)
hipUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags) Create an instance of userObject to manage lifetime of a resource.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipUserObject:pointer to instace of userobj.
- cuda.cuda.cuUserObjectRelease(object, count)
hipUserObjectRelease(object, unsigned int count) Release number of references to resource.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- object (
hipUserObject/object) – IN: pointer to instace of userobj.
- count (
int) – IN: reference to resource to be retained.
- object (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaUserObjectRelease(object, count)
hipUserObjectRelease(object, unsigned int count) Release number of references to resource.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- object (
hipUserObject/object) – IN: pointer to instace of userobj.
- count (
int) – IN: reference to resource to be retained.
- object (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuUserObjectRetain(object, count)
hipUserObjectRetain(object, unsigned int count) Retain number of references to resource.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- object (
hipUserObject/object) – IN: pointer to instace of userobj.
- count (
int) – IN: reference to resource to be retained.
- object (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaUserObjectRetain(object, count)
hipUserObjectRetain(object, unsigned int count) Retain number of references to resource.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- object (
hipUserObject/object) – IN: pointer to instace of userobj.
- count (
int) – IN: reference to resource to be retained.
- object (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphRetainUserObject(graph, object, count, flags)
hipGraphRetainUserObject(graph, object, unsigned int count, unsigned int flags) Retain user object for graphs.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphRetainUserObject(graph, object, count, flags)
hipGraphRetainUserObject(graph, object, unsigned int count, unsigned int flags) Retain user object for graphs.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphReleaseUserObject(graph, object, count)
hipGraphReleaseUserObject(graph, object, unsigned int count) Release user object from graphs.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: pointer to graph to retain the user object for.
- object (
hipUserObject/object) – IN: pointer to instace of userobj.
- count (
int) – IN: reference to resource to be retained.
- graph (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphReleaseUserObject(graph, object, count)
hipGraphReleaseUserObject(graph, object, unsigned int count) Release user object from graphs.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- graph (
ihipGraph/object) – IN: pointer to graph to retain the user object for.
- object (
hipUserObject/object) – IN: pointer to instace of userobj.
- count (
int) – IN: reference to resource to be retained.
- graph (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphDebugDotPrint(graph, path, flags)
hipGraphDebugDotPrint(graph, path, unsigned int flags) Write a DOT file describing graph structure.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphDebugDotPrint(graph, path, flags)
hipGraphDebugDotPrint(graph, path, unsigned int flags) Write a DOT file describing graph structure.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphKernelNodeCopyAttributes(hSrc, hDst)
hipGraphKernelNodeCopyAttributes(hSrc, hDst) Copies attributes from source node to destination node.
Copies attributes from source node to destination node. Both node must have the same context.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hSrc (
hipGraphNode/object) – IN: Source node.
For list of attributes see
hipKernelNodeAttrID.- hDst (
hipGraphNode/object) – OUT: Destination node.
- hSrc (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphKernelNodeCopyAttributes(hSrc, hDst)
hipGraphKernelNodeCopyAttributes(hSrc, hDst) Copies attributes from source node to destination node.
Copies attributes from source node to destination node. Both node must have the same context.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hSrc (
hipGraphNode/object) – IN: Source node.
For list of attributes see
hipKernelNodeAttrID.- hDst (
hipGraphNode/object) – OUT: Destination node.
- hSrc (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphNodeSetEnabled(hGraphExec, hNode, isEnabled)
hipGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled) Enables or disables the specified node in the given graphExec
Sets hNode to be either enabled or disabled. Disabled nodes are functionally equivalent to empty nodes until they are reenabled. Existing node parameters are not affected by disabling/enabling the node.
The node is identified by the corresponding hNode in the non-executable graph, from which the executable graph was instantiated.
hNode must not have been removed from the original graph.
- Note:
Currently only kernel, memset and memcpy nodes are supported.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: The executable graph in which to set the specified node.
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- isEnabled (
int) – IN: Node is enabled if != 0, otherwise the node is disabled.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled)
hipGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled) Enables or disables the specified node in the given graphExec
Sets hNode to be either enabled or disabled. Disabled nodes are functionally equivalent to empty nodes until they are reenabled. Existing node parameters are not affected by disabling/enabling the node.
The node is identified by the corresponding hNode in the non-executable graph, from which the executable graph was instantiated.
hNode must not have been removed from the original graph.
- Note:
Currently only kernel, memset and memcpy nodes are supported.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: The executable graph in which to set the specified node.
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- isEnabled (
int) – IN: Node is enabled if != 0, otherwise the node is disabled.
- hGraphExec (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphNodeGetEnabled(hGraphExec, hNode)
hipGraphNodeGetEnabled(hGraphExec, hNode) Query whether a node in the given graphExec is enabled
Sets isEnabled to 1 if hNode is enabled, or 0 if it is disabled.
The node is identified by the corresponding node in the non-executable graph, from which the executable graph was instantiated.
hNode must not have been removed from the original graph.
- Note:
Currently only kernel, memset and memcpy nodes are supported.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: The executable graph in which to set the specified node.
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- hGraphExec (
- Returns:
A
tupleof size 2 that contains (in that order):int:Location to return the enabled status of the node.
- cuda.cuda.cudaGraphNodeGetEnabled(hGraphExec, hNode)
hipGraphNodeGetEnabled(hGraphExec, hNode) Query whether a node in the given graphExec is enabled
Sets isEnabled to 1 if hNode is enabled, or 0 if it is disabled.
The node is identified by the corresponding node in the non-executable graph, from which the executable graph was instantiated.
hNode must not have been removed from the original graph.
- Note:
Currently only kernel, memset and memcpy nodes are supported.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: The executable graph in which to set the specified node.
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- hGraphExec (
- Returns:
A
tupleof size 2 that contains (in that order):int:Location to return the enabled status of the node.
- cuda.cuda.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
tupleof 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.cuda.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
tupleof 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.cuda.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
tupleof 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.cuda.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
tupleof 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.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof size 1 that contains (in that order):
- cuda.cuda.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
tupleof 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.cuda.cuMemAddressFree(devPtr, size)
hipMemAddressFree(devPtr, unsigned long size) Frees an address range reservation made via hipMemAddressReserve
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemAddressReserve(size, alignment, addr, flags)
hipMemAddressReserve(unsigned long size, unsigned long alignment, addr, unsigned long long flags) Reserves an address range
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
- cuda.cuda.cuMemCreate(size, prop, flags)
hipMemCreate(unsigned long size, prop, unsigned long long flags) Creates a memory allocation described by the properties and size
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- size (
int) – IN: size of the allocation.
- prop (
hipMemAllocationProp/object) – IN: properties of the allocation.
- flags (
int) – IN: currently unused, must be zero.
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemGenericAllocationHandle:value of the returned handle.
- cuda.cuda.cuMemExportToShareableHandle(shareableHandle, handle, handleType, flags)
hipMemExportToShareableHandle(shareableHandle, handle, handleType, unsigned long long flags) Exports an allocation to a requested shareable handle type.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- shareableHandle (
Pointer/object) – OUT: value of the returned handle.
- handle (
ihipMemGenericAllocationHandle/object) – IN: handle to share.
- handleType (
hipMemAllocationHandleType) – IN: type of the shareable handle.
- flags (
int) – IN: currently unused, must be zero.
- shareableHandle (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemGetAccess(location, ptr)
hipMemGetAccess(location, ptr) Get the access flags set for the given location and ptr.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- location (
hipMemLocation/object) – IN: target location.
- ptr (
Pointer/object) – IN: address to check the access flags.
- location (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedint:flags for this location.
- cuda.cuda.cuMemGetAllocationGranularity(prop, option)
hipMemGetAllocationGranularity(prop, option) Calculates either the minimal or recommended granularity.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- prop (
hipMemAllocationProp/object) – IN: location properties.
- option (
hipMemAllocationGranularity_flags) – IN: determines which granularity to return.
- prop (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedint:returned granularity.
- cuda.cuda.cuMemGetAllocationPropertiesFromHandle(prop, handle)
hipMemGetAllocationPropertiesFromHandle(prop, handle) Retrieve the property structure of the given handle.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux under development on Windows.
- Args:
- prop (
hipMemAllocationProp/object) – OUT: properties of the given handle.
- handle (
ihipMemGenericAllocationHandle/object) – IN: handle to perform the query on.
- prop (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemImportFromShareableHandle(osHandle, shHandleType)
hipMemImportFromShareableHandle(osHandle, shHandleType) Imports an allocation from a requested shareable handle type.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- osHandle (
Pointer/object) – IN: shareable handle representing the memory allocation.
- shHandleType (
hipMemAllocationHandleType) – IN: handle type.
- osHandle (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemGenericAllocationHandle:returned value.
- cuda.cuda.cuMemMap(ptr, size, offset, handle, flags)
hipMemMap(ptr, unsigned long size, unsigned long offset, handle, unsigned long long flags) Maps an allocation handle to a reserved virtual address range.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- ptr (
Pointer/object) – IN: address where the memory will be mapped.
- size (
int) – IN: size of the mapping.
- offset (
int) – IN: offset into the memory, currently must be zero.
- handle (
ihipMemGenericAllocationHandle/object) – IN: memory allocation to be mapped.
- flags (
int) – IN: currently unused, must be zero.
- ptr (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemMapArrayAsync(mapInfoList, count, stream)
hipMemMapArrayAsync(mapInfoList, unsigned int count, stream) Maps or unmaps subregions of sparse HIP arrays and sparse HIP mipmapped arrays.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- mapInfoList (
hipArrayMapInfo/object) – IN: list of hipArrayMapInfo.
- count (
int) – IN: number of hipArrayMapInfo in mapInfoList.
- stream (
ihipStream_t/object) – IN: stream identifier for the stream to use for map or unmap operations.
- mapInfoList (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemRelease(handle)
hipMemRelease(handle) Release a memory handle representing a memory allocation which was previously allocated through hipMemCreate.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- handle (
ihipMemGenericAllocationHandle/object) – IN: handle of the memory allocation.
- handle (
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemRetainAllocationHandle(addr)
hipMemRetainAllocationHandle(addr) Returns the allocation handle of the backing memory allocation given the address.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemGenericAllocationHandle:handle representing addr.
- cuda.cuda.cuMemSetAccess(ptr, size, desc, count)
hipMemSetAccess(ptr, unsigned long size, desc, unsigned long count) Set the access flags for each location specified in desc for the given virtual address range.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuMemUnmap(ptr, size)
hipMemUnmap(ptr, unsigned long size) Unmap memory allocation of a given address range.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Note:
This API is implemented on Linux, under development on Windows.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):
- cuda.cuda.cuGraphicsMapResources(count, stream)
hipGraphicsMapResources(int count, stream) Maps a graphics resource for access.
- Args:
- count (
int) – IN: Number of resources to map.
- stream (
ihipStream_t/object) – IN: Stream for synchronization.
- count (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorUnknown,hipErrorInvalidResourceHandle_hipGraphicsResource:Pointer of resources to map.
- cuda.cuda.cudaGraphicsMapResources(count, stream)
hipGraphicsMapResources(int count, stream) Maps a graphics resource for access.
- Args:
- count (
int) – IN: Number of resources to map.
- stream (
ihipStream_t/object) – IN: Stream for synchronization.
- count (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorUnknown,hipErrorInvalidResourceHandle_hipGraphicsResource:Pointer of resources to map.
- cuda.cuda.cuGraphicsSubResourceGetMappedArray(resource, arrayIndex, mipLevel)
hipGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, unsigned int mipLevel) Get an array through which to access a subresource of a mapped graphics resource.
- cuda.cuda.cudaGraphicsSubResourceGetMappedArray(resource, arrayIndex, mipLevel)
hipGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, unsigned int mipLevel) Get an array through which to access a subresource of a mapped graphics resource.
- cuda.cuda.cuGraphicsResourceGetMappedPointer(resource)
hipGraphicsResourceGetMappedPointer(resource) Gets device accessible address of a graphics resource.
- cuda.cuda.cuGraphicsResourceGetMappedPointer_v2(resource)
hipGraphicsResourceGetMappedPointer(resource) Gets device accessible address of a graphics resource.
- cuda.cuda.cudaGraphicsResourceGetMappedPointer(resource)
hipGraphicsResourceGetMappedPointer(resource) Gets device accessible address of a graphics resource.
- cuda.cuda.cuGraphicsUnmapResources(count, stream)
hipGraphicsUnmapResources(int count, stream) Unmaps graphics resources.
- Args:
- count (
int) – IN: Number of resources to unmap.
- stream (
ihipStream_t/object) – IN: Stream for synchronization.
- count (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorUnknown,hipErrorContextIsDestroyed_hipGraphicsResource:Pointer of resources to unmap.
- cuda.cuda.cudaGraphicsUnmapResources(count, stream)
hipGraphicsUnmapResources(int count, stream) Unmaps graphics resources.
- Args:
- count (
int) – IN: Number of resources to unmap.
- stream (
ihipStream_t/object) – IN: Stream for synchronization.
- count (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:hipSuccess,hipErrorInvalidValue,hipErrorUnknown,hipErrorContextIsDestroyed_hipGraphicsResource:Pointer of resources to unmap.
- cuda.cuda.cuGraphicsUnregisterResource(resource)
hipGraphicsUnregisterResource(resource) Unregisters a graphics resource.
- cuda.cuda.cudaGraphicsUnregisterResource(resource)
hipGraphicsUnregisterResource(resource) Unregisters a graphics resource.
- cuda.cuda.cudaCreateSurfaceObject(pResDesc)
hipCreateSurfaceObject(pResDesc) Create a surface object.
- Args:
- pResDesc (
hipResourceDesc/object) – IN: Pointer of suface object descriptor.
- pResDesc (
- Returns:
A
tupleof size 2 that contains (in that order):__hip_surface:Pointer of surface object to be created.
- cuda.cuda.cudaDestroySurfaceObject(surfaceObject)
hipDestroySurfaceObject(surfaceObject) Destroy a surface object.
- class cuda.cuda.cublasDataType_t(value)
Bases:
_hipDataType__BaseAn 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.cuda.cudaDataType(value)
Bases:
_hipDataType__BaseAn 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.cuda.cudaDataType_t(value)
Bases:
_hipDataType__BaseAn 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