Skip to content

Commit 66ff768

Browse files
committed
fix of PR intel#17684
1 parent 34e6ef8 commit 66ff768

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ urEnqueueUSMAdvise(ur_queue_handle_t hQueue, const void *pMem, size_t size,
16821682
UR_CHECK_ERROR(cuPointerGetAttribute(
16831683
&IsManaged, CU_POINTER_ATTRIBUTE_IS_MANAGED, (CUdeviceptr)pMem));
16841684
if (!IsManaged) {
1685-
logger::warning(
1685+
UR_LOG(WARN,
16861686
"Memory advice ignored as memory advices only works with USM.");
16871687
return UR_RESULT_SUCCESS;
16881688
}

unified-runtime/source/adapters/level_zero/adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ ur_adapter_handle_t_::ur_adapter_handle_t_()
423423
if ((loader_version.major == 1 && loader_version.minor < 21) ||
424424
(loader_version.major == 1 && loader_version.minor == 21 &&
425425
loader_version.patch < 2)) {
426-
logger::warning(
426+
UR_LOG(WARN,
427427
"WARNING: Level Zero Loader version is older than 1.21.2. "
428428
"Please update to the latest version for API logging support.\n");
429429
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunch(
7272
: compiledLocalWorksize.data(),
7373
numEventsInWaitList, CLWaitEvents.data(), ifUrEvent(phEvent, Event));
7474
if (Err == CL_INVALID_KERNEL_ARGS) {
75-
ur::cl::getAdapter()->log.error("Kernel called with invalid arguments");
75+
UR_LOG_L(ur::cl::getAdapter()->log, ERR, "Kernel called with invalid arguments");
7676
}
7777
CL_RETURN_ON_FAILURE(Err);
7878

unified-runtime/source/loader/layers/tracing/ur_trcddi.cpp

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unified-runtime/source/loader/layers/validation/ur_valddi.cpp

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)