Skip to content

Support both NVIDIA and AMD for GPU driver install - #311

Merged
cb-github-robot merged 1 commit into
cloud-barista:mainfrom
seokho-son:main
Jun 19, 2026
Merged

cb-github-robot merged 1 commit into
cloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Seokho Son <shsongist@gmail.com>
Copilot AI review requested due to automatic review settings June 19, 2026 18:10
@seokho-son
seokho-son requested a review from yunkon-kim as a code owner June 19, 2026 18:10
@seokho-son

Copy link
Copy Markdown
Member Author

/approve

@cb-github-robot
cb-github-robot merged commit a1883bb into cloud-barista:main Jun 19, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the MapUI predefined remote commands and UI labels so the “Install GPU Driver” flow supports both NVIDIA and AMD GPUs by relying on an auto-detecting install script and by expanding the driver status check logic.

Changes:

  • Update the “Nvidia” install command messaging to reflect NVIDIA/AMD auto-detection and add AMD verification guidance.
  • Extend “Nvidia-Status” to attempt AMD tooling (ROCm) when NVIDIA tooling isn’t present, and add AMD monitoring support.
  • Update predefined script labels across LLM and Kubernetes categories to reflect NVIDIA/AMD support.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread index.js
// Check GPU driver status — tries NVIDIA first, then AMD ROCm
// rocm-smi exits with code 1 on some ROCm versions due to a Python 'violation' attribute bug
// even when GPU info is shown correctly — suppress with || true
defaultRemoteCommand[0] = "if command -v nvidia-smi &>/dev/null; then nvidia-smi; elif command -v rocm-smi &>/dev/null; then rocm-smi || true; else echo '[WARN] No GPU CLI tool found (nvidia-smi / rocm-smi). Is the driver installed and system rebooted?'; sudo lspci | grep -i -E 'vga|3d|display' || true; fi";
Comment thread index.js
// even when GPU info is shown correctly — suppress with || true
defaultRemoteCommand[0] = "if command -v nvidia-smi &>/dev/null; then nvidia-smi; elif command -v rocm-smi &>/dev/null; then rocm-smi || true; else echo '[WARN] No GPU CLI tool found (nvidia-smi / rocm-smi). Is the driver installed and system rebooted?'; sudo lspci | grep -i -E 'vga|3d|display' || true; fi";
// NVIDIA: show Fabric Manager on multi-GPU NVSwitch systems; AMD: show amd-smi monitor
defaultRemoteCommand[1] = "if command -v nvidia-smi &>/dev/null; then GPU_COUNT=$(nvidia-smi -L 2>/dev/null | grep -c '^GPU') || GPU_COUNT=0; if [ \"$GPU_COUNT\" -ge 4 ]; then echo '=== Fabric Manager (required for NVSwitch multi-GPU) ==='; systemctl is-active nvidia-fabricmanager 2>/dev/null && echo 'Status: RUNNING' || echo 'Status: NOT RUNNING (multi-GPU may not work!)'; echo '=== nvidia-persistenced ==='; systemctl is-active nvidia-persistenced 2>/dev/null && echo 'Status: RUNNING' || echo 'Status: not running'; fi; elif command -v amd-smi &>/dev/null; then amd-smi monitor || true; fi";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants