dpctl.SyclDevice.has_aspect_accelerator¶
- SyclDevice.has_aspect_accelerator¶
Returns
True
if this device is an accelerator device,False
otherwise.SYCL considers an accelerator to be a device that usually uses a peripheral interconnect for communication.
- Example:
>>> import dpctl >>> dev = dpctl.select_cpu_device() >>> dev.has_aspect_accelerator False
- Returns:
Indicates whether the device is an accelerator.
- Return type: