-
-
Save jadarve/1d97b59aa71a021eee2cb4548e8bcc26 to your computer and use it in GitHub Desktop.
Fresh install CUDA 6.5 on NVIDIA Jetson TK1 Development Kit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Fresh install for CUDA 6.5 on Jetson TK1 for Linux for Tegra (L4T) 21.1 | |
# CUDA 6.5 REQUIRES L4T 21.1 !!! | |
sudo apt-add-repository universe | |
sudo apt-get update | |
# This is for L4T r21.1 ; Update for your L4T i.e. r21.3 | |
wget http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda-repo-l4t-r21.1-6-5-prod_6.5-14_armhf.deb | |
# Install the CUDA repo metadata that you downloaded | |
# This is for L4T 21.1 ; Update for your L4T i.e. 21.3 | |
sudo dpkg -i cuda-repo-l4t-r21.1-6-5-prod_6.5-14_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-5 -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-6.5/bin:$PATH" >> ~/.bashrc | |
echo "export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib:$LD_LIBRARY_PATH" >> ~/.bashrc | |
source ~/.bashrc | |
# Build Samples (optional) | |
# cd /usr/local/cuda-6.5/bin | |
# ./cuda-install-samples-6.5.sh ~/ | |
# Switch to CUDA directory in ~/ | |
# make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment