@@ -1374,8 +1374,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueUSMPrefetch(
13741374 // mem_advise.
13751375 if (!Device->getManagedMemSupport ()) {
13761376 releaseEvent ();
1377- logger::warning ( " mem_advise ignored as device does not support "
1378- " managed memory access." );
1377+ UR_LOG (WARN, " mem_advise ignored as device does not support "
1378+ " managed memory access." );
13791379 return UR_RESULT_SUCCESS;
13801380 }
13811381
@@ -1389,7 +1389,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueUSMPrefetch(
13891389 // async prefetch requires USM pointer (or hip SVM) to work.
13901390 if (!attribs.isManaged ) {
13911391 releaseEvent ();
1392- logger::warning ( " Prefetch hint ignored as prefetch only works with USM." );
1392+ UR_LOG (WARN, " Prefetch hint ignored as prefetch only works with USM." );
13931393 return UR_RESULT_SUCCESS;
13941394 }
13951395
@@ -1444,8 +1444,8 @@ urEnqueueUSMAdvise(ur_queue_handle_t hQueue, const void *pMem, size_t size,
14441444 // mem_advise.
14451445 if (!Device->getManagedMemSupport ()) {
14461446 releaseEvent ();
1447- logger::warning ( " mem_advise ignored as device does not support "
1448- " managed memory access." );
1447+ UR_LOG (WARN, " mem_advise ignored as device does not support "
1448+ " managed memory access." );
14491449 return UR_RESULT_SUCCESS;
14501450 }
14511451
@@ -1461,8 +1461,8 @@ urEnqueueUSMAdvise(ur_queue_handle_t hQueue, const void *pMem, size_t size,
14611461 UR_USM_ADVICE_FLAG_DEFAULT)) {
14621462 if (!Device->getConcurrentManagedAccess ()) {
14631463 releaseEvent ();
1464- logger::warning ( " mem_advise ignored as device does not support "
1465- " concurrent memory access." );
1464+ UR_LOG (WARN, " mem_advise ignored as device does not support "
1465+ " concurrent memory access." );
14661466 return UR_RESULT_SUCCESS;
14671467 }
14681468
@@ -1481,8 +1481,8 @@ urEnqueueUSMAdvise(ur_queue_handle_t hQueue, const void *pMem, size_t size,
14811481 if (auto ptrAttribs = getPointerAttributes (pMem);
14821482 !ptrAttribs || !ptrAttribs->isManaged ) {
14831483 releaseEvent ();
1484- logger::warning ( " mem_advise is ignored as the pointer argument is not "
1485- " a shared USM pointer." );
1484+ UR_LOG (WARN, " mem_advise is ignored as the pointer argument is not "
1485+ " a shared USM pointer." );
14861486 return UR_RESULT_SUCCESS;
14871487 }
14881488
@@ -1510,8 +1510,8 @@ urEnqueueUSMAdvise(ur_queue_handle_t hQueue, const void *pMem, size_t size,
15101510 // the runtime.
15111511 if (Result == UR_RESULT_ERROR_INVALID_ENUMERATION) {
15121512 releaseEvent ();
1513- logger::warning ( " mem_advise is ignored as the advice argument is not "
1514- " supported by this device." );
1513+ UR_LOG (WARN, " mem_advise is ignored as the advice argument is not "
1514+ " supported by this device." );
15151515 return UR_RESULT_SUCCESS;
15161516 }
15171517 UR_CHECK_ERROR (Result);
0 commit comments