Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (29 loc) · 754 Bytes

install.md

File metadata and controls

29 lines (29 loc) · 754 Bytes

Build with docker

To access GPU during docker build (credits to this thread):

sudo apt-get install nvidia-container-runtime

Edit/create the /etc/docker/daemon.json with content:

{
    "runtimes": {
        "nvidia": {
            "path": "/usr/bin/nvidia-container-runtime",
            "runtimeArgs": []
         }
    },
    "default-runtime": "nvidia"
}

Restart docker daemon:

sudo systemctl restart docker

Build docker image:

sudo docker build --tag lasr:latest -f docker/Dockerfile ./

Note to run commands in docker container,

docker run -v $(pwd):/lasr --gpus all lasr bash -c 'cd lasr; source activate lasr; your command'