gpudev: add memory API
authorElena Agostini <eagostini@nvidia.com>
Mon, 8 Nov 2021 18:58:01 +0000 (18:58 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 8 Nov 2021 16:20:53 +0000 (17:20 +0100)
commite818c4e2bf5010944fc5b4ef9a52b37df6e47c1a
tree39a97cc2a3f9bed1d428eabad47de138df1c54c1
parenta9af048abaacc2a0cbdc284e033390f13a0c2525
gpudev: add memory API

In heterogeneous computing system, processing is not only in the CPU.
Some tasks can be delegated to devices working in parallel.
Such workload distribution can be achieved by sharing some memory.

As a first step, the features are focused on memory management.
A function allows to allocate memory inside the device,
or in the main (CPU) memory while making it visible for the device.
This memory may be used to save packets or for synchronization data.

The next step should focus on GPU processing task control.

Signed-off-by: Elena Agostini <eagostini@nvidia.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
app/test-gpudev/main.c
doc/guides/gpus/features/default.ini
doc/guides/prog_guide/gpudev.rst
doc/guides/rel_notes/release_21_11.rst
lib/gpudev/gpudev.c
lib/gpudev/gpudev_driver.h
lib/gpudev/rte_gpudev.h
lib/gpudev/version.map