Open giotherobot opened 1 year ago
Also for the onnxruntimecuda
backend we are missing the related cuda packages. Without them we get the following error:
(onnxcppbenchmark) giovannif@giovanni-xps159520:~/onnx-cpp-benchmark/build$ ./onnx-cpp-benchmark ergocubSN000_26j_49e.onnx --backend onnxruntimecuda
SessionOptionsAppendExecutionProvider_CUDA_V2 returned error /home/conda/feedstock_root/build_artifacts/onnxruntime_1690813799262/work/onnxruntime/core/session/provider_bridge_ort.cc:1131 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_cuda.so with error: libcudnn.so.8: cannot open shared object file: No such file or directory
The missing dependencies are:
onnxruntime-cpp=*=*cuda
cudatoolkit
cudnn
Should't cudatoolkit
and cudnn
being installed automatically if ones install onnxruntime-cpp=*=*cuda
?
That is possible but in my case I had the cuda version cached and so to install it I did not have to specify the cuda
build, doing so it did not install the dependencies, I can try again from scratch
Interesting, indeed they are not installed. This is probably a bug, but anyhow we can add it in the readme.
In the installation instruction we are missing the dependency on
onnxruntime-cpp
.