gpudev: expose GPU memory to CPU
authorElena Agostini <eagostini@nvidia.com>
Thu, 27 Jan 2022 03:50:28 +0000 (03:50 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 10 Feb 2022 09:06:56 +0000 (10:06 +0100)
commitd69bb47d21f50bdef6023347b1838dc1f8a5c525
tree3e5a9716a6d58484adffaf86d5f32f2c794c901c
parent5e0099dc709e4abce167907e14335d8381f1944e
gpudev: expose GPU memory to CPU

Enable the possibility to expose a GPU memory area and make it
accessible from the CPU.

GPU memory has to be allocated via rte_gpu_mem_alloc().

This patch allows the gpudev library to map (and unmap),
through the GPU driver, a chunk of GPU memory and to return
a memory pointer usable by the CPU to access the GPU memory area.

Signed-off-by: Elena Agostini <eagostini@nvidia.com>
app/test-gpudev/main.c
doc/guides/prog_guide/gpudev.rst
drivers/gpu/cuda/cuda.c
lib/gpudev/gpudev.c
lib/gpudev/gpudev_driver.h
lib/gpudev/rte_gpudev.h
lib/gpudev/version.map