-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Which version can I use in cuda12.1 and cuDNN 8.9 #22198
Comments
Thank you for the help. I am using the onnxruntime-gpu to make online training, which means for the model I am training, all its input tokens are extracted by the onnxruntime-gpu loaded pretrain module. the feature extraction, and my target model traning are all on GPU cards. |
When we install pytorch, it will install all nvidia-cuda* nvidia-cudnn* nvidia-cublas* nvidia-nccl* ..... automaticly. Why the the install of this onnxruntime module can not check the at hand nvidia packages version and select to install a corresponding package? |
For CUDA and cuDNN version, you can look up here: Then you can install according to this: https://onnxruntime.ai/docs/install/#install-onnx-runtime-ort-1 Summary of recommended combinations:
Actually, onnxruntime-gpu can use the cuDNN DLLs that installed by nvidia-cudnn-cu1* package. You will need add its lib directory to LD_LIBRARY_PATH. Since you have installed CUDA 12.1 in your machine (Assume that cuda is installed in /usr/local/cuda/), here is an example that install the first option (cuda 12.x, cudnn 9.x, torch 2.4.1, onnxruntime-gpu 1.19.2) in a new conda environment:
|
This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details. |
Describe the issue
In my env the default CUDA==12.1 and cuDNN==8.9; When I install the torch, there is a relative nvidia-cudnn-cu12==8.9.26 installed for my env.
When I install the onnxruntime-gpu==1.19.2, create onnxruntime InferenceSession failed. it will report lost of libcudnn.so.9, which needs cuDNN >=9
When I install the onnxruntime-gpu==1.17.1 --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/
it will report to need something like initialization error, cuda_execution_provider.cc, file not found "libcublas.so.11" which seems along with cuda11.X.
So which version of the package can I install for use in my env?
To reproduce
as descriped above
Urgency
No response
Platform
Linux
OS Version
Ubuntu22.04
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.19.2 OR 1.17.1
ONNX Runtime API
Python
Architecture
X64
Execution Provider
CUDA
Execution Provider Library Version
CUDA12.1
The text was updated successfully, but these errors were encountered: