Skip to content

Conversation

@SakaSitharammurthy
Copy link
Contributor

Updated "amdsmi list --cpu all" command, which will return NA.

567009

Copy link
Contributor

Copilot AI left a 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 cpu parameter to the list method 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.

Comment on lines 234 to 235
print("NA")
return
Copy link

Copilot AI Jan 7, 2026

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.

Suggested change
print("NA")
return
self.logger.info("NA")
return

Copilot uses AI. Check for mistakes.
@marifamd marifamd requested a review from a team January 13, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants