Skip to content

Commit 1abaed2

Browse files
authored
Support sycl compiler after 2025.2 (#28)
* update compile flag to support dpcpp of 2025.2 * make it compatible with old version compiler
1 parent a62c183 commit 1abaed2

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Dockerfile.xpu_kernel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
# Set default Ubuntu version to 24.04
7-
FROM intel/deep-learning-essentials:2025.1.3-0-devel-ubuntu24.04
7+
FROM intel/deep-learning-essentials:2025.2.2-0-devel-ubuntu24.04
88

99
ENV DEBIAN_FRONTEND=noninteractive
1010

@@ -38,7 +38,7 @@ RUN --mount=type=secret,id=github_token \
3838
conda activate py${PYTHON_VERSION} && \
3939
# . /opt/intel/oneapi/setvars.sh --force && \
4040
# Install Torch
41-
pip install torch==2.8.0 torchvision torchaudio pytorch-triton-xpu==3.4.0 --index-url https://download.pytorch.org/whl/xpu
41+
pip install torch==2.9.0 torchvision torchaudio pytorch-triton-xpu==3.5.0 --index-url https://download.pytorch.org/whl/xpu
4242

4343
# Install SGlang from source
4444
RUN --mount=type=secret,id=github_token \

cmake/BuildFlags.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
7373
set(SYCL_KERNEL_OPTIONS ${SYCL_KERNEL_OPTIONS} -no-ftz)
7474
set(SYCL_KERNEL_OPTIONS ${SYCL_KERNEL_OPTIONS} -fno-sycl-instrument-device-code)
7575
set(SYCL_KERNEL_OPTIONS ${SYCL_KERNEL_OPTIONS} -Xspirv-translator)
76-
set(SYCL_KERNEL_OPTIONS ${SYCL_KERNEL_OPTIONS} -spirv-ext=+SPV_INTEL_split_barrier) #,+SPV_INTEL_2d_block_io,+SPV_INTEL_subgroup_matrix_multiply_accumulate)
76+
77+
# SYCL compiler in basekit after 2025.2 needs more spirv arguments.
78+
if(SYCL_COMPILER_VERSION GREATER_EQUAL 20250806)
79+
set(SYCL_KERNEL_OPTIONS ${SYCL_KERNEL_OPTIONS} -spirv-ext=+SPV_INTEL_split_barrier,+SPV_INTEL_2d_block_io,+SPV_INTEL_subgroup_matrix_multiply_accumulate)
80+
else()
81+
set(SYCL_KERNEL_OPTIONS ${SYCL_KERNEL_OPTIONS} -spirv-ext=+SPV_INTEL_split_barrier)
82+
endif()
7783

7884
if(CMAKE_BUILD_TYPE MATCHES Debug)
7985
set(SYCL_KERNEL_OPTIONS ${SYCL_KERNEL_OPTIONS} -g -O0 -Rno-debug-disables-optimization)

0 commit comments

Comments
 (0)