dpctl.select_gpu_device

dpctl.select_gpu_device()

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

Returns:

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

Return type:

dpctl.SyclDevice

Raises:

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