dpctl.SyclPlatform.has_aspect_cpu

SyclPlatform.has_aspect_cpu

Returns True if all devices of this platform (if any) are CPU devices, False otherwise.

Example:
>>> import dpctl
>>> pl = dpctl.SyclPlatform("opencl:cpu")
>>> pl.has_aspect_cpu
True
Returns:

Indicates whether all devices of the platform are cpus.

Return type:

bool