Windows Setup

It is possible to run Celantur on-premise on Windows 10 with WSL. NVIDIA provides an official documentation to set up the software dependencies.

Prerequisites

Steps

  1. Activate the Windows Insider Program, required to install WSL 2.
  2. Install NVIDIA Driver for CUDA on WSL.
  3. Install Windows Subsystem for Linux (WSL 2).
  4. Install Docker Desktop on Windows.
  5. Activate Docker WSL 2 integration, by checking "Use WSL 2 based engine" in the settings.

Checkbox "Use WSL 2 based engine"

  1. Install NVIDIA Container Toolkit.
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 update
sudo apt install nvidia-docker2 
  1. Restart Docker.

Restart Docker

Or in WSL2:

sudo service docker stop
sudo service docker start

Run CUDA containers

Test that the setup is correct by running following sample provided by NVIDIA:

docker run --rm --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark

Reference