dpctl.select_cpu_device

dpctl.select_cpu_device()

A wrapper for sycl::device{sycl::cpu_selector_v} constructor.

Returns:

A Python object wrapping the SYCL device returned by the SYCL cpu_selector.

Return type:

dpctl.SyclDevice

Raises:

dpctl.SyclDeviceCreationError – If the SYCL cpu_selector is unable to select a device.