RUNLOCALAIv38
->Will it run?Best GPUCompareTroubleshootStartLearnPulseModelsHardwareToolsBench
Run check
RUNLOCALAI

Independently operated catalog for local-AI hardware and software. Hand-written verdicts. Source-cited claims. Reproducible commands when we have them.

OP·Fredoline Eruo
DIR
  • Models
  • Hardware
  • Tools
  • Benchmarks
TOOLS
  • Will it run?
  • Compare hardware
  • Cost vs cloud
  • Choose my GPU
  • Prompting kits
  • Quick answers
REF
  • All buyer guides
  • Learn local AI
  • Methodology
  • Glossary
  • Errors KB
  • Trust
EDITOR
  • About
  • Author
  • How we make money
  • Editorial policy
  • Contact
LEGAL
  • Privacy
  • Terms
  • Sitemap
MAIL · MONTHLY DIGEST
Get monthly local AI changes
Monthly recap. No spam.
DISCLOSURE

Some links on this site are affiliate links (Amazon Associates and other first-class retailers). When you buy through them, we earn a small commission at no extra cost to you. Affiliate links do not influence our verdicts — there are cards we rate highly that we don't have affiliate relationships with, and cards that sell well that we refuse to recommend. Read more →

© 2026 runlocalai.coIndependently operated
RUNLOCALAI · v38
Errors / ROCm / AMD / ROCm: HIP error: invalid device — no GPU detected
ROCm / AMD
Verified by owner

ROCm: HIP error: invalid device — no GPU detected

HIP error: invalid device function / hipErrorNoDevice
By Fredoline Eruo · Last verified Jun 12, 2026

Cause

Common on AMD GPU + Linux when ROCm doesn't see your card. Causes:

  • GPU isn't on the supported list for your ROCm version (officially supports Vega 20, RDNA 2/3/4 — RDNA 1 is partial, Polaris is unsupported as of ROCm 6)
  • User isn't in the render and video groups
  • Conflicting GPU driver (proprietary vs amdgpu)
  • ROCm version mismatch with kernel

Solution

1. Verify your card is supported:

# Check ROCm version
rocminfo | grep -i version
# Check detected devices
rocm-smi

RX 6000 / 7000 / 9000 series and Radeon PRO W6800+ are supported on Linux. RX 5000 (RDNA 1) is hit-or-miss. RX 580 (Polaris) needs old ROCm 5.

2. Add yourself to the right groups:

sudo usermod -a -G render,video $USER
# Log out and back in for the change to take effect

3. Force the right device via env var (helpful for unsupported cards that ALMOST work):

export HSA_OVERRIDE_GFX_VERSION=10.3.0  # for RDNA 2 / RX 6000 series
export HSA_OVERRIDE_GFX_VERSION=11.0.0  # for RDNA 3 / RX 7000 series

4. Check kernel module:

lsmod | grep amdgpu
# If missing:
sudo modprobe amdgpu

Windows: ROCm support is incomplete. Use Vulkan backend in llama.cpp instead, or run in WSL2 with ROCm-on-WSL.

Related errors

  • ROCm: HIP error: invalid device function
  • ROCm: hipErrorInvalidDeviceFunction on RX 7000-series
  • ROCm: HSA_STATUS_ERROR_INVALID_DEVICE — GPU not detected

Did this fix it?

If your case was different, email Contact support with what you saw and we'll update the page. If it worked but took different commands on your platform, we want to know that too.