SWDEV-320640 - Fixes to return right error codes in hipStreamUpdateCaptureDependencies() for negative scenarios
Change-Id: I3c4c54f8955fa9bb17eb595544005fe9f0e8a5f0
이 커밋은 다음에 포함됨:
1 부모
8e28413a9e
커밋
5a057af564
1 파일이 변경됨
+4
-1
@@ -1321,7 +1321,10 @@ hipError_t hipStreamUpdateCaptureDependencies(hipStream_t stream, hipGraphNode_t
|
||||
if (s->GetCaptureStatus() == hipStreamCaptureStatusNone) {
|
||||
HIP_RETURN(hipErrorIllegalState);
|
||||
}
|
||||
if (numDependencies > 0 && dependencies == nullptr) {
|
||||
if (numDependencies > 0 && dependencies == nullptr ||
|
||||
(numDependencies > s->GetLastCapturedNodes().size()) ||
|
||||
(flags != 0 && (flags != hipStreamAddCaptureDependencies ||
|
||||
flags != hipStreamSetCaptureDependencies))) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
std::vector<hipGraphNode_t> depNodes;
|
||||
|
||||
새 이슈에서 참조
사용자 차단