ami-iit / onnx-cpp-benchmark

Simple tool to profile onnx inference with C++ APIs.
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Missing dependencies #9

Open giotherobot opened 1 year ago

giotherobot commented 1 year ago

In the installation instruction we are missing the dependency on onnxruntime-cpp.

giotherobot commented 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
giotherobot commented 1 year ago

The missing dependencies are:

onnxruntime-cpp=*=*cuda
cudatoolkit
cudnn
traversaro commented 1 year ago

Should't cudatoolkit and cudnn being installed automatically if ones install onnxruntime-cpp=*=*cuda ?

giotherobot commented 1 year ago

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

traversaro commented 1 year ago

Interesting, indeed they are not installed. This is probably a bug, but anyhow we can add it in the readme.

giotherobot commented 1 year ago

Added in https://github.com/ami-iit/onnx-cpp-benchmark/pull/10