dpctl Enums
- class dpctl.backend_type(value)[source]
An enumeration of supported SYCL backends.
- Example:
import dpctl # create a SYCL device with OpenCL backend using filter selector d = dpctl.SyclDevice("opencl") print(d.backend) # Possible output: <backend_type.opencl: 5>
- class dpctl.device_type(value)[source]
An enumeration of supported SYCL device types.
- Example:
import dpctl # filter GPU devices amongst available SYCL devices gpu_devs = [ d for d in dpctl.get_devices() if ( d.device_type == dpctl.device_type.gpu ) ] # alternatively, get GPU devices directly gpu_devs2 = dpctl.get_devices(device_type=dpctl.device_type.gpu)