Skip to content

Commit

Permalink
[DevMSAN] Don't return error if try to get "__MsanKernelMetadata" failed
Browse files Browse the repository at this point in the history
This is a same fix as #2412, we will refine the logic later.
  • Loading branch information
zhaomaosu committed Dec 18, 2024
1 parent 39df031 commit 62380a9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/loader/layers/sanitizer/msan/msan_interceptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,7 @@ ur_result_t MsanInterceptor::registerSpirKernels(ur_program_handle_t Program) {
Device, Program, kSPIR_MsanSpirKernelMetadata, &MetadataSize,
&MetadataPtr);
if (Result != UR_RESULT_SUCCESS) {
getContext()->logger.error(
"Can't get the pointer of <{}> under device {}: {}",
kSPIR_MsanSpirKernelMetadata, (void *)Device, Result);
return Result;
continue;
}

const uint64_t NumOfSpirKernel = MetadataSize / sizeof(SpirKernelInfo);
Expand Down

0 comments on commit 62380a9

Please sign in to comment.