dpctl.has_cpu_devices

dpctl.has_cpu_devices()

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

Returns:

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

Return type:

bool