Skip to content

fix: enhance DevicePluginDetector with normalization of time-sliced GPU#583

Open
Code2Life wants to merge 2 commits into
mainfrom
fix/nvdp-detect
Open

fix: enhance DevicePluginDetector with normalization of time-sliced GPU#583
Code2Life wants to merge 2 commits into
mainfrom
fix/nvdp-detect

Conversation

@Code2Life

Copy link
Copy Markdown
Contributor
  • Added normalizeDeviceIDs method to the DevicePluginDetector to handle de-duplication of time-sliced GPU IDs.
  • Updated processDeviceState to utilize the new normalization logic for both allocated and registered device IDs.
  • Enhanced tests in detector_test.go to verify the correct behavior of GPU ID normalization and its integration with the device plugin detection process.
  • Improved handling of vendor detectors to support resource name prefixes.

This change improves the accuracy of GPU resource management in scenarios involving time-sliced devices.

…PU IDs

- Added `normalizeDeviceIDs` method to the `DevicePluginDetector` to handle de-duplication of time-sliced GPU IDs.
- Updated `processDeviceState` to utilize the new normalization logic for both allocated and registered device IDs.
- Enhanced tests in `detector_test.go` to verify the correct behavior of GPU ID normalization and its integration with the device plugin detection process.
- Improved handling of vendor detectors to support resource name prefixes.

This change improves the accuracy of GPU resource management in scenarios involving time-sliced devices.
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