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
#!/bin/bash | |
# Installs Pytorch development environment | |
# on Ubuntu 20.04 LTS (WSL2) host machine | |
# First make sure that Windows GPU driver and WSL2 installations are ok, | |
# then launch WSL, create a new user and execute commands. | |
# Reference: https://docs.nvidia.com/cuda/wsl-user-guide/index.html | |
# 1) Install cuda stuff | |
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub |