Tool

Auto-configure AMD GPUs for local AI workloads

Detects AMD GPUs, fixes ROCm environment overrides, and benchmarks AI backends to eliminate setup errors in seconds.

Works with ollamalm studiopytorchvulkanrocm

91
Spark score
out of 100
Updated today
Source checked never checked
Version 1.0.0
Models
llama 3

Add to Favorites

Why it matters

Eliminate cryptic ROCm errors and CPU fallbacks when running local AI models on AMD GPUs by auto-detecting hardware, applying correct environment overrides, and benchmarking backends to ensure optimal performance.

Outcomes

What it gets done

01

Detect AMD GPU model and apply HSA_OVERRIDE_GFX_VERSION to shell configs

02

Run health diagnostics on drivers, HIP SDK, and Vulkan API

03

Benchmark Vulkan vs HIP backends to identify fastest inference path

04

Generate troubleshooting reports and manage GPU database updates

Source

Get it from source

Spark does not host a copy of it.

Open source

Reports

Agent outcome reports

No reports yet

Overview

Rocmfix

ROCmFix is a single-file Python diagnostic tool that auto-detects AMD RDNA GPUs and suggests the correct HSA_OVERRIDE_GFX_VERSION environment variable for ROCm configuration. It includes commands for health checks, HIP SDK installation on Windows, system report generation, backend benchmarking, and safe override reversal. The tool syncs a live community GPU database daily and requires no pip installs or virtual environments. Use ROCmFix when you need to configure HSA_OVERRIDE_GFX_VERSION for llama.cpp, Ollama, LM Studio, or PyTorch on AMD RX 6000/7000/9000 series GPUs. Run it to test whether Vulkan or HIP delivers better performance for your specific card and workload, or to check for missing drivers and SDK components before troubleshooting.

What it does

ROCmFix is a zero-install Python diagnostic and configuration tool that detects your AMD GPU model and suggests the correct HSA_OVERRIDE_GFX_VERSION environment variable override for ROCm compatibility. The tool can modify shell configurations (CMD, PowerShell, Bash, Zsh, Fish), run diagnostics on drivers and SDKs, and includes a self-updater that syncs a live community GPU database daily. It includes a benchmarking command that tests Vulkan and HIP backends with llama.cpp-based tools.

When to use - and when NOT to

Use ROCmFix when you need to configure ROCm environment variables for llama.cpp, Ollama, LM Studio, or PyTorch on AMD RDNA4 (RX 9070/9060), RDNA3 (RX 7000), or RDNA2 (RX 6000) GPUs. Run it before installing the HIP SDK on Windows to check your hardware setup, or after installation to verify configuration. Use rocmfix bench to test Vulkan versus HIP performance for your specific card and workload. Do NOT use this tool if you are running NVIDIA GPUs or if your AMD GPU is already working correctly with ROCm without overrides. Skip the HIP installation step if you only need Vulkan support for LLM inference on Windows.

Inputs and outputs

You provide the Python script (single file, no dependencies) and run commands like python rocmfix.py, rocmfix doctor, or rocmfix bench. The tool automatically detects your GPU via system queries. For benchmarking, it temporarily isolates Ollama or LM Studio and runs a 10-second generation test. The tool can modify your shell configuration with override values, generate diagnostic reports, produce benchmark timing results, and create a Markdown system report for troubleshooting posts.

Integrations

ROCmFix integrates with llama.cpp-based tools (Ollama, LM Studio) for backend benchmarking, PyTorch for ROCm environment configuration, AMD HIP SDK (downloads and launches the official Windows installer via rocmfix install-hip), and shell environments (CMD, PowerShell, Bash, Zsh, Fish) for persistent override application. It fetches GPU data from a live community database and includes opt-in telemetry functionality.

Installation and usage

Download the single Python file with one command:

curl -O https://raw.githubusercontent.com/xanpavle/rocmfix/main/rocmfix.py

On Windows PowerShell:

Invoke-WebRequest -Uri "https://raw.githubusercontent.com/xanpavle/rocmfix/main/rocmfix.py" -OutFile "rocmfix.py"

Run the tool:

python rocmfix.py

The default command detects your GPU, suggests the override, and auto-applies it. Use rocmfix doctor for a full diagnostic scan, rocmfix bench to compare Vulkan and HIP performance, rocmfix undo to revert changes, and rocmfix list to see all 17+ supported GPUs. The tool requires Python 3.10+ and works on Windows and Linux with no pip installs or virtual environments.

Who it's for

