Skip to content

Commit 9615490

Browse files
committed
Update test based on changed SYCL_UR_TRACE output
1 parent e435162 commit 9615490

File tree

2 files changed

+23
-25
lines changed

2 files changed

+23
-25
lines changed

sycl/test-e2e/ProgramManager/multi_device_bundle/build_twice.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ int main() {
2424
sycl::kernel_id kid = sycl::get_kernel_id<Kernel>();
2525
sycl::kernel_bundle kernelBundleInput =
2626
sycl::get_kernel_bundle<sycl::bundle_state::input>(ctx, {kid});
27-
// CHECK: urProgramCreateWithIL
28-
// CHECK: urProgramBuildExp
27+
// CHECK: urProgramCreateWithIL(
28+
// CHECK: urProgramBuildExp(
2929
auto KernelBundleExe1 = build(kernelBundleInput, {dev1, dev2});
30-
// CHECK: urProgramCreateWithIL
31-
// CHECK: urProgramBuildExp
30+
// CHECK: urProgramCreateWithIL(
31+
// CHECK: urProgramBuildExp(
3232
auto KernelBundleExe2 = build(kernelBundleInput, {dev2, dev3});
3333
// No other program creation calls are expected.
34-
// CHECK-NOT: urProgramCreateWithIL
34+
// CHECK-NOT: urProgramCreateWithIL(
3535
auto KernelObj1 = KernelBundleExe1.get_kernel(kid);
3636
auto KernelObj2 = KernelBundleExe2.get_kernel(kid);
3737
queues[0].submit([=](sycl::handler &cgh) {

sycl/test-e2e/ProgramManager/multi_device_bundle/device_libs_and_caching.cpp

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
// RUN: env NEOReadDebugKeys=1 CreateMultipleRootDevices=4 SYCL_UR_TRACE=2 %{run} %t.out | FileCheck %s --check-prefixes=CHECK-SPIRV-JIT-LINK-TRACE
1818

1919
// Check the case when in-memory caching of the programs is disabled.
20-
// RUNL env SYCL_CACHE_IN_MEM=0 NEOReadDebugKeys=1 CreateMultipleRootDevices=4
21-
// %{run} %t.out
20+
// RUN: env SYCL_CACHE_IN_MEM=0 NEOReadDebugKeys=1 CreateMultipleRootDevices=4 %{run} %t.out
2221

2322
// Test AOT next.
2423
// RUN: %{build} -fsycl-targets=spir64_gen -Xsycl-target-backend=spir64_gen "-device *" -o %t.out
@@ -27,8 +26,7 @@
2726
// RUN: env NEOReadDebugKeys=1 CreateMultipleRootDevices=4 SYCL_UR_TRACE=2 %{run} %t.out | FileCheck %s --check-prefixes=CHECK-AOT-TRACE
2827

2928
// Check the case when in-memory caching of the programs is disabled.
30-
// RUNL env SYCL_CACHE_IN_MEM=0 NEOReadDebugKeys=1 CreateMultipleRootDevices=4
31-
// %{run} %t.out
29+
// RUN: env SYCL_CACHE_IN_MEM=0 NEOReadDebugKeys=1 CreateMultipleRootDevices=4 %{run} %t.out
3230

3331
#include <cmath>
3432
#include <complex>
@@ -62,23 +60,23 @@ int main() {
6260
{
6361
sycl::kernel_id kid = sycl::get_kernel_id<Kernel>();
6462
// Create the main program containing the kernel.
65-
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCreateWithIL
63+
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCreateWithIL(
6664

6765
// Create and compile the program for required device libraries (2 of them
6866
// in this case).
69-
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCreateWithIL
70-
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCompileExp
71-
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCreateWithIL
72-
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCompileExp
67+
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCreateWithIL(
68+
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCompileExp(
69+
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCreateWithIL(
70+
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCompileExp(
7371

7472
// Compile the main program
75-
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCompileExp
73+
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCompileExp(
7674

7775
// Link main program and device libraries.
78-
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramLinkExp
76+
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramLinkExp(
7977

80-
// CHECK-AOT-TRACE: urProgramCreateWithBinary
81-
// CHECK-AOT-TRACE: urProgramBuildExp
78+
// CHECK-AOT-TRACE: urProgramCreateWithBinary(
79+
// CHECK-AOT-TRACE: urProgramBuildExp(
8280
sycl::kernel_bundle kernelBundleExecutable =
8381
sycl::get_kernel_bundle<sycl::bundle_state::executable>(
8482
ctx, {dev1, dev2, dev3}, {kid});
@@ -119,22 +117,22 @@ int main() {
119117

120118
// Here we create a bundle with a different set of devices which includes
121119
// dev4, so we expect new UR program creation.
122-
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCreateWithIL
120+
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCreateWithIL(
123121

124122
// Device libraries will be additionally compiled for dev4, but no program
125123
// creation is expected for device libraries as program handle already
126124
// exists in the per-context cache.
127-
// CHECK-SPIRV-JIT-LINK-TRACE-NOT: urProgramCreateWithIL
128-
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCompileExp
125+
// CHECK-SPIRV-JIT-LINK-TRACE-NOT: urProgramCreateWithIL(
126+
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCompileExp(
129127

130128
// Main program will be compiled for new set of devices.
131-
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCompileExp
129+
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramCompileExp(
132130

133131
// Main program will be linked with device libraries.
134-
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramLinkExp
132+
// CHECK-SPIRV-JIT-LINK-TRACE: urProgramLinkExp(
135133

136-
// CHECK-AOT-TRACE: urProgramCreateWithBinary
137-
// CHECK-AOT-TRACE: urProgramBuildExp
134+
// CHECK-AOT-TRACE: urProgramCreateWithBinary(
135+
// CHECK-AOT-TRACE: urProgramBuildExp(
138136
sycl::kernel_bundle kernelBundleExecutableNewSet =
139137
sycl::get_kernel_bundle<sycl::bundle_state::executable>(
140138
ctx, {dev2, dev3, dev4}, {kid});

0 commit comments

Comments
 (0)