SWDEV-374402 - Added check for invalid events in hipExtLaunchKernel

Change-Id: I8dfd69aa1ef38971a72b98c723d2099347a66d11
Ta zmiana jest zawarta w:
%! (template.HTML=Ioannis Assiouras)złożyło 2022-12-21 12:37:12 -05:00
1 rodzic 845bf0adb4
złożenie b83271b4ca
3 plików zmienionych
+17 -1

Żadne pliki nie pasują do Twojego wyszukiwania

+15
Wyświetl plik
@@ -260,6 +260,21 @@ hipError_t Event::addMarker(hipStream_t stream, amd::Command* command, bool reco
return status;
}
// ================================================================================================
bool isValid(hipEvent_t event) {
// NULL event is always valid
if (event == nullptr) {
return true;
}
amd::ScopedLock lock(eventSetLock);
if (eventSet.find(event) == eventSet.end()) {
return false;
}
return true;
}
} // namespace hip
// ================================================================================================
hipError_t ihipEventCreateWithFlags(hipEvent_t* event, unsigned flags) {