Prevent duplicate GPU registration during health checks - #2054
Open
aryangorwade wants to merge 1 commit into
Open
aryangorwade wants to merge 1 commit into
aryangorwade wants to merge 1 commit into
Conversation
Signed-off-by: Aryan Gorwade <agorwade@nvidia.com>
aryangorwade
force-pushed
the
prevent-duplicate-gpu-registration
branch
from
September 22, 2026 03:27
c7fe2ad to
72639d8
Compare
5 tasks
kvalliyurnatt
left a comment
Contributor
There was a problem hiding this comment.
LGTM. Is it worth adding a unit test for this ?
Author
|
The only practical way I think we can test this is by mocking checkHealth's nvml event loop. This repo generally avoids doing that (the test file for this mocks nvml but it was recently written by an external contributor). It has its disadvantages like causing bugs like this to be present. If we do choose to write a test for |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR removes redundant GPU health registration calls that can happen when multiple
Deviceobjects share the same parent GPU. It builds on changes made in #1930 and should be merged in afterwards.Closes #2052 .
Checklist
make lint)make test)make check-modules)make check-third-party-notices)Testing
Verified via manual testing on a GPU node. Scenarios tested include unshared GPUs, time-sliced & MPS shared GPUs, multiple MIG instances and time-sliced MIG & mixed MIG. Plugin restart/config reload behavior was also tested.