I need to run unit-tests on my GPU application during the image building stage. Is there a way to do this with Docker 19.03?
Solution:
I need to run unit-tests on my GPU application during the image building stage using Docker 19.03. Is this possible?
docker run --gpus all
allows specifying nvidia runtime, but this doesn’t work for docker build
. With nvidia-docker2, it was not possible to specify a runtime during the build stage, but is there a way to set the default runtime to be nvidia with Docker 19.03, so that docker build
works?