Skip to content

Commit 61c24c4

Browse files
author
github-actions[doc-deploy-bot]
committed
Docs for pull request 2137
1 parent 6955208 commit 61c24c4

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

pulls/2137/_sources/user_guides/environment_variables.rst.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ If we have ``ZE_FLAT_DEVICE_HIERARCHY`` set to ``FLAT``, we can have a ``ZE_AFFI
8787
If the system has four dual-tile GPUs installed, this would be the second tile in the first GPU. In ``FLAT`` mode, the numbers use a system-wide-sub-device-number from a flat numbering perspective.
8888
Therefore, we could use the second tile in each of four dual-tile GPUs with ``ZE_AFFINITY_MASK=1,3,5,7``.
8989

90+
If we have ``ZE_FLAT_DEVICE_HIERARCHY`` set to ``COMBINED``, the way tiles and composite devices are exposed depends on the physical devices present and the value of ``ZE_AFFINITY_MASK``:
91+
**If all exposed tiles (as determined by ``ZE_AFFINITY_MASK``) belong to the same physical device:**
92+
- That composite device is available to the application, and each tile is accessible as a component device of that composite device.
93+
94+
**If the exposed tiles belong to different physical devices:**
95+
- A composite device is available for each physical device, and the tiles are accessible as component devices of their respective composite device.
96+
9097
Additional examples to illustrate this are in the detailed documentation for ``ZE_AFFINITY_MASK``, read more about it in `Level Zero Specification <https://oneapi-src.github.io/level-zero-spec/level-zero/latest/core/PROG.html#affinity-mask>`_.
9198

9299
Variable ``ZE_ENABLE_PCI_ID_DEVICE_ORDER``

pulls/2137/objects.inv

0 Bytes
Binary file not shown.

pulls/2137/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pulls/2137/user_guides/environment_variables.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,11 @@ <h2>Variable <code class="docutils literal notranslate"><span class="pre">ZE_AFF
886886
<p>If we have <code class="docutils literal notranslate"><span class="pre">ZE_FLAT_DEVICE_HIERARCHY</span></code> set to <code class="docutils literal notranslate"><span class="pre">FLAT</span></code>, we can have a <code class="docutils literal notranslate"><span class="pre">ZE_AFFINITY_MASK</span></code> of “1” for our application to only see the second tile in the system as logical device #0.
887887
If the system has four dual-tile GPUs installed, this would be the second tile in the first GPU. In <code class="docutils literal notranslate"><span class="pre">FLAT</span></code> mode, the numbers use a system-wide-sub-device-number from a flat numbering perspective.
888888
Therefore, we could use the second tile in each of four dual-tile GPUs with <code class="docutils literal notranslate"><span class="pre">ZE_AFFINITY_MASK=1,3,5,7</span></code>.</p>
889+
<p>If we have <code class="docutils literal notranslate"><span class="pre">ZE_FLAT_DEVICE_HIERARCHY</span></code> set to <code class="docutils literal notranslate"><span class="pre">COMBINED</span></code>, the way tiles and composite devices are exposed depends on the physical devices present and the value of <code class="docutils literal notranslate"><span class="pre">ZE_AFFINITY_MASK</span></code>:
890+
<strong>If all exposed tiles (as determined by ``ZE_AFFINITY_MASK``) belong to the same physical device:</strong>
891+
- That composite device is available to the application, and each tile is accessible as a component device of that composite device.</p>
892+
<p><strong>If the exposed tiles belong to different physical devices:</strong>
893+
- A composite device is available for each physical device, and the tiles are accessible as component devices of their respective composite device.</p>
889894
<p>Additional examples to illustrate this are in the detailed documentation for <code class="docutils literal notranslate"><span class="pre">ZE_AFFINITY_MASK</span></code>, read more about it in <a class="reference external" href="https://oneapi-src.github.io/level-zero-spec/level-zero/latest/core/PROG.html#affinity-mask">Level Zero Specification</a>.</p>
890895
</section>
891896
<section id="variable-ze-enable-pci-id-device-order">

0 commit comments

Comments
 (0)