Repository navigation
Conversation
…e and crashed InkSyRunner::reset_slot read sc_hist_k (empty until alloc) with the default max_slots of 1, so 'strata-inkling --selfcheck' died with SIGSEGV before printing a line -- on every release binary, both GPUs here; --selfcheck --native was fine. Without --native there is no model, no slots and no vocab to forward: run one SG16 F32 linear kernel against the scalar reference instead (the device-side counterpart of the CPU backend's SF4/MX8 checks), and make reset_slot tolerate the pre-alloc state.
kgmkm
force-pushed
the
ink-sycl-selfcheck
branch
from
November 23, 2026 04:34
479cf34 to
e93af99
Compare
Contributor
Author
|
Rebased onto v0.2.20 as a single commit (the earlier stack is gone: the serve |
Contributor
Author
|
What changed with the v0.2.20 update, for the record:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
strata-inkling --selfcheck(without--native) dies with SIGSEGV before printing a line — on every release binary (verified here on the shipped 0.1.65 and 0.1.66 sycl packages) and on a local build of v0.2.20, on either GPU.cmd_selfcheckcalls the backend with no model loaded; the SYCLselfcheck()built a StepBatch against a default-constructed manifest and calledInkSyRunner::reset_slot(0).reset_slot's only guard ismax_slots, whose default is 1, while thesc_hist_*device buffers it dereferences are empty until alloc — the empty vector'soperator[]handsdzeroa garbage pointer.--selfcheck --native <model>was always fine (init loads and allocs first), and the CPU backend passes without a model because it checks its own SIMD kernels instead — which is what--selfcheck(native optional, per the usage line) promises.Result
--selfcheckwith no model prints[selfcheck] PASS backend=sycl (<device> …, SG16): the device-side counterpart of the CPU backend's numerics checks. It runs one SG16 F32 linear kernel (k_linear_f32_sg16) on synthetic data and compares against the scalar reference — proving the runtime came up, USM allocates, kernels compile (AOT or JIT) and compute.reset_slotalso tolerates the pre-alloc state now, so no future caller can resurrect the crash.Validation
Passed (Arc B580 12 GB + Arc Pro B70 32 GB, oneAPI DPC++ 2026.2.0, cmake
-DSTRATA_ENABLE_SYCL=ON -DSTRATA_SYCL_TARGETS=spir64,intel_gpu_bmg_g31):strata-inkling-0.1.66-linux-x86_64-syclpackage:--selfcheck→ SIGSEGV, exit 139, zero output, on both GPUs;--selfcheck --native SQ-20 --gpu 1→ PASS on the B70.--selfcheck→ PASS on the B580 (default);--selfcheck --native SQ-20 --gpu 1→ PASS on the B70, unchanged; a short serve session unchanged.STRATA_INKLING_BIN=<build>/strata-inkling python -m unittest test_inkling_e2e test_inkling_serve_e2e— 5/5 and 2/2 OK (the binary test builds a tiny .strata in-test and drives--selfcheck/--info/--serveat c=1..64 with Vision; needsnumpy/zstandardin the venv).Failed: none on the hardware above.
Not run: CUDA/HIP builds (no toolchains here; their selfcheck paths are untouched), Metal, the fixture parity test (needs a fixture file this machine does not have).
Limits
--selfcheckstill lands on the first card even with--gpu N: v0.2.20'sset_primary_gpu_index(opts.gpu_index)runs ininit(), which the no-model path never enters. Out of scope here (the crash is the problem this fixes); one factory-level line would close it if wanted.