How to downgrade CUDA on Linux | Change CUDA versions for Torch/Tensorflow

Channel:
Subscribers:
278,000
Published on ● Video Link: https://www.youtube.com/watch?v=5eJTzhGe2QE



Category:
Guide
Duration: 6:45
21,743 views
173


Trying to use Tensorflow, Torch or another program on Linux but can't because of CUDA version mismatch errors or wrong CUDA versions? Well, this video shows you how to uninstall and reinstall an older version of CUDA properly on Linux/Ubuntu, including CuDNN as well. By the end, you should be able to use AI and other software as intended on the correct CUDA versions. I have no idea if these commands work for Docker.

# 1. Removing existing CUDA
sudo apt --purge remove "cublas*" "cuda*"
sudo apt --purge remove "nvidia*"
rm -rf /usr/local/cuda*
sudo apt-get autoremove && sudo apt-get autoclean

# Now you need to reboot
# reboot

# 2. Downloading specific CUDA version
# Install build essentials
sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev

# Get and install Nvidia CUDA
# reboot

# 3. Set environment variables
echo 'export PATH=/usr/local/cuda-11.3/bin:$PATH' (( 2 greater than characters )) ~/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-11.3/lib64:$LD_LIBRARY_PATH' (( 2 greater than characters )) ~/.bashrc

# REMEMBER TO REPLACE "(( 2 greater than characters ))" ABOVE!
# YouTube does not allow the use of these symbols.

# 4. Install CuDNN
# Download CuDNN - https://developer.nvidia.com/rdp/cudnn-archive
tar -xzvf ((archive))

sudo cp -P cuda/include/cudnn.h /usr/local/cuda-11.3/include
sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-11.3/lib64/
sudo chmod a+r /usr/local/cuda-11.3/lib64/libcudnn*

Timestamps:
0:00 - Explanation
0:13 - Why?
0:23 - Steps in this video
0:46 - Delete existing CUDA install
1:18 - Install Build Essentials
1:32 - Installing older CUDA version
3:27 - Set environment variables
4:30 - Install CuDNN
6:08 - Check the Nvidia CUDA version

#CUDA #Ubuntu #Guide
-----------------------------
💸 Found this useful? Help me make more! Support me by becoming a member: https://youtube.com/channel/UCkih2oVTbXPEpVwE-U7kmHw/join
-----------------------------
💸 Direct donations via Ko-Fi: https://ko-fi.com/TCNOco
💬 Discuss video & Suggest (Discord): https://s.tcno.co/Discord
👉 Game guides & Simple tips: https://YouTube.com/TroubleChuteBasics
🌐 Website: https://tcno.co
📧 Need voice overs done? Business query? Contact my business email: TroubleChute (at) tcno.co

Everything in this video is my personal opinion and experience, and should not be considered professional advice. Always do your own research and make sure what you're doing is safe.




Other Videos By TroubleChute


2022-06-26Fix: Can't find quest games | Summer Sale 2022 Guide
2022-06-26FULL Spotify Listen History Guide | Check song history from LONG ago
2022-06-25Mass activate free Steam Games | SteamDB Free Packages tool
2022-06-24BEST Optimization Guide | MAX FPS | Ark: Survival Evolved
2022-06-23BEST DEALS | New Games, Lowest Price Guide | Steam Summer Sale 2022
2022-06-23ALL ANSWERS | Complete Guide | Clorthax's Quest | Steam Summer Sale 2022
2022-06-23GET ALL QUEST BADGE LEVELS AUTOMATICALLY | FAST SCRIPT | Steam Summer Sale 2022
2022-06-23All Badges Guide | FREE XP & More | Steam Summer Sale 2022
2022-06-21DeepSpeed Fix "Error building extension" | 2023 DeepSpeed Install Guide
2022-06-20Remove all Demos from Steam Account | Fast Automatic Guide 2023
2022-06-20How to downgrade CUDA on Linux | Change CUDA versions for Torch/Tensorflow
2022-06-19Fix Failed to Fetch | Change Ubuntu Download/Apt-Get Server
2022-06-15Max-level Steam Next Fest 2022 Badge Guide | Fast method
2022-06-14Fix WSL on Windows - System cannot find the file specified | Guide
2022-06-13Fix apt-get update "Temporary failure resolving" Error | Easy guide
2022-06-13Set up a 1.19+ Paper Minecraft server | High Performance | 1.19+
2022-06-12Get ARK FREE on Steam + NEW DLC | 2022 Steam Guide
2022-06-12OFFICIAL Convert World between Bedrock & Java Minecraft | Chunker.app Complete Guide
2022-06-11Find Area of Shape in Adobe Illustrator | Script Guide
2022-06-08Sodium, Lithium, Phosphor, Iris | MAX performance + Shaders | Minecraft 1.19
2022-06-08Set up a 1.19+ Forge Minecraft server | High Performance | 1.19+



Tags:
install tensorflow gpu
deep learning
machine learning python
linux change cuda version
cuda
linux
how to install the most recent version of cuda
cuda toolkit
how to install cuda in linux
how to install cuda in linux mint
linux gpu drivers
cudnn
how to install cuda
cuda installation
cuda grid dimensions
deep learning on linux
cuda installation failed
cuda matrix multiplication
install cuda 11.2
install cuda 11.3
change cuda version
downgrade cuda