SWDEV-320640 - Fix to return the right error code when the stream is not in capture mode
Change-Id: Id2f296e0cbf5f90a8163441f4c69c72615dd90a0
[ROCm/clr commit: 02838eb236]
This commit is contained in:
committed by
Sourabh Betigeri
parent
38a0792ebe
commit
d29a3ae502
@@ -1303,7 +1303,7 @@ hipError_t hipStreamUpdateCaptureDependencies(hipStream_t stream, hipGraphNode_t
|
|||||||
HIP_RETURN(hipErrorInvalidValue);
|
HIP_RETURN(hipErrorInvalidValue);
|
||||||
}
|
}
|
||||||
hip::Stream* s = reinterpret_cast<hip::Stream*>(stream);
|
hip::Stream* s = reinterpret_cast<hip::Stream*>(stream);
|
||||||
if (s->GetCaptureStatus() == hipStreamCaptureStatusActive) {
|
if (s->GetCaptureStatus() == hipStreamCaptureStatusNone) {
|
||||||
HIP_RETURN(hipErrorIllegalState);
|
HIP_RETURN(hipErrorIllegalState);
|
||||||
}
|
}
|
||||||
if (numDependencies > 0 && dependencies == nullptr) {
|
if (numDependencies > 0 && dependencies == nullptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user