ElderResearch / gpu_launch_app

GPU container launch application
1 stars 1 forks source link

Docker added --gpu flag to docker run command #21

Open semperstew opened 4 years ago

semperstew commented 4 years ago

Docker has added an explicit --gpus flag to the docker run command. Not sure if this is any better than the way we are currently separating gpus, but it is worth looking into. https://docs.docker.com/engine/reference/commandline/run/#access-an-nvidia-gpu

semperstew commented 4 years ago

The output of docker version is:

Client: Docker Engine - Community
 Version:           19.03.6
 API version:       1.39 (downgraded from 1.40)
 Go version:        go1.12.16
 Git commit:        369ce74a3c
 Built:             Thu Feb 13 01:27:49 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.2
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.6
  Git commit:       6247962
  Built:            Sun Feb 10 03:42:13 2019
  OS/Arch:          linux/amd64
  Experimental:     false

The docker documentation indicates that the --gpus flag should be available for docker engine version 19.03, but I can't seem to find the --gpus option when viewing the output of docker run --help?

enmyj commented 4 years ago

I think found something once that said the --gpus flag was only available in API version 1.40 or higher. I have no idea where I found that information though haha. I also have no idea how to update that.

semperstew commented 4 years ago

That makes sense. We have API version 1.39 as indicated above. However, it also states that it was downgraded from version 1.40. I wonder if that was done because of a conflict with some other dependency?