From e067084628179f8b66947c8a0df948f65b87b286 Mon Sep 17 00:00:00 2001 From: Richard Gill Date: Thu, 29 Dec 2016 17:07:09 +0000 Subject: [PATCH 1/4] Some suggestions for running script outside of AWS --- setup/install-gpu.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/setup/install-gpu.sh b/setup/install-gpu.sh index 43fcaefef..dac054be5 100755 --- a/setup/install-gpu.sh +++ b/setup/install-gpu.sh @@ -1,3 +1,5 @@ +# This script is designed to work with ubuntu 16.04 LTS + sudo apt-get update && apt-get --assume-yes upgrade sudo apt-get --assume-yes install tmux build-essential gcc g++ make binutils sudo apt-get --assume-yes install software-properties-common @@ -13,15 +15,22 @@ mkdir downloads cd downloads wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh bash Anaconda2-4.2.0-Linux-x86_64.sh -b -echo 'export PATH="/home/ubuntu/anaconda2/bin:$PATH"' >> ~/.bashrc -export PATH="/home/ubuntu/anaconda2/bin:$PATH" +echo 'export PATH="$HOME/anaconda2/bin:$PATH"' >> ~/.bashrc +export PATH="$HOME/anaconda2/bin:$PATH" conda install -y bcolz conda upgrade -y --all pip install theano echo "[global] device = gpu -floatX = float32" > ~/.theanorc +floatX = float32" + +[lib] +cnmem=.75 + +[cuda] +root = /usr/local/cuda +> ~/.theanorc pip install keras mkdir ~/.keras @@ -40,8 +49,7 @@ sudo cp include/* /usr/local/cuda/include/ jupyter notebook --generate-config jupass=`python -c "from notebook.auth import passwd; print(passwd())"` -echo "c.NotebookApp.password = u'"$jupass"'" >> .jupyter/jupyter_notebook_config.py +echo "c.NotebookApp.password = u'"$jupass"'" >> ~/.jupyter/jupyter_notebook_config.py echo "c.NotebookApp.ip = '*' -c.NotebookApp.open_browser = False" >> .jupyter/jupyter_notebook_config.py +c.NotebookApp.open_browser = False" >> ~/.jupyter/jupyter_notebook_config.py mkdir nbs - From f39a57dfe1a3072b902559e5c9c66c544cec598d Mon Sep 17 00:00:00 2001 From: Richard Gill Date: Thu, 29 Dec 2016 17:21:02 +0000 Subject: [PATCH 2/4] Fixed a couple of bugs --- setup/install-gpu.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/setup/install-gpu.sh b/setup/install-gpu.sh index dac054be5..399009710 100755 --- a/setup/install-gpu.sh +++ b/setup/install-gpu.sh @@ -15,7 +15,7 @@ mkdir downloads cd downloads wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh bash Anaconda2-4.2.0-Linux-x86_64.sh -b -echo 'export PATH="$HOME/anaconda2/bin:$PATH"' >> ~/.bashrc +echo "export PATH=\"$HOME/anaconda2/bin:\$PATH\"" >> ~/.bashrc export PATH="$HOME/anaconda2/bin:$PATH" conda install -y bcolz conda upgrade -y --all @@ -23,14 +23,13 @@ conda upgrade -y --all pip install theano echo "[global] device = gpu -floatX = float32" +floatX = float32 [lib] cnmem=.75 [cuda] -root = /usr/local/cuda -> ~/.theanorc +root = /usr/local/cuda" > ~/.theanorc1 pip install keras mkdir ~/.keras From d0463a11909e7e4e89936ecfed93ea6742baed67 Mon Sep 17 00:00:00 2001 From: Richard Gill Date: Sat, 31 Dec 2016 16:29:32 +0000 Subject: [PATCH 3/4] Switched ~ -> $HOME --- setup/install-gpu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/install-gpu.sh b/setup/install-gpu.sh index 399009710..8c8c7ed41 100755 --- a/setup/install-gpu.sh +++ b/setup/install-gpu.sh @@ -48,7 +48,7 @@ sudo cp include/* /usr/local/cuda/include/ jupyter notebook --generate-config jupass=`python -c "from notebook.auth import passwd; print(passwd())"` -echo "c.NotebookApp.password = u'"$jupass"'" >> ~/.jupyter/jupyter_notebook_config.py +echo "c.NotebookApp.password = u'"$jupass"'" >> $HOME/.jupyter/jupyter_notebook_config.py echo "c.NotebookApp.ip = '*' -c.NotebookApp.open_browser = False" >> ~/.jupyter/jupyter_notebook_config.py +c.NotebookApp.open_browser = False" >> $HOME/.jupyter/jupyter_notebook_config.py mkdir nbs From 8bde06a35b8b0e4cc78f9c93879badd4783868bc Mon Sep 17 00:00:00 2001 From: Richard Gill Date: Wed, 4 Jan 2017 09:16:31 +0000 Subject: [PATCH 4/4] Fixed mistakes --- setup/install-gpu.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/setup/install-gpu.sh b/setup/install-gpu.sh index 8c8c7ed41..20ac7e0d7 100755 --- a/setup/install-gpu.sh +++ b/setup/install-gpu.sh @@ -25,11 +25,8 @@ echo "[global] device = gpu floatX = float32 -[lib] -cnmem=.75 - [cuda] -root = /usr/local/cuda" > ~/.theanorc1 +root = /usr/local/cuda" > ~/.theanorc pip install keras mkdir ~/.keras