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
3 changes: 2 additions & 1 deletion build2cmake/src/templates/preamble.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ elseif(GPU_LANG STREQUAL "SYCL")


set(sycl_link_flags "-fsycl;--offload-compress;-fsycl-targets=spir64_gen,spir64;-Xs;-device pvc,xe-lpg,ats-m150 -options ' -cl-intel-enable-auto-large-GRF-mode -cl-poison-unsupported-fp64-kernels -cl-intel-greater-than-4GB-buffer-required';")
set(GPU_FLAGS "-fsycl;-fhonor-nans;-fhonor-infinities;-fno-associative-math;-fno-approx-func;-fno-sycl-instrument-device-code;--offload-compress;-fsycl-targets=spir64_gen,spir64;")
set(sycl_flags "-fsycl;-fhonor-nans;-fhonor-infinities;-fno-associative-math;-fno-approx-func;-fno-sycl-instrument-device-code;--offload-compress;-fsycl-targets=spir64_gen,spir64;")
set(GPU_FLAGS "${sycl_flags}")
set(GPU_ARCHES "")
else()
override_gpu_arches(GPU_ARCHES
Expand Down
14 changes: 9 additions & 5 deletions build2cmake/src/templates/xpu/dep-cutlass-sycl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,20 @@ if (NOT CutlassSycl_FOUND)
message(STATUS "The CUTLASS_SYCL_SRC_DIR is set, using ${CUTLASS_SYCL_SRC_DIR} for compilation")
FetchContent_Declare(cutlass SOURCE_DIR ${CUTLASS_SYCL_SRC_DIR})
else()
# Speed up CUTLASS download by retrieving only the specified GIT_TAG instead of the history.
# Important: If GIT_SHALLOW is enabled then GIT_TAG works only with branch names and tags.
# So if the GIT_TAG above is updated to a commit hash, GIT_SHALLOW must be set to FALSE
if(CUTLASS_SYCL_REVISION MATCHES "^v")
set(CUTLASS_GIT_SHALLOW TRUE)
else()
set(CUTLASS_GIT_SHALLOW FALSE)
endif()
FetchContent_Declare(
cutlass
GIT_REPOSITORY https://github.com/intel/sycl-tla.git
GIT_TAG ${CUTLASS_SYCL_REVISION}
GIT_PROGRESS TRUE

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

Expand Down
Loading