View on GitHub

deepracer-for-cloud

Creates an AWS DeepRacing training environment which can be deployed in the cloud, or locally on Ubuntu Linux, Windows or Mac.

Installing on Windows

Prerequisites

The basic installation steps to get a NVIDIA GPU / CUDA enabled Ubuntu subsystem on Windows can be found in the Cuda on WSL User Guide. Ensure your windows has an updated nvidia cuda enabled driver that will work with WSL.

The further instructions assume that you have a basic working WSL using the default Ubuntu distribution.

Additional steps

The typical bin/prepare.sh script will not work for a Ubuntu WSL installation, hence alternate steps will be required.

Adding required packages

Install additional packages with the following command:

sudo apt-get install jq awscli python3-boto3 docker-compose

Install and configure docker and nvidia-docker

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository    "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update && sudo apt-get install -y --no-install-recommends docker-ce docker-ce-cli containerd.io

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

cat /etc/docker/daemon.json | jq 'del(."default-runtime") + {"default-runtime": "nvidia"}' | sudo tee /etc/docker/daemon.json
sudo usermod -a -G docker $(id -un)

Install DRfC

You can now run bin/init.sh -a gpu -c local to setup DRfC, and follow the typical DRfC startup instructions

Known Issues