Skip to content

Commit

Permalink
Merge pull request #2508 from AllanZyne/review/yang/fix_msan_empty_ke…
Browse files Browse the repository at this point in the history
…rnel

[DeviceMSAN] Fix empty kernel
  • Loading branch information
kbenzie authored Jan 6, 2025
2 parents 0eb08b6 + 5a7d8fa commit 75745a9
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 @@ -401,8 +401,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 75745a9

Please sign in to comment.