DLDeviceType
\brief The device type in DLDevice.
enumEnumerators
- kDLCPU\brief CPU device.
- kDLCUDA\brief CUDA GPU device.
- kDLCUDAHost\brief Pinned CUDA CPU memory by cudaMallocHost.
- kDLOpenCL\brief OpenCL devices.
- kDLVulkan\brief Vulkan buffer for next generation graphics.
- kDLMetal\brief Metal for Apple GPU.
- kDLVPI\brief Verilog simulator buffer.
- kDLROCM\brief ROCm GPUs for AMD GPUs.
- kDLROCMHost\brief Pinned ROCm CPU memory allocated by hipMallocHost.
- kDLExtDev\brief Reserved extension device type, used for quickly test extension device The semantics can differ depending on the implementation.
- kDLCUDAManaged\brief CUDA managed/unified memory allocated by cudaMallocManaged.
- kDLOneAPI\brief Unified shared memory allocated on a oneAPI non-partititioned device.
- kDLWebGPU\brief GPU support for next generation WebGPU standard.
- kDLHexagon\brief Qualcomm Hexagon DSP.
- kDLMAIA\brief Microsoft MAIA devices.
kDLCPU
enumerator[source]kDLCPU = 1\brief CPU device
kDLCUDA
enumerator[source]kDLCUDA = 2\brief CUDA GPU device
kDLCUDAHost
enumerator[source]kDLCUDAHost = 3\brief Pinned CUDA CPU memory by cudaMallocHost
kDLOpenCL
enumerator[source]kDLOpenCL = 4\brief OpenCL devices.
kDLVulkan
enumerator[source]kDLVulkan = 7\brief Vulkan buffer for next generation graphics.
kDLMetal
enumerator[source]kDLMetal = 8\brief Metal for Apple GPU.
kDLVPI
enumerator[source]kDLVPI = 9\brief Verilog simulator buffer
kDLROCM
enumerator[source]kDLROCM = 10\brief ROCm GPUs for AMD GPUs
kDLROCMHost
enumerator[source]kDLROCMHost = 11\brief Pinned ROCm CPU memory allocated by hipMallocHost
kDLExtDev
enumerator[source]kDLExtDev = 12\brief Reserved extension device type, used for quickly test extension device The semantics can differ depending on the implementation.
kDLCUDAManaged
enumerator[source]kDLCUDAManaged = 13\brief CUDA managed/unified memory allocated by cudaMallocManaged
kDLOneAPI
enumerator[source]kDLOneAPI = 14\brief Unified shared memory allocated on a oneAPI non-partititioned device. Call to oneAPI runtime is required to determine the device type, the USM allocation type and the sycl context it is bound to.
kDLWebGPU
enumerator[source]kDLWebGPU = 15\brief GPU support for next generation WebGPU standard.
kDLHexagon
enumerator[source]kDLHexagon = 16\brief Qualcomm Hexagon DSP
kDLMAIA
enumerator[source]kDLMAIA = 17\brief Microsoft MAIA devices