> On Mon, 3 Jan 2022 18:15:11 +
> Elena Agostini wrote:
>
> > > Alignment only makes sense if power of two. The code should check that
> > > and optimize
> > > for that.
> > >
> >
> > The alignment value is checked in the gpudev library before
> > passing it to the driver.
> >
> > Adding this
On Mon, 3 Jan 2022 18:15:11 +
Elena Agostini wrote:
> > Alignment only makes sense if power of two. The code should check that and
> > optimize
> > for that.
> >
>
> The alignment value is checked in the gpudev library before
> passing it to the driver.
>
> Adding this kind of checks in
> From: Stephen Hemminger
> Date: Monday, 3 January 2022 at 19:05
> To: Elena Agostini
> Cc: dev@dpdk.org
> Subject: Re: [PATCH v1 3/3] gpu/cuda: mem alloc aligned memory
> External email: Use caution opening links or attachments>
>
> On Tue, 4 Jan 2022 01:47:21 +0
On Tue, 4 Jan 2022 01:47:21 +
wrote:
> static int
> -cuda_mem_alloc(struct rte_gpu *dev, size_t size, void **ptr)
> +cuda_mem_alloc(struct rte_gpu *dev, size_t size, void **ptr, unsigned int
> align)
> {
> CUresult res;
> const char *err_string;
> @@ -610,8 +612,10 @@ cuda_mem_
From: Elena Agostini
Implement aligned GPU memory allocation in GPU CUDA driver.
Signed-off-by: Elena Agostini
---
drivers/gpu/cuda/cuda.c | 21 -
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/cuda/cuda.c b/drivers/gpu/cuda/cuda.c
index 882df08e
5 matches
Mail list logo