Skip to content

Commit 549e165

Browse files
authored
[SYCL][E2E] Change method for setting a RUN: line to execute at run stage (#16907)
Previously to explicitly mark that a `RUN:` line should run on the run-stage the `%if run-mode %{...%}` markup was used. However, this markup is misleading given that the entire line is skipped in `build-only` mode, not just the bit enclosed in the braces. This PR replaces this markup with `%{run-aux}`, to avoid this issue.
1 parent c7c2b93 commit 549e165

File tree

12 files changed

+26
-23
lines changed

12 files changed

+26
-23
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: %if run-mode %{cat *.dot > /dev/null%}
12-
// RUN: %if run-mode %{rm *.dot%}
11+
// RUN: %{run-aux} cat *.dot > /dev/null
12+
// RUN: %{run-aux} rm *.dot
1313
// RUN: %{run-unfiltered-devices} env SYCL_PRINT_EXECUTION_GRAPH=always %t.out
14-
// RUN: %if run-mode %{cat *.dot > /dev/null%}
15-
// RUN: %if run-mode %{rm *.dot%}
14+
// RUN: %{run-aux} cat *.dot > /dev/null
15+
// RUN: %{run-aux} rm *.dot
1616
// RUN: %{run-unfiltered-devices} %t.out
17-
// RUN: %if run-mode %{not cat *.dot > /dev/null%}
17+
// RUN: %{run-aux} not cat *.dot > /dev/null
1818

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

sycl/test-e2e/ESIMD/PerformanceTests/BitonicSortK.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: %if run-mode %{python3 %S/instruction_count.py %t.dir 2914 ZTSZZN11BitonicSort5SolveEPjS0_jENKUlRN4sycl3_V17handlerEE0_clES4_E5Merge.asm%}
14-
// RUN: %if run-mode %{echo "Baseline from driver version 1.3.30872"%}
13+
// RUN: %{run-aux} python3 %S/instruction_count.py %t.dir 2914 ZTSZZN11BitonicSort5SolveEPjS0_jENKUlRN4sycl3_V17handlerEE0_clES4_E5Merge.asm
14+
// RUN: %{run-aux} echo "Baseline from driver version 1.3.30872"
1515

1616
#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: %if run-mode %{python3 %S/instruction_count.py %t.dir 2969 ZTSZZN11BitonicSort5SolveEPjS0_jENKUlRN4sycl3_V17handlerEE0_clES4_E5Merge.asm%}
14-
// RUN: %if run-mode %{echo "Baseline from driver version 1.3.30872"%}
13+
// RUN: %{run-aux} python3 %S/instruction_count.py %t.dir 2969 ZTSZZN11BitonicSort5SolveEPjS0_jENKUlRN4sycl3_V17handlerEE0_clES4_E5Merge.asm
14+
// RUN: %{run-aux} echo "Baseline from driver version 1.3.30872"
1515

1616
#include "../BitonicSortKv2.cpp"

sycl/test-e2e/ESIMD/PerformanceTests/Stencil.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: %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"%}
13+
// RUN: %{run-aux} python3 %S/instruction_count.py %t.dir 1699 ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E14Stencil_kernel.asm
14+
// RUN: %{run-aux} echo "Baseline from driver version 1.3.29138"
1515

1616
#include "../Stencil.cpp"

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

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

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

1818
#include "../../InvokeSimd/invoke_simd_smoke.cpp"

sycl/test-e2e/ESIMD/PerformanceTests/matrix_transpose.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: %if run-mode %{python3 %S/instruction_count.py %t.dir %if igc-dev %{ 1059 %} %else %{ 1116 %} ZTSZZ7runTestjjjRdS_ENKUlRN4sycl3_V17handlerEE_clES3_E3K16.asm%}
14-
// RUN: %if run-mode %{echo "Baseline from driver version 1.3.30872"%}
13+
// RUN: %{run-aux} python3 %S/instruction_count.py %t.dir %if igc-dev %{ 1059 %} %else %{ 1116 %} ZTSZZ7runTestjjjRdS_ENKUlRN4sycl3_V17handlerEE_clES3_E3K16.asm
14+
// RUN: %{run-aux} echo "Baseline from driver version 1.3.30872"
1515

1616
#include "../matrix_transpose.cpp"

sycl/test-e2e/ESIMD/PerformanceTests/stencil2.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: %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"%}
13+
// RUN: %{run-aux} python3 %S/instruction_count.py %t.dir 1699 ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E14Stencil_kernel.asm
14+
// RUN: %{run-aux} echo "Baseline from driver version 1.3.29138"
1515

1616
#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: %if run-mode %{grep enablePreemption %t.dump/*.asm%}
12+
// RUN: %{run-aux} 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/trace_kernel_program_cache.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
// or SYCL_CACHE_TRACE is set to 0.
77

88
// RUN: env SYCL_CACHE_IN_MEM=0 %{run} %t.out 2> %t.trace1
9-
// RUN: %if run-mode %{ FileCheck --allow-empty --input-file=%t.trace1 --implicit-check-not "In-Memory Cache" %s %}
9+
// RUN: %{run-aux} FileCheck --allow-empty --input-file=%t.trace1 --implicit-check-not "In-Memory Cache" %s
1010
// RUN: env SYCL_CACHE_TRACE=0 %{run} %t.out 2> %t.trace2
11-
// RUN: %if run-mode %{ FileCheck --allow-empty --input-file=%t.trace2 --implicit-check-not "In-Memory Cache" %s %}
11+
// RUN: %{run-aux} FileCheck --allow-empty --input-file=%t.trace2 --implicit-check-not "In-Memory Cache" %s
1212

1313
// RUN: env SYCL_CACHE_TRACE=2 %{run} %t.out 2> %t.trace3
14-
// RUN: %if run-mode %{ FileCheck %s --input-file=%t.trace3 --check-prefix=CHECK-CACHE-TRACE %}
14+
// RUN: %{run-aux} FileCheck %s --input-file=%t.trace3 --check-prefix=CHECK-CACHE-TRACE
1515

1616
#include <sycl/detail/core.hpp>
1717

sycl/test-e2e/KernelCompiler/kernel_compiler_cache_eviction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
// -- Test again, with caching.
2020
// DEFINE: %{cache_vars} = env SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_TRACE=7 SYCL_CACHE_DIR=%t/cache_dir SYCL_CACHE_MAX_SIZE=30000
21-
// RUN: %if run-mode %{rm -rf %t/cache_dir%}
21+
// RUN: %{run-aux} rm -rf %t/cache_dir
2222
// RUN: %{cache_vars} %{run-unfiltered-devices} %t.out 2>&1 | FileCheck %s --check-prefix=CHECK
2323

2424
// CHECK: [Persistent Cache]: enabled

0 commit comments

Comments
 (0)