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
[ROCm/clr commit: f93dfb2a4e]
This commit is contained in:
zatwierdzone przez
Shadi Dashmiz
rodzic
9ec5dee45c
commit
7c73bbece6
@@ -1456,6 +1456,9 @@ hipError_t hipStreamGetCaptureInfo_common(hipStream_t stream,
|
|||||||
if (pCaptureStatus == nullptr || !hip::isValid(stream)) {
|
if (pCaptureStatus == nullptr || !hip::isValid(stream)) {
|
||||||
return hipErrorInvalidValue;
|
return hipErrorInvalidValue;
|
||||||
}
|
}
|
||||||
|
if (hip::Stream::StreamCaptureBlocking() == true && stream == nullptr) {
|
||||||
|
return hipErrorStreamCaptureImplicit;
|
||||||
|
}
|
||||||
if (stream == nullptr) {
|
if (stream == nullptr) {
|
||||||
return hipErrorUnknown;
|
return hipErrorUnknown;
|
||||||
}
|
}
|
||||||
@@ -1488,6 +1491,9 @@ hipError_t hipStreamGetCaptureInfo_v2_common(hipStream_t stream,
|
|||||||
if (captureStatus_out == nullptr) {
|
if (captureStatus_out == nullptr) {
|
||||||
return hipErrorInvalidValue;
|
return hipErrorInvalidValue;
|
||||||
}
|
}
|
||||||
|
if (hip::Stream::StreamCaptureBlocking() == true && stream == nullptr) {
|
||||||
|
return hipErrorStreamCaptureImplicit;
|
||||||
|
}
|
||||||
if (stream == nullptr) {
|
if (stream == nullptr) {
|
||||||
return hipErrorUnknown;
|
return hipErrorUnknown;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user