Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 824589b

Browse files
[SYCL-MLIR] Add RUN command for various optimization levels (#1420)
Signed-off-by: Tsang, Whitney <[email protected]>
1 parent cf66845 commit 824589b

File tree

4 files changed

+80
-16
lines changed

4 files changed

+80
-16
lines changed

SYCL/Basic/cgeist/parallel_for.cpp

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -Xcgeist -gen-all-sycl-funcs %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O0 -w %s -o %t.O0.out
2+
// RUN: %CPU_RUN_PLACEHOLDER %t.O0.out
3+
// RUN: %GPU_RUN_PLACEHOLDER %t.O0.out
4+
// RUN: %ACC_RUN_PLACEHOLDER %t.O0.out
5+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O1 -w %s -o %t.O1.out
6+
// RUN: %CPU_RUN_PLACEHOLDER %t.O1.out
7+
// RUN: %GPU_RUN_PLACEHOLDER %t.O1.out
8+
// RUN: %ACC_RUN_PLACEHOLDER %t.O1.out
9+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O2 -w %s -o %t.O2.out
10+
// RUN: %CPU_RUN_PLACEHOLDER %t.O2.out
11+
// RUN: %GPU_RUN_PLACEHOLDER %t.O2.out
12+
// RUN: %ACC_RUN_PLACEHOLDER %t.O2.out
13+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O3 -w %s -o %t.O3.out
14+
// RUN: %CPU_RUN_PLACEHOLDER %t.O3.out
15+
// RUN: %GPU_RUN_PLACEHOLDER %t.O3.out
16+
// RUN: %ACC_RUN_PLACEHOLDER %t.O3.out
17+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -Ofast -w %s -o %t.Ofast.out
18+
// RUN: %CPU_RUN_PLACEHOLDER %t.Ofast.out
19+
// RUN: %GPU_RUN_PLACEHOLDER %t.Ofast.out
20+
// RUN: %ACC_RUN_PLACEHOLDER %t.Ofast.out
521
// REQUIRES: linux
622
// UNSUPPORTED: hip || cuda
723

SYCL/Basic/cgeist/single_task.cpp

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O0 -w %s -o %t.O0.out
2+
// RUN: %CPU_RUN_PLACEHOLDER %t.O0.out
3+
// RUN: %GPU_RUN_PLACEHOLDER %t.O0.out
4+
// RUN: %ACC_RUN_PLACEHOLDER %t.O0.out
5+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O1 -w %s -o %t.O1.out
6+
// RUN: %CPU_RUN_PLACEHOLDER %t.O1.out
7+
// RUN: %GPU_RUN_PLACEHOLDER %t.O1.out
8+
// RUN: %ACC_RUN_PLACEHOLDER %t.O1.out
9+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O2 -w %s -o %t.O2.out
10+
// RUN: %CPU_RUN_PLACEHOLDER %t.O2.out
11+
// RUN: %GPU_RUN_PLACEHOLDER %t.O2.out
12+
// RUN: %ACC_RUN_PLACEHOLDER %t.O2.out
13+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O3 -w %s -o %t.O3.out
14+
// RUN: %CPU_RUN_PLACEHOLDER %t.O3.out
15+
// RUN: %GPU_RUN_PLACEHOLDER %t.O3.out
16+
// RUN: %ACC_RUN_PLACEHOLDER %t.O3.out
17+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -Ofast -w %s -o %t.Ofast.out
18+
// RUN: %CPU_RUN_PLACEHOLDER %t.Ofast.out
19+
// RUN: %GPU_RUN_PLACEHOLDER %t.Ofast.out
20+
// RUN: %ACC_RUN_PLACEHOLDER %t.Ofast.out
521
// REQUIRES: linux
622
// UNSUPPORTED: hip || cuda
723

SYCL/Basic/cgeist/stream-copy.cpp

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -Xcgeist -gen-all-sycl-funcs %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O0 -w %s -o %t.O0.out
2+
// RUN: %CPU_RUN_PLACEHOLDER %t.O0.out
3+
// RUN: %GPU_RUN_PLACEHOLDER %t.O0.out
4+
// RUN: %ACC_RUN_PLACEHOLDER %t.O0.out
5+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O1 -w %s -o %t.O1.out
6+
// RUN: %CPU_RUN_PLACEHOLDER %t.O1.out
7+
// RUN: %GPU_RUN_PLACEHOLDER %t.O1.out
8+
// RUN: %ACC_RUN_PLACEHOLDER %t.O1.out
9+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O2 -w %s -o %t.O2.out
10+
// RUN: %CPU_RUN_PLACEHOLDER %t.O2.out
11+
// RUN: %GPU_RUN_PLACEHOLDER %t.O2.out
12+
// RUN: %ACC_RUN_PLACEHOLDER %t.O2.out
13+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O3 -w %s -o %t.O3.out
14+
// RUN: %CPU_RUN_PLACEHOLDER %t.O3.out
15+
// RUN: %GPU_RUN_PLACEHOLDER %t.O3.out
16+
// RUN: %ACC_RUN_PLACEHOLDER %t.O3.out
17+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -Ofast -w %s -o %t.Ofast.out
18+
// RUN: %CPU_RUN_PLACEHOLDER %t.Ofast.out
19+
// RUN: %GPU_RUN_PLACEHOLDER %t.Ofast.out
20+
// RUN: %ACC_RUN_PLACEHOLDER %t.Ofast.out
521
// REQUIRES: linux
622
// UNSUPPORTED: hip || cuda
723

SYCL/Basic/cgeist/stream-triad.cpp

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -Xcgeist -gen-all-sycl-funcs %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O0 -w %s -o %t.O0.out
2+
// RUN: %CPU_RUN_PLACEHOLDER %t.O0.out
3+
// RUN: %GPU_RUN_PLACEHOLDER %t.O0.out
4+
// RUN: %ACC_RUN_PLACEHOLDER %t.O0.out
5+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O1 -w %s -o %t.O1.out
6+
// RUN: %CPU_RUN_PLACEHOLDER %t.O1.out
7+
// RUN: %GPU_RUN_PLACEHOLDER %t.O1.out
8+
// RUN: %ACC_RUN_PLACEHOLDER %t.O1.out
9+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O2 -w %s -o %t.O2.out
10+
// RUN: %CPU_RUN_PLACEHOLDER %t.O2.out
11+
// RUN: %GPU_RUN_PLACEHOLDER %t.O2.out
12+
// RUN: %ACC_RUN_PLACEHOLDER %t.O2.out
13+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O3 -w %s -o %t.O3.out
14+
// RUN: %CPU_RUN_PLACEHOLDER %t.O3.out
15+
// RUN: %GPU_RUN_PLACEHOLDER %t.O3.out
16+
// RUN: %ACC_RUN_PLACEHOLDER %t.O3.out
17+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -Ofast -w %s -o %t.Ofast.out
18+
// RUN: %CPU_RUN_PLACEHOLDER %t.Ofast.out
19+
// RUN: %GPU_RUN_PLACEHOLDER %t.Ofast.out
20+
// RUN: %ACC_RUN_PLACEHOLDER %t.Ofast.out
521
// REQUIRES: linux
622
// UNSUPPORTED: hip || cuda
723

0 commit comments

Comments
 (0)