[Engine] sycl/inkling2: build_inkling_sycl.sh does not link — the quant dispatch layer is missing from its object list

オープン 初心者向け
#7,284 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Niko1221/Strata のほかの issue

Niko1221/Strata の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。