@@ -454,3 +454,30 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueUSMMemcpy(
454
454
455
455
return UR_RESULT_SUCCESS;
456
456
}
457
+
458
+ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueUSMAdvise (
459
+ ur_queue_handle_t hQueue, [[maybe_unused]] const void *pMem,
460
+ [[maybe_unused]] size_t size, [[maybe_unused]] ur_usm_advice_flags_t advice,
461
+ ur_event_handle_t *phEvent) {
462
+ // Currently not supported - do nothing
463
+ if (phEvent) {
464
+ *phEvent =
465
+ ur_event_handle_t_::createEmptyEvent (UR_COMMAND_USM_ADVISE, hQueue);
466
+ }
467
+ return UR_RESULT_SUCCESS;
468
+ }
469
+
470
+ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueUSMPrefetch (
471
+ ur_queue_handle_t hQueue, [[maybe_unused]] const void *pMem,
472
+ [[maybe_unused]] size_t size,
473
+ [[maybe_unused]] ur_usm_migration_flags_t flags,
474
+ uint32_t numEventsInWaitList, const ur_event_handle_t *phEventWaitList,
475
+ ur_event_handle_t *phEvent) {
476
+ // Currently not supported - do nothing
477
+ ol_queue_handle_t Queue;
478
+ OL_RETURN_ON_ERR (hQueue->nextQueue (Queue));
479
+ OL_RETURN_ON_ERR (waitOnEvents (Queue, phEventWaitList, numEventsInWaitList));
480
+ OL_RETURN_ON_ERR (makeEvent (UR_COMMAND_USM_PREFETCH, Queue, hQueue, phEvent));
481
+
482
+ return UR_RESULT_SUCCESS;
483
+ }
0 commit comments