Getting error while executing Driveworks samples

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.6 and DriveWorks 4.0
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.9.1.10844
other

Host Machine Version
native Ubuntu 18.04
other

Tried executing driveworks samples on the host machine getting following error.
adascoe@adascoe-Nuvo-7000-Series:/usr/local/driveworks/bin$ ./sample_camera_replay
[21-04-2023 10:58:47] Platform: Detected Generic x86 Platform
[21-04-2023 10:58:47] TimeSource: monotonic epoch time offset is 1682053790223472
[21-04-2023 10:58:47] Platform: number of GPU devices detected 1
[21-04-2023 10:58:47] Platform: currently selected GPU device discrete ID 0
[21-04-2023 10:58:47] Context::mountResourceCandidateDataPath resource FAILED to mount from ‘/usr/local/driveworks-4.0/bin/data/’: VirtualFileSystem: Failed to mount ‘/usr/local/driveworks-4.0/bin/data/[.pak]’
[21-04-2023 10:58:47] Context::findDataRootInPathWalk data/DATA_ROOT found at: /usr/local/driveworks-4.0/bin/…/data
[21-04-2023 10:58:47] Context::mountResourceCandidateDataPath resource FAILED to mount from ‘/usr/local/driveworks-4.0/bin/…/data/’: VirtualFileSystem: Failed to mount ‘/usr/local/driveworks-4.0/bin/…/data/[.pak]’
[21-04-2023 10:58:47] Context::findDataRootInPathWalk data/DATA_ROOT found at: /usr/local/driveworks-4.0/data
[21-04-2023 10:58:47] Context::mountResourceCandidateDataPath resource FAILED to mount from ‘/usr/local/driveworks-4.0/data/’: VirtualFileSystem: Failed to mount ‘/usr/local/driveworks-4.0/data/[.pak]’
[21-04-2023 10:58:47] SDK: No resources(.pak) mounted, some modules will not function properly
[21-04-2023 10:58:47] TimeSource: monotonic epoch time offset is 1682053790223472
[21-04-2023 10:58:47] Initialize DriveWorks SDK v4.0.0
[21-04-2023 10:58:47] Release build with GNU 7.4.0 from no-gitversion-build
[21-04-2023 10:58:47] Initialize DriveWorks VisualizationSDK v4.0.0
[21-04-2023 10:58:47] Initialize DriveWorksGL SDK v4.0.0
[21-04-2023 10:58:47] GL-SDK: initialize OpenGL
[21-04-2023 10:58:48] SensorFactory::createSensor() → camera.virtual, video=/usr/local/driveworks-4.0/data/samples/sfm/triangulation/video_0.h264
[21-04-2023 10:58:48] CameraVirtual: defaulting to non SIPL
[21-04-2023 10:58:48] CameraBase: pool size set to 8
[21-04-2023 10:58:48] CameraNVCUVID: no seek table found at /usr/local/driveworks-4.0/data/samples/sfm/triangulation/video_0.h264.seek, seeking is not available.
Camera image with 1280x800 at 30.000000 FPS
[21-04-2023 10:58:48] Context: create, error returned by cudaGLGetDevices. GL interop will be disabled.
[21-04-2023 10:58:48] Driveworks exception thrown: . Line: src/dw/cuda/CudaEventQueue.hpp:105. Error cudaErrorUnknown: unknown error

terminate called after throwing an instance of ‘std::runtime_error’
what(): [2023-04-21 10:58:48] DW Error DW_CUDA_ERROR executing DW function:
dwImageStreamerGL_initialize(&m_image2GL, &from, DW_IMAGE_GL, m_context)
at samples/sensors/camera/camera_replay/main.cpp:141
Aborted (core dumped)

Dear @alksainath.medam,
It seems you have Ampere based GPU. Please check “Hardware prerequisites” at DriveWorks SDK Reference: Getting Started

adascoe@adascoe-Nuvo-7000-Series:~$ nvidia-smi
Fri Apr 21 15:47:24 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.182.03   Driver Version: 470.182.03   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Tesla T4            Off  | 00000000:01:00.0 Off |                  Off |
| N/A   55C    P8    11W /  70W |      0MiB / 16127MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

This is the GPU I am using and it is of Turing architecture I think.
Can, you please check @SivaRamaKrishnaNV.

Dear @alksainath.medam,
Yes it is turing based GPU. Are you running sample on remote session?

I am not running sample on remote session; I am directly running on Ubuntu host.

It seems CUDA isn’t 10.2 which is compatible with DRIVE OS 5.2.6.
Please make sure running samples on a host set up by sdkmanager with DRIVE OS 5.2.6.

1 Like

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