[dpdk-dev] [PATCH v2 1/1] gpu/cuda: introduce CUDA driver

Elena Agostini eagostini at nvidia.com
Mon Nov 8 19:39:36 CET 2021


> From: Stephen Hemminger <stephen at networkplumber.org>
> Date: Monday, 8 November 2021 at 19:35
> To: Elena Agostini <eagostini at nvidia.com>
> Cc: dev at dpdk.org <dev at dpdk.org>
> Subject: Re: [dpdk-dev] [PATCH v2 1/1] gpu/cuda: introduce CUDA driver
> External email: Use caution opening links or attachments>
>
> On Thu, 4 Nov 2021 02:01:28 +0000
> <eagostini at nvidia.com> wrote:>
> > +/* Single entry of the memory list */
> > +struct mem_entry {
> > +     CUdeviceptr ptr_d;
> > +     void *ptr_h;
> > +     size_t size;
> > +     struct rte_gpu *dev;
> > +     CUcontext ctx;>
> Not sure where these types CUdeviceptr and CUcontext are coming
> from, but the code looks like Windows style not DPDK or Linux.>
> Please don't introduce CamelCase typedef's and never typedefs
> for pointers.

These are CUDA Driver API specific types, I can’t change them.


More information about the dev mailing list