mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3219] [Engine] SYCL AOT build for bmg-g31 fails on 0.2.0-beta with IGC 2.36.3 (ICE in the int8 prompt-expert kernels); fine with the current base image #1309
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1309
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hotschmoe on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3219
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
The SYCL AOT build for the Arc Pro B70 (
AOT=bmg-g31) of 0.2.0-beta fails at the finalstratalink when the device compiler in the build image is IGC 2.36.3 (Compute Runtime / ocloc 26.22.38646.4). ocloc reportsIGC: Internal Compiler Error: Floating point exception/Build failed with error code: -11on 77 device images, thenicpx: error: gen compiler command failed with exit code 245. Every failing image is one of the new int8 prompt-expert kernels instrata::prefill::i8(TagGu,TagDn,TagGuW,TagDnW,SwigluTag,QuantTag;sycl/src/prefill/esimd_moe.dp.cpp). It is deterministic: the same 77 images fail on every run, and re-running ocloc on one saved image fails 4 of 4 times. The same images compile with the ocloc in the current base image (llama-sycl-b70:stable: ocloc 26.35.39758.10, IGC 2.41.5): 12 of 12 that I tried passed, and the whole AOT build then links.How a user ends up with the old compiler: docs/INTEL.md says to run
docker build -t strata-sycl-dev sycl/toolsagain only whensycl/tools/Dockerfilechanges.FROM ...llama-sycl-b70:stableis a moving tag, though, anddocker buildreuses a locally cached base unless it gets--pull. Astrata-sycl-devimage built a few weeks ago can therefore still carry an older IGC. (Ours was IGC 2.36.3 because we had swapped in the host driver's packages, so our exact image is not the stock one; I have not tested which older stock bases are affected.)Possible fixes (your call):
docker build --pullin the INTEL.md command, or a check insycl/tools/build.shthat stops an AOT Battlemage build with a clear message whenocloc --versionis older than the version these kernels were tested with.Smallest steps or command that reproduce it
In an image with ocloc 26.22.38646.4 / IGC 2.36.3 and oneAPI 2026.1:
AOT=bmg-g31 bash sycl/tools/build.sh strataon maine88ee39d. Or save one of the failing images and runocloc -file <image>.spv -spirv_input -device bmg-g31 -options "-cl-fp32-correctly-rounded-divide-sqrt" -output o -output_no_suffix(exit 245).Reproduction status
Reproduced locally
Strata version
0.2.0-beta (main
e88ee39d; the engine reports 0.1.45.3)Graphics card, memory and system
Build only (no GPU needed to reproduce); host 2x Arc Pro B70 32 GB, Ubuntu 24.04, kernel 7.1, xe driver, Docker build image with oneAPI 2026.1.0
Model, size and settings
n/a (compile failure)
Logs
Kernel names in the failing images (77 total):
_ZTSN6strata7prefill2i812_GLOBAL__N_15TagDnILi20ELi4ELi256EEEand the TagGu / TagGuW / TagDnW / SwigluTag / QuantTag variants.Prepared with AI assistance (Claude Code), at the submitter's request; reproduced on the submitter's machine.
@Niko1221 commented on GitHub (Oct 20, 2026):
Thanks for the careful report. We cannot fix IGC 2.36.3 itself. In 0.2.1: (1) sycl/tools/build.sh checks the ocloc version before the long compile and, for an AOT Battlemage build with Compute Runtime 26.22.38646.x, stops with the fix (docker build --pull -t strata-sycl-dev sycl/tools) instead of failing at the last link; ALLOW_BAD_OCLOC=1 builds anyway. (2) I8_ESIMD=OFF (CMake: STRATA_SYCL_I8_ESIMD=OFF) builds without the fused int8 ESIMD kernels (stubs; the prompt's experts take the slower XMX path, same answers) for an image you cannot update. (3) docs/INTEL.md and INTEL_ARC.md say --pull and why. I could not reproduce the crash itself: our Arc box has ocloc 26.31 (IGC 2.40.13) and builds AOT bmg-g31 without errors, both with the ESIMD kernels and with I8_ESIMD=OFF. The known-bad list holds only the one version you reported.
This is in Strata 0.2.1: https://github.com/Niko1221/Strata/releases/tag/v0.2.1
@Niko1221 commented on GitHub (Oct 24, 2026):
This is fixed in Strata 0.2.1. Please update to the latest release (in the Terminal:
strata update; in the app: download the newest installer from the releases page). If it still happens on the latest version, reply here and we will reopen it. Thank you for the report.