[Engine] sycl/inkling2: build_inkling_sycl.sh does not link — the quant dispatch layer is missing from its object list
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- cpp, linux
- 領域
- build-system
調査の方向性
engine/src/inkling2/sycl/build_inkling_sycl.shを読み、quantオブジェクトのリストを、issueで特定されたソースおよびengine/src/inkling2/CMakeLists.txtにある動作するcoreのビルドと比較してください。報告では、dispatch.cppとISA固有のquantソースが不足しているとされています。まず、スクリプトがISAごとのコンパイラフラグをどのように適用するかを確認してください。スクリプトが正常にリンクし、Build succeeded.と出力すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
engine/src/inkling2/sycl/build_inkling_sycl.sh does not link. Every object compiles, then the link fails on the quant
dispatch symbols that inkling2_loop.cpp calls, and no strata-inkling-sycl binary is produced:
/usr/bin/ld: inkling2_loop.cpp:(.text+0x6b3b): undefined reference to `strata::quant::default_arith()'
/usr/bin/ld: inkling2_loop.cpp:(.text+0x6b58): undefined reference to `strata::quant::dot_kernel(strata::quant::Type, strata::quant::Arith)'
/usr/bin/ld: inkling2_loop.cpp:(.text+0x6b6f): undefined reference to `strata::quant::dot_x4_kernel(strata::quant::Type, strata::quant::Arith)'
/usr/bin/ld: inkling2_loop.cpp:(.text+0x6bc5): undefined reference to `strata::quant::act_kernel(strata::quant::Type, strata::quant::Arith)'
icpx: error: linker command failed with exit code 1 (use -v to see invocation)
Expected: the script prints Build succeeded. and strata-inkling --version.
The script's object list takes src/quant/{sk_codecs,dequant,types}.cpp. The four symbols above are defined in
src/quant/dispatch.cpp (dot_kernel, dot_x4_kernel, act_kernel, default_arith) and provided per ISA by
src/quant/x86/{dot,act}_avx*.cpp, none of which the script compiles. The sources are therefore complete — this is only
the script's list being short. engine/src/inkling2/CMakeLists.txt builds the same core through CMake and links fine.
Smallest steps or command that reproduce it
git clone --branch v0.2.21 https://github.com/Niko1221/Strata.git && cd Strata
export PATH=/opt/intel/oneapi/compiler/latest/bin:$PATH
export LD_LIBRARY_PATH=/opt/intel/oneapi/compiler/latest/lib:/opt/intel/oneapi/mkl/latest/lib:/opt/intel/oneapi/tbb/latest/lib:/opt/intel/oneapi/umf/latest/lib
bash engine/src/inkling2/sycl/build_inkling_sycl.sh "$PWD/build-inkling-sycl" bmg
fat fails the same way; the target mode makes no difference.
Reproduction status
- Reproduced locally
Strata version
Strata 0.2.21 · engine 0.1.67 (v0.2.21 = d46f5f268f8ed797e83a5c63a69bffbd7a581cf6)
Graphics card, memory and system
Intel Arc Pro B70 32 GB · 30 GiB RAM · Ubuntu 24.04.5, kernel 7.0.0-43-generic · oneAPI 2026.2.0 (icpx/icx)
Model, size and settings
Not reached — this is the build step, before any model is loaded.
Logs
First failure and the last lines of the same run, unedited apart from the paths:
[build_inkling_sycl] ICPX=icpx TARGET_MODE=bmg OUT_DIR=…/build-inkling-sycl
…
/usr/bin/ld: inkling2_loop.cpp:(.text+0x6b3b): undefined reference to `strata::quant::default_arith()'
icpx: error: linker command failed with exit code 1 (use -v to see invocation)
What I did after that (a workaround, in case it helps)
I added the missing translation units to a copy of the script — src/quant/{dispatch,isa,act_ref,dot_generic}.cpp with the
common flags, and src/quant/x86/{dot,act}_avx.cpp, …_avx2.cpp, …_avx512.cpp, each with its own tier flags
(dot_avx.cpp #errors if it is given AVX2/FMA/F16C, so that one gets -mavx only). With those it links and runs:
strata-inkling 0.1.67
[ink_sycl] native lossless GGUF_RAW SG16+XMX kernels active for 3072/3072 experts (zero S_K transcode)
[ink_sycl] loaded …/Inkling-2-Mini-IQ4_NL.gguf (src=gguf, build=GGUF-IQ4_NL, dev=Intel(R) Arc(TM) Pro B70 Graphics 31.9 GiB) in 20.30s
So the engine itself is fine on this card; only this script's object list is missing the quant layer. I have not sent a
pull request — if you would rather fix it in engine/src/inkling2/sycl/CMakeLists.txt (which is what packaging builds), I
can send the one-line change instead.
- 主要言語
- C++
- スター
- 11.6k
- フォーク
- 1k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Niko1221/Strata のほかの issue
-
[GUI] Engine chip: move the breathing status dot to the right end of the quant line, inside the chipオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 5 日以内に返信
-
[GUI] The top horizontal stroke of 更 in the sidebar footer is never drawn (Windows, 125% scaling)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Niko1221/Strata#7276 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Niko1221/Strata#7230 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Niko1221/Strata#7214 · コメント 2 件 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Niko1221/Strata#7211 · コメント 3 件 ·
メンテナーはふだん 5 日以内に返信
Niko1221/Strata の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/DirectXShaderCompiler#9173 ·
メンテナーはふだん 2 日以内に返信
-
feature:config kind:docs os:windows toolchain:cmake triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
arch-based bug niri
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
noctalia-dev/noctalia#5552 ·
メンテナーはふだん 1 日以内に返信