onnx_runtime_cpp
onnx_runtime_cpp copied to clipboard
/usr/bin/ld: ../src/libort_utility.so: undefined reference to `OrtSessionOptionsAppendExecutionProvider_CUDA'
when I run make gpu_apps command, got some error:
[ 20%] Linking CXX executable TestImageClassification
/usr/bin/ld: ../src/libort_utility.so: undefined reference to `OrtSessionOptionsAppendExecutionProvider_CUDA'
collect2: error: ld returned 1 exit status
make[5]: *** [examples/CMakeFiles/TestImageClassification.dir/build.make:152:examples/TestImageClassification] error 1
I have cuda11.5 in my ubuntu20.04
I have just tested again with my PC (cuda 11.4 and ubuntu 20.04) and it still worked.
Can you try building onnxruntime again with this script? https://github.com/xmba15/onnx_runtime_cpp/blob/master/scripts/install_onnx_runtime.bash
I also prepared this dockerfile https://github.com/xmba15/onnx_runtime_cpp/blob/master/dockerfiles/ubuntu2004_gpu.dockerfile
try to change the version of cuda in the dockerfile and you can use docker to test too.
Ba Tran @.***>于2022年8月12日 周五16:52写道:
I also prepared this dockerfile
https://github.com/xmba15/onnx_runtime_cpp/blob/master/dockerfiles/ubuntu2004_gpu.dockerfile
try to change the version of cuda in the dockerfile and you can use docker to test too.
— Reply to this email directly, view it on GitHub https://github.com/xmba15/onnx_runtime_cpp/issues/21#issuecomment-1212882078, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2AE3E2GKHMHHX5W7SRKWRDVYYGDFANCNFSM56KP5JMQ . You are receiving this because you authored the thread.Message ID: @.***>
copy,I will do it
@DongSunPlus I am closing the issue now. Feel free to open again if you still have any troubles.