File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change
1
+ // / Check that optimizations for sycl device are enabled by default:
2
+ // RUN: %clang -### -fsycl %s 2>&1 \
3
+ // RUN: | FileCheck -check-prefix=CHECK-DEFAULT %s
4
+ // RUN: %clang -### -fsycl -fsycl-device-only %s 2>&1 \
5
+ // RUN: | FileCheck -check-prefix=CHECK-DEFAULT %s
6
+ // CHECK-DEFAULT-NOT: "-fno-sycl-std-optimizations"
7
+ // CHECK-DEFAULT-NOT: "-disable-llvm-passes"
8
+
9
+ // / Check "-fno-sycl-std-optimizations" is passed to the front-end:
10
+ // RUN: %clang -### -fsycl -fno-sycl-std-optimizations %s 2>&1 \
11
+ // RUN: | FileCheck -check-prefix=CHECK-NO-SYCL-STD-OPTS %s
12
+ // RUN: %clang -### -fsycl -fsycl-device-only -fno-sycl-std-optimizations %s 2>&1 \
13
+ // RUN: | FileCheck -check-prefix=CHECK-NO-SYCL-STD-OPTS %s
14
+ // CHECK-NO-SYCL-STD-OPTS: "-fno-sycl-std-optimizations"
Original file line number Diff line number Diff line change 2
2
// CUDA compilation and runtime do not yet support sub-groups.
3
3
// #2245 failed on OpenCL CPU (2020.10.7.0.15) with avx2 instruction set
4
4
//
5
- // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
5
+ // RUN: %clangxx -fsycl -fno-sycl-std-optimizations - fsycl-targets=%sycl_triple %s -o %t.out
6
6
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
7
7
// RUN: %CPU_RUN_PLACEHOLDER %t.out
8
8
// RUN: %GPU_RUN_PLACEHOLDER %t.out
You can’t perform that action at this time.
0 commit comments