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 load library cudnn_cnn_infer64_8.dll. Error code 126 #9

Open
rcapp2506 opened this issue Dec 12, 2021 · 3 comments
Open

Could not load library cudnn_cnn_infer64_8.dll. Error code 126 #9

rcapp2506 opened this issue Dec 12, 2021 · 3 comments

Comments

@rcapp2506
Copy link

I'm trying to run your code but always got the following error:
"2021-12-12 23:48:46.254332: I tensorflow/stream_executor/cuda/cuda_dnn.cc:359] Loaded cuDNN version 8301
Could not load library cudnn_cnn_infer64_8.dll. Error code 126
Please make sure cudnn_cnn_infer64_8.dll is in your library path!
"
from within cam_spy.py module.
I've tried many different versions of cudnn library (following some suggestions on the web) but always did not work.
Any idea?
Many thanks

@huckiyang
Copy link
Owner

@rcapp2506 hi, the error message is an indeed cuda issue not directly related to this setup.

Can you provide your hardware and drive setup? e.g., CUDA version, cudadnn version, tensorflow version and so. I can have a quick check (but not confident).

Noted the QML code is only tested in Linux environment.

@rcapp2506
Copy link
Author

rcapp2506 commented Dec 13, 2021 via email

@huckiyang
Copy link
Owner

huckiyang commented Dec 13, 2021

@rcapp2506 hi, it looks like your driver environment is a bit too new and not properly setup tensorflow-gpu.

I recommend you can use ‘conda’ to create a virtual environment with tensorflow-gpu. conda will help you match a correct cuda and cudnn driver.

you can find the conda 101 here
https://carpentries-incubator.github.io/introduction-to-conda-for-data-scientists/aio/index.html

After installation, you should check your tensorflow-gpu working by simple testing

https://intellipaat.com/community/33459/how-to-tell-if-tensorflow-is-using-gpu-acceleration-from-inside-python-shell

In our setup, a tensorflow-gpu=2.0 is used (see the conda setup in readme)

https://github.com/huckiyang/QuantumSpeech-QCNN/blob/main/README.md#1-environment

Cheers,

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

2 participants