Skip to content

Commit d9f941a

Browse files
committed
fix
1 parent 0d98125 commit d9f941a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ MsanInterceptor::registerDeviceGlobals(ur_program_handle_t Program) {
278278
const auto &GVInfo = GVInfos[i];
279279
UR_CALL(DeviceInfo->Shadow->EnqueuePoisonShadow(Queue, GVInfo.Addr,
280280
GVInfo.Size, 0));
281+
ContextInfo->MaxAllocatedSize =
282+
std::max(ContextInfo->MaxAllocatedSize, GVInfo.Size);
281283
}
282284
}
283285

0 commit comments

Comments
 (0)