[dpdk-dev] [PATCH] gpudev: introduce memory API

Thomas Monjalon thomas at monjalon.net
Mon Jun 7 12:50:07 CEST 2021


06/06/2021 03:10, Honnappa Nagarahalli:
> > The new library gpudev is for dealing with GPU from a DPDK application in a
> > vendor-agnostic way.
> 
> It would be good to explain how the application using GPU+DPDK would look like.

It can be anything to invent.
We can give few more words saying it is a computing done in parallel,
being either a loop or sequence of tasks. In both cases,
the DPDK application running on the CPU must be in control.

> Which parts of the workload need DPDK's support?

Control:
- start task (by function or shared memory variable)
- get completion notification (most probably by shared memory)

We will add such requirements in v2.

> Any requirements on co-existence of GPU with other accelerators?

It must be generic to allow any workload with any device.

> > As a first step, the features are focused on memory management.
> > A function allows to allocate memory inside the GPU, while another one
> > allows to use main (CPU) memory from the GPU.
> 
> Is this memory for packet buffers or something else?

Can be for packets or for control variables.




More information about the dev mailing list