Skip to content

Instantly share code, notes, and snippets.

@jonatw
Created June 28, 2012 17:16

Revisions

  1. jonatw revised this gist Jul 8, 2012. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions cuda_install_instruction.sh
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,6 @@ cd /usr/local/src/
    wget http://developer.download.nvidia.com/compute/cuda/4_2/rel/toolkit/cudatoolkit_4.2.9_linux_64_ubuntu11.04.run
    wget http://developer.download.nvidia.com/compute/cuda/4_2/rel/drivers/devdriver_4.2_linux_64_295.41.run
    wget http://developer.download.nvidia.com/compute/cuda/4_2/rel/sdk/gpucomputingsdk_4.2.9_linux.run
    wget http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/1.4.1p1/mpich2-1.4.1p1.tar.gz
    wget http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/1.4.1p1/hydra-1.4.1p1.tar.gz
    chmod 755 /usr/local/src/*.run
    cd /usr/local/src/
    ./cudatoolkit_4.2.9_linux_64_ubuntu11.04.run
  2. jonatw revised this gist Jul 8, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions cuda_install_instruction.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    sudo -i
    apt-get update
    apt-get -y install binutils gcc make linux-source linux-headers-$(uname -r) mpich2 nfs-server nfs-client
    cd /usr/local/src/
  3. jonatw revised this gist Jun 30, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions cuda_install_instruction.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    apt-get update
    apt-get -y install binutils gcc make linux-source linux-headers-$(uname -r) mpich2 nfs-server nfs-client
    cd /usr/local/src/
    wget http://developer.download.nvidia.com/compute/cuda/4_2/rel/toolkit/cudatoolkit_4.2.9_linux_64_ubuntu11.04.run
  4. jonatw revised this gist Jun 29, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion cuda_install_instruction.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    apt-get -y install binutils gcc make linux-source linux-headers-$(uname -r) mpich2
    apt-get -y install binutils gcc make linux-source linux-headers-$(uname -r) mpich2 nfs-server nfs-client
    cd /usr/local/src/
    wget http://developer.download.nvidia.com/compute/cuda/4_2/rel/toolkit/cudatoolkit_4.2.9_linux_64_ubuntu11.04.run
    wget http://developer.download.nvidia.com/compute/cuda/4_2/rel/drivers/devdriver_4.2_linux_64_295.41.run
  5. jonatw revised this gist Jun 29, 2012. 1 changed file with 2 additions and 12 deletions.
    14 changes: 2 additions & 12 deletions cuda_install_instruction.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    apt-get -y install binutils gcc make linux-source linux-headers-$(uname -r)
    apt-get -y install binutils gcc make linux-source linux-headers-$(uname -r) mpich2
    cd /usr/local/src/
    wget http://developer.download.nvidia.com/compute/cuda/4_2/rel/toolkit/cudatoolkit_4.2.9_linux_64_ubuntu11.04.run
    wget http://developer.download.nvidia.com/compute/cuda/4_2/rel/drivers/devdriver_4.2_linux_64_295.41.run
    @@ -19,14 +19,4 @@ cd /usr/local/src/
    cp ~/NVIDIA_GPU_Computing_SDK/C/lib/* /usr/local/lib/
    cp ~/NVIDIA_GPU_Computing_SDK/C/common/inc/cutil*.h /usr/local/include/
    cp ~/NVIDIA_GPU_Computing_SDK/C/common/inc/paramgl.h /usr/local/include/
    cp ~/NVIDIA_GPU_Computing_SDK/C/common/inc/rendercheck_*.h /usr/local/include/
    cd /usr/local/src/
    tar -zxvf mpich2-1.4.1p1.tar.gz
    cd /usr/local/src/mpich2-1.4.1p1/
    ./configure --disable-f77 --disable-fc
    make install
    cd /usr/local/src/
    tar -zxvf hydra-1.4.1p1.tar.gz
    cd /usr/local/src/hydra
    ./configure
    make install
    cp ~/NVIDIA_GPU_Computing_SDK/C/common/inc/rendercheck_*.h /usr/local/include/
  6. jonatw revised this gist Jun 29, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion cuda_install_instruction.sh
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,9 @@ cd /usr/local/src/
    tar -zxvf mpich2-1.4.1p1.tar.gz
    cd /usr/local/src/mpich2-1.4.1p1/
    ./configure --disable-f77 --disable-fc
    make install
    cd /usr/local/src/
    tar -zxvf hydra-1.4.1p1.tar.gz
    cd /usr/local/src/hydra
    ./configure
    ./configure
    make install
  7. jonatw revised this gist Jun 29, 2012. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions cuda_install_instruction.sh
    Original file line number Diff line number Diff line change
    @@ -15,6 +15,12 @@ ldconfig
    echo "PATH=$PATH:/usr/local/cuda/bin" >> /etc/profile
    echo "export PATH" >> /etc/profile
    cd /usr/local/src/
    ./gpucomputingsdk_4.2.9_linux.run
    cp ~/NVIDIA_GPU_Computing_SDK/C/lib/* /usr/local/lib/
    cp ~/NVIDIA_GPU_Computing_SDK/C/common/inc/cutil*.h /usr/local/include/
    cp ~/NVIDIA_GPU_Computing_SDK/C/common/inc/paramgl.h /usr/local/include/
    cp ~/NVIDIA_GPU_Computing_SDK/C/common/inc/rendercheck_*.h /usr/local/include/
    cd /usr/local/src/
    tar -zxvf mpich2-1.4.1p1.tar.gz
    cd /usr/local/src/mpich2-1.4.1p1/
    ./configure --disable-f77 --disable-fc
  8. jonatw created this gist Jun 28, 2012.
    24 changes: 24 additions & 0 deletions cuda_install_instruction.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    apt-get -y install binutils gcc make linux-source linux-headers-$(uname -r)
    cd /usr/local/src/
    wget http://developer.download.nvidia.com/compute/cuda/4_2/rel/toolkit/cudatoolkit_4.2.9_linux_64_ubuntu11.04.run
    wget http://developer.download.nvidia.com/compute/cuda/4_2/rel/drivers/devdriver_4.2_linux_64_295.41.run
    wget http://developer.download.nvidia.com/compute/cuda/4_2/rel/sdk/gpucomputingsdk_4.2.9_linux.run
    wget http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/1.4.1p1/mpich2-1.4.1p1.tar.gz
    wget http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/1.4.1p1/hydra-1.4.1p1.tar.gz
    chmod 755 /usr/local/src/*.run
    cd /usr/local/src/
    ./cudatoolkit_4.2.9_linux_64_ubuntu11.04.run
    echo "/usr/local/cuda/lib64" >> /etc/ld.so.conf
    echo "/usr/local/cuda/lib" >> /etc/ld.so.conf
    ldconfig
    ./devdriver_4.2_linux_64_295.41.run --kernel-source-path=/usr/src/linux-headers-$(uname -r)
    echo "PATH=$PATH:/usr/local/cuda/bin" >> /etc/profile
    echo "export PATH" >> /etc/profile
    cd /usr/local/src/
    tar -zxvf mpich2-1.4.1p1.tar.gz
    cd /usr/local/src/mpich2-1.4.1p1/
    ./configure --disable-f77 --disable-fc
    cd /usr/local/src/
    tar -zxvf hydra-1.4.1p1.tar.gz
    cd /usr/local/src/hydra
    ./configure