mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #5473] [Engine] link stubs for fused::want_dm_f16 / dm_f16_used without the fused prompt kernels #5445
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#5445
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/5473
Author: @YamineRL
Created: 11/7/2026
Status: 🔄 Open
Base:
main← Head:fix/no-fused-dm16-stubs📝 Commits (1)
b8b8d97prefill: link stubs for fused::want_dm_f16 / dm_f16_used in builds without STRATA_PREFILL_FUSED📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
src/prefill/prefill.cpp(+2 -0)📄 Description
Problem and result: since
6e31946c(STRATA_PF_DM16),prefill.cppcallsfused::want_dm_f16()andfused::dm_f16_used(). Both are defined only insrc/prefill/moe_fused_iq.cu. A build that does not defineSTRATA_PREFILL_FUSEDdoes not compile that file, so linkingstratafails:With this change the build links again.
Approach: add both functions to the existing
#ifndef STRATA_PREFILL_FUSEDstub block inprefill.cpp, next to the otherfused::stubs.dm_f16_used()returns false, so these builds keep the FP32 down rows (the path before6e31946c). Builds that defineSTRATA_PREFILL_FUSEDdo not compile the block, so they do not change.Validation:
Passed:
cmake --build build-hip -j4 --target strataon v0.2.12 (123bad4a) with this change. HIP, ROCm 7.2.4 (hipconfig 7.2.53211),GPU_TARGETS=gfx1030,STRATA_PREFILL_MMQ=OFF,STRATA_BUILD_DSV41=OFF, Linux x86_64. The binary links, andstrata --versionprintsstrata 0.1.58.src/andCMakeLists.txtare the same on v0.2.12 and on main146df3c4.Failed: the same build without this change (the link errors above).
Not run: CUDA and SYCL builds (I have no toolkit for them; the change is only in a block that builds with
STRATA_PREFILL_FUSEDdo not compile). I have not yet confirmed a served request on the RX 6800 with this binary.Limits: this fixes only the link. It does not make STRATA_PF_DM16 available on builds without the fused kernels.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.