mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #157] HIP backend build failure #82
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#82
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 @Dasug on GitHub (Sep 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/157
Building the HIP backend with
./setup.sh --backend hipfailed for me with:Full setup.sh output
From my understanding this might be caused since the header file is part of cuda, which I don't have installed since I don't own an Nvidia GPU. I ran the issue through another model and it created a shim
include/strata/hip_compat/math_constants.hwith the following content:AI fix
which caused the build to run through. However, I haven't been able to test if it actually works during runtime since I'm still downloading the model (my internet speed isn't that great 😅), so it's always possible the math constants are somehow incompatible between HIP and CUDA or whatever..
I'll hopefully be able to say more once the model has finished downloading. In case it runs fine, would you like a pull request with the shim or would you prefer to solve the issue yourself?
@Niko1221 commented on GitHub (Sep 29, 2026):
Thanks @Dasug, confirmed: that header only exists in the CUDA toolkit, and our AMD test PC happened to have it. The fix replaces
CUDART_INF_Fwith the standardINFINITY(from #160, which we'll take on its own), so your shim isn't needed. It will be in the next release. Your runtime results once the model finishes downloading would still be very welcome.@Niko1221 commented on GitHub (Sep 29, 2026):
Fixed in 0.1.27:
qsa_prompt_attn.cuuses the standardINFINITYinstead ofCUDART_INF_F, so the HIP build no longer needsmath_constants.h(the fix from @samuelishida's #160, taken on its own). Thanks @Dasug!./setup.sh --backend hipbuilds it on a ROCm-only PC now; results on your card are still very welcome.