Skip to content

Commit dc2edea

Browse files
authored
[UR][Offload] Sync queues before destroying them (#20098)
urQueueRelease now waits for all work in the queue to complete, which is consistent with other plugins.
1 parent 11b90fc commit dc2edea

File tree

1 file changed

+1
-0
lines changed
  • unified-runtime/source/adapters/offload

1 file changed

+1
-0
lines changed

unified-runtime/source/adapters/offload/queue.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urQueueRelease(ur_queue_handle_t hQueue) {
9191
if (!Q) {
9292
break;
9393
}
94+
OL_RETURN_ON_ERR(olSyncQueue(Q));
9495
OL_RETURN_ON_ERR(olDestroyQueue(Q));
9596
}
9697
delete hQueue;

0 commit comments

Comments
 (0)