Convert CUDA Pointer To DMA buffer

Hi guys,
I need an example code that convert CUDA pointer (comes from cudaMalloc ) to DMA buffer (NvBuffer). I know that NvEGLImageFromFd, cuGraphicsEGLRegisterImage, cuGraphicsResourceGetMappedEglFrame used for DMA CUDA interoperability. But how about CUDA pointer to DMA buffer without copy.
Thanks so much.

Hi,

CUDA buffer is not accessible by the CPU.
So memcopy is required in this use case.

Thanks.

Thanks for your attention,
We already have CUDA-DMA inter-operablity which means a DMA buffer can be accessed through NvEGLImageFromFd, cuGraphicsEGLRegisterImage, cuGraphicsResourceGetMappedEglFrame in CUDA. What I need is the inverse access. That is I want a CUDA buffer pointer converted to a DMA file descriptor without copy.
Thanks so much.

Hi,

You will need a memory copy in this use case.
Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.