You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/doc_sources/user_guides/environment_variables.rst
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,30 +51,33 @@ The value of the variable is a bit-mask, with the following supported values:
51
51
* - ``-1``
52
52
- Enables all levels of tracing
53
53
54
+
.. _env_var_ze_flat_device_hierarchy:
55
+
54
56
Variable ``ZE_FLAT_DEVICE_HIERARCHY``
55
57
--------------------------
56
58
Allows users to define the device hierarchy model exposed by Level Zero driver implementation.
59
+
Keep in mind :py:mod:`dpctl.get_composite_devices` will only work while this is set to ``COMBINED``.
57
60
58
61
.. list-table::
59
62
:header-rows: 1
60
63
61
64
* - Value
62
65
- Description
63
66
* - ``COMBINED``
64
-
- Enables all levels of tracing
67
+
- Level Zero devices with multiple tiles will be exposed as a set of root devices, each corresponding to an individual tile. These root devices are component devices, which can be queried for their corresponding composite device, and the composite device can in turn be queried for components. Dedicated composite device APIs will return non-trivial results.
65
68
* - ``COMPOSITE``
66
-
- Returns all devices that do not have a root-device.
69
+
- Level Zero devices with multiple tiles will be exposed as a singular rootdevice, with tiles accessible as sub-devices.
67
70
* - ``FLAT``
68
-
- Returns all devices without sub-devices in a flat hierarchy. Enabled by default.
71
+
- Level Zero devices with multiple tiles will be exposed as a set of root devices, each corresponding to an individual tile. Enabled by default.
69
72
70
-
Read more `here <https://oneapi-src.github.io/level-zero-spec/level-zero/latest/core/PROG.html#device-hierarchy>` and `here <https://www.intel.com/content/www/us/en/developer/articles/technical/flattening-gpu-tile-hierarchy.html>`.
73
+
Read more `about device hierarchy here <https://oneapi-src.github.io/level-zero-spec/level-zero/latest/core/PROG.html#device-hierarchy>`_ and `here <https://www.intel.com/content/www/us/en/developer/articles/technical/flattening-gpu-tile-hierarchy.html>`_.
71
74
72
75
Variable ``ZE_AFFINITY_MASK``
73
76
-------------------------------
74
77
Allows users to mask specific devices from being used by SYCL applications.
75
78
If we have ZE_FLAT_DEVICE_HIERARCHY set to COMPOSITE, we can have an AFFINITY of “1” for our application to only see device #1 - making system devices 0, and 2+, invisible. Etc.
76
79
77
-
Read more `here <https://oneapi-src.github.io/level-zero-spec/level-zero/latest/core/PROG.html#affinity-mask>`.
80
+
Read more about `affinity masks here <https://oneapi-src.github.io/level-zero-spec/level-zero/latest/core/PROG.html#affinity-mask>`_.
0 commit comments