We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e76ad72 commit 6d04aa6Copy full SHA for 6d04aa6
sycl/plugins/level_zero/pi_level_zero.cpp
@@ -3528,7 +3528,9 @@ pi_result piQueueRelease(pi_queue Queue) {
3528
// For immediate commandlists we don't need to do an L0 reset of the
3529
// commandlist but do need to do event cleanup which is also in the
3530
// resetCommandList function.
3531
- if (it->second.ZeFence != nullptr && it->second.ZeFenceInUse) {
+ // If the fence is a nullptr we are using immediate commandlists,
3532
+ // otherwise regular commandlists which use a fence.
3533
+ if (it->second.ZeFence == nullptr || it->second.ZeFenceInUse) {
3534
Queue->resetCommandList(it, true, EventListToCleanup);
3535
}
3536
// TODO: remove "if" when the problem is fixed in the level zero
0 commit comments