dpctl.has_gpu_devices

dpctl.has_gpu_devices()

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

Returns:

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

Return type:

bool