Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

rocm-doctor

БесплатноЗапускает вложенные скриптыНе проверен

Diagnoses why ROCm, the HIP SDK, PyTorch, or llama.cpp is broken on an AMD GPU on Linux, Windows, or WSL2, then applies a low-risk fix with consent or hands…

amdот amd★ 523 звезды на GitHub

Об этом скилле

ROCm Doctor

Given a "ROCm / PyTorch / llama.cpp isn't working on my AMD GPU" complaint, identify which known misconfiguration is the cause and either fix it (with consent) or hand back the exact next step.

This skill does not probe or reason on its own. The rocm CLI owns the probe, the closed failure-mode catalog, and the fixes; the skill just drives it and relays the results. The catalog is a closed list — if the symptom doesn't match a known mode, route the user upstream instead of guessing.

Scope gate — check before anything else

Read the user's symptom and answer one question first: is this an AMD GPU?

If it is not — an NVIDIA / Intel / Apple GPU — then stop and decline:

  • Say plainly that it is out of scope for this skill and why (not an AMD GPU).
  • Give no troubleshooting for it: no commands to run, no driver or CUDA advice, no diagnostic checklist, no "try this first" — not even generic GPU suggestions. Point at the vendor's own docs and stop there.
  • Do not run rocm examine / rocm diagnose / rocm fix.

Being helpful here means being honest about the boundary — confidently-wrong advice for a stack this skill does not cover is worse than no advice.

A fresh install on a clean machine is out of scope too: that is a setup task, not a diagnosis. Exit cleanly and say so.

If the user names no GPU vendor, treat ROCm / HIP wording as AMD and continue to step 1, which checks what the machine has. Continue when the GPU is AMD or no vendor is named. If the user then says it is NVIDIA, Intel or Apple, decline as above.

WSL2 is in scope and does not stop this gate. It is a platform family of its own, with its own catalog entries covering /dev/dxg, the DXCore handoff, ROCDXG, the distro floor, the Windows host driver and WSL 1. Do not decline a WSL2 user or route them away untouched — run the workflow as for any other platform. The CLI scopes entries itself, so a bare-metal Linux fix is never offered there.

Prerequisites

  • The rocm CLI. This skill is only a driver over it; Phase 0 below installs it with the user's consent if rocm --version fails, and stops if the installed CLI is older than the catalog contract this skill requires. Nothing else here is assumed — the CLI does the probing.
  • Platform: native Linux (in-tree amdgpu module + /dev/kfd), Windows (HIP SDK), or WSL2 (/dev/dxg + the Windows host driver).
  • No fixed ROCm version, GPU arch (gfx…), or container image is assumed — rocm examine/diagnose detect the installed ROCm, the GPU's gfx target, and container context, and match fixes to what they find. Never hand-set HSA_OVERRIDE_GFX_VERSION (or similar footgun env vars) yourself; let the CLI decide.

Workflow

Only start here once the Scope gate passes — the GPU is AMD or no vendor was named.

  1. Ensure the rocm CLI is present. Everything below shells out to it, so check first and install it if missing:

    rocm --version
    

    If that succeeds, go to the contract check below. If it's not found, install it with the user's consent (this fetches and runs an installer that drops the rocm and rocmd binaries into ~/.local/bin). Both installers default to the release channel, so no channel argument is needed:

    • Linux (x86_64 only):
      curl -fsSL https://raw.githubusercontent.com/ROCm/rocm-cli/main/install.sh | sh
      
    • Windows (PowerShell):
      irm https://raw.githubusercontent.com/ROCm/rocm-cli/main/install.ps1 | iex
      

    There is no macOS build. install.sh refuses anything but Linux x86_64, so on any other host hand the user the install page and stop rather than suggesting the command anyway. To pin an unreleased build instead, pass nightly (sh -s -- nightly, or $env:ROCM_CLI_CHANNEL = "nightly").

    After install, confirm ~/.local/bin is on PATH and re-run rocm --version. If it still isn't available, hand the user the install page (https://github.com/ROCm/rocm-cli) and stop.

    Then check the catalog contract. Run:

    rocm fix --json
    

    It prints the catalog manifest as JSON and applies no fix. Read contract_version from that JSON and ignore the rest. Stdout holds only the JSON. Any rocm: notice goes to stderr. This skill requires contract_version 1 or higher.

    An older CLI rejects --json as an unexpected argument and exits with code 2. In reference.md, exit code 2 is a usage error such as an unknown fix id; here it means the CLI is too old. If the command exits with code 2 and an unexpected-argument error, or prints a lower contract_version, stop. Say that the installed rocm CLI is older than this skill requires, so the CLI is the side to update. Do not run rocm examine, rocm diagnose, or rocm fix <id>. Offer to update the CLI by

Полный SKILL.md на GitHub

Установить rocm-doctor в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.federated.jsonevals/evals.jsonevals/hooks.pyevals/test_hooks.pyreference.mdskill-card.md

FAQ

Что делает скилл rocm-doctor?

Diagnoses why ROCm, the HIP SDK, PyTorch, or llama.cpp is broken on an AMD GPU on Linux, Windows, or WSL2, then applies a low-risk fix with consent or hands back the exact next step. Also routes Lemonade, LM Studio, and Ollama problems to the right upstream channel. Use when the user reports that ROCm or HIP "isn't working", torch.cuda.is_available() is False, rocminfo / hipInfo can't see the GPU, a vLLM startup out-of-memory error, a libtorch_cuda.so OSError/ImportError at vLLM start, or hits hipErrorNoBinaryForGpu, HSA_STATUS_ERROR_INVALID_ISA, "invalid device function", "no kernel image is available", cannot open /dev/kfd, permission denied on /dev/kfd, "ROCk module is NOT loaded", a missing libamdhip64.so / amdhip64_6.dll / hipblas.dll / vcruntime140_1.dll, an HSA_OVERRIDE_GFX_VERSION page fault, an iGPU+dGPU crash, a container that can't see the GPU, or a repo-native package-manager install (formerly `amdgpu-install`) / DKMS failure. Backed by the `rocm` CLI (`rocm examine` / `diagnose` / `fix`).

Как установить скилл rocm-doctor?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл rocm-doctor запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить rocm-doctor с