dpctl.has_accelerator_devices

dpctl.has_accelerator_devices()

A helper function to check if there are any SYCL Accelerator devices available.

Returns:

True if sycl::device_type::accelerator devices are present, False otherwise.

Return type:

bool