{"slug": "fedora-rocm-10-setup-with-tarball-along-with-maintinance-scripts", "title": "Fedora ROCM 10 Setup with Tarball along with maintinance scripts", "summary": "A developer documented a method for installing AMD's ROCm 10 on Fedora using the vendor's TheRock tarball, which bypasses the OS check that blocks Fedora in AMD's runfile and dnf repositories. The setup centers on a single $ROCM_HOME with a versioned directory layout and symlinked 'current' pointer, plus check-update.sh and update.sh maintenance scripts, and serves llama.cpp, stable-diffusion.cpp and whisper.cpp builds targeting the gfx1151 GPU.", "body_md": "Why tarball: AMD's runfile and dnf repos block Fedora\n(`fedora is not a supported OS`). The tarball has no OS check.\nOne `$ROCM_HOME` serves llama.cpp, stable-diffusion.cpp, whisper.cpp.\n\n```\n~/therock-tarball/\n  env.sh            source from ~/.bashrc (PATH, ROCM_HOME=./current)\n  check-update.sh   installed vs upstream gfx1151 tarballs\n  update.sh <VER>   download + extract + verify + flip ./current\n  current -> versions/<VER>/install   (all builds point here, never a version)\n  versions/<VER>/install              (keep last known-good for rollback)\n  therock-dist-linux-gfx1151-<VER>.tar.gz\n# toolchain deps (groups video/render must already include you: check `groups`)\nsudo dnf install libatomic libquadmath numactl-libs perl gcc gcc-c++ cmake\n# remove any Fedora/AMD ROCm that conflicts with the tarball\nsudo dnf remove rocm-* hipblas* hipcc rocminfo hsa-rocr hsa-rocr-devel amdgpu-install\nsudo dnf autoremove\nsudo rm -f /etc/yum.repos.d/rocm.repo\n# delete stale empty dirs left behind by the uninstall, if present\nsudo rm -rf /opt/rocm-7.1.0 /usr/lib64/rocm\ncd ~/therock-tarball\n./check-update.sh\n./update.sh 10.0.0\necho 'source \"$HOME/therock-tarball/env.sh\"' >> ~/.bashrc\necho \"$HOME/therock-tarball/current/lib\" | sudo tee /etc/ld.so.conf.d/rocm-10.conf\nsudo ldconfig\nsource ~/therock-tarball/env.sh\nrocminfo | grep -i -m2 gfx1151\n$ROCM_HOME/bin/amd-smi list\nhipcc --version\ncd ~/therock-tarball\n./check-update.sh\n# if newer: ./update.sh <VER> && sudo ldconfig\n# smoke one HIP build, then delete the proven-old version + tarball:\n# rm -rf versions/<OLD> therock-dist-linux-gfx1151-<OLD>.tar.gz\nln -sfn ~/therock-tarball/versions/<OLD>/install ~/therock-tarball/current\nsudo ldconfig\nrm -rf ~/therock-tarball/versions ~/therock-tarball/*.tar.gz ~/therock-tarball/current\nsudo rm -f /etc/ld.so.conf.d/rocm-10.conf\nsudo ldconfig\n# then delete this line from ~/.bashrc:\n#   source \"$HOME/therock-tarball/env.sh\"\nsource ~/therock-tarball/env.sh\n# llama.cpp / whisper.cpp (ggml passthrough)\ncmake -B build-rocm -DGGML_HIP=ON -DGPU_TARGETS=gfx1151 \\\n  -DCMAKE_HIP_ARCHITECTURES=gfx1151 -DCMAKE_HIP_COMPILER=$ROCM_HOME/bin/amdclang++\n# stable-diffusion.cpp\ncmake -B build-rocm -DSD_HIPBLAS=ON -DGPU_TARGETS=gfx1151 \\\n  -DCMAKE_HIP_ARCHITECTURES=gfx1151 -DCMAKE_HIP_COMPILER=$ROCM_HOME/bin/amdclang++\n# fallback everywhere (no ROCm needed): -DGGML_VULKAN=ON / -DSD_VULKAN=ON\n```\n\nIf `hipcc` fails with `ModuleNotFoundError`, use `amdclang++` (as above).\n\nHost-level monitors live in `~/gpu-tools/` (own README + update\nscripts): `radeontop` / `nvtop` via dnf, `amdgpu_top` via upstream\nRPM. `rocminfo` / `amd-smi` come from this tarball:\n`$ROCM_HOME/bin/rocminfo`.\n\n- `rocminfo: command not found` - env not loaded:`source ~/therock-tarball/env.sh` (new shells need the`.bashrc` line + reopen).\n- `VERIFY FAILED` from`update.sh` - check`/tmp/rocminfo-verify-<VER>.txt` head output; GPU busy or HSA hiccup: just rerun`./update.sh <VER>` (download is skipped,`./current` is only flipped on success).\n- `error while loading shared libraries` when running built binaries -`sudo ldconfig` was missed after a flip, or the program was built\nagainst a deleted`versions/<OLD>` : rebuild it.\n\n- Never mix Fedora `rocm-*` dnf packages with this tarball.\n- Tarball + one extract ~= 4 GB. If disk bites, the big consumers on\nthis box are `~/models` +`~/.cache/huggingface` , not ROCm.", "url": "https://wpnews.pro/news/fedora-rocm-10-setup-with-tarball-along-with-maintinance-scripts", "canonical_source": "https://gist.github.com/Ankk98/fbb5ce4f0725182145c4d5d7857b6954", "published_at": "2026-09-27 12:32:25+00:00", "updated_at": "2026-09-27 13:30:24.683215+00:00", "lang": "en", "topics": ["ai-infrastructure", "developer-tools", "mlops"], "entities": ["AMD", "Fedora", "ROCm", "TheRock", "llama.cpp", "stable-diffusion.cpp", "whisper.cpp", "gfx1151"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/fedora-rocm-10-setup-with-tarball-along-with-maintinance-scripts", "markdown": "https://wpnews.pro/news/fedora-rocm-10-setup-with-tarball-along-with-maintinance-scripts.md", "text": "https://wpnews.pro/news/fedora-rocm-10-setup-with-tarball-along-with-maintinance-scripts.txt", "jsonld": "https://wpnews.pro/news/fedora-rocm-10-setup-with-tarball-along-with-maintinance-scripts.jsonld"}}