Skip to content

Commit 29dee43

Browse files
authored
[UR][Offload] Bump for wait->sync rename (#19552)
1 parent 8370e04 commit 29dee43

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ ur_result_t doMemcpy(ur_queue_handle_t hQueue, void *DestPtr,
111111
SrcDevice, size, phEvent ? &EventOut : nullptr));
112112

113113
if (blocking) {
114-
OL_RETURN_ON_ERR(olWaitQueue(hQueue->OffloadQueue));
114+
OL_RETURN_ON_ERR(olSyncQueue(hQueue->OffloadQueue));
115115
}
116116

117117
if (phEvent) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ UR_APIEXPORT ur_result_t UR_APICALL
4343
urEventWait(uint32_t numEvents, const ur_event_handle_t *phEventWaitList) {
4444
for (uint32_t i = 0; i < numEvents; i++) {
4545
if (phEventWaitList[i]->OffloadEvent) {
46-
OL_RETURN_ON_ERR(olWaitEvent(phEventWaitList[i]->OffloadEvent));
46+
OL_RETURN_ON_ERR(olSyncEvent(phEventWaitList[i]->OffloadEvent));
4747
}
4848
}
4949
return UR_RESULT_SUCCESS;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urQueueRelease(ur_queue_handle_t hQueue) {
6969
}
7070

7171
UR_APIEXPORT ur_result_t UR_APICALL urQueueFinish(ur_queue_handle_t hQueue) {
72-
return offloadResultToUR(olWaitQueue(hQueue->OffloadQueue));
72+
return offloadResultToUR(olSyncQueue(hQueue->OffloadQueue));
7373
}
7474

7575
UR_APIEXPORT ur_result_t UR_APICALL urQueueGetNativeHandle(

0 commit comments

Comments
 (0)