onnx_runtime_cpp icon indicating copy to clipboard operation
onnx_runtime_cpp copied to clipboard

/usr/bin/ld: ../src/libort_utility.so: undefined reference to `OrtSessionOptionsAppendExecutionProvider_CUDA'

Open DongSunPlus opened this issue 3 years ago • 3 comments

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

DongSunPlus avatar Aug 12 '22 05:08 DongSunPlus

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

xmba15 avatar Aug 12 '22 08:08 xmba15

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.

xmba15 avatar Aug 12 '22 08:08 xmba15

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 avatar Aug 12 '22 10:08 DongSunPlus

@DongSunPlus I am closing the issue now. Feel free to open again if you still have any troubles.

xmba15 avatar Aug 13 '22 14:08 xmba15