Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
DongSunPlus opened this issue Aug 12, 2022 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@DongSunPlus
Copy link

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

@xmba15
Copy link
Owner

xmba15 commented Aug 12, 2022

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
Copy link
Owner

xmba15 commented Aug 12, 2022

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 xmba15 self-assigned this Aug 12, 2022
@xmba15 xmba15 added the question Further information is requested label Aug 12, 2022
@DongSunPlus
Copy link
Author

DongSunPlus commented Aug 12, 2022 via email

@xmba15
Copy link
Owner

xmba15 commented Aug 13, 2022

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

@xmba15 xmba15 closed this as completed Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants