From 6879e0242ef2072ab16915640e2f5f7713020049 Mon Sep 17 00:00:00 2001 From: Matthias Knorr Date: Fri, 25 Oct 2024 15:59:45 +0200 Subject: [PATCH] Docs: Fixup unified memory tables --- .../memory_management/unified_memory.rst | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/docs/how-to/hip_runtime_api/memory_management/unified_memory.rst b/docs/how-to/hip_runtime_api/memory_management/unified_memory.rst index 4fb50839df..5cb18d6e0d 100644 --- a/docs/how-to/hip_runtime_api/memory_management/unified_memory.rst +++ b/docs/how-to/hip_runtime_api/memory_management/unified_memory.rst @@ -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 @@ -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()` @@ -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 @@ -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 --------------------------------------------------------------------------------