NvSciStream Sample: Converting Cuda memory ptr to NvMediaImage

Please provide the following info:
Hardware Platform: DRIVE AGX Xavier™ Developer Kit
Software Version: DRIVE Software 10
Host Machine Version: Ubuntu 18.04
SDK Manager Version: 5.2.0

I am taking a look at the NvSciStream sample in 5.2.0 which is located under /samples/nvsci/nvscistream/standard/ and am looking a way to convert the pCudaCopyMem received from the stream back to a NvMediaImage for debugging purposes. Is there a recommended way to do this?

Hi @jaisood,

Because 5.2.0.0 isn’t a developer site release yet, may I know where you got 5.2.0.0? Thanks!

Hi Vick,

We received it from our supplier. This sample is unchanged from 5.1.15 so the question would remain the same for 5.1.15 as well.

Hi @VickNV any idea how I can do this conversion?

Please see if this topic helps. Thanks!

Hi Vick,

I read through that post but I am not sure how it will help me in this case.
I am just looking for a way to convert a data stored in gpu via cuda into a nvmedia image.

Thanks,

Jai

Hi Vick,

Do you have an idea how this could be done?

Jai

We don’t have CUDA producer and NvMedia consumer sample application.
But it is just different user mode drivers as producer and consumer.
Except the pseudo functions (NvMedia2DInsertPreNvSciSyncFence() and cudaSomeProcessingOperation()) in the streaming code snippet of the sameple, all others should be no difference.
That said, you can still refer to most part of ~/nvidia/nvidia_sdk/DRIVE_OS_5.2.0.0_SDK_Linux_OS_DDPX/DRIVEOS/drive-t186ref-linux/samples/nvsci/nvscistream sample applicaiton.