Skip to content

fix: account for partially-allocated gpus#644

Open
pintohutch wants to merge 1 commit intoNVIDIA:mainfrom
pintohutch:partial-alloc
Open

fix: account for partially-allocated gpus#644
pintohutch wants to merge 1 commit intoNVIDIA:mainfrom
pintohutch:partial-alloc

Conversation

@pintohutch
Copy link
Contributor

Fixes the issue mentioned in
#549 (comment).

Given KUBERNETES_VIRTUAL_GPUS is enabled:
When the Kubernetes pod-mapping builds the set of new metrics, we previously ignored the case where some devices were allocated, while others were not. So we add a check to each device lookup, where if there are no associated pods, we copy over the "pod-less" metrics to the final map.

Fixes the issue mentioned in
NVIDIA#549 (comment).

Given KUBERNETES_VIRTUAL_GPUS is enabled:
When the Kubernetes pod-mapping builds the set of new metrics, we
previously ignored the case where some devices were allocated, while
others were not. So we add a check to each device lookup, where if there
are no associated pods, we copy over the "pod-less" metrics to the final
map.

Signed-off-by: Daniel Clark <danielclark@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant