@@ -438,7 +438,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urQueueRelease(
438
438
return Res;
439
439
440
440
// Make sure all commands get executed.
441
- Queue->synchronize ();
441
+ UR_CALL ( Queue->synchronize () );
442
442
443
443
// Destroy all the fences created associated with this queue.
444
444
for (auto it = Queue->CommandListMap .begin ();
@@ -654,7 +654,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urQueueFinish(
654
654
// Lock automatically releases when this goes out of scope.
655
655
std::scoped_lock<ur_shared_mutex> Lock (UrQueue->Mutex );
656
656
657
- UrQueue->synchronize ();
657
+ UR_CALL ( UrQueue->synchronize () );
658
658
} else {
659
659
std::unique_lock<ur_shared_mutex> Lock (UrQueue->Mutex );
660
660
std::vector<ze_command_queue_handle_t > ZeQueues;
@@ -1241,7 +1241,7 @@ ur_queue_handle_t_::executeCommandList(ur_command_list_ptr_t CommandList,
1241
1241
// Check global control to make every command blocking for debugging.
1242
1242
if (IsBlocking || (UrL0Serialize & UrL0SerializeBlock) != 0 ) {
1243
1243
if (UsingImmCmdLists) {
1244
- synchronize ();
1244
+ UR_CALL ( synchronize () );
1245
1245
} else {
1246
1246
// Wait until command lists attached to the command queue are executed.
1247
1247
ZE2UR_CALL (zeHostSynchronize, (ZeCommandQueue));
@@ -1445,7 +1445,7 @@ ur_result_t ur_queue_handle_t_::synchronize() {
1445
1445
for (auto &QueueGroup : QueueMap) {
1446
1446
if (UsingImmCmdLists) {
1447
1447
for (auto &ImmCmdList : QueueGroup.second .ImmCmdLists )
1448
- syncImmCmdList (this , ImmCmdList);
1448
+ UR_CALL ( syncImmCmdList (this , ImmCmdList) );
1449
1449
} else {
1450
1450
for (auto &ZeQueue : QueueGroup.second .ZeQueues )
1451
1451
if (ZeQueue)
0 commit comments