Skip to content

Commit b1e1cdd

Browse files
committed
added comment
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent a289cfe commit b1e1cdd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sycl/plugins/level_zero/pi_level_zero.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,11 @@ struct _pi_queue : _pi_object {
340340
// The Level-Zero fence that will be signalled at completion.
341341
ze_fence_handle_t ZeFence;
342342
// Record if the fence is in use by any command-list.
343+
// This is needed to avoid leak of the tracked command-list if the fence
344+
// was not yet signaled at the time all events in that list were already
345+
// completed (we are polling the fence at events completion). The fence
346+
// may be still "in-use" due to sporadic delay in HW.
347+
//
343348
bool InUse;
344349
} command_list_fence_t;
345350

0 commit comments

Comments
 (0)