Skip to content

Commit 20ec684

Browse files
authored
[Fix][xpu]: resolve executable stack (RWE) security issue in binaries and bump sycl-tla to v0.8 (#449)
1 parent 0d6cb13 commit 20ec684

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

kernel-builder/src/pyproject/templates/torch/preamble.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ elseif(GPU_LANG STREQUAL "SYCL")
179179

180180

181181
set(sycl_link_flags "-Wl,-z,noexecstack;-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';")
182-
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;")
182+
set(sycl_flags "-fPIC;-fsycl;-fhonor-nans;-fhonor-infinities;-fno-associative-math;-fno-approx-func;-fno-sycl-instrument-device-code;--offload-compress;-fsycl-targets=spir64_gen,spir64;")
183183
set(GPU_FLAGS "${sycl_flags}")
184184
set(GPU_ARCHES "")
185185

kernel-builder/src/pyproject/templates/tvm_ffi/preamble.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ elseif(GPU_LANG STREQUAL "SYCL")
136136
message(STATUS "Using Intel SYCL C++ compiler: ${ICPX_COMPILER} and C compiler: ${ICX_COMPILER} Version: ${DPCPP_VERSION}")
137137
endif()
138138

139-
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';")
140-
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;")
139+
set(sycl_link_flags "-Wl,-z,noexecstack;-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';")
140+
set(sycl_flags "-fPIC;-fsycl;-fhonor-nans;-fhonor-infinities;-fno-associative-math;-fno-approx-func;-fno-sycl-instrument-device-code;--offload-compress;-fsycl-targets=spir64_gen,spir64;")
141141
set(GPU_FLAGS "${sycl_flags}")
142142
set(GPU_ARCHES "")
143143

kernel-builder/src/pyproject/templates/xpu/dep-sycl-tla.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ if(GPU_LANG STREQUAL "SYCL")
33
find_package(SyclTla)
44

55
if(DPCPP_VERSION STREQUAL "2025.3")
6-
set(SYCL_TLA_REVISION "14055e78510b8776ba739755eb57e592fdceefdb" CACHE STRING "CUTLASS revision to use")
6+
set(SYCL_TLA_REVISION "v0.8" CACHE STRING "CUTLASS revision to use")
77
else()
88
message(FATAL_ERROR "Unknown DPCPP_VERSION: ${DPCPP_VERSION}")
99
endif()

nix-builder/pkgs/xpu-packages/sycl-tla.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ let
1414
dpcppVersion = oneapi-torch-dev.version;
1515
cutlassVersions = {
1616
"2025.3" = {
17-
version = "0.6-dev";
18-
rev = "14055e78510b8776ba739755eb57e592fdceefdb";
19-
hash = "sha256-5KVvFdEYFQhvIjeauoEUSyhBdbSh6UYEwgsd+X7jcHA=";
17+
version = "0.8";
18+
hash = "sha256-xXAxIDBesjDDOIa6/YsGznyW+5+NpaO1L96lBuqRzrk=";
2019
};
2120
};
2221
cutlassVersion =

0 commit comments

Comments
 (0)