SWDEV-366974 - return implicit capture for null stream
- return implicit error if null sream is passed while blocing stream is in operation Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: I4d867a0bddd855e2c0d3eb9b769d5d36412c20c0
Этот коммит содержится в:
коммит произвёл
Shadi Dashmiz
родитель
4f5d180ca7
Коммит
f93dfb2a4e
@@ -1456,6 +1456,9 @@ hipError_t hipStreamGetCaptureInfo_common(hipStream_t stream,
|
||||
if (pCaptureStatus == nullptr || !hip::isValid(stream)) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
if (hip::Stream::StreamCaptureBlocking() == true && stream == nullptr) {
|
||||
return hipErrorStreamCaptureImplicit;
|
||||
}
|
||||
if (stream == nullptr) {
|
||||
return hipErrorUnknown;
|
||||
}
|
||||
@@ -1488,6 +1491,9 @@ hipError_t hipStreamGetCaptureInfo_v2_common(hipStream_t stream,
|
||||
if (captureStatus_out == nullptr) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
if (hip::Stream::StreamCaptureBlocking() == true && stream == nullptr) {
|
||||
return hipErrorStreamCaptureImplicit;
|
||||
}
|
||||
if (stream == nullptr) {
|
||||
return hipErrorUnknown;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user