File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
// CUDA does not support SPIR-V.
3
3
4
4
// -fsycl-targets=%sycl_triple
5
- // RUN: %clangxx -fsycl-device-only -fno-sycl-use-bitcode -Xclang -fsycl-int-header=%t.h -c %s -o %t.spv -I %sycl_include -Xclang -verify-ignore-unexpected=note,warning -Wno-sycl-strict
5
+ // Runtime assumes that the image passed with SYCL_USE_KERNEL_SPV has no
6
+ // eliminated arguments, compile without early optimizations.
7
+ // RUN: %clangxx -fsycl-device-only -fno-sycl-early-optimizations -fno-sycl-use-bitcode -Xclang -fsycl-int-header=%t.h -c %s -o %t.spv -I %sycl_include -Xclang -verify-ignore-unexpected=note,warning -Wno-sycl-strict
6
8
// RUN: %clangxx -include %t.h -g %s -o %t.out -lsycl -I %sycl_include -Xclang -verify-ignore-unexpected=note,warning
7
9
// RUN: env SYCL_BE=%sycl_be SYCL_USE_KERNEL_SPV=%t.spv %t.out | FileCheck %s
8
10
// CHECK: Passed
Original file line number Diff line number Diff line change 3
3
//
4
4
// >> ---- compile src1
5
5
// >> device compilation...
6
- // RUN: %clangxx -fsycl-device-only -Xclang -fsycl-int-header=sycl_ihdr_a.h %s -c -o a_kernel.bc -I %sycl_include -Wno-sycl-strict
6
+ // RUN: %clangxx -fsycl-device-only -fno-sycl-early-optimizations - Xclang -fsycl-int-header=sycl_ihdr_a.h %s -c -o a_kernel.bc -I %sycl_include -Wno-sycl-strict
7
7
// >> host compilation...
8
8
// RUN: %clangxx -include sycl_ihdr_a.h -g -c %s -o a.o -I %sycl_include -Wno-sycl-strict
9
9
//
10
10
// >> ---- compile src2
11
11
// >> device compilation...
12
- // RUN: %clangxx -DB_CPP=1 -fsycl-device-only -Xclang -fsycl-int-header=sycl_ihdr_b.h %s -c -o b_kernel.bc -I %sycl_include -Wno-sycl-strict
12
+ // RUN: %clangxx -DB_CPP=1 -fsycl-device-only -fno-sycl-early-optimizations - Xclang -fsycl-int-header=sycl_ihdr_b.h %s -c -o b_kernel.bc -I %sycl_include -Wno-sycl-strict
13
13
// >> host compilation...
14
14
// RUN: %clangxx -DB_CPP=1 -include sycl_ihdr_b.h -g -c %s -o b.o -I %sycl_include -Wno-sycl-strict
15
15
//
You can’t perform that action at this time.
0 commit comments