Skip to content

Commit

Permalink
Docs: Fixup unified memory tables
Browse files Browse the repository at this point in the history
  • Loading branch information
MKKnorr authored and neon60 committed Nov 5, 2024
1 parent 895820e commit 6aea7c5
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions docs/how-to/hip_runtime_api/memory_management/unified_memory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ The table below lists the supported allocators for the different architectures.
The allocators are described in the next section.

.. list-table:: Supported Unified Memory Allocators
:widths: 40, 25, 25, 25
:widths: 40, 25, 25
:header-rows: 1
:align: center

Expand Down Expand Up @@ -167,12 +167,12 @@ functions on ROCm and CUDA, both with and without HMM support.
- page-fault migration
* - :cpp:func:`hipMalloc()`
- device
- zero copy
- zero copy [zc]_
- device
- zero copy
- zero copy [zc]_
* - :cpp:func:`hipMallocManaged()`, ``__managed__``
- pinned host
- zero copy
- zero copy [zc]_
- host
- page-fault migration
* - :cpp:func:`hipHostRegister()`
Expand All @@ -182,9 +182,9 @@ functions on ROCm and CUDA, both with and without HMM support.
- page-fault migration
* - :cpp:func:`hipHostMalloc()`
- pinned host
- zero copy
- zero copy [zc]_
- pinned host
- zero copy
- zero copy [zc]_

.. tab-item:: CUDA allocation behaviour
:sync: cooperative-groups
Expand Down Expand Up @@ -220,12 +220,18 @@ functions on ROCm and CUDA, both with and without HMM support.
- page-fault migration
* - ``cudaMallocHost()``
- pinned host
- zero copy
- zero copy [zc]_
- pinned host
- zero copy
- zero copy [zc]_

.. _checking unified memory support:

.. [zc] Zero copy is a feature, where the memory is pinned to either the device
or the host, and won't be transferred when accessed by another device or
the host. Instead only the requested memory is transferred, without
making an explicit copy, like a normal memory access, hence the term
"zero copy".
Checking unified memory support
--------------------------------------------------------------------------------

Expand Down

0 comments on commit 6aea7c5

Please sign in to comment.