Skip to content

Commit 5b12e29

Browse files
committed
change log message
1 parent ef0e07f commit 5b12e29

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

source/loader/layers/sanitizer/asan_interceptor.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,6 @@ SanitizerInterceptor::insertDevice(ur_device_handle_t Device,
624624
Device, UR_DEVICE_INFO_MEM_BASE_ADDR_ALIGN, sizeof(DI->Alignment),
625625
&DI->Alignment, nullptr));
626626

627-
getContext()->logger.info("DeviceInfo {} (IsSupportSharedSystemUSM={})",
628-
(void *)Device, DI->IsSupportSharedSystemUSM);
629-
630627
// Don't move DI, since it's a return value as well
631628
m_DeviceMap.emplace(Device, DI);
632629

source/loader/layers/sanitizer/ur_sanddi.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ ur_result_t setupContext(ur_context_handle_t Context, uint32_t numDevices,
3535
getContext()->logger.error("Unsupport device");
3636
return UR_RESULT_ERROR_INVALID_DEVICE;
3737
}
38-
getContext()->logger.info("Add {} into context {}", ToString(DI->Type),
38+
getContext()->logger.info(
39+
"DeviceInfo {} (Type={}, IsSupportSharedSystemUSM={})",
40+
(void *)DI->Handle, ToString(DI->Type),
41+
DI->IsSupportSharedSystemUSM);
42+
getContext()->logger.info("Add {} into context {}", (void *)DI->Handle,
3943
(void *)Context);
4044
if (!DI->ShadowOffset) {
4145
UR_CALL(DI->allocShadowMemory(Context));

0 commit comments

Comments
 (0)