]> git.droids-corp.org - dpdk.git/commit
gpu/cuda: map GPU memory with GDRCopy
authorElena Agostini <eagostini@nvidia.com>
Fri, 25 Feb 2022 03:12:26 +0000 (03:12 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 27 Feb 2022 17:16:20 +0000 (18:16 +0100)
commit24c77594e08fb73dfeee852ce228bae61d6da2ea
treee4a1ec86396513d2c1d8471ad885b38e97947585
parent8b6502f28685eb6395292470ff28e1ff3271aa32
gpu/cuda: map GPU memory with GDRCopy

To enable the gpudev rte_gpu_mem_cpu_map feature to expose
GPU memory to the CPU, the GPU CUDA driver library needs
the GDRCopy library and driver.

If DPDK is built without GDRCopy, the GPU CUDA driver returns
error if the is invoked rte_gpu_mem_cpu_map.

All the others GPU CUDA driver functionalities are not affected by
the absence of GDRCopy, thus this is an optional functionality
that can be enabled in the GPU CUDA driver.

CUDA driver documentation has been updated accordingly.

Signed-off-by: Elena Agostini <eagostini@nvidia.com>
doc/guides/gpus/cuda.rst
doc/guides/gpus/features/cuda.ini
doc/guides/gpus/features/default.ini
drivers/gpu/cuda/common.h [new file with mode: 0644]
drivers/gpu/cuda/cuda.c
drivers/gpu/cuda/gdrcopy.c [new file with mode: 0644]
drivers/gpu/cuda/meson.build