Skip to content

Commit c49c771

Browse files
authored
[UR] Fix PR #17684 - change in logs (#18364)
Fix of compilation errors caused by merge of #17684
1 parent 7616656 commit c49c771

File tree

5 files changed

+26
-18
lines changed

5 files changed

+26
-18
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,8 +1682,8 @@ 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(
1686-
"Memory advice ignored as memory advices only works with USM.");
1685+
UR_LOG(WARN,
1686+
"Memory advice ignored as memory advices only works with USM.");
16871687
return UR_RESULT_SUCCESS;
16881688
}
16891689

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,8 @@ 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(
427+
WARN,
427428
"WARNING: Level Zero Loader version is older than 1.21.2. "
428429
"Please update to the latest version for API logging support.\n");
429430
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ 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,
76+
"Kernel called with invalid arguments");
7677
}
7778
CL_RETURN_ON_FAILURE(Err);
7879

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

Lines changed: 14 additions & 8 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)