Skip to content

Commit 40b0a2c

Browse files
committed
fix emtpy kernel
1 parent 667d4d1 commit 40b0a2c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

source/loader/layers/sanitizer/msan/msan_interceptor.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,13 @@ ur_result_t MsanInterceptor::prepareLaunch(
387387
(void *)LaunchInfo.Data, LaunchInfo.Data->GlobalShadowOffset,
388388
ToString(LaunchInfo.Data->DeviceTy), LaunchInfo.Data->Debug);
389389

390-
UR_CALL(
391-
EnqueueWriteGlobal("__MsanLaunchInfo", &LaunchInfo.Data, sizeof(uptr)));
390+
ur_result_t URes =
391+
EnqueueWriteGlobal("__MsanLaunchInfo", &LaunchInfo.Data, sizeof(uptr));
392+
if (URes != UR_RESULT_SUCCESS) {
393+
getContext()->logger.info("EnqueueWriteGlobal(__MsanLaunchInfo) "
394+
"failed, maybe empty kernel: {}",
395+
URes);
396+
}
392397

393398
return UR_RESULT_SUCCESS;
394399
}

0 commit comments

Comments
 (0)