. Advertisement .
..3..
. Advertisement .
..4..
The error “Could not load dynamic library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found” is a common error that can show up in many ways. In this blog, we will go through some of the ways you can fix this issue.
How To Solve The Error “Could not load dynamic library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found”?
When installing Tensorflow and attempting to run your program, you may encounter the following error.
tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found
To resolve this issue, firstly, install CUDA. It’s available here. Then, in the PATH variable, add the CUDA path. Install cuDNN now. cuDNN v7.6.4 for CUDA 10.1 is available for download. To do so, you’ll need to join the NVIDIA Developer Program. Include the bin directory to your PATH and unzip it to an appropriate place. Install TensorFlow using the pip install tensorflow command. Then, simply restart your computer. Now, you have fixed your issue.
Option 1: Install tf-nightly-gpu
The Tensor Flow and CUDA commands must be used to install tf-nightly-gpu.
pip install tf-nightly-gpu
When the installation is complete, you will receive the following message: Successfully opened dynamic library cudart64_110.dll
Option 2: The Setup Procedure
1. Firstly, install CUDA. It’s available here.
2. Then, in the PATH variable, add the CUDA path. Install cuDNN now. cuDNN v7.6.4 for CUDA 10.1 is available for download.
3. To do so, you’ll need to join the NVIDIA Developer Program.
4. Include the bin directory to your PATH and unzip it to an appropriate place.
5. Install TensorFlow using the pip install tensorflow command.
6. Then, simply restart your computer.
7. Now, you have fixed your issue.
Option 3: For CUDA 10
Simply follow this workaround if you have CUDA 10 installed. Simply run this command to install tensorflow gpu, and your problem will be resolved.
pip install tensorflow-gpu==2.0.0
And the result will be
I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
Option 4: Download cudart64_101
Simply click here to get cudart64_101.dll. Copy the cudart64_101.dll file to the CUDA bin directory after extracting the zip file.
Conclusion
We hope you enjoyed our article about the error. With this knowledge, we know that you can fix your “Could not load dynamic library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found” error quickly by following these steps! If you still have any other questions about fixing this syntax error, please leave a comment below. Thank you for reading!
Leave a comment