dpctl.select_accelerator_device¶
- dpctl.select_accelerator_device()¶
A wrapper for
sycl::device{sycl::accelerator_selector_v}
constructor.- Returns:
A Python object wrapping the SYCL
device
returned by the SYCLaccelerator_selector
.- Return type:
- Raises:
dpctl.SyclDeviceCreationError – If the SYCL
accelerator_selector
is unable to select adevice
.