-
Notifications
You must be signed in to change notification settings - Fork 9
/
install.sh
24 lines (19 loc) · 882 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
## un-comment to install anaconda
# install_dir=$HOME/anaconda3
# wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
# bash Anaconda3-2020.11-Linux-x86_64.sh -b -p $install_dir
# export PATH=$install_dir/bin:$PATH
# Install Oort and create conda env
conda init bash
. ~/.bashrc
conda env create -f environment.yml # Install dependencies
conda activate oort
## un-comment to install cuda
# wget https://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_440.33.01_linux.run
# sudo apt-get purge nvidia-* -y
# sudo sh -c "echo 'blacklist nouveau\noptions nouveau modeset=0' > /etc/modprobe.d/blacklist-nouveau.conf"
# sudo update-initramfs -u
# sudo sh cuda_10.2.89_440.33.01_linux.run --override --driver --toolkit --samples --silent
# export PATH=$PATH:/usr/local/cuda-10.2/
# conda install cudatoolkit=10.2 -y