mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #446] setup (--backend hip): a runtime-only system ROCm 7 in /opt/rocm is picked for the engine build, and cmake fails on the missing hip-lang package instead of falling back to the TheRock wheels #205
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#205
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @harurun78 on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/446
What happens
./setup.sh --backend hipon a PC whose/opt/rocmhas the ROCm 7.14 runtime packages but not the development ones stops in step 4:Why
rocm_root()in setup.py takes the system ROCm whenbin/hipccandlib/libhipblas.so*exist and the version is 7.0 or newer. A runtime-only install has both, so the check passes:/opt/rocm/bin/hipccexists (on this install it comes fromamdrocm-llvm7.14)/opt/rocm/lib/libhipblas.so*andlibamdhip64.so*existinclude/rocm-core/rocm_version.hsays 7.14The parts the build needs are missing, though:
lib/cmake/hip-lang/,lib/cmake/hip/andinclude/hip/hip_runtime.h. On AMD's 26.13 repo the HIP ones ship inamdrocm-runtime-dev7.14(checked withdpkg -c), which, likeamdrocm-blas-dev7.14, comes withamdrocm-core-dev7.14-gfx1201; none of the-devpackages are installed here. So setup never tries the TheRock wheels path, which works on this PC without sudo.Workaround
Point
ROCM_PATHsomewhere without ROCm, so setup takes the TheRock wheels path:With that, the setup ran to the end (ROCm 7.10.0a20251120 wheels from
gfx120X-all, engine compiled, IQ3_XXS ready), and the server answers normally, tool calls included.Suggested fix
Have the system-ROCm check also look for the files the build needs (for example
lib/cmake/hip-lang/hip-lang-config.cmakeandinclude/hip/hip_runtime.h). When they are missing, warn and use the wheels, the same way an older ROCm is handled now:(I have not tried the build with the
-devpackages installed; the wheels path is the one verified here.)Note: open PR #426 (Windows AMD) also changes
rocm_root(), so this fix may be easier on top of it.Environment
main@aeb35be(the code in question is the same on1678de3)rocmradeon/apt/26.13:amdrocm-*7.147.14.0~pre3 runtime packages (amdrocm-core7.14-gfx1201,amdrocm-blas7.14-gfx1201,amdrocm-llvm7.14, ...), no-devpackages./setup.sh --backend hip --yes --no-start@Niko1221 commented on GitHub (Oct 2, 2026):
Fixed in 0.1.35, as you suggested: a system ROCm also needs HIP's CMake package (
hip-lang-config.cmake) andhip/hip_runtime.h. Without them setup says what's missing and uses AMD's TheRock wheels, as it does for an older ROCm. Thanks for the precise report!