-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathgcp_install_gpu.txt
38 lines (26 loc) · 1.4 KB
/
gcp_install_gpu.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Prerequisites to run PlotOptiX on Google Cloud Platfom, Ubuntu 18.04 LTS Minimal instance.
# install CUDA and GPU driver
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.1.105-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804_10.1.105-1_amd64.deb
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1704/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get -y install cuda-10-1
sudo nvidia-smi -pm 1
# install Mono
sudo apt -y install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
# setup for the most recent release:
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
# if disk size is an issue, use smaller Mono release, e.g. use this to install Mono 5.20.1:
# echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic/snapshots/5.20.1 main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt -y install mono-complete
# install pythonnet
sudo apt -y install clang libglib2.0-dev python-dev
sudo apt -y install python3-pip
sudo pip3 install -U setuptools wheel pycparser
sudo pip3 install -U pythonnet
# install Tk
sudo apt-get -y install python3-tk
# install PlotOptiX
sudo pip3 install -U plotoptix