tensorflow: Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found

Question:

So im trying to do some machine learning, and i want to make use of my gpu.
Im on tensorflow version 2.6.0(i also tried tensorflow-gpu).I installed CUDA 11.2 and cuDNN 8.1. Added everything to PATH like it says here https://www.tensorflow.org/install/gpu. However i still get the error that it cant find the cudart64_110.dll. The file even is in the ‘NVIDIA GPU Computing ToolkitCUDAv11.2bin’ directory. Anyone got an idea?

Asked By: Felix Zornow

||

Answers:

I got the same error today. In previous version of tf, I need to install a Nvidia toolkit to get the file.

Here is the right toolkit for the cudart64_110.dll file: https://developer.nvidia.com/cuda-11.3.0-download-archive

Then just follow the installation guide. If you need more help or it doesnt work, just write it.

Answered By: The Reider

This error is most likely due to having an outdated Microsoft Visual C++ Redistributable for Visual Studio if you are using a Windows.
go ahead to https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 and install an updated version of Microsoft Visual C++ Redistributable that fits your system.

Answered By: aslan
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.