undefined reference to `OrtSessionOptionsAppendExecutionProvider_CUDA' #23288
Answered
by
UnlimitedR
UnlimitedR
asked this question in
API Q&A
-
I'm reading others' codes. I downloaded the gpu version release (onnxruntime-linux-x64-gpu-1.20.1.tgz) and want to use /usr/bin/ld: CMakeFiles/test.dir/2.cpp.o: in function `main':
2.cpp:(.text+0xdf): undefined reference to `OrtSessionOptionsAppendExecutionProvider_CUDA'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/test.dir/build.make:101: test] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/test.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2 I checked the source codes and it says
I have no idea how to fix it |
Beta Was this translation helpful? Give feedback.
Answered by
UnlimitedR
May 5, 2025
Replies: 2 comments 2 replies
-
should I build the project from source? I have some issues building it from source on my machine so I don't want to do it #23271 |
Beta Was this translation helpful? Give feedback.
0 replies
-
any luck with this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe this is outdated and now I use
session_options.AppendExecutionProvider_CUDA(cuda_options);
in whichsession_options
is aOrt::SessionOptions
type variable andcuda_options
is typeOrtCUDAProviderOptions