From a407ebe1ea52d3c3d1fbd8cedc68086e37fd89d3 Mon Sep 17 00:00:00 2001 From: smaslov Date: Thu, 25 May 2023 14:14:17 -0700 Subject: [PATCH] [SYCL][L0] Check if ZE call count had started Signed-off-by: smaslov --- sycl/plugins/level_zero/pi_level_zero.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/plugins/level_zero/pi_level_zero.cpp b/sycl/plugins/level_zero/pi_level_zero.cpp index 8b8cf3d2858e4..55cb7890ee36e 100644 --- a/sycl/plugins/level_zero/pi_level_zero.cpp +++ b/sycl/plugins/level_zero/pi_level_zero.cpp @@ -8477,7 +8477,7 @@ pi_result piTearDown(void *PluginParameter) { // Print the balance of various create/destroy native calls. // The idea is to verify if the number of create(+) and destroy(-) calls are // matched. - if (UrL0Debug & UR_L0_DEBUG_CALL_COUNT) { + if (ZeCallCount && (UrL0Debug & UR_L0_DEBUG_CALL_COUNT) != 0) { // clang-format off // // The format of this table is such that each row accounts for a