Skip to content

GPU library

[email protected] dpdk-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest9 patches 1 replyIn review
  2. v49 patches 0 repliesSuperseded
  3. v39 patches 17 repliesSuperseded

Changelog from the cover letter

- Patches updated to latest DPDK commit
- Communication list item has an array of mbufs instead of opaque objects
- Communication list free doesn't release mbufs anymore
- Fixed styling reported by checkpatch

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9gpudev: introduce GPU device class library.gitignore MAINTAINERS app/meson.build +19 more+722 -00 replies
2/9gpudev: add event notificationlib/gpudev/gpudev.c lib/gpudev/gpudev_driver.h lib/gpudev/rte_gpudev.h +1 more+228 -00 replies
3/9gpudev: add child device representing a device contextdoc/guides/prog_guide/gpudev.rst lib/gpudev/gpudev.c lib/gpudev/gpudev_driver.h +2 more+123 -80 replies
4/9gpudev: support multi-processlib/gpudev/gpudev.c lib/gpudev/gpudev_driver.h lib/gpudev/version.map+127 -260 replies
5/9gpudev: add memory APIapp/test-gpudev/main.c doc/guides/gpus/features/default.ini doc/guides/prog_guide/gpudev.rst +5 more+340 -00 replies
6/9gpudev: add memory barrierdoc/guides/prog_guide/gpudev.rst lib/gpudev/gpudev.c lib/gpudev/gpudev_driver.h +2 more+49 -00 replies
7/9gpudev: add communication flagapp/test-gpudev/main.c doc/guides/prog_guide/gpudev.rst doc/guides/rel_notes/release_21_11.rst +3 more+278 -00 replies
8/9gpudev: add communication listapp/test-gpudev/main.c doc/guides/prog_guide/gpudev.rst doc/guides/rel_notes/release_21_11.rst +4 more+411 -10 replies
9/9doc: add CUDA example in GPU guidedoc/guides/prog_guide/gpudev.rst+122 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [dpdk-dev] [PATCH v5 0/9] GPU library

From: Elena Agostini <[email protected]>

In heterogeneous computing system, processing is not only in the CPU. Some tasks can be delegated to devices working in parallel.

The goal of this new library is to enhance the collaboration between DPDK, that's primarily a CPU framework, and GPU devices.

When mixing network activity with task processing on a non-CPU device, there may be the need to put in communication the CPU with the device in order to manage the memory, synchronize operations, exchange info, etc..

This library provides a number of new features:
- Interoperability with GPU-specific library with generic handlers
- Possibility to allocate and free memory on the GPU
- Possibility to allocate and free memory on the CPU but visible from the GPU
- Communication functions to enhance the dialog between the CPU and the GPU

The infrastructure is prepared to welcome drivers in drivers/gpu/ as the CUDA one:
http://patches.dpdk.org/project/dpdk/cover/[email protected]

Changelog:
- Patches updated to latest DPDK commit
- Communication list item has an array of mbufs instead of opaque objects
- Communication list free doesn't release mbufs anymore
- Fixed styling reported by checkpatch

Elena Agostini (6):
gpudev: introduce GPU device class library
gpudev: add memory API
gpudev: add memory barrier
gpudev: add communication flag
gpudev: add communication list
doc: add CUDA example in GPU guide

Thomas Monjalon (3):
gpudev: add event notification
gpudev: add child device representing a device context
gpudev: support multi-process

 .gitignore                             |   1 +
 MAINTAINERS                            |   6 +
 app/meson.build                        |   1 +
 app/test-gpudev/main.c                 | 367 ++++++++++
 app/test-gpudev/meson.build            |   5 +
 doc/api/doxy-api.conf.in               |   1 +
 doc/guides/conf.py                     |   8 +
 doc/guides/gpus/features/default.ini   |  13 +
 doc/guides/gpus/index.rst              |  11 +
 doc/guides/gpus/overview.rst           |  10 +
 doc/guides/index.rst                   |   1 +
 doc/guides/prog_guide/gpudev.rst       | 226 +++++++
 doc/guides/prog_guide/index.rst        |   1 +
 doc/guides/rel_notes/release_21_11.rst |   6 +
 drivers/gpu/meson.build                |   4 +
 drivers/meson.build                    |   1 +
 lib/gpudev/gpudev.c                    | 901 +++++++++++++++++++++++++
 lib/gpudev/gpudev_driver.h             | 102 +++
 lib/gpudev/meson.build                 |  12 +
 lib/gpudev/rte_gpudev.h                | 649 ++++++++++++++++++
 lib/gpudev/version.map                 |  38 ++
 lib/meson.build                        |   1 +
 22 files changed, 2365 insertions(+)
 create mode 100644 app/test-gpudev/main.c
 create mode 100644 app/test-gpudev/meson.build
 create mode 100644 doc/guides/gpus/features/default.ini
 create mode 100644 doc/guides/gpus/index.rst
 create mode 100644 doc/guides/gpus/overview.rst
 create mode 100644 doc/guides/prog_guide/gpudev.rst
 create mode 100644 drivers/gpu/meson.build
 create mode 100644 lib/gpudev/gpudev.c
 create mode 100644 lib/gpudev/gpudev_driver.h
 create mode 100644 lib/gpudev/meson.build
 create mode 100644 lib/gpudev/rte_gpudev.h
 create mode 100644 lib/gpudev/version.map
Signature · 1 line
2.17.1