Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit b8c39f4

Browse files
authored
[SYCL] Fix events caching test (#1138)
It looks like some resources can be released asynchronously in the scheduler. That's why at some runs 1 event is enough but sometimes 2 events are needed. So use regular expression to allow up to 9 events just in case.
1 parent 03757b7 commit b8c39f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

SYCL/Plugin/level_zero_events_caching.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
// RUN: env SYCL_PI_LEVEL_ZERO_DEVICE_SCOPE_EVENTS=0 ZE_DEBUG=4 %GPU_RUN_PLACEHOLDER %t.out 2>&1 | FileCheck --check-prefixes=CACHING-ENABLED %s
88
// RUN: env SYCL_PI_LEVEL_ZERO_DEVICE_SCOPE_EVENTS=0 SYCL_PI_LEVEL_ZERO_DISABLE_EVENTS_CACHING=1 ZE_DEBUG=4 %GPU_RUN_PLACEHOLDER %t.out 2>&1 | FileCheck --check-prefixes=CACHING-DISABLED %s
99

10-
// CACHING-ENABLED: zeEventCreate = 1
10+
// With events caching we should be reusing them and 9 should be enough.
11+
// Might require more than one if previous one hasn't been released by the time
12+
// we need a new one.
13+
14+
// CACHING-ENABLED: zeEventCreate = {{[1-9]}}
1115
// CACHING-DISABLED: zeEventCreate = 256
1216

1317
// Check event caching modes in the L0 plugin.

0 commit comments

Comments
 (0)