Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 2ee65b6

Browse files
[XPU] Update the sycl-tla (cutlass-sycl) version (#337)
Update the sycl-tla (cutlass-sycl) version to support the latest FA2 kernel. Original PR: #331 --------- Co-authored-by: YangKai0616 <kai.yang@intel.com>
1 parent 7872392 commit 2ee65b6

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

build2cmake/src/templates/xpu/dep-cutlass-sycl.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
find_package(CutlassSycl)
22

33
if(DPCPP_VERSION STREQUAL "2025.2")
4-
set(CUTLASS_SYCL_REVISION "v0.5" CACHE STRING "CUTLASS revision to use")
4+
set(CUTLASS_SYCL_REVISION "14055e78510b8776ba739755eb57e592fdceefdb" CACHE STRING "CUTLASS revision to use")
55
elseif(DPCPP_VERSION STREQUAL "2025.1")
66
set(CUTLASS_SYCL_REVISION "v3.9-0.3" CACHE STRING "CUTLASS revision to use")
77
elseif(DPCPP_VERSION STREQUAL "2025.0")
@@ -27,14 +27,14 @@ if (NOT CutlassSycl_FOUND)
2727
else()
2828
FetchContent_Declare(
2929
cutlass
30-
GIT_REPOSITORY https://github.com/intel/cutlass-sycl.git
30+
GIT_REPOSITORY https://github.com/intel/sycl-tla.git
3131
GIT_TAG ${CUTLASS_SYCL_REVISION}
3232
GIT_PROGRESS TRUE
3333

3434
# Speed up CUTLASS download by retrieving only the specified GIT_TAG instead of the history.
3535
# Important: If GIT_SHALLOW is enabled then GIT_TAG works only with branch names and tags.
3636
# So if the GIT_TAG above is updated to a commit hash, GIT_SHALLOW must be set to FALSE
37-
GIT_SHALLOW TRUE
37+
GIT_SHALLOW $<IF:$<MATCHES:${CUTLASS_SYCL_REVISION},^v>,TRUE,FALSE>
3838
)
3939
endif()
4040

@@ -67,7 +67,7 @@ endif()
6767
string(REPLACE "-fsycl-targets=spir64_gen,spir64" "-fsycl-targets=spir64" sycl_link_flags "${sycl_link_flags}")
6868
string(REPLACE "-device pvc,xe-lpg,ats-m150" "-device bmg_g21,pvc" sycl_link_flags "${sycl_link_flags}")
6969
string(APPEND sycl_link_flags "-Xspirv-translator;-spirv-ext=+SPV_INTEL_split_barrier")
70-
if(CUTLASS_SYCL_REVISION STREQUAL "v0.5")
70+
if(DPCPP_VERSION STREQUAL "2025.2" OR CUTLASS_SYCL_REVISION STREQUAL "v0.5")
7171
string(APPEND sycl_link_flags ",+SPV_INTEL_2d_block_io,+SPV_INTEL_subgroup_matrix_multiply_accumulate")
7272
endif()
7373
string(REPLACE "-fsycl-targets=spir64_gen,spir64" "-fsycl-targets=spir64" sycl_flags "${sycl_flags}")

pkgs/xpu-packages/cutlass-sycl.nix

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ let
1818
hash = "sha256-FLmTseMw31txptQkvWaN03xoaLzIbQz2Ip1xtCKH3ZE=";
1919
};
2020
"2025.2" = {
21-
version = "0.5";
22-
hash = "sha256-IgsPsREGPqtko6qVyVmDyI1CAGn46fqu1clL8UHltno=";
21+
version = "0.6-dev";
22+
rev = "14055e78510b8776ba739755eb57e592fdceefdb";
23+
hash = "sha256-5KVvFdEYFQhvIjeauoEUSyhBdbSh6UYEwgsd+X7jcHA=";
2324
};
2425
};
2526
cutlassVersion =
@@ -31,12 +32,19 @@ stdenv.mkDerivation rec {
3132
pname = "cutlass-sycl";
3233
inherit (cutlassVersion) version;
3334

34-
src = fetchFromGitHub {
35-
owner = "intel";
36-
repo = "cutlass-sycl";
37-
tag = "v${cutlassVersion.version}";
38-
inherit (cutlassVersion) hash;
39-
};
35+
src = fetchFromGitHub (
36+
{
37+
owner = "intel";
38+
repo = "sycl-tla";
39+
inherit (cutlassVersion) hash;
40+
}
41+
// (
42+
if cutlassVersion ? rev then
43+
{ inherit (cutlassVersion) rev; }
44+
else
45+
{ tag = "v${cutlassVersion.version}"; }
46+
)
47+
);
4048

4149
nativeBuildInputs = [
4250
cmake

0 commit comments

Comments
 (0)