Skip to content
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

Could not locate cudnn_ops64_9.dll. Please make sure it is in your library path! #1230

Open
ansangweon opened this issue Jan 27, 2025 · 4 comments

Comments

@ansangweon
Copy link

hello guys
my graphic card is rtx3080.
cuda ver 12.8
cudnn ver 9.70
python 3.12.8
torch 2.5.0

#1080 ←i have read this post and tried changing settings but nothing worked for me

any idea?

@umitgunduz
Copy link

Have a look here. #1182

@ansangweon
Copy link
Author

Have a look here. #1182

thanks for the answer but im running this locally

@rixls
Copy link

rixls commented Feb 1, 2025

Using NVIDIA's Windows cuDNN installer, the PATH entry looks like C:\Program Files\NVIDIA\CUDNN\v9.7\bin, but the libraries are in CUDA-version-specific subdirectories, i.e. C:\Program Files\NVIDIA\CUDNN\v9.7\bin\12.8\cudnn_ops64_9.dll. PATH lookups are not recursive, so any software expecting the DLL at the top level will fail.

You can add C:\Program Files\NVIDIA\CUDNN\v9.7\bin\12.8 to the PATH then restart the shell as a workaround.

@mrexodia
Copy link

mrexodia commented Feb 1, 2025

Python ignores the Windows PATH completely since 3.8 (iirc). To get things to work I added the following to my main python file:

import os

os.add_dll_directory("c:\\Program Files\\NVIDIA\\CUDNN\\v9.7\\bin\\12.8")

Most likely faster-whisper (or a downstream dependency) is missing logic to detect the CUDA path, but this workaround should be fine until that's fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants