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

Abierto Apto para principiantes
#7,284 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 5 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
cpp, linux
Área
build-system

Línea de trabajo

Lee engine/src/inkling2/sycl/build_inkling_sycl.sh y compara su lista de objetos quant con los archivos fuente identificados en la issue y con la compilación funcional del core en engine/src/inkling2/CMakeLists.txt. El informe indica que faltan dispatch.cpp y los archivos fuente quant específicos de cada ISA; primero comprueba cómo aplica el script las opciones del compilador para cada ISA. La tarea estará terminada cuando el script enlace correctamente e imprima Build succeeded..

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C++
Estrellas
11.6k
Forks
1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Niko1221/Strata

Todos los issues de Niko1221/Strata

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.