mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#2824
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/784
Author: @sarashin65
Created: 10/4/2026
Status: ❌ Closed
Base:
main← Head:sycl-build-0139📝 Commits (1)
9a8563bsycl: follow #626 (ThreadAffinity) and #559 (NativeDense::load layer range) so v0.1.39 compiles📊 Changes
3 files changed (+11 additions, -5 deletions)
View changed files
📝
sycl/include/strata/core/session.hpp(+2 -1)📝
sycl/src/core/native_dense.cpp(+7 -2)📝
sycl/src/core/session.cpp(+2 -2)📄 Description
What this fixes
The
v0.1.39tag does not compile on the Intel (SYCL) side. The port went in as5047172("sycl: port 0.1.39"); two engine-side changes were merged into the release branch after it (cb97e6c,1189218) and nothing insycl/was updated for them.Three compile errors, 3 files, 11 insertions / 5 deletions:
sycl/ec35cf0- the thread affinity became a value (pin_current_thread()returnsstrata::kernels::cpu::ThreadAffinity,restore_thread_affinity()takes one)sycl/include/strata/core/session.hppstill stored along longand did not include the header that names the type;sycl/src/core/session.cppstill assigned the returned struct to it and passed thelong longback.session.cpp:786/:801ba707d8- the two layer-range arguments were added toNativeDense::loadsycl/src/core/native_dense.cpp:87was still the 4-argument one, so it matched no declaration ininclude/strata/core/native_dense.hpp:24A plain
cmake --buildstops at the first one:The third error is independent of the first two: it appears with
-- -k 0, or once the first two are fixed.Both files are corrected by mirroring the CUDA sources: the same member type, the same
outside()predicate, and the same place it is applied in the tensor loop (if (!eligible(tensor, include_ple_key) || outside(tensor.name)) continue;).Three notes for review:
pinnednow follows CUDA as well: it ispinned_core.valid(src/core/session.cpp:550), so a pin that failed is not "restored". Nothing changes when the pin succeeds.layer_lo/layer_hiyet (src/program/generate.cpp:2268,2596;sycl/src/program/generate.cpp:2366,2750), sooutside()is never true today. This restores the build; it does not change what the engine computes.docs/INTEL.mdkeeps the copies up to date by re-migration. This is the same change a re-migration would merge in, so a later re-migration should merge over it cleanly (nosycl/tools/fixups.pyentry needed).For anyone reading the port's own history: the "0 errors, 157 targets" in
docs/INTEL_ARC.mdwas written on the branch before those two merges (da3e9a1), so it is not a contradiction.How it was checked
cmake -S sycl -B build-sycl -G Ninja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx, SPIR-V (JIT).cmake --build build-sycl --target strata -- -k 0-> 0 errors, links.The two mismatches are a type and a declaration mismatch, so the compiler version does not matter.
Not covered
--target strata.core/layer.hppmoe_route_window, theconst QsaState* draftoverloads incore/conversation_snapshot.hpp,kernels/bf16_gemv.hpp,kernels/elementwise.hpp,kernels/fused_gr.hpp,kernels/iq_kernels.hpp,kernels/ple.hpp,kernels/shared_expert.hpp,prefill/kernels.hpp,prefill/prefill.hpp). Nothing insycl/calls them, so it links. I can list them in an issue.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.