[PR #5473] [Engine] link stubs for fused::want_dm_f16 / dm_f16_used without the fused prompt kernels #5445

Open
opened 2026-11-07 17:34:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • b8b8d97 prefill: 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.cpp calls fused::want_dm_f16() and fused::dm_f16_used(). Both are defined only in src/prefill/moe_fused_iq.cu. A build that does not define STRATA_PREFILL_FUSED does not compile that file, so linking strata fails:

ld.lld: error: undefined symbol: strata::prefill::fused::want_dm_f16(bool)
ld.lld: error: undefined symbol: strata::prefill::fused::dm_f16_used()
clang++: error: linker command failed with exit code 1

With this change the build links again.

Approach: add both functions to the existing #ifndef STRATA_PREFILL_FUSED stub block in prefill.cpp, next to the other fused:: stubs. dm_f16_used() returns false, so these builds keep the FP32 down rows (the path before 6e31946c). Builds that define STRATA_PREFILL_FUSED do not compile the block, so they do not change.

Validation:
Passed: cmake --build build-hip -j4 --target strata on 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, and strata --version prints strata 0.1.58. src/ and CMakeLists.txt are the same on v0.2.12 and on main 146df3c4.
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_FUSED do 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/5473 **Author:** [@YamineRL](https://github.com/YamineRL) **Created:** 11/7/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/no-fused-dm16-stubs` --- ### 📝 Commits (1) - [`b8b8d97`](https://github.com/Niko1221/Strata/commit/b8b8d9719684c1ccefd8c433a138c5bef63ca893) prefill: link stubs for fused::want_dm_f16 / dm_f16_used in builds without STRATA_PREFILL_FUSED ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/prefill/prefill.cpp` (+2 -0) </details> ### 📄 Description Problem and result: since 6e31946c (STRATA_PF_DM16), `prefill.cpp` calls `fused::want_dm_f16()` and `fused::dm_f16_used()`. Both are defined only in `src/prefill/moe_fused_iq.cu`. A build that does not define `STRATA_PREFILL_FUSED` does not compile that file, so linking `strata` fails: ``` ld.lld: error: undefined symbol: strata::prefill::fused::want_dm_f16(bool) ld.lld: error: undefined symbol: strata::prefill::fused::dm_f16_used() clang++: error: linker command failed with exit code 1 ``` With this change the build links again. Approach: add both functions to the existing `#ifndef STRATA_PREFILL_FUSED` stub block in `prefill.cpp`, next to the other `fused::` stubs. `dm_f16_used()` returns false, so these builds keep the FP32 down rows (the path before 6e31946c). Builds that define `STRATA_PREFILL_FUSED` do not compile the block, so they do not change. Validation: Passed: `cmake --build build-hip -j4 --target strata` on 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, and `strata --version` prints `strata 0.1.58`. `src/` and `CMakeLists.txt` are the same on v0.2.12 and on main 146df3c4. 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_FUSED` do 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](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#5445
No description provided.