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)
class dpctl.event_status_type(value)[source]

An enumeration of SYCL event states.

Example:
import dpctl
ev = dpctl.SyclEvent()
print(ev.execution_status )
# Possible output: <event_status_type.complete: 4>
class dpctl.global_mem_cache_type(value)[source]

An enumeration of global memory cache types for a device.

Example:
import dpctl
dev = dpctl.SyclDevice()
print(dev.global_mem_cache_type)
# Possible output: <global_mem_cache_type.read_write: 4>