Alan
03/25/2024, 5:29 PMprefect worker start -t docker --pool <pool-name>
and it pulls an image that i specified in a deployment.. How can I ensure that the container is ran with nvidia-runtime? This is so the docker container has access to my host's nvidia driver....Kevin Grismore
03/25/2024, 5:36 PMdocker run --gpus all
?Kevin Grismore
03/25/2024, 5:38 PMdocker run --runtime=nvidia --gpus all
Alan
03/25/2024, 5:38 PMruntime=nvidia
, because it seems to me the worker cannot actually detect my host gpu when the worker runs the containerAlan
03/25/2024, 5:40 PMENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES all
Alan
03/25/2024, 5:40 PMKevin Grismore
03/25/2024, 5:59 PMruntime
on the worker, but it should be possible with a few changesAlan
03/25/2024, 6:03 PMAlan
03/25/2024, 6:26 PMKevin Grismore
03/25/2024, 6:48 PMKevin Grismore
03/25/2024, 6:48 PMKevin Grismore
03/25/2024, 6:48 PMAlan
03/25/2024, 6:49 PMAlan
03/25/2024, 6:49 PM{
"runtimes": {
"nvidia": {
"path": "nvidia-container-runtime",
"runtimeArgs": []
}
},
"default-runtime": "nvidia"
}
Kevin Grismore
03/25/2024, 6:49 PMAlan
03/25/2024, 6:51 PMKevin Grismore
03/25/2024, 6:51 PMruntime
is a kwarg but it doesn't look like we're accounting for it when we build the config that makes up those kwargsKevin Grismore
03/25/2024, 6:52 PMAlan
03/25/2024, 6:52 PMAlan
03/25/2024, 7:15 PMKevin Grismore
03/25/2024, 7:16 PMAlan
03/25/2024, 7:17 PMKevin Grismore
03/25/2024, 7:17 PM