acoustic-carpenter-78188
11/14/2023, 3:41 PMconfigmap:
k8s:
plugins:
k8s:
"resource-tolerations":
"nvidia.com/gpu":
key: "flyte/GPU"
operator: "Exists"
effect: "NoSchedule"
This has also an additional bad side effect: the MPI launcher will end up on a GPU node, even if it could just run on a cpu node, wasting resources.
Expected behavior
The GPU tolerations should be applied automatically to MPI workers when GPUs are requested.
Currently this can be fixed by passing a flytekit.PodTemplate to the MPI Task, but this makes the code very cumbersome
e.g.
flytekit.PodTemplate(
V1PodSpec(
tolerations=[
V1Toleration(
key="flyte/GPU",
operator="Exists",
effect="NoSchedule",
),
]
)
)
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyteacoustic-carpenter-78188
11/30/2023, 8:30 PM