-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yan-973 test nifty cuda docker image #137
Conversation
…esting environment
Liu 221 - Generate template.palette in DALiuGE
I have seen that this type of file has been deleted before and is an installation-specific detail.
tested nifty graphs
YAN-973 Nifty gridder testing
daliuge-engine/run_engine.sh
Outdated
@@ -2,6 +2,7 @@ | |||
DOCKER_OPTS="\ | |||
--shm-size=2g --ipc=shareable \ | |||
--rm \ | |||
--gpus=all \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as a sanity check could someone test that this doesn't cause an unknown argument error on an environment without nvidia-docker?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll give it a go. This is my first time using these build/run scripts based on Docker so it might take a bit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running Engine development version in background...
docker run -td --shm-size=2g --ipc=shareable --rm --gpus=all --name daliuge-engine -v /var/run/docker.sock:/var/run/docker.sock -p 5555:5555 -p 6666:6666 -p 8000:8000 -p 8001:8001 -p 8002:8002 -p 9000:9000 --user 1000:1000 --group-add 134 -v /home/rtobar/dlg/workspace/settings/passwd:/etc/passwd -v /home/rtobar/dlg/workspace/settings/group:/etc/group -v /home/rtobar/dlg:/home/rtobar/dlg --env DLG_ROOT=/home/rtobar/dlg icrar/daliuge-engine:yan-973
51a0d17da1384a237d5271cf067bc0d3b37cedd0a05d3222f6d699895cda750c
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(and indeed without the --gpus=all
option it starts)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I think the best workaround in this case may be wrap the arg based on the presence of nvidia-docker, e.g.
$([[ $(nvidia-docker version) ]] && echo '--gpus=all' || echo '')
or
$(if [[ -x nvidia-docker ]]; then echo '--gpus=all'; else echo ''; fi)
eb80e22
to
06cd2c3
Compare
rebased to #157 |
Minor daliuge-engine docker argument changes for better cuda compatibility