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.
2 parents b14af4b + d367bd7 commit e25ada9Copy full SHA for e25ada9
source/adapters/level_zero/queue.cpp
@@ -902,10 +902,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urQueueFinish(
902
UR_APIEXPORT ur_result_t UR_APICALL urQueueFlush(
903
ur_queue_handle_t Queue ///< [in] handle of the queue to be flushed.
904
) {
905
- // Flushing cross-queue dependencies is covered by
906
- // createAndRetainUrZeEventList, so this can be left as a no-op.
907
- std::ignore = Queue;
908
- return UR_RESULT_SUCCESS;
+ std::scoped_lock<ur_shared_mutex> Lock(Queue->Mutex);
+ return Queue->executeAllOpenCommandLists();
909
}
910
911
// Configuration of the command-list batching.
0 commit comments