Hi @SivaRamaKrishnaNV,
So I was able to setup DRIVEOS 6.0.10 with Docker and get it up and running. DriveWorks also works. I tested the sample helloworld application of DriveWorks and the sample_camera_usb. Both worked fine, including with cross-compilation.
I guess using Docker is the easiest way to get everything up and running but the nvidia-driver installation was the most cumbersome part. I found that installing the driver through the Software & Updates
application on Ubuntu 20 to be the only thing that worked. Hence the installation of driver-535.
This is my current output of nvidia-smi
:
daf@daf-rcp:~$ nvidia-smi
Thu Aug 22 08:28:07 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.01 Driver Version: 535.183.01 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| 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 NVIDIA GeForce RTX 4080 ... Off | 00000000:01:00.0 Off | N/A |
| N/A 34C P0 N/A / 150W | 15MiB / 12282MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1218 G /usr/lib/xorg/Xorg 4MiB |
| 0 N/A N/A 1989 G /usr/lib/xorg/Xorg 4MiB |
+---------------------------------------------------------------------------------------+
This is what I get when I run the DriveWorks “Hello World” sample:
nvidia@tegra-ubuntu:~$ /usr/local/driveworks/bin/sample_hello_world
*************************************************
Welcome to Driveworks SDK
[22-08-2024 13:01:40] Platform: Detected Drive Orin P3710
[22-08-2024 13:01:40] Adding variable DW_Base:DW_Version
[22-08-2024 13:01:40] Added variable DW_Base:DW_Version
[22-08-2024 13:01:40] Platform: number of GPU devices detected 1
[22-08-2024 13:01:40] Platform: currently selected GPU device 0, Resource Data Dir: trt_08_06_12_04, Arch: ga10b
[22-08-2024 13:01:40] Platform: currently selected GPU device integrated ID 0
[22-08-2024 13:01:40] CUDLAEngine:getDLACount: CUDLA version is = 1004000
[22-08-2024 13:01:40] CUDLAEngine:getDLACount: Number of DLA devices = 2
[22-08-2024 13:01:40] Context::mountResourceCandidateDataPath resource FAILED to mount from './resources': VirtualFileSystem: Failed to mount './resources/resources.pak'
[22-08-2024 13:01:40] Context::mountResourceCandidateDataPath resource FAILED to mount from '/home/nvidia/data': VirtualFileSystem: Failed to mount '/home/nvidia/data/resources.pak'
[22-08-2024 13:01:40] Context::findDataRootInPathWalk data/DATA_ROOT found at: /usr/local/driveworks/data
[22-08-2024 13:01:40] Context::mountResourceCandidateDataPath resource FAILED to mount from '/usr/local/driveworks/data': VirtualFileSystem: Failed to mount '/usr/local/driveworks/data/resources.pak'
[22-08-2024 13:01:40] Context::findDataRootInPathWalk data/DATA_ROOT found at: /usr/local/driveworks-5.20/data
[22-08-2024 13:01:40] Context::mountResourceCandidateDataPath resource FAILED to mount from '/usr/local/driveworks-5.20/data': VirtualFileSystem: Failed to mount '/usr/local/driveworks-5.20/data/resources.pak'
[22-08-2024 13:01:40] Context::findResourcesPackageInPathWalk: Could not find ./resources/resources.pak in upto 7 parent directories from /usr/local/driveworks/lib/libdw_base.so.5.20
[22-08-2024 13:01:40] Context::findResourcesPackageInPathWalk: Could not find ./resources/resources.pak in upto 7 parent directories from /usr/local/driveworks-5.20/targets/aarch64-Linux/lib/libdw_base.so.5.20
[22-08-2024 13:01:40] SDK: No resources(.pak) mounted, some modules will not function properly
[22-08-2024 13:01:40] [22-08-2024 13:01:40] Initialize DriveWorks SDK v5.20.24
[22-08-2024 13:01:40] [22-08-2024 13:01:40] Release build with GNU 9.3.0 from buildbrain-branch-0-gb4c0b405b15 against Drive PDK v6.0.10.0
Context of Driveworks SDK successfully initialized.
Version: 5.20.24
GPU devices detected: 1
[22-08-2024 13:01:40] Platform: currently selected GPU device 0, Resource Data Dir: trt_08_06_12_04, Arch: ga10b
[22-08-2024 13:01:40] Platform: currently selected GPU device integrated ID 0
----------------------------------------------
CUDA Driver Version / Runtime Version : 12.1 / 11.4
CUDA Capability Major/Minor version number: 8.7
Memory Bus Width bits: 256
L2 Cache Size: 4194304
Maximum 1D Texture Dimension Size (x): 131072
Maximum 2D Texture Dimension Size (x,y): 131072, 65536
Maximum 3D Texture Dimension Size (x,y,z): 16384, 16384, 16384
Total amount of constant memory bytes: 65536
Total amount of shared memory per block bytes: 49152
Total number of registers available per block: 65536
Warp size: 32
Maximum number of threads per multiprocessor: 1536
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): 1024,1024,64
Max dimension size of a grid size (x,y,z): 2147483647,65535,65535
Maximum memory pitch bytes: 2147483647
Texture alignment bytes: 512
Concurrent copy and kernel execution: Yes, copy engines num: 16
Run time limit on kernels: No
Integrated GPU sharing Host Memory: Yes
Support host page-locked memory mapping: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Device PCI Domain ID: 0, Device PCI Bus ID: 0, Device PCI location ID: 0
Compute Mode: Default (multiple host threads can use ::cudaSetDevice() with device simultaneously)
Concurrent kernels: 1
[22-08-2024 13:01:40] [22-08-2024 13:01:40] Releasing Driveworks SDK Context
Happy autonomous driving!
I will try to integrate some sensors to see if it works. Thanks for your support.