-
Notifications
You must be signed in to change notification settings - Fork 295
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
Install from source, wrong path to libonnxruntime_providers_cuda.so
#392
Comments
Could you post the complete logs? |
libonnxruntime_providers_cuda.so
libonnxruntime_providers_cuda.so
ok, it's with latest version:
compiling with:
And the complete log is :
|
there is the difference:
(there's no vs.
|
Thanks for posting the detailed logs. Could you show the output of the following command?
|
I am processing some data with CPU-rebuilt sherpa-onnx in that conda env., i'll send the output on monday. |
Hello,
|
I see the problem
The expected value should be
I need to check why it does not contain the expected value. |
Hi, I found a workaround for the issue. The idea is to pre-download the onnxruntime, and pass the folder with library via:
Then the
(Now, Interesting observation is that The installation is done by |
It should be fixed by #453 , which is just merged.
Great! Thanks! |
By the way, I cannot reproduce your issue in my environment. |
Hi,
I am installing sherpa-onnx from src with
SHERPA_ONNX_CMAKE_ARGS="-DBUILD_SHARED_LIBS=ON -DSHERPA_ONNX_ENABLE_GPU=ON"
The build commands are:
or
(both ways lead to same error)
After installing
sherpa-onnx
to CONDA_ENV, i get the following error:ImportError: ../../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: cannot open shared object file: No such file or directory
The library gets correctly recognized by cmake as a full-path:
-- location_onnxruntime_cuda_lib: /mnt/matylda5/iveselyk/CNECT_TENDER/SHERPA_ONNX/src/sherpa-onnx/build/temp.linux-x86_64-cpython-39/_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so
It gets also correctly copied / installed to
site-packages/sherpa_onnx/lib
in conda env:-rw-r--r-- 1 iveselyk fit 374458848 Oct 26 14:29 /mnt/matylda5/iveselyk/CNECT_TENDER/SHERPA_ONNX/CONDA_ENVIRONMENT/lib/python3.9/site-packages/sherpa_onnx/lib/libonnxruntime_providers_cuda.so
It is only the library
${CONDA_ENVIRONMENT}/lib/python3.9/site-packages/_sherpa_onnx.cpython-39-x86_64-linux-gnu.so
,that has the path recorded with the wrong location:
I'd expect the left side of
ldd
should be without the path,but i don't know how to make this happen with cmake.
How does it look in your local src install ?
Best regards,
Karel
The text was updated successfully, but these errors were encountered: