From dbd9b67cd5c097b41f20c8a61f37c711888f2a20 Mon Sep 17 00:00:00 2001 From: Maxime France-Pillois Date: Fri, 25 Aug 2023 19:42:44 +0100 Subject: [PATCH] [SYCL][Graph] Release CommandBuffer dummy handler used by Graph Unitests (#10968) Adds retrain/release for the CommandBuffer dummy handler in the unitest PI mock. This fixes the CI fail in PR #10954. https://github.com/intel/llvm/actions/runs/5973326392/job/16205377150 --- sycl/unittests/helpers/PiMockPlugin.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sycl/unittests/helpers/PiMockPlugin.hpp b/sycl/unittests/helpers/PiMockPlugin.hpp index 75639bf56bbc..f12917b1e70b 100644 --- a/sycl/unittests/helpers/PiMockPlugin.hpp +++ b/sycl/unittests/helpers/PiMockPlugin.hpp @@ -1279,11 +1279,13 @@ mock_piextCommandBufferCreate(pi_context context, pi_device device, inline pi_result mock_piextCommandBufferRetain(pi_ext_command_buffer command_buffer) { + retainDummyHandle(command_buffer); return PI_SUCCESS; } inline pi_result mock_piextCommandBufferRelease(pi_ext_command_buffer command_buffer) { + releaseDummyHandle(command_buffer); return PI_SUCCESS; }