@@ -1410,6 +1410,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueUSMPrefetch(
1410
1410
releaseEvent ();
1411
1411
logger::warning (" mem_advise ignored as device does not support "
1412
1412
" managed memory access." );
1413
+ return UR_RESULT_SUCCESS;
1413
1414
}
1414
1415
1415
1416
hipPointerAttribute_t attribs;
@@ -1423,7 +1424,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueUSMPrefetch(
1423
1424
if (!attribs.isManaged ) {
1424
1425
releaseEvent ();
1425
1426
logger::warning (" Prefetch hint ignored as prefetch only works with USM." );
1426
- return UR_RESULT_ERROR_ADAPTER_SPECIFIC ;
1427
+ return UR_RESULT_SUCCESS ;
1427
1428
}
1428
1429
1429
1430
UR_CHECK_ERROR (
@@ -1480,6 +1481,7 @@ urEnqueueUSMAdvise(ur_queue_handle_t hQueue, const void *pMem, size_t size,
1480
1481
releaseEvent ();
1481
1482
logger::warning (" mem_advise ignored as device does not support "
1482
1483
" managed memory access." );
1484
+ return UR_RESULT_SUCCESS;
1483
1485
}
1484
1486
1485
1487
// Passing MEM_ADVICE_SET/MEM_ADVICE_CLEAR_PREFERRED_LOCATION to
@@ -1496,6 +1498,7 @@ urEnqueueUSMAdvise(ur_queue_handle_t hQueue, const void *pMem, size_t size,
1496
1498
releaseEvent ();
1497
1499
logger::warning (" mem_advise ignored as device does not support "
1498
1500
" concurrent memory access." );
1501
+ return UR_RESULT_SUCCESS;
1499
1502
}
1500
1503
1501
1504
// TODO: If pMem points to valid system-allocated pageable memory, we
@@ -1515,7 +1518,7 @@ urEnqueueUSMAdvise(ur_queue_handle_t hQueue, const void *pMem, size_t size,
1515
1518
releaseEvent ();
1516
1519
logger::warning (" mem_advise is ignored as the pointer argument is not "
1517
1520
" a shared USM pointer." );
1518
- return UR_RESULT_ERROR_ADAPTER_SPECIFIC ;
1521
+ return UR_RESULT_SUCCESS ;
1519
1522
}
1520
1523
1521
1524
const auto DeviceID = Device->get ();
@@ -1544,6 +1547,7 @@ urEnqueueUSMAdvise(ur_queue_handle_t hQueue, const void *pMem, size_t size,
1544
1547
releaseEvent ();
1545
1548
logger::warning (" mem_advise is ignored as the advice argument is not "
1546
1549
" supported by this device." );
1550
+ return UR_RESULT_SUCCESS;
1547
1551
}
1548
1552
UR_CHECK_ERROR (Result);
1549
1553
}
0 commit comments