Please provide the following info (tick the boxes after creating this topic): Software Version
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other
Target Operating System
Linux
QNX
other
Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other
SDK Manager Version
1.9.2.10884
other
Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other
While running “make” to build DRIVE OS 6.0.6 driveworks samples I got this error:
/usr/local/driveworks/samples/src/dwchannel/CustomRawBuffer.cpp: In member function ‘virtual void CustomRawBufferNvSciPacket::initializeFromNvSciBufObjs(dw::core::span<NvSciBufObjRefRec*>)’:
/usr/local/driveworks/samples/src/dwchannel/CustomRawBuffer.cpp:242:62: error: ‘cudaExternalMemoryHandleTypeNvSciBuf’ was not declared in this scope; did you mean ‘cudaExternalMemoryHandleTypeOpaqueFd’?
242 | cudaMemHandleDesc.type = cudaExternalMemoryHandleTypeNvSciBuf;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| cudaExternalMemoryHandleTypeOpaqueFd
/usr/local/driveworks/samples/src/dwchannel/CustomRawBuffer.cpp:243:38: error: ‘union cudaExternalMemoryHandleDesc::’ has no member named ‘nvSciBufObject’
243 | cudaMemHandleDesc.handle.nvSciBufObject = m_bufferPtrBufObj;
| ^~~~~~~~~~~~~~
make[2]: *** [src/dwchannel/CMakeFiles/sample_cgf_dwchannel.dir/build.make:76: src/dwchannel/CMakeFiles/sample_cgf_dwchannel.dir/CustomRawBuffer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3102: src/dwchannel/CMakeFiles/sample_cgf_dwchannel.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
(Note: Previously, I got:
– **** Samples will be installed to `/home/lidwave/src/dw_ws/build-x86/install/usr/local/driveworks/samples/bin’ on the host filesystem. ****
CMake Error at cmake/FindCUDART.cmake:100 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:99 (find_package)
– Found CUDART: /usr/include (found version “11.4.327”)
CMake Error at cmake/FindcuBLAS.cmake:100 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:100 (find_package)
When running ‘cmake -B $DRIVEWORKS_WORKSPACE/build-x86 -S /usr/local/driveworks/samples’ but resolved it by eclosing the parameters of the REPLACE command by double quotes).
I don’t have success with running samples in the Docker:
________:~$ xhost +local:docker
non-network local connections being added to access control list
________:~$ sudo docker run -it --privileged --net=host -v /dev/bus/usb:/dev/bus/usb -v ${WORKSPACE}:/home/nvidia/ nvcr.io/drive/driveos-sdk/drive-agx-orin-linux-aarch64-sdk-build-x86:latest
[sudo] password for ________:
root@6.0.6.0-0004-build-linux-sdk:/drive# /usr/local/driveworks/bin/sample_hello_world
Welcome to Driveworks SDK
[02-04-2023 17:39:01] Platform: Detected Generic x86 Platform
[02-04-2023 17:39:01] TimeSource: monotonic epoch time offset is 1680454360812418
[02-04-2023 17:39:01] Adding variable DW_Base:DW_Version
[02-04-2023 17:39:01] Added variable DW_Base:DW_Version
[02-04-2023 17:39:01] Driveworks exception thrown: Platform: cannot acquire CUDA context. Error cudaErrorSystemDriverMismatch: system has unsupported display driver / cuda driver combination
Dear @moshe9,
As I understand, you can compile the sample on docker and notice issues host. If so, as asked could you please share the complete compilation logs.
Meanwhile, could you continue using docker for compilation and copy binary to target/host for testing?