Skip to content

Refactor: Introduce GPU Collector Interface for Vendor Agnostic Support#3

Open
oasis-parzival wants to merge 1 commit intopmady:mainfrom
oasis-parzival:jarvis-fix-1775412099
Open

Refactor: Introduce GPU Collector Interface for Vendor Agnostic Support#3
oasis-parzival wants to merge 1 commit intopmady:mainfrom
oasis-parzival:jarvis-fix-1775412099

Conversation

@oasis-parzival
Copy link
Copy Markdown

Closes #2

This PR introduces a Collector interface to decouple the GPU monitoring logic from the NVML implementation, paving the way for support of AMD and Intel GPUs. A factory function is added to dynamically select the appropriate collector based on detected GPU vendor at startup, and the main application logic is updated to utilize this factory. This refactor maintains existing functionality and test coverage while improving the project’s extensibility.

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.

Extract gpu.Collector interface for multi-vendor support

1 participant