-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update docker compose for GPU #73
base: main
Are you sure you want to change the base?
Conversation
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.
Could you also revert the Dockerfile changes from #42?
IGNORE THIS - I was trying to test 2 PRs at once and clobbered the uncommenting changes I needed in the docker-compose.yaml here ===== I checked 7.0 rc2, this branch of example_ws (with the gpu relevant lines uncommented), and built a new image. lab_sim appears (to my eyes) to be running at a FPS (when dragging the visualization around dramatically) that indicates GPU acceleration is happening. However, I cannot run
The last two processes are VSCode and Chrome ( None of those processes correspond to what I expected - I'm used to seeing a ros2_control process (which is running mujoco) listed in my old workflow where I manually install the nvidia driver in the container. Should I be seeing the ros2_control process show up? |
ok I built again with 7.0 rc2 and this branch (uncommented the gpu section). run fails
|
@nbbrooks You might need nvidia toolkit installed
Test with:
|
|
||
ARG BASE | ||
# hadolint ignore=DL3006 | ||
FROM base-${BASE} AS base |
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.
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.
Yeah that seems likely.
It seems that on my machine the instructions do not enable GPU support. Following them (uncommenting the
docker-compose.yaml
lines andmoveit_pro build
ing) I am unable to runnvidia-smi
inside the container and no GPUs are found, but I do see the stage in which the nvidia drivers are installed when the image is built. If I leave the docker-compose file as it in in this PR (with the lines uncommented), I don't have to build anything differently and I can runnvidia-smi
ornvtop
and see my GPU is in use