Skip to content

Commit 94f46ae

Browse files
committed
[SYCL][E2E] Disable NEO Cache for shaderdump check
By default NEO_CACHE_PERSISTENT=1, neo will cache and reuse binaries, so the shaderdump might get NOTHING if the binary is cached. Set NEO_CACHE_PERSISTENT=0 to make sure we alway run the igc and get the shaderdumps for checking purpose.
1 parent 0fce02b commit 94f46ae

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// UNSUPPORTED: windows
1010

1111
// RUN: mkdir -p %t.dir && %{build} -o %t.dir/exec.out
12-
// RUN: env IGC_DumpToCustomDir=%t.dir IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
12+
// RUN: env IGC_DumpToCustomDir=%t.dir NEO_CACHE_PERSISTENT=0 IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
1313
// RUN: %{run-aux} python3 %S/instruction_count.py %t.dir 2914 ZTSZZN11BitonicSort5SolveEPjS0_jENKUlRN4sycl3_V17handlerEE0_clES4_E5Merge.asm
1414
// RUN: %{run-aux} echo "Baseline from driver version 1.3.30872"
1515

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// UNSUPPORTED: windows
1010

1111
// RUN: mkdir -p %t.dir && %{build} -o %t.dir/exec.out
12-
// RUN: env IGC_DumpToCustomDir=%t.dir IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
12+
// RUN: env IGC_DumpToCustomDir=%t.dir NEO_CACHE_PERSISTENT=0 IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
1313
// RUN: %{run-aux} python3 %S/instruction_count.py %t.dir 2969 ZTSZZN11BitonicSort5SolveEPjS0_jENKUlRN4sycl3_V17handlerEE0_clES4_E5Merge.asm
1414
// RUN: %{run-aux} echo "Baseline from driver version 1.3.30872"
1515

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// UNSUPPORTED: windows
1010

1111
// RUN: mkdir -p %t.dir && %{build} -o %t.dir/exec.out
12-
// RUN: env IGC_DumpToCustomDir=%t.dir IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
12+
// RUN: env IGC_DumpToCustomDir=%t.dir NEO_CACHE_PERSISTENT=0 IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
1313
// RUN: %{run-aux} python3 %S/instruction_count.py %t.dir 1699 ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E14Stencil_kernel.asm
1414
// RUN: %{run-aux} echo "Baseline from driver version 1.3.29138"
1515

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// UNSUPPORTED: windows
1010

1111
// RUN: mkdir -p %t.dir && %{build} -o %t.dir/exec.out
12-
// RUN: env IGC_DumpToCustomDir=%t.dir IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
12+
// RUN: env IGC_DumpToCustomDir=%t.dir NEO_CACHE_PERSISTENT=0 IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
1313
// RUN: %{run-aux} python3 %S/instruction_count.py %t.dir %if igc-dev %{ 1059 %} %else %{ 1116 %} ZTSZZ7runTestjjjRdS_ENKUlRN4sycl3_V17handlerEE_clES3_E3K16.asm
1414
// RUN: %{run-aux} echo "Baseline from driver version 1.3.30872"
1515

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// UNSUPPORTED: windows
1010

1111
// RUN: mkdir -p %t.dir && %{build} -o %t.dir/exec.out
12-
// RUN: env IGC_DumpToCustomDir=%t.dir IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
12+
// RUN: env IGC_DumpToCustomDir=%t.dir NEO_CACHE_PERSISTENT=0 IGC_ShaderDumpEnable=1 %{run} %t.dir/exec.out
1313
// RUN: %{run-aux} python3 %S/instruction_count.py %t.dir 1699 ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E14Stencil_kernel.asm
1414
// RUN: %{run-aux} echo "Baseline from driver version 1.3.29138"
1515

sycl/test-e2e/ESIMD/preemption.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// REQUIRES: linux
99
// REQUIRES: arch-intel_gpu_bmg_g21 || arch-intel_gpu_lnl_m
1010
// RUN: %{build} -o %t.out
11-
// RUN: env IGC_DumpToCustomDir=%t.dump IGC_ShaderDumpEnable=1 %{run} %t.out
11+
// RUN: env IGC_DumpToCustomDir=%t.dump NEO_CACHE_PERSISTENT=0 IGC_ShaderDumpEnable=1 %{run} %t.out
1212
// RUN: %{run-aux} grep enablePreemption %t.dump/*.asm
1313

1414
// The test expects to see "enablePreemption" switch in the compilation

0 commit comments

Comments
 (0)