Last active
July 26, 2021 01:50
-
-
Save benfoley/a4103990f5ee14d0558f7dbc10bef5c2 to your computer and use it in GitHub Desktop.
Google Cloud Platform GPU installation steps for Elpis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install gpu drivers | |
sudo apt install linux-headers-$(uname -r) | |
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin | |
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 | |
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub | |
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /" | |
sudo apt update | |
sudo apt -y install cuda | |
# Install docker instructions from https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html | |
curl https://get.docker.com | sh && sudo systemctl --now enable docker | |
distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \ | |
&& curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - \ | |
&& curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list | |
sudo apt-get update | |
sudo apt-get install -y nvidia-docker2 | |
sudo systemctl restart docker | |
# Verify | |
sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Optionally, download and share the na data
This data is currently required to run the HFT code, it is hard-linked in the model file.
Use this tool to create a wget command: https://gdrive-wget.glitch.me