File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
source/loader/layers/sanitizer/msan Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1390,7 +1390,10 @@ ur_result_t UR_APICALL urEnqueueUSMMemcpy(
1390
1390
1391
1391
if (phEvent) {
1392
1392
*phEvent = hEvent;
1393
+ } else {
1394
+ getContext ()->urDdiTable .Event .pfnWait (1 , &hEvent);
1393
1395
}
1396
+ // getContext()->urDdiTable.Queue.pfnFinish(hQueue);
1394
1397
1395
1398
return UR_RESULT_SUCCESS;
1396
1399
}
Original file line number Diff line number Diff line change @@ -386,13 +386,13 @@ MsanInterceptor::findAllocInfoByAddress(uptr Address) {
386
386
std::shared_lock<ur_shared_mutex> Guard (m_AllocationMapMutex);
387
387
auto It = m_AllocationMap.upper_bound (Address);
388
388
if (It == m_AllocationMap.begin ()) {
389
- return std::optional<MsanAllocationIterator>{} ;
389
+ return std::nullopt ;
390
390
}
391
391
--It;
392
- // Make sure we got the right MsanAllocInfo
393
- assert (Address > = It->second ->AllocBegin &&
394
- Address < It-> second -> AllocBegin + It-> second -> AllocSize &&
395
- " Wrong MsanAllocInfo for the address " );
392
+
393
+ if (Address < It-> second -> AllocBegin || Address > = It->second ->AllocBegin + It-> second -> AllocSize ) {
394
+ return std::nullopt;
395
+ }
396
396
return It;
397
397
}
398
398
You can’t perform that action at this time.
0 commit comments