dpctl.select_default_device

dpctl.select_default_device()

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

Returns:

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

Return type:

dpctl.SyclDevice

Raises:

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