-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Cannot find cudnn libs/headers #260
Comments
Thanks for reporting this and including so much detail, its super helpful ❤️ CUDA on Windows has been continually confusing. Will get in fixes to these this week |
@Andreybest The changes merged into |
Hey @coreylowman! Thank you very much for fixing this! I will try to check if it work without my fixes ASAP and let you know. :) |
Hello!
I was trying to run stable diffusion with candle, but I stuck with 3 issues:
Issue 1
LINK : fatal error LNK1181: cannot open input file 'cudnn.lib'
I've fixed it by adding
println!("cargo:rustc-link-search=native=C:\\Program Files\\NVIDIA\\CUDNN\\v9.2\\lib\\12.5\\x64");
to my build.rs. I think it's issue on my side, but feel that my fix is not proper one (PATH points to this folder)Issue 2
I've set
CUDNN_LIB
env toC:\Program Files\NVIDIA\CUDNN\v9.2
, but the problem is that the header file is in \include*12.5*\ not directly in \include. So I've created include folder in C:\Program Files\NVIDIA\CUDNN\v9.2\include\12.5, and copy-pasted .h files that and after that it stopped failing.Issue 3
After examining CUDNN folders (and learning about dynamic linking/loading), I found out that it was looking for .dll files that does not exist there.
After copy-pasting
cudnn64_9.dll
and renaming it tocudnn64_12.dll
- it worked.File tree
file /f
command runed inC:\Program Files\NVIDIA\CUDNN\v9.2
I've installed CUDNN 9.2.0 as installer, and left all defaults in place, maybe something changed in last CUDNN?
The text was updated successfully, but these errors were encountered: