This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 11 files changed +21
-11
lines changed Expand file tree Collapse file tree 11 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 1
1
// REQUIRES: aoc, accelerator
2
2
3
- // RUN: %clangxx -fsycl -fsycl-device-code-split=per_source -fsycl-targets=spir64_fpga -I %S/Inputs -o %t.out %S/split-per-source-main.cpp %S/Inputs/split-per-source-second-file.cpp
3
+ // RUN: %clangxx -fsycl -fsycl-device-code-split=per_source -fsycl-targets=spir64_fpga -I %S/Inputs -o %t.out %S/split-per-source-main.cpp %S/Inputs/split-per-source-second-file.cpp \
4
+ // RUN: -fsycl-dead-args-optimization
4
5
// RUN: %ACC_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 1
1
// REQUIRES: opencl-aot, cpu
2
2
3
- // RUN: %clangxx -fsycl -fsycl-device-code-split=per_source -fsycl-targets=spir64_x86_64 -I %S/Inputs -o %t.out %S/split-per-source-main.cpp %S/Inputs/split-per-source-second-file.cpp
3
+ // RUN: %clangxx -fsycl -fsycl-device-code-split=per_source -fsycl-targets=spir64_x86_64 -I %S/Inputs -o %t.out %S/split-per-source-main.cpp %S/Inputs/split-per-source-second-file.cpp \
4
+ // RUN: -fsycl-dead-args-optimization
4
5
// RUN: %CPU_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 7
7
// RUN: -Xsycl-target-backend=spir64_gen \
8
8
// RUN: "-device *" -I %S/Inputs -o %t.out \
9
9
// RUN: %S/split-per-source-main.cpp \
10
- // RUN: %S/Inputs/split-per-source-second-file.cpp
10
+ // RUN: %S/Inputs/split-per-source-second-file.cpp \
11
+ // RUN: -fsycl-dead-args-optimization
11
12
// RUN: %GPU_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsycl-device-code-split=per_kernel -o %t.out %s
1
+ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsycl-device-code-split=per_kernel -o %t.out %s \
2
+ // RUN: -fsycl-dead-args-optimization
2
3
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3
4
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4
5
// RUN: %ACC_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsycl-device-code-split=per_source -I %S/Inputs -o %t.out %s %S/Inputs/split-per-source-second-file.cpp
1
+ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsycl-device-code-split=per_source -I %S/Inputs -o %t.out %s %S/Inputs/split-per-source-second-file.cpp \
2
+ // RUN: -fsycl-dead-args-optimization
2
3
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3
4
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4
5
// RUN: %ACC_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 7
7
// - test that specialization constant values can be set within command group
8
8
// scope and correctly retrieved within a kernel
9
9
//
10
- // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
10
+ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out \
11
+ // RUN: -fsycl-dead-args-optimization
11
12
// FIXME: SYCL 2020 specialization constants are not supported on host device
12
13
// RUN: %CPU_RUN_PLACEHOLDER %t.out
13
14
// RUN: %GPU_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
1
+ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out \
2
+ // RUN: -fsycl-dead-args-optimization
2
3
// RUN: %t.out
3
4
4
5
// UNSUPPORTED: cuda
Original file line number Diff line number Diff line change 7
7
// - test that specialization constant values can be set through kernel_bundle
8
8
// API and correctly retrieved within a kernel
9
9
//
10
- // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
10
+ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out \
11
+ // RUN: -fsycl-dead-args-optimization
11
12
// FIXME: SYCL 2020 specialization constants are not supported on host device
12
13
// RUN: %CPU_RUN_PLACEHOLDER %t.out
13
14
// RUN: %GPU_RUN_PLACEHOLDER %t.out
Original file line number Diff line number Diff line change 1
1
// REQUIRES: aoc, accelerator
2
2
3
- // RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga %S/Inputs/common.cpp -o %t.out
3
+ // RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga %S/Inputs/common.cpp -o %t.out \
4
+ // RUN: -fsycl-dead-args-optimization
4
5
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5
6
6
7
// This test checks correctness of SYCL2020 non-native specialization constants
Original file line number Diff line number Diff line change 1
1
// REQUIRES: opencl-aot, cpu
2
2
3
- // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/Inputs/common.cpp -o %t.out
3
+ // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/Inputs/common.cpp -o %t.out \
4
+ // RUN: -fsycl-dead-args-optimization
4
5
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5
6
6
7
// This test checks correctness of SYCL2020 non-native specialization constants
Original file line number Diff line number Diff line change 5
5
// UNSUPPORTED: hip
6
6
// HIP is not compatible with SPIR.
7
7
8
- // RUN: %clangxx -fsycl -fsycl-targets=spir64_gen -Xsycl-target-backend=spir64_gen "-device *" %S/Inputs/common.cpp -o %t.out
8
+ // RUN: %clangxx -fsycl -fsycl-targets=spir64_gen -Xsycl-target-backend=spir64_gen "-device *" %S/Inputs/common.cpp -o %t.out -fsycl-dead-args-optimization
9
9
// RUN: %GPU_RUN_PLACEHOLDER %t.out
10
10
11
11
// This test checks correctness of SYCL2020 non-native specialization constants
You can’t perform that action at this time.
0 commit comments