[Build] CUDA version linkage #23841
Labels
build
build issues; typically submitted using template
ep:CUDA
issues related to the CUDA execution provider
platform:jetson
issues related to the NVIDIA Jetson platform
stale
issues that have not been addressed in a while; categorized by a bot
Describe the issue
I'm have succesfully compiled ONNXRuntime 1.18.0 with CUDA from source for Nvidia Jetson Xavier without TensorRT (latest JetPack 5 version). As per instructions I installed the CUDA12 (development) libraries, updated GCC to v10.5. Compiling succeeds using the following instruction:
./build.sh --config Release --update --build --parallel --use_cuda --cuda_home /usr/local/cuda --cudnn_home /usr/lib/aarch64-linux-gnu --compile_no_warning_as_error
.However when running my application linked to the static binaries produced it throws the following exception:
libonnxruntime_providers_cuda.so with error: libcudart.so.11.0
This indicates that somehow it is still looking for CUDA 11 Runtime. How does this happen and how can I resolve this issue so it looks for CUDA 12 instead?
Urgency
Blocking issue for us since it prevents doing our tests
Target platform
aarch64
Build script
As shipped in repo. Instruction:
./build.sh --config Release --update --build --parallel --use_cuda --cuda_home /usr/local/cuda --cudnn_home /usr/lib/aarch64-linux-gnu --compile_no_warning_as_error
During configuration the following information is shown, indicating CUDA 12 is properly found:
Error / output
Running ONNXRuntime 1.18.0 which is linked / compiled with CUDA 12 the following runtime exception is thrown:
libonnxruntime_providers_cuda.so with error: libcudart.so.11.0
. This indicates that CUDA 11 is linked toVisual Studio Version
No response
GCC / Compiler Version
10.5
The text was updated successfully, but these errors were encountered: