CUDA compatible issue in NVIDIA GPU

Dear all,
I’m getting below error while doing cross compilation in Nvidia neousys, can anyone help me to resolve 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:63: src/dwchannel/CMakeFiles/sample_cgf_dwchannel.dir/CustomRawBuffer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3368: src/dwchannel/CMakeFiles/sample_cgf_dwchannel.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Attached image file below:

Dear @sudhirkumar.avv,
May I know the used DRIVE OS version?

@SivaRamaKrishnaNV please find the below details of my GPU

Drive OS version : Ubuntu 20.04.6 LTS
Driver Version: 555.42.02
CUDA Version: 12.5

Dear @sudhirkumar.avv,
Are you compiling the DW samples on host or on docker?

I am not asking about Ubuntu version. It should be DRIVE OS 6.0.6/6.0.8.1 based on the release you are using?

If CUDA 12.x is installed on host, please remove it as DRIVE OS 6.x works with CUDA 11.4 that gets installed using sdkmanager.

If possible, can you check using DRIVE OS 6.0.8.1 docker to compile DW to avoid host system state related issues. Please see Install DRIVE OS 6.0.8.1 for NVIDIA Developer Users | NVIDIA Docs

@SivaRamaKrishnaNV Thank you for the information, my DRIVE OS version is 6.0.6 and CUDA cross compile for linux in SDK manager was 11.4

  1. But when i run ‘nvidia-smi’ command i’m getting below details
    | NVIDIA-SMI 555.42.02 Driver Version: 555.42.02 CUDA Version: 12.5

  2. when i’m doing Samples Cross-Compilation From Source, after entering below 2 commands we are getting error mentioned in image
    % cd $DRIVEWORKS_WORKSPACE/build-aarch64-linux-gnu
    % make

Your issue seems similar to the one discussed in Error while building DRIVE OS 6.0.6 driveworks samples.
For cross-compiling samples, please refer to Samples Cross-Compilation From Source. Using the Docker container as described can help avoid environment issues.

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