-
Notifications
You must be signed in to change notification settings - Fork 101
updated 'amdsmi list --cpu all' command, which returns NA #2519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the amdsmi list command to handle CPU arguments by returning "NA" when --cpu is specified, since the list command is designed only for GPU information.
- Added a
cpuparameter to thelistmethod signature - Implemented early return with "NA" output when CPU argument is detected
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| print("NA") | ||
| return |
Copilot
AI
Jan 7, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using print() directly bypasses the logger framework that is consistently used throughout the codebase. This breaks output formatting for JSON and CSV formats, and doesn't respect the --file output destination. Consider using self.logger to handle the output properly, similar to how other commands return "N/A" values.
| print("NA") | |
| return | |
| self.logger.info("NA") | |
| return |
Updated "amdsmi list --cpu all" command, which will return NA.