Skip to content

Commit fb6d12a

Browse files
smaslov-intelbb-sycl
authored andcommitted
[SYCL][L0] empty queue sync does not need extra event (intel#1652)
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent 68a6560 commit fb6d12a

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

SYCL/Plugin/level_zero_events_caching.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,16 @@
44
// UNSUPPORTED: windows
55

66
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %level_zero_options %s -o %t.out
7-
// RUN: env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 SYCL_PI_LEVEL_ZERO_DEVICE_SCOPE_EVENTS=0 ZE_DEBUG=4 %GPU_RUN_PLACEHOLDER %t.out 2>&1 | FileCheck --check-prefixes=CACHING-ENABLED %s
8-
// RUN: env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 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-STD %s
9-
// RUN: env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1 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-IMM %s
7+
// RUN: env ZE_DEBUG=4 %GPU_RUN_PLACEHOLDER %t.out 2>&1 | FileCheck --check-prefixes=CACHING-ENABLED %s
8+
// RUN: env SYCL_PI_LEVEL_ZERO_DISABLE_EVENTS_CACHING=0 ZE_DEBUG=4 %GPU_RUN_PLACEHOLDER %t.out 2>&1 | FileCheck --check-prefixes=CACHING-ENABLED %s
9+
// RUN: env SYCL_PI_LEVEL_ZERO_DISABLE_EVENTS_CACHING=1 ZE_DEBUG=4 %GPU_RUN_PLACEHOLDER %t.out 2>&1 | FileCheck --check-prefixes=CACHING-DISABLED %s
1010

1111
// With events caching we should be reusing them and 9 should be enough.
1212
// Might require more than one if previous one hasn't been released by the time
1313
// we need a new one.
1414

15-
// With immediate commandlists there is one additional event created
16-
// during queue sync, so the expected count increases by 1 to 257.
17-
1815
// CACHING-ENABLED: zeEventCreate = {{[1-9]}}
19-
// CACHING-DISABLED-STD: zeEventCreate = 256
20-
// CACHING-DISABLED-IMM: zeEventCreate = 257
16+
// CACHING-DISABLED: zeEventCreate = 256
2117

2218
// Check event caching modes in the L0 plugin.
2319

0 commit comments

Comments
 (0)