incalculable-xylophone-18959
09/05/2024, 8:54 PMdocker run -it --rm myimage:latest /usr/bin/nvidia-smi I get /usr/bin/nvidia-smi not found. But, if I run docker run -it --rm --gpu all myimage:latest /usr/bin/nvidia-smi I get the proper output. When I run my nvidia-smi from within the step below, I get the /usr/bin/nvidia-smi no found message.... how do I influence metaflow to pass the --gpu parameter?
@kubernetes(
image="myimage:latest",
gpu=1,
tolerations=[{"key": "<http://node-role.kubernetes.io/control-plane|node-role.kubernetes.io/control-plane>", "operator": "Exists", "effect": "NoSchedule"}],
)
@resources(gpu=1)
@step
def nvidia_smi(self):
"""Make sure that we can run nvidia-smi."""
subprocess.run(["/usr/bin/nvidia-smi", "-q"])
self.next(self.end)ancient-application-36103
09/05/2024, 8:57 PMnvidia-device-plugin-for-gpu to pass the gpu flagincalculable-xylophone-18959
09/05/2024, 8:59 PMincalculable-xylophone-18959
09/05/2024, 9:01 PMincalculable-xylophone-18959
09/05/2024, 9:04 PMincalculable-xylophone-18959
09/05/2024, 9:06 PMincalculable-xylophone-18959
09/05/2024, 9:15 PMNVIDIA_VISIBLE_DEVICES, but adding that to @environment didn't affect the outcomeincalculable-xylophone-18959
09/05/2024, 9:31 PMancient-application-36103
09/05/2024, 10:40 PMincalculable-xylophone-18959
09/06/2024, 2:16 PMancient-application-36103
09/06/2024, 2:16 PM