mbox

[v1,0/3] GPU memory aligned

Message ID 20220104014721.1799-1-eagostini@nvidia.com (mailing list archive)
Headers

Message

Elena Agostini Jan. 4, 2022, 1:47 a.m. UTC
  From: Elena Agostini <eagostini@nvidia.com>

Applications may need to allocate GPU memory buffers
with memory address aligned to some value
(e.g. page size).

Similarly to the rte_malloc function, aligned size
can be provided as input to rte_gpu_mem_alloc.

This set of patches implements this functionality
in the gpudev library and the GPU CUDA driver.

Elena Agostini (3):
  gpudev: mem alloc aligned memory
  app/test-gpudev: test aligned memory allocation
  gpu/cuda: mem alloc aligned memory

 app/test-gpudev/main.c     | 13 ++++++++++---
 drivers/gpu/cuda/cuda.c    | 21 ++++++++++++++++-----
 lib/gpudev/gpudev.c        | 10 ++++++++--
 lib/gpudev/gpudev_driver.h |  2 +-
 lib/gpudev/rte_gpudev.h    | 10 +++++++---
 5 files changed, 42 insertions(+), 14 deletions(-)