ROCmFix is built for local AI enthusiasts and developers running LLMs or Stable Diffusion on consumer AMD GPUs who need ROCm environment configuration. It serves Windows users setting up the HIP SDK, Linux users needing quick override configuration, and anyone working with llama.cpp-based tools on AMD hardware. The tool differs from manual override guides by automating detection, providing a live GPU database, and offering backend benchmarking capabilities.

Source README

๐Ÿ”ง ROCmFix

Auto-detect your AMD GPU, fix ROCm overrides, and benchmark your AI backends in seconds.

Python
License: MIT
Platform
GPU

One file. Zero installs. No pip. No venv. Just run it.


โ“ What is this?

Running local AI (llama.cpp, Ollama, LM Studio, PyTorch) on AMD GPUs often leads to cryptic errors like HSA_STATUS_ERROR_INVALID_ISA or silent fallbacks to CPU. Usually, you just need to set the HSA_OVERRIDE_GFX_VERSION environment variable.

ROCmFix detects your exact AMD GPU, checks a live community database, automatically applies the correct shell environment override, and runs health diagnostics to ensure your setup is ready.

โœจ Features

  • Auto-Apply & Undo: Automatically modifies CMD, PowerShell, Bash, Zsh, or Fish configs to apply overrides safely.
  • rocmfix doctor: Scans your hardware, Adrenalin drivers, HIP SDK, and Vulkan API to diagnose issues.
  • rocmfix bench: A 10-second backend race! Temporarily isolates Ollama or LM Studio, runs a generation test using Vulkan, then HIP, and tells you which is faster on your PC.
  • rocmfix install-hip: Missing the HIP SDK on Windows? This safely downloads and launches the official AMD installer for you.
  • Live Database & Self-Updater: Fetches new GPUs from the cloud daily, and updates itself via rocmfix update.
  • Export System Report: Generate a Markdown file of your setup for Reddit/Discord help posts.

๐Ÿš€ Quick Start

Download (One Command)

Windows PowerShell:

Invoke-WebRequest -Uri "https://raw.githubusercontent.com/xanpavle/rocmfix/main/rocmfix.py" -OutFile "rocmfix.py"

Linux / macOS:

curl -O https://raw.githubusercontent.com/xanpavle/rocmfix/main/rocmfix.py

Run

python rocmfix.py

๐Ÿ“‹ Commands

Command What it does
rocmfix Detect GPU, suggest override, and auto-apply
rocmfix doctor Full health check of drivers, HIP, and Vulkan
rocmfix bench Benchmark Vulkan vs HIP/ROCm in LM Studio or Ollama
rocmfix install-hip Download and install the AMD HIP SDK (Windows)
rocmfix export Generate a Markdown system report for troubleshooting
rocmfix update Update ROCmFix to the latest version from GitHub
rocmfix sync Force-fetch the latest GPU database from the community server
rocmfix test Smoke test current override to see if ROCm/HIP detects it
rocmfix undo Safely revert the last auto-applied override
rocmfix list Show all 17+ GPUs currently supported in the database
rocmfix telemetry Manage your anonymous benchmark sharing settings
rocmfix install Install rocmfix as a global command on your system

๐ŸŽฎ Supported GPUs

ROCmFix supports RDNA4 (RX 9070/9060 series), RDNA3 (RX 7000 series), RDNA2 (RX 6000 series), and Integrated Graphics.

New GPUs are synced automatically from our live database without needing to update the app!

Don't see your card? Run python rocmfix.py - it will generate a pre-filled GitHub issue link so you can contribute your GPU!


๐Ÿ”ฅ HIP vs Vulkan - Which should I use?

If you're running llama.cpp / LM Studio / Ollama on a consumer AMD card (especially on Windows):

Vulkan HIP / ROCm
Setup โœ… Zero config โš ๏ธ Needs HIP SDK + overrides
Windows โœ… Works out of the box โš ๏ธ HIP SDK still maturing
Linux โœ… Good โœ… Better
Consumer RDNA3 perf โœ… Often faster โš ๏ธ Sometimes slower
PyTorch support โŒ Limited โœ… Full support

TL;DR

  • Running LLMs on Windows? โ†’ Try Vulkan first. Run rocmfix bench to verify.
  • PyTorch / Stable Diffusion? โ†’ Run rocmfix install-hip, then apply the override ROCmFix gives you.

๐Ÿ“Š Privacy & Telemetry

ROCmFix includes an opt-in telemetry system to help grow the community database.
If enabled, ROCmFix securely sends your GPU model, driver version, OS, and benchmark results to a private collector. We never collect usernames, IPs, file paths, or AI prompts. Read the full details in PRIVACY.md.


๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

If this saved you hours of Reddit digging, drop a โญ
Made for the local AI community by xanpavle

Discussion

Questions & comments ยท 0

Sign In Sign in to leave a comment.