Skip to content

Commit 4124a6e

Browse files
committed
Wrap run lines in %if run-mode
1 parent d7a720c commit 4124a6e

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

sycl/test-e2e/Config/config.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
// RUN: %{build} %debug_option %O0 -o %t.out
99
// RUN: echo SYCL_PRINT_EXECUTION_GRAPH=always > %t.cfg
1010
// RUN: %{run-unfiltered-devices} env SYCL_CONFIG_FILE_NAME=%t.cfg %t.out
11-
// RUN: cat *.dot > /dev/null
12-
// RUN: rm *.dot
11+
// RUN: %if run-mode %{cat *.dot > /dev/null%}
12+
// RUN: %if run-mode %{rm *.dot%}
1313
// RUN: %{run-unfiltered-devices} env SYCL_PRINT_EXECUTION_GRAPH=always %t.out
14-
// RUN: cat *.dot > /dev/null
15-
// RUN: rm *.dot
14+
// RUN: %if run-mode %{cat *.dot > /dev/null%}
15+
// RUN: %if run-mode %{rm *.dot%}
1616
// RUN: %{run-unfiltered-devices} %t.out
17-
// RUN: not cat *.dot > /dev/null
17+
// RUN: %if run-mode %{not cat *.dot > /dev/null%}
1818

1919
#include <sycl/detail/core.hpp>
2020

sycl/test-e2e/ESIMD/PerformanceTests/BitonicSortK.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// RUN: mkdir -p %t.dir && %{build} -o %t.dir/exec.out
1212
// RUN: env IGC_DumpToCustomDir=%t.dir IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
13-
// RUN: python3 %S/instruction_count.py %t.dir 3452 ZTSZZN11BitonicSort5SolveEPjS0_jENKUlRN4sycl3_V17handlerEE0_clES4_E5Merge.asm
14-
// RUN: echo "Baseline from driver version 1.3.29138"
13+
// RUN: %if run-mode %{python3 %S/instruction_count.py %t.dir 3452 ZTSZZN11BitonicSort5SolveEPjS0_jENKUlRN4sycl3_V17handlerEE0_clES4_E5Merge.asm%}
14+
// RUN: %if run-mode %{echo "Baseline from driver version 1.3.29138"%}
1515

16-
#include "../BitonicSortK.cpp"
16+
#include "../BitonicSortK.cpp"

sycl/test-e2e/ESIMD/PerformanceTests/BitonicSortKv2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// RUN: mkdir -p %t.dir && %{build} -o %t.dir/exec.out
1212
// RUN: env IGC_DumpToCustomDir=%t.dir IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
13-
// RUN: python3 %S/instruction_count.py %t.dir 3456 ZTSZZN11BitonicSort5SolveEPjS0_jENKUlRN4sycl3_V17handlerEE0_clES4_E5Merge.asm
14-
// RUN: echo "Baseline from driver version 1.3.29138"
13+
// RUN: %if run-mode %{python3 %S/instruction_count.py %t.dir 3456 ZTSZZN11BitonicSort5SolveEPjS0_jENKUlRN4sycl3_V17handlerEE0_clES4_E5Merge.asm%}
14+
// RUN: %if run-mode %{echo "Baseline from driver version 1.3.29138"%}
1515

1616
#include "../BitonicSortKv2.cpp"

sycl/test-e2e/ESIMD/PerformanceTests/Stencil.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// RUN: mkdir -p %t.dir && %{build} -o %t.dir/exec.out
1212
// RUN: env IGC_DumpToCustomDir=%t.dir IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
13-
// RUN: python3 %S/instruction_count.py %t.dir 1699 ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E14Stencil_kernel.asm
14-
// RUN: echo "Baseline from driver version 1.3.29138"
13+
// RUN: %if run-mode %{python3 %S/instruction_count.py %t.dir 1699 ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E14Stencil_kernel.asm%}
14+
// RUN: %if run-mode %{echo "Baseline from driver version 1.3.29138"%}
1515

