Last active
March 3, 2016 03:39
-
-
Save hyer/478a3fff42092b8705c7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# install the CUDA repo metadata that you downloaded manually for L4T | |
sudo dpkg -i cuda-repo-l4t-r21.2-6-5-prod_6.5-34_armhf.deb | |
# Download & install the actual CUDA Toolkit including the OpenGL toolkit from NVIDIA. (It only downloads around 15MB) | |
sudo apt-get update | |
# Install "cuda-toolkit-6-0" if you downloaded CUDA 6.0, or "cuda-toolkit-6-5" if you downloaded CUDA 6.5, etc. | |
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 | |
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 | |
`nvcc -V` # run this command to check if you install the cuda correctly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment