Skip to content

Commit e75b8e8

Browse files
author
shlomo
committed
GPU
1 parent 07cf11f commit e75b8e8

File tree

6 files changed

+673
-0
lines changed

6 files changed

+673
-0
lines changed

1_install_cuda.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
3+
if [ "$(whoami)" == "root" ]; then
4+
echo "running as root, please run as user you want to have stuff installed as"
5+
exit 1
6+
fi
7+
8+
sudo apt-get update -y
9+
sudo apt-get install -y git wget linux-image-generic build-essential unzip
10+
11+
sudo apt-get install libglew-dev libcheese7 libcheese-gtk23 libclutter-gst-2.0-0 libcogl15 libclutter-gtk-1.0-0 libclutter-1.0-0 xserver-xorg-input-all
12+
13+
14+
cd /tmp
15+
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.deb
16+
sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb
17+
18+
echo -e "\nexport CUDA_HOME=/usr/local/cuda\nexport CUDA_ROOT=/usr/local/cuda" >> ~/.bashrc
19+
echo -e "\nexport PATH=/usr/local/cuda/bin:\$PATH\nexport LD_LIBRARY_PATH=/usr/local/cuda/lib64:\$LD_LIBRARY_PATH" >> ~/.bashrc
20+
21+
sudo apt-get update
22+
sudo apt-get install cuda-toolkit-7-0
23+
sudo apt-get install nvidia-modprobe
24+
pip install pycuda

0 commit comments

Comments
 (0)