Skip to content

Commit

Permalink
Fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
neon60 authored and matyas-streamhpc committed Jun 27, 2024
1 parent 96a60e3 commit 4d20933
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/how-to/unified_memory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ the next section.
❌: **Unsupported**

:sup:`1` Works only with ``XNACK=1``. First GPU access causes recoverable
page-fault. For more details, visit
:doc:`hip:conceptual/gpu-memory.html#xnack`.
page-fault. For more details, visit
`GPU memory <https://rocm.docs.amd.com/en/latest/conceptual/gpu-memory.html#xnack>`_.

.. _unified memory programming models:

Expand All @@ -91,7 +91,7 @@ system requirements` and :ref:`checking unified memory management support`.

The ``hipMallocManaged()`` is a dynamic memory allocator that is available on
all GPUs with unified memory support. For more details, visit
:doc:`hip:reference/unified_memory_reference`.
:ref:`unified_memory_reference`.

- **HIP Managed Variables**:

Expand Down Expand Up @@ -450,7 +450,7 @@ performance can vary based on the specific use case and the hardware
architecture.

For the description of ``hipMemAdvise()`` and the detailed list of advises,
visit the :doc:`hip:reference/unified_memory_reference`.
visit the :ref:`unified_memory_reference`.

Here is the updated version of the example above with memory advises.

Expand Down Expand Up @@ -515,7 +515,7 @@ The ``hipMemRangeGetAttribute()`` is added to the example to query the
``a``. The result is stored in ``attributeValue`` and then printed out.

For more details, visit the
:doc:`hip:reference/unified_memory_reference`.
:ref:`unified_memory_reference`.

.. code-block:: cpp
:emphasize-lines: 29-34
Expand Down
7 changes: 2 additions & 5 deletions docs/reference/unified_memory_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
how to use it in AMD HIP.
:keywords: AMD, ROCm, HIP, CUDA, unified memory, unified, memory, UM, APU

.. _unified_memory_reference:

*******************************************************************************
HIP Managed Memory Allocation API
*******************************************************************************
.. _unified memory_reference:

.. doxygengroup:: MemoryM
:content-only:

.. doxygenfunction:: hipMemoryAdvise

.. doxygenfunction:: hipMemRangeAttribute

0 comments on commit 4d20933

Please sign in to comment.