You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build: a full cmake --build fails at 92% — the three-argument step_batch_embeds is declared and called but never defined #1573
main does not complete a full build: the three-argument step_batch_embeds is declared and called, but only the HybridInputs overload is defined
Measured on origin/main = 180c58d4, clean worktree, cmake -DCMAKE_BUILD_TYPE=Release -DONEBIT_NPU=ON -DONEBIT_NPU_RT_DIR=… then cmake --build build-npu -j 6 (under ~/lb/thermal-run.sh):
[ 92%] Linking CXX executable embeds_equiv_probe
/usr/bin/x86_64-linux-gnu-ld.bfd: CMakeFiles/embeds_equiv_probe.dir/npu/forward/embeds_equiv_probe.cpp.o: in function `main':
embeds_equiv_probe.cpp:(.text.startup+0x4a4): undefined reference to
`Q4nxNpuForward::step_batch_embeds(std::vector<float, std::allocator<float> > const&, int, std::vector<float, std::allocator<float> >&)'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/embeds_equiv_probe.dir/build.make:107: embeds_equiv_probe] Error 1
What is going on:
npu/forward/include/q4nx_forward.h declares both overloads — the three-argument one (plain text) and the four-argument one that takes HybridInputs (position planes + deepstack);
npu/forward/src/q4nx_forward.cpp defines only the four-argument one, so the three-argument declaration has no symbol;
npu/forward/embeds_equiv_probe.cpp (the equivalence probe for the embeddings path, target embeds_equiv_probe) calls the three-argument form at line 76 — which is where the link fails;
the onebit target links fine, because it never pulls the probe in, so the breakage survives a build that stops at the engine binary.
Why it matters beyond the probe: any target that links npu/forward and calls the documented plain-text overload fails to link, and a full cmake --build on main is red at 92 %, which is exactly the kind of thing that makes a release build look non-reproducible.
The fix is one function (a forwarder with default HybridInputs), which is what the header's three-argument comment describes. PR follows; the probe passes with it (PASS (3/3 prompts identical) on Qwen2.5-0.5B hybrid, host-GEMM, no device).
Activity
build: a gate for a declared-but-undefined Q4nxNpuForward member (the #…
tests: a declaration with no definition cannot hide behind `--target …
build: a gate for a declared-but-undefined Q4nxNpuForward member, so #…
tests: a declaration with no definition cannot hide behind `--target …
ci: build embeds_equiv_probe, the target whose missing symbol reddene…