Skip to content

Instantly share code, notes, and snippets.

@boardthatpowder
Forked from jetsonhacks/installCUDA65.sh
Last active August 29, 2015 14:12
Show Gist options
  • Save boardthatpowder/b7be627dd0617c74fd53 to your computer and use it in GitHub Desktop.
Save boardthatpowder/b7be627dd0617c74fd53 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Fresh install for CUDA 6.0 on Jetson TK1 for Grinch (L4T) 19.3.*
# CUDA 6.0 REQUIRES L4T/Grinch 19.3.* !!!
sudo apt-mark hold xserver-xorg-core
sudo apt-add-repository universe
sudo apt-get update
#wget http://developer.download.nvidia.com/compute/cuda/6_0/rel/installers/cuda-repo-l4t-r19.2_6.0-42_armhf.deb
# Install the CUDA repo metadata that you downloaded
sudo dpkg -i cuda-repo-l4t-r19.2_6.0-42_armhf.deb
# Download & install the actual CUDA Toolkit including the OpenGL toolkit from NVIDIA.
sudo apt-get update
sudo apt-get install cuda-toolkit-6-0 -y
# Add yourself to the "video" group to allow access to the GPU
sudo usermod -a -G video $USER
# Add the 32-bit CUDA paths to your .bashrc login script, and start using it in your current console:
echo "# Add CUDA bin & library paths:" >> ~/.bashrc
echo "export PATH=/usr/local/cuda/bin:$PATH" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=/usr/local/cuda/lib:$LD_LIBRARY_PATH" >> ~/.bashrc
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment