SWDEV-508551 - HSA_XNACK is the correct environment variable

Change-Id: I9648a6901805250f0cf1402bf539ad0c0b628878


[ROCm/hip commit: 2737b24ae6]
Αυτή η υποβολή περιλαμβάνεται σε:
Julia Jiang
2025-01-28 13:33:08 -05:00
υποβλήθηκε από Julia Jiang
γονέας 44a2328236
υποβολή b1ba15a75e
@@ -110,7 +110,7 @@ allocator can be used.
❌: **Unsupported** ❌: **Unsupported**
:sup:`1` Works only with ``XNACK=1`` and kernels with HMM support. First GPU :sup:`1` Works only with ``HSA_XNACK=1`` and kernels with HMM support. First GPU
access causes recoverable page-fault. For more details, visit `GPU memory access causes recoverable page-fault. For more details, visit `GPU memory
<https://rocm.docs.amd.com/en/latest/conceptual/gpu-memory.html#xnack>`_. <https://rocm.docs.amd.com/en/latest/conceptual/gpu-memory.html#xnack>`_.
@@ -140,8 +140,8 @@ system requirements` and :ref:`checking unified memory support`.
same system allocation API is used. same system allocation API is used.
To ensure the proper functioning of system allocated unified memory on supported To ensure the proper functioning of system allocated unified memory on supported
GPUs, it is essential to configure the environment variable ``XNACK=1`` and use GPUs, it is essential to set the environment variable ``HSA_XNACK=1`` and use
a kernel that supports `HMM a GPU kernel mode driver that supports HMM
<https://www.kernel.org/doc/html/latest/mm/hmm.html>`_. Without this <https://www.kernel.org/doc/html/latest/mm/hmm.html>`_. Without this
configuration, the behavior will be similar to that of systems without HMM configuration, the behavior will be similar to that of systems without HMM
support. For more details, visit support. For more details, visit
@@ -159,10 +159,10 @@ functions on ROCm and CUDA, both with and without HMM support.
:header-rows: 1 :header-rows: 1
* - call * - call
- Allocation origin without HMM or ``XNACK=0`` - Allocation origin without HMM or ``HSA_XNACK=0``
- Access outside the origin without HMM or ``XNACK=0`` - Access outside the origin without HMM or ``HSA_XNACK=0``
- Allocation origin with HMM and ``XNACK=1`` - Allocation origin with HMM and ``HSA_XNACK=1``
- Access outside the origin with HMM and ``XNACK=1`` - Access outside the origin with HMM and ``HSA_XNACK=1``
* - ``new``, ``malloc()`` * - ``new``, ``malloc()``
- host - host
- not accessible on device - not accessible on device