Skip to content

Commit dbd9b67

Browse files
[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
1 parent c66fb0d commit dbd9b67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/unittests/helpers/PiMockPlugin.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,11 +1279,13 @@ mock_piextCommandBufferCreate(pi_context context, pi_device device,
12791279

12801280
inline pi_result
12811281
mock_piextCommandBufferRetain(pi_ext_command_buffer command_buffer) {
1282+
retainDummyHandle(command_buffer);
12821283
return PI_SUCCESS;
12831284
}
12841285

12851286
inline pi_result
12861287
mock_piextCommandBufferRelease(pi_ext_command_buffer command_buffer) {
1288+
releaseDummyHandle(command_buffer);
12871289
return PI_SUCCESS;
12881290
}
12891291

0 commit comments

Comments
 (0)