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★ 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
rocmCLI. This skill is only a driver over it; Phase 0 below installs it with the user's consent ifrocm --versionfails, 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
amdgpumodule +/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/diagnosedetect the installed ROCm, the GPU'sgfxtarget, and container context, and match fixes to what they find. Never hand-setHSA_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.
Ensure the
rocmCLI is present. Everything below shells out to it, so check first and install it if missing:rocm --versionIf 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
rocmandrocmdbinaries into~/.local/bin). Both installers default to thereleasechannel, 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.shrefuses 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, passnightly(sh -s -- nightly, or$env:ROCM_CLI_CHANNEL = "nightly").After install, confirm
~/.local/binis onPATHand re-runrocm --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 --jsonIt prints the catalog manifest as JSON and applies no fix. Read
contract_versionfrom that JSON and ignore the rest. Stdout holds only the JSON. Anyrocm:notice goes to stderr. This skill requirescontract_version1 or higher.An older CLI rejects
--jsonas 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 lowercontract_version, stop. Say that the installedrocmCLI is older than this skill requires, so the CLI is the side to update. Do not runrocm examine,rocm diagnose, orrocm fix <id>. Offer to update the CLI by- Linux (x86_64 only):
Установить rocm-doctor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic