11if (GPU_LANG STREQUAL "SYCL" )
22
3- find_package (CutlassSycl )
3+ find_package (SyclTla )
44
55if (DPCPP_VERSION STREQUAL "2025.3" )
6- set (CUTLASS_SYCL_REVISION "14055e78510b8776ba739755eb57e592fdceefdb" CACHE STRING "CUTLASS revision to use" )
6+ set (SYCL_TLA_REVISION "14055e78510b8776ba739755eb57e592fdceefdb" CACHE STRING "CUTLASS revision to use" )
77elseif (DPCPP_VERSION STREQUAL "2025.2" )
8- set (CUTLASS_SYCL_REVISION "14055e78510b8776ba739755eb57e592fdceefdb" CACHE STRING "CUTLASS revision to use" )
8+ set (SYCL_TLA_REVISION "14055e78510b8776ba739755eb57e592fdceefdb" CACHE STRING "CUTLASS revision to use" )
99elseif (DPCPP_VERSION STREQUAL "2025.1" )
10- set (CUTLASS_SYCL_REVISION "v3.9-0.3" CACHE STRING "CUTLASS revision to use" )
10+ set (SYCL_TLA_REVISION "v3.9-0.3" CACHE STRING "CUTLASS revision to use" )
1111elseif (DPCPP_VERSION STREQUAL "2025.0" )
12- set (CUTLASS_SYCL_REVISION "v3.9-0.2" CACHE STRING "CUTLASS revision to use" )
12+ set (SYCL_TLA_REVISION "v3.9-0.2" CACHE STRING "CUTLASS revision to use" )
1313else ()
1414 message (FATAL_ERROR "Unknown DPCPP_VERSION: ${DPCPP_VERSION} " )
1515endif ()
1616
17- if (NOT CutlassSycl_FOUND )
17+ if (NOT SyclTla_FOUND )
1818 set (CUTLASS_ENABLE_HEADERS_ONLY ON CACHE BOOL "Enable only the header library" )
1919 set (CUTLASS_ENABLE_BENCHMARKS OFF CACHE BOOL "Disable CUTLASS Benchmarks" )
20- # Use the specified CUTLASS source directory for compilation if CUTLASS_SYCL_SRC_DIR is provided
21- if (DEFINED ENV{CUTLASS_SYCL_SRC_DIR })
22- set (CUTLASS_SYCL_SRC_DIR $ENV{CUTLASS_SYCL_SRC_DIR } )
20+ # Use the specified CUTLASS source directory for compilation if SYCL_TLA_SRC_DIR is provided
21+ if (DEFINED ENV{SYCL_TLA_SRC_DIR })
22+ set (SYCL_TLA_SRC_DIR $ENV{SYCL_TLA_SRC_DIR } )
2323 endif ()
2424
25- if (CUTLASS_SYCL_SRC_DIR )
26- if (NOT IS_ABSOLUTE CUTLASS_SYCL_SRC_DIR )
27- get_filename_component (CUTLASS_SYCL_SRC_DIR "${CUTLASS_SYCL_SRC_DIR } " ABSOLUTE )
25+ if (SYCL_TLA_SRC_DIR )
26+ if (NOT IS_ABSOLUTE SYCL_TLA_SRC_DIR )
27+ get_filename_component (SYCL_TLA_SRC_DIR "${SYCL_TLA_SRC_DIR } " ABSOLUTE )
2828 endif ()
29- message (STATUS "The CUTLASS_SYCL_SRC_DIR is set, using ${CUTLASS_SYCL_SRC_DIR } for compilation" )
30- FetchContent_Declare (cutlass SOURCE_DIR ${CUTLASS_SYCL_SRC_DIR } )
29+ message (STATUS "The SYCL_TLA_SRC_DIR is set, using ${SYCL_TLA_SRC_DIR } for compilation" )
30+ FetchContent_Declare (cutlass SOURCE_DIR ${SYCL_TLA_SRC_DIR } )
3131 else ()
3232 # Speed up CUTLASS download by retrieving only the specified GIT_TAG instead of the history.
3333 # Important: If GIT_SHALLOW is enabled then GIT_TAG works only with branch names and tags.
3434 # So if the GIT_TAG above is updated to a commit hash, GIT_SHALLOW must be set to FALSE
35- if (CUTLASS_SYCL_REVISION MATCHES "^v" )
35+ if (SYCL_TLA_REVISION MATCHES "^v" )
3636 set (CUTLASS_GIT_SHALLOW TRUE )
3737 else ()
3838 set (CUTLASS_GIT_SHALLOW FALSE )
3939 endif ()
4040 FetchContent_Declare (
4141 cutlass
4242 GIT_REPOSITORY https://github.com/intel/sycl-tla.git
43- GIT_TAG ${CUTLASS_SYCL_REVISION }
43+ GIT_TAG ${SYCL_TLA_REVISION }
4444 GIT_PROGRESS TRUE
4545 GIT_SHALLOW ${CUTLASS_GIT_SHALLOW}
4646 )
4747 endif ()
4848
4949 # Set Intel backend env
50- message (STATUS "Setting Intel GPU optimization env vars for Cutlass-SYCL " )
50+ message (STATUS "Setting Intel GPU optimization env vars for sycl-tla " )
5151 set (CUTLASS_ENABLE_SYCL ON CACHE BOOL "Enable SYCL for CUTLASS" )
5252 add_compile_definitions (CUTLASS_ENABLE_SYCL=1 )
5353 set (DPCPP_SYCL_TARGET "intel_gpu_bmg_g21,intel_gpu_pvc" CACHE STRING "SYCL target for Intel GPU" )
@@ -67,15 +67,15 @@ if (NOT CutlassSycl_FOUND)
6767else ()
6868 include_directories (${CUTLASS_INCLUDE_DIR} )
6969 include_directories (${CUTLASS_TOOLS_UTIL_INCLUDE_DIR} )
70- endif (NOT CutlassSycl_FOUND )
71- if (CUTLASS_SYCL_REVISION MATCHES "^v3\\ .9" )
70+ endif (NOT SyclTla_FOUND )
71+ if (SYCL_TLA_REVISION MATCHES "^v3\\ .9" )
7272 add_compile_definitions (OLD_API=1 )
7373endif ()
7474
7575string (REPLACE "-fsycl-targets=spir64_gen,spir64" "-fsycl-targets=spir64" sycl_link_flags "${sycl_link_flags} " )
7676string (REPLACE "-device pvc,xe-lpg,ats-m150" "-device bmg_g21,pvc" sycl_link_flags "${sycl_link_flags} " )
7777string (APPEND sycl_link_flags "-Xspirv-translator;-spirv-ext=+SPV_INTEL_split_barrier" )
78- if (DPCPP_VERSION STREQUAL "2025.2" OR DPCPP_VERSION STREQUAL "2025.3" OR CUTLASS_SYCL_REVISION STREQUAL "v0.5" )
78+ if (DPCPP_VERSION STREQUAL "2025.2" OR DPCPP_VERSION STREQUAL "2025.3" OR SYCL_TLA_REVISION STREQUAL "v0.5" )
7979 string (APPEND sycl_link_flags ",+SPV_INTEL_2d_block_io,+SPV_INTEL_subgroup_matrix_multiply_accumulate" )
8080endif ()
8181string (REPLACE "-fsycl-targets=spir64_gen,spir64" "-fsycl-targets=spir64" sycl_flags "${sycl_flags} " )
0 commit comments