c7ebd65c13
In heterogeneous computing system, processing is not only in the CPU. Some tasks can be delegated to devices working in parallel. When mixing network activity with task processing there may be the need to put in communication the CPU with the device in order to synchronize operations. An example could be a receive-and-process application where CPU is responsible for receiving packets in multiple mbufs and the GPU is responsible for processing the content of those packets. The purpose of this list is to provide a buffer in CPU memory visible from the GPU that can be treated as a circular buffer to let the CPU provide fondamental info of received packets to the GPU. A possible use-case is described below. CPU: - Trigger some task on the GPU - in a loop: - receive a number of packets - provide packets info to the GPU GPU: - Do some pre-processing - Wait to receive a new set of packet to be processed Layout of a communication list would be: ------- | 0 | => pkt_list | status | | #pkts | ------- | 1 | => pkt_list | status | | #pkts | ------- | 2 | => pkt_list | status | | #pkts | ------- | .... | => pkt_list ------- Signed-off-by: Elena Agostini <eagostini@nvidia.com>
13 lines
195 B
Meson
13 lines
195 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (c) 2021 NVIDIA Corporation & Affiliates
|
|
|
|
headers = files(
|
|
'rte_gpudev.h',
|
|
)
|
|
|
|
sources = files(
|
|
'gpudev.c',
|
|
)
|
|
|
|
deps += ['mbuf']
|