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 9babc4d commit 9d319a7Copy full SHA for 9d319a7
source/adapters/level_zero/queue.cpp
@@ -407,11 +407,11 @@ UR_APIEXPORT ur_result_t UR_APICALL urQueueRelease(
407
//
408
// It is possible to get to here and still have an open command list
409
// if no wait or finish ever occurred for this queue.
410
- if (auto Res = Queue->executeAllOpenCommandLists())
411
- return Res;
+ auto Res = Queue->executeAllOpenCommandLists();
412
413
// Make sure all commands get executed.
414
- UR_CALL(Queue->synchronize());
+ if (Res == UR_RESULT_SUCCESS)
+ UR_CALL(Queue->synchronize());
415
416
// Destroy all the fences created associated with this queue.
417
for (auto it = Queue->CommandListMap.begin();
0 commit comments