fbpx

Could not load library cudnn_cnn_infer64_8.dll. error code 126

Could not load library cudnn_cnn_infer64_8.dll. error code 126

Table of Contents

If you are facing the issue with could not load library cudnn_cnn_infer64_8.dll. error code 126, then don’t worry.

You can fix it by following the steps given below.

First of all, you need to check if your system meets the minimum system requirements for installing the required software. To do this, go to the ‘System Properties’ window by right-clicking on ‘My Computer’ and selecting ‘Properties’.

Under the ‘System Properties’ window, go to the ‘Advanced’ tab and click on the ‘Environment Variables’ button.

In the ‘Environment Variables’ window, under the ‘System Variables’ section, scroll down and look for the ‘Path’ variable.

Select the ‘Path’ variable and click on the ‘Edit’ button.

In the ‘Edit System Variable’ window, under the ‘Variable value’ field, append the following path at the end: ;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\libnvvp;

Click on the ‘OK’ button to save the changes.

Now, you need to check if thePath variable is set correctly. To do this, open a command prompt window and type the following command: echo %PATH% If thePath variable is set correctly, the following output will appear:

C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Data Center Hub Component not found

If you see the output above, it means thePath variable is set correctly and you can proceed to the next step.

The next step is to install the required software. To do this, go to the following website and download the ‘NVIDIA CUDA Toolkit’: https://developer.nvidia.com/cuda-toolkit

Once the download is complete, run the installer and follow the on-screen instructions to install the software.

After the installation is complete, you need to check if the software is working correctly. To do this, go to the ‘Start’ menu and type ‘Device Manager’ in the search box.

In the ‘Device Manager’ window, expand the ‘Display adapters’ section and look for the ‘NVIDIA GeForce’ entry.

If you see theNVIDIA GeForce entry, it means that the software is installed correctly. Hope this article helps you with the error could not load library cudnn_cnn_infer64_8.dll. error code 126.

Conclusion

There are many ways to fix the could not load library cudnn_cnn_infer64_8.dll. error code 126. You can try any of the methods given above to fix the issue.

Related articles

LifeAfter20

lifestyle blogger

Hello friends, I am just an average guy that wants to share some life tips that I wish I knew when I was 20+. Also don’t forget to subscribe to our email newsletter :)

My personal favorites
Sponser