Fix Unit_hipStreamBeginCaptureToGraph_CapturePartialInThreads (#2072)
https://mlsejenkinsvm.amd.com/job/rocm-systems/job/hip/view/change-requests/job/PR-2072/6/ The last windowsCI has passed successfully
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b958ce88c2
Коммит
3faf36fb25
@@ -396,6 +396,13 @@ hipError_t hipEventRecord_common(hipEvent_t event, hipStream_t stream, unsigned
|
||||
hip::Event* e = reinterpret_cast<hip::Event*>(event);
|
||||
hip::Stream* s = reinterpret_cast<hip::Stream*>(stream);
|
||||
hip::Stream* hip_stream = hip::getStream(stream);
|
||||
if (hipStream_t lastCaptureStream = e->GetCaptureStream()) {
|
||||
if (hip::isValid(lastCaptureStream)) {
|
||||
if ((lastCaptureStream != nullptr) && (lastCaptureStream != hipStreamLegacy)) {
|
||||
reinterpret_cast<hip::Stream*>(e->GetCaptureStream())->EraseCaptureEvent(event);
|
||||
}
|
||||
}
|
||||
}
|
||||
e->SetCaptureStream(stream);
|
||||
if ((stream != nullptr && stream != hipStreamLegacy) &&
|
||||
(s->GetCaptureStatus() == hipStreamCaptureStatusActive)) {
|
||||
|
||||
Ссылка в новой задаче
Block a user