Xavier - Allocating aligned shared GPU-host memory

Hi,

I am developing a gstreamer plugin for acquiring frames from a proprietary video source.
This video source sampling requires allocating aligned memory using posix_memalign. On the other have, I’d like to use GPU-host shared memory, which is allocated with cudaMallocManaged.

How can I allocate aligned shared GPU-host memory?

Thanks,
Amnon.

Hi,

You can try pinned host memory or unified memory.
Please check this document for more information:
[url]https://docs.nvidia.com/cuda/cuda-for-tegra-appnote/index.html#memory-management[/url]

By the way, we also have an SDK based on GStreamer called deepstream.
It may be useful for your use case: https://developer.nvidia.com/deepstream-sdk

Thanks.