dpctl.SyclPlatform¶
-
class
dpctl.SyclPlatform(self, arg=None)¶ Python class representing
cl::sycl::platformclass.SyclPlatform() - create platform selected by sycl::default_selector SyclPlatform(filter_selector) - create platform selected by filter selector
Attributes:
Returns the backend_type enum value for this device
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.
Public methods:
Print information about the SYCL platform.
Detail¶
Attributes¶
-
SyclPlatform.backend¶ Returns the backend_type enum value for this device
- Returns
The backend for the device.
- Return type
-
SyclPlatform.name¶ Returns the name of the platform as a string
-
SyclPlatform.vendor¶ Returns the platform vendor name as a string.
-
SyclPlatform.version¶ Returns a backend-defined driver version as a string.
Public methods¶
-
dpctl.SyclPlatform.print_platform_info()¶ Print information about the SYCL platform.
The level of information printed out by the function can be controlled by the optional
vebositysetting.Verbosity level 0: Prints out the list of platforms and their names.
Verbosity level 1: Prints out the name, version, vendor, backend, number of devices for each platform.
Verbosity level 2: At the highest level of verbosity everything in the previous levels along with the name, version, and filter string for each device is printed.
- Parameters
verbosity (optional) – Defaults to 0. The verbosity controls how much information is printed by the function. 0 is the lowest level set by default and 2 is the highest level to print the most verbose output.