GMSL Camera Setup

I have written a code for capturing samples from the GMSL camera, but when I am running the code, I am getting this error: libnvrm_gpu.so: NvRmGpuLibOpen failed

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
[+] NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
[+] Linux
QNX
other

Hardware Platform
[+] NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
1.5.0.7774
[+] other

Host Machine Version
native Ubuntu 18.04
other

Dear @aswb,
Could you confirm if DW gmsl sample is working without any issue? Could you complete log?

The DW gmsl sample is working fine,

Dear @aswb,
Could you share the complete log? Do you see libnvrm_gpu.so is at /usr/lib and see if the executable is able to link to it using ldd

The Executable is able to link to it,

libnvrm_gpu.so: NvRmGpuLibOpen failed
[10-4-2021 11:22:47] Driveworks exception thrown: DW_CUDA_ERROR: Platform: cannot acquire cuda context : unknown error

[2021-04-10 11:22:47] DW Error DW_CUDA_ERROR executing DW function:
 dwInitialize(&m_sdk, DW_VERSION, &sdkParams)

Dear @aswb,
This is strange. Does the host has any other CUDA version than comes with sdkmanager? Could you cross compile the DW GMSL sample like your sample and check running to confirm if it is issue with cross compilation?

[10-4-2021 11:22:47] Initialize DriveWorks SDK v1.2.400
[10-4-2021 11:22:47] Release build with GNU 4.9.4 from v1.2.0-rc11-0-ga7f5475 against Vibrante PDK v5.0.10.3
[10-4-2021 11:22:47] Platform: Detected DDPX - Tegra A
[10-4-2021 11:22:47] TimeSource: monotonic epoch time offset is 1612970996211058
libnvrm_gpu.so: NvRmGpuLibOpen failed
[10-4-2021 11:22:47] Driveworks exception thrown: DW_CUDA_ERROR: Platform: cannot acquire cuda context : unknown error

[2021-04-10 11:22:47] DW Error DW_CUDA_ERROR executing DW function:
dwInitialize(&m_sdk, DW_VERSION, &sdkParams)

This is the complete log,
I am running this on AGX dev kit, Could this be some issue with Managing or Scheduling GPU Resources?

Dear @aswb,
I could see the DW version as DW 1.2.400 I expect it to have DW 2.2.X on target if flashed with DRIVE SW 10.0. Please double check if the correct DW/CUDA version is used in cross compilation.

Dear SivaRamaKrishnaNV, I am comping directly on the target. And yes I have drive software 10 installed with DW 2.2 on the the board.

Dear @aswb,
We don’t support on target compilation. We recommend cross compilation on host. Could you please check cross compilation and let us know if you hit any issue.

Thankyou, I will try that and get back to you.