dpctl.SyclPlatform¶
- class dpctl.SyclPlatform(self, arg=None)¶
Python class representing
sycl::platformclass.There are two ways of creating a
SyclPlatforminstance:Invoking the constructor with no arguments creates a platform using the default selector.
- Example:
import dpctl # Create a SyclPlatform for default-selected device pl = dpctl.SyclPlatform() print(pl.name, pl.version)
Invoking the constructor with specific filter selector string that creates a queue for the device corresponding to the filter string.
- Example:
import dpctl # Create a SyclPlatform for device selected by # filter-selector string pl = dpctl.SyclPlatform("opencl:cpu") print(pl.name, pl.version)
Methods
Returns a tuple of composite
dpctl.SyclDeviceobjects associated withdpctl.SyclPlatforminstance.get_devices([device_type])Returns a tuple of
dpctl.SyclDeviceobjects associated withdpctl.SyclPlatforminstance selected based on the givendpctl.device_type.print_platform_info([verbosity])Print information about the SYCL platform.
Attributes
Returns the backend_type enum value for this platform
Returns the default platform context for this platform
Returns
Trueif all devices of this platform (if any) are accelerator devices,Falseotherwise.Returns
Trueif all devices of this platform (if any) support a basic set of atomic operations,Falseotherwise.Returns
Trueif all devices of this platform (if any) are CPU devices,Falseotherwise.Returns
Trueif all devices of this platform (if any) are custom devices,Falseotherwise.Returns
Trueif all devices of this platform (if any) are somehow emulated,Falseotherwise.Returns
Trueif all devices of this platform (if any) support inter-process communication (IPC) memory handles,Falseotherwise.Returns
Trueif all devices of this platform (if any) support half-precision floating point operations,Falseotherwise.Returns
Trueif all devices of this platform (if any) support 64-bit precision floating point operations,Falseotherwise.Returns
Trueif all devices of this platform (if any) are GPU devices,Falseotherwise.Returns
Trueif kernels running on all devices of this platform (if any) can be debugged using standard debuggers that are normally available on the host system,Falseotherwise.Returns
Trueif all devices of this platform (if any) support images,Falseotherwise (refer Sec 4.15.3 of SYCL 2020 spec).Returns
Trueif all devices of this platform (if any) are component devices,Falseotherwise.Returns
Trueif all devices of this platform (if any) are composite devices,Falseotherwise.Returns
Trueif all devices of this platform (if any) support online compilation of device code,Falseotherwise.Returns
Trueif all devices of this platform (if any) support online linking of device code,Falseotherwise.Returns
Trueif all devices of this platform (if any) support queue profiling,Falseotherwise.Returns
Trueif all devices of this platform (if any) support USM memory allocated viasycl::malloc_hostand can be accessed atomically,Falseotherwise.Returns
Trueif all devices of this platform (if any) support USM memory allocated viasycl::malloc_sharedand can be accessed atomically,Falseotherwise.Returns
Trueif all devices of this platform (if any) support explicit USM allocations,Falseotherwise.Returns
Trueif all devices of this platform (if any) can access USM memory allocated viasycl::malloc_host,Falseotherwise.Returns
Trueif all devices of this platform (if any) support USM memory allocated viasycl::malloc_shared,Falseotherwise.Returns
Trueif the system allocator may be used instead of SYCL USM allocation mechanisms forsharedallocations on all devices of this platform (if any),Falseotherwise.Returns the name of the platform as a string.
Returns the platform vendor name as a string.
Returns a backend-defined driver version as a string.