Skip to content

Commit e0760a3

Browse files
authored
[DevOps] Build the SPIR-V backend by default (#19624)
It's a non-experimental backend and we test with it in CI here, so build it by default. Note it is still not used by default. Also fix a failing test with SPV backend enabled and Native CPU disabled. Signed-off-by: Sarnie, Nick <[email protected]>
1 parent f2ac846 commit e0760a3

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

.github/workflows/coverity.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ jobs:
4646
python3 $GITHUB_WORKSPACE/src/buildbot/configure.py -w $GITHUB_WORKSPACE \
4747
-s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build -t Release \
4848
--ci-defaults --hip --cuda \
49-
-DNATIVECPU_USE_OCK=Off \
50-
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=SPIRV
49+
-DNATIVECPU_USE_OCK=Off
5150
5251
- name: Build with coverity
5352
run: $GITHUB_WORKSPACE/cov-analysis-linux64-*/bin/cov-build --dir cov-int cmake --build $GITHUB_WORKSPACE/build --target sycl-toolchain

.github/workflows/sycl-linux-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ jobs:
177177
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
178178
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
179179
-DLLVM_INSTALL_UTILS=ON \
180-
-DNATIVECPU_USE_OCK=Off \
181-
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=SPIRV
180+
-DNATIVECPU_USE_OCK=Off
182181
- name: Compile
183182
id: build
184183
# Emulate default value for manual dispatch as we've run out of available arguments.

.github/workflows/sycl-windows-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ jobs:
146146
"-DCMAKE_INSTALL_PREFIX=%GITHUB_WORKSPACE%\install" ^
147147
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache ^
148148
-DCMAKE_C_COMPILER_LAUNCHER=ccache ^
149-
-DLLVM_INSTALL_UTILS=ON ^
150-
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=SPIRV
149+
-DLLVM_INSTALL_UTILS=ON
151150
- name: Build
152151
id: build
153152
shell: bash

buildbot/configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def do_configure(args, passthrough_args):
4646
xptifw_dir = os.path.join(abs_src_dir, "xptifw")
4747
libdevice_dir = os.path.join(abs_src_dir, "libdevice")
4848
jit_dir = os.path.join(abs_src_dir, "sycl-jit")
49-
llvm_targets_to_build = args.host_target
49+
llvm_targets_to_build = args.host_target + ";SPIRV"
5050
llvm_enable_projects = "clang;" + llvm_external_projects
5151
libclc_build_native = "OFF"
5252
libclc_targets_to_build = ""

clang/test/Driver/sycl-linker-wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
// -------
207207
// Generate .o file as linker wrapper input.
208208
//
209-
// RUN: %clang %s -fsycl -fsycl-targets=native_cpu -c --offload-new-driver -o %t6.o
209+
// RUN: %clang %s -fsycl -fsycl-targets=native_cpu -c --offload-new-driver -fno-sycl-libspirv -o %t6.o
210210
//
211211
// RUN: clang-linker-wrapper "--host-triple=x86_64-unknown-linux-gnu" "-sycl-device-library-location=%S/Inputs/native_cpu" "--sycl-post-link-options=SYCL_POST_LINK_OPTIONS" "--linker-path=/usr/bin/ld" "--" HOST_LINKER_FLAGS "-dynamic-linker" HOST_DYN_LIB "-o" "a.out" %t6.o --dry-run 2>&1 | FileCheck -check-prefix=CHK-CMDS-NATIVE-CPU %s
212212
// CHK-CMDS-NATIVE-CPU: "{{.*}}/spirv-to-ir-wrapper" {{.*}} --llvm-spirv-opts --spirv-preserve-auxdata --spirv-target-env=SPV-IR --spirv-builtin-format=global

0 commit comments

Comments
 (0)