Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions kernel-builder/src/pyproject/templates/xpu/dep-sycl-tla.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ find_package(SyclTla)
if(DPCPP_VERSION STREQUAL "2025.3")
set(SYCL_TLA_REVISION "v0.8" CACHE STRING "sycl-tla revision to use")
elseif(DPCPP_VERSION STREQUAL "2026.0" OR DPCPP_VERSION STREQUAL "2026.1")
# v0.9.2 == the rev pinned in nix-builder; v0.9.1 has no cri kernel support.
set(SYCL_TLA_REVISION "v0.9.2" CACHE STRING "sycl-tla revision to use")
# v0.9.1 has no cri kernel support. v0.9.2 has a flash-attention forward
# regression (up to 8x slower than v0.8 on BMG) that is fixed in v0.9.3.
set(SYCL_TLA_REVISION "v0.9.3" CACHE STRING "sycl-tla revision to use")
else()
message(FATAL_ERROR "Unknown DPCPP_VERSION: ${DPCPP_VERSION}")
endif()
Expand Down Expand Up @@ -70,8 +71,10 @@ if(SYCL_TLA_REVISION MATCHES "^v3\\.9")
endif()

# Fat binary: AOT images for SYCL_AOT_DEVICES plus a spir64 JIT fallback.
# cri needs sycl-tla v0.9.2 and ocloc >= 26.22, so only 2026.0 gets AOT images.
if(DPCPP_VERSION STREQUAL "2026.0")
# cri needs sycl-tla v0.9.2 and ocloc >= 26.22, first shipped in DPC++ 2026.0.
# Gate on a minimum: an unlisted version silently falls back to slow JIT-only.
set(DPCPP_AOT_MIN_VERSION "2026.0")
if(DPCPP_VERSION VERSION_GREATER_EQUAL DPCPP_AOT_MIN_VERSION)
set(SYCL_AOT_DEVICES "{{ sycl_aot_devices }}")
set(SYCL_OFFLOAD_TARGETS "{{ sycl_offload_targets }}")
else()
Expand All @@ -81,8 +84,10 @@ endif()
# sycl-tla needs extra extensions (split-barrier always; block-IO and
# matrix-multiply on newer DPCPP). Since the translator replaces the whole
# -spirv-ext list, we query the driver's defaults and append the extras.
# Gate on a minimum: an unlisted version silently loses block-IO and DPAS.
set(DPCPP_BLOCK_IO_MIN_VERSION "2025.2")
set(_sycl_tla_extra_ext "+SPV_INTEL_split_barrier")
if(DPCPP_VERSION STREQUAL "2025.2" OR DPCPP_VERSION STREQUAL "2025.3" OR DPCPP_VERSION STREQUAL "2026.0" OR SYCL_TLA_REVISION STREQUAL "v0.5")
if(DPCPP_VERSION VERSION_GREATER_EQUAL DPCPP_BLOCK_IO_MIN_VERSION OR SYCL_TLA_REVISION STREQUAL "v0.5")
string(APPEND _sycl_tla_extra_ext ",+SPV_INTEL_2d_block_io,+SPV_INTEL_subgroup_matrix_multiply_accumulate")
endif()

Expand Down
8 changes: 4 additions & 4 deletions nix-builder/pkgs/xpu-packages/sycl-tla.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ let
hash = "sha256-xXAxIDBesjDDOIa6/YsGznyW+5+NpaO1L96lBuqRzrk=";
};
"2026.0" = {
version = "0.9.2";
hash = "sha256-Hn51Ah1wEscOnrt9O/aXBW7IC6Mcl4gUWynAmDeAOlM=";
version = "0.9.3";
hash = "sha256-HOUvysPiTdsJaP2gxfq0MTVOyJF4wmZ7wHDUrIfzlSE=";
};
"2026.1" = {
version = "0.9.2";
hash = "sha256-Hn51Ah1wEscOnrt9O/aXBW7IC6Mcl4gUWynAmDeAOlM=";
version = "0.9.3";
hash = "sha256-HOUvysPiTdsJaP2gxfq0MTVOyJF4wmZ7wHDUrIfzlSE=";
};
};
syclTlaVersion =
Expand Down
Loading