]> git.droids-corp.org - dpdk.git/commit
gpudev: add alignment for memory allocation
authorElena Agostini <eagostini@nvidia.com>
Sat, 8 Jan 2022 00:20:01 +0000 (00:20 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 21 Jan 2022 10:33:25 +0000 (11:33 +0100)
commitc8557ed434213fe11ecd867819823ea6865311d2
treef3260a2df064268bf9b5e63995e8fc89067883ca
parent9cc217a28310d21fba56e5eceb740b4feb7e0949
gpudev: add alignment for memory allocation

Similarly to rte_malloc, rte_gpu_mem_alloc accepts as
input the memory alignment size.

GPU driver should return GPU memory address aligned
with the input value.

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