16-
#include "../Stencil.cpp"
16+
#include "../Stencil.cpp"

sycl/test-e2e/ESIMD/PerformanceTests/invoke_simd_smoke.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// RUN: mkdir -p %t.dir && %{build} -fsycl -fno-sycl-device-code-split-esimd -Xclang -fsycl-allow-func-ptr -o %t.dir/exec.out
1212
// RUN: env IGC_VCSaveStackCallLinkage=1 IGC_VCDirectCallsOnly=1 IGC_DumpToCustomDir=%t.dir IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
13-
// RUN: python3 %S/instruction_count.py %t.dir 149 _simd16_entry_0001.asm
14-
// RUN: echo "Baseline from driver version 1.3.29735"
13+
// RUN: %if run-mode %{python3 %S/instruction_count.py %t.dir 149 _simd16_entry_0001.asm%}
14+
// RUN: %if run-mode %{echo "Baseline from driver version 1.3.29735"%}
1515

16-
#include "../../InvokeSimd/invoke_simd_smoke.cpp"
16+
#include "../../InvokeSimd/invoke_simd_smoke.cpp"

sycl/test-e2e/ESIMD/PerformanceTests/matrix_transpose.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// RUN: mkdir -p %t.dir && %{build} -o %t.dir/exec.out
1212
// RUN: env IGC_DumpToCustomDir=%t.dir IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
13-
// RUN: python3 %S/instruction_count.py %t.dir 1280 ZTSZZ7runTestjjjRdS_ENKUlRN4sycl3_V17handlerEE_clES3_E3K16.asm
14-
// RUN: echo "Baseline from driver version 1.3.29138"
13+
// RUN: %if run-mode %{python3 %S/instruction_count.py %t.dir 1280 ZTSZZ7runTestjjjRdS_ENKUlRN4sycl3_V17handlerEE_clES3_E3K16.asm%}
14+
// RUN: %if run-mode %{echo "Baseline from driver version 1.3.29138"%}
1515

16-
#include "../matrix_transpose.cpp"
16+
#include "../matrix_transpose.cpp"

sycl/test-e2e/ESIMD/PerformanceTests/stencil2.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// RUN: mkdir -p %t.dir && %{build} -o %t.dir/exec.out
1212
// RUN: env IGC_DumpToCustomDir=%t.dir IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
13-
// RUN: python3 %S/instruction_count.py %t.dir 1699 ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E14Stencil_kernel.asm
14-
// RUN: echo "Baseline from driver version 1.3.29138"
13+
// RUN: %if run-mode %{python3 %S/instruction_count.py %t.dir 1699 ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E14Stencil_kernel.asm%}
14+
// RUN: %if run-mode %{echo "Baseline from driver version 1.3.29138"%}
1515

16-
#include "../stencil2.cpp"
16+
#include "../stencil2.cpp"

sycl/test-e2e/ESIMD/preemption.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// UNSUPPORTED: gpu-intel-dg2 || arch-intel_gpu_pvc
1010
// RUN: %{build} -o %t.out
1111
// RUN: env IGC_DumpToCustomDir=%t.dump IGC_ShaderDumpEnable=1 %{run} %t.out
12-
// RUN: grep enablePreemption %t.dump/*.asm
12+
// RUN: %if run-mode %{grep enablePreemption %t.dump/*.asm%}
1313

1414
// The test expects to see "enablePreemption" switch in the compilation
1515
// switches. It fails if does not find it.

sycl/test-e2e/KernelAndProgram/test_cache_jit_aot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Don't use normal %{run} as we need to control cache directory removal and
22
// cannot do that reliably when number of devices is unknown.
33
//
4-
// REQUIRES: level_zero, ocloc
4+
// REQUIRES: level_zero, ocloc, run-mode
55
//
66
// DEFINE: %{cache_vars} = env SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_TRACE=1 SYCL_CACHE_DIR=%t/cache_dir
77
// DEFINE: %{build_cmd} = %{build}

0 commit comments

Comments
 (0)