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

Couldn't find Cuda Dll #271

Closed
bigfordy1983 opened this issue Sep 13, 2024 · 6 comments
Closed

Couldn't find Cuda Dll #271

bigfordy1983 opened this issue Sep 13, 2024 · 6 comments

Comments

@bigfordy1983
Copy link

Which OS are you using?

  • OS: Windows 11 , Python 3.11.9

Cmd Log is thus:

Use "faster-whisper" implementation
Device "cuda" is detected
Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch().
Could not locate cudnn_ops_infer64_8.dll. Please make sure it is in your library path!
"launching the app"

Suspect it isn't detecting CUDA. It is installed.

@bigfordy1983 bigfordy1983 added the bug Something isn't working label Sep 13, 2024
@jhj0517
Copy link
Owner

jhj0517 commented Sep 14, 2024

Hi. Same with #253, I think it's a cuDNN & CUDA & torch version Incompatibility problem.

Can you check CUDA version that you're using?

nvcc --version

The recommended solution is Perfview's solution, which is to manually put the dll files corresponding to your CUDA version into the system32 folder. ( cuBLAS.and.cuDNN_CUDA12_win_v1.7z file if you're using CUDA 12.x )

@paolodalprato
Copy link

Same isssue here, Perfview's solution fixed well

@mark-wd
Copy link

mark-wd commented Oct 1, 2024

Same issue. Also fixed with Perfview's solution.

@Tom-Neverwinter
Copy link

Tom-Neverwinter commented Oct 2, 2024

current version doesn't even have: cudnn_ops_infer64_8.dll
have to add as an extra.

cudnn_9.4.0_windows.exe

temp installs to:
C:\Users\user\AppData\Local\Temp\cudnn

cudnn for 11,8/12.6: cudnn_ops64_9.dll

[dropping in the stated files directly into system32 does resolve the issue though]

@jhj0517
Copy link
Owner

jhj0517 commented Oct 4, 2024

Investigated issue.

Since this was about version incompatibility between faster-whisper (CTranslate2) and torch >= 2.4.0
I downgraded torch in #318. ( Related issues are listed in the PR )
This is a temporary fix until CTranslate2 supports cuDNN 9 builds.

The bug was not reproducible with torch==2.3.1,
please let me know if anyone still encounters it.

@jhj0517
Copy link
Owner

jhj0517 commented Oct 28, 2024

Closing with #345,
Feel free to re-open if you face same issue.

@jhj0517 jhj0517 closed this as completed Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants