Skip to content

Commit

Permalink
fix emtpy kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZyne committed Dec 26, 2024
1 parent ea0f3a1 commit 6518987
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/loader/layers/sanitizer/msan/msan_interceptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,13 @@ ur_result_t MsanInterceptor::prepareLaunch(
(void *)LaunchInfo.Data, LaunchInfo.Data->GlobalShadowOffset,
ToString(LaunchInfo.Data->DeviceTy), LaunchInfo.Data->Debug);

UR_CALL(
EnqueueWriteGlobal("__MsanLaunchInfo", &LaunchInfo.Data, sizeof(uptr)));
ur_result_t URes =
EnqueueWriteGlobal("__MsanLaunchInfo", &LaunchInfo.Data, sizeof(uptr));
if (URes != UR_RESULT_SUCCESS) {
getContext()->logger.info("EnqueueWriteGlobal(__MsanLaunchInfo) "
"failed, maybe empty kernel: {}",
URes);
}

return UR_RESULT_SUCCESS;
}
Expand Down

0 comments on commit 6518987

Please sign in to comment.