Skip to content

Instantly share code, notes, and snippets.

@jetsonhacks
Last active April 1, 2020 18:51
Show Gist options
  • Save jetsonhacks/6da905e0675dcb5cba6f to your computer and use it in GitHub Desktop.
Save jetsonhacks/6da905e0675dcb5cba6f to your computer and use it in GitHub Desktop.

Revisions

  1. jetsonhacks revised this gist Jun 23, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions installCUDA65.sh
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,13 @@
    #!/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-mark hold xserver-xorg-core
    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
  2. jetsonhacks revised this gist Nov 19, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions installCUDA65.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    #!/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-mark hold xserver-xorg-core
    sudo apt-add-repository universe
    sudo apt-get update
  3. jetsonhacks revised this gist Nov 19, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installCUDA65.sh
    Original file line number Diff line number Diff line change
    @@ -24,5 +24,5 @@ source ~/.bashrc
    # Build Samples (optional)
    # cd /usr/local/cuda-6.5/bin
    # ./cuda-install-samples-6.5.sh ~/
    # Switch to ~/NVIDIA CUDA directory
    # Switch to CUDA directory in ~/
    # make
  4. jetsonhacks revised this gist Nov 19, 2014. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions installCUDA65.sh
    Original file line number Diff line number Diff line change
    @@ -21,8 +21,8 @@ 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
    cd /usr/local/cuda-6.5/bin
    ./cuda-install-samples-6.5.sh ~/

    cd ~/
    # Build Samples (optional)
    # cd /usr/local/cuda-6.5/bin
    # ./cuda-install-samples-6.5.sh ~/
    # Switch to ~/NVIDIA CUDA directory
    # make
  5. jetsonhacks created this gist Nov 18, 2014.
    28 changes: 28 additions & 0 deletions installCUDA65.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    #!/bin/sh
    # Fresh install for CUDA 6.5 on Jetson TK1 for Linux for Tegra (L4T) 21.1
    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_5/rel/installers/cuda-repo-l4t-r21.1-6-5-prod_6.5-14_armhf.deb

    # Install the CUDA repo metadata that you downloaded
    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
    cd /usr/local/cuda-6.5/bin
    ./cuda-install-samples-6.5.sh ~/

    cd ~/