File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
sycl/test-e2e/KernelCompiler Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 99// REQUIRES: (opencl || level_zero)
1010// UNSUPPORTED: accelerator
1111
12- // The leak check env var is set even if it might be ignored by some backends.
13-
1412// -- Test the kernel_compiler with OpenCL source.
1513// RUN: %{build} -o %t.out
16- // RUN: env UR_L0_LEAKS_DEBUG=1 %{run} %t.out
14+ // RUN: %{run} %t.out
15+ // RUN: %{l0_leak_check} %{run} %t.out
1716
1817// -- Test again, with caching.
19- // DEFINE: %{cache_vars} = env UR_L0_LEAKS_DEBUG=1 env SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_TRACE=1 SYCL_CACHE_DIR=%t/cache_dir
18+ // DEFINE: %{cache_vars} = env SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_TRACE=1 SYCL_CACHE_DIR=%t/cache_dir
2019// RUN: rm -rf %t/cache_dir
2120// RUN: %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
2221// RUN: %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
2322
23+ // -- Add leak check.
24+ // RUN: rm -rf %t/cache_dir
25+ // RUN: %{l0_leak_check} %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
26+ // RUN: %{l0_leak_check} %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
27+
2428// CHECK-WRITTEN-TO-CACHE: Code caching: enabled
2529// CHECK-WRITTEN-TO-CACHE-NOT: *** Code caching: kernel_compiler using cached binary
2630// CHECK-WRITTEN-TO-CACHE: *** Code caching: kernel_compiler binary has been cached
Original file line number Diff line number Diff line change 99// REQUIRES: (opencl || level_zero)
1010// UNSUPPORTED: accelerator
1111
12- // The leak check env var is set even if it might be ignored by some backends.
13-
1412// -- Test the kernel_compiler with SYCL source.
1513// RUN: %{build} -o %t.out
16- // RUN: env UR_L0_LEAKS_DEBUG=1 %{run} %t.out
14+ // RUN: %{run} %t.out
15+ // RUN: %{l0_leak_check} %{run} %t.out
1716
1817// -- Test again, with caching.
1918// 'reading-from-cache' is just a string we pass to differentiate between the
2019// two runs.
2120
22- // DEFINE: %{cache_vars} = env UR_L0_LEAKS_DEBUG=1 env SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_TRACE=1 SYCL_CACHE_DIR=%t/cache_dir
21+ // DEFINE: %{cache_vars} = %{l0_leak_check} env SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_TRACE=1 SYCL_CACHE_DIR=%t/cache_dir
2322// RUN: rm -rf %t/cache_dir
2423// RUN: %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
2524// RUN: %{cache_vars} %t.out reading-from-cache 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
2625
26+ // -- Add leak check.
27+ // RUN: rm -rf %t/cache_dir
28+ // RUN: %{l0_leak_check} %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
29+ // RUN: %{l0_leak_check} %{cache_vars} %t.out reading-from-cache 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
30+
2731// CHECK-WRITTEN-TO-CACHE: Code caching: enabled
2832// CHECK-WRITTEN-TO-CACHE-NOT: *** Code caching: kernel_compiler using cached binary
2933// CHECK-WRITTEN-TO-CACHE: *** Code caching: kernel_compiler binary has been cached
You can’t perform that action at this time.
0 commit comments