SWDEV-379151 - correct error status

- if the stream is null ptr and there is capture ongoing return an error

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Iff33e4aebc253fb7bb56daf5c455722d726c6705
Этот коммит содержится в:
sdashmiz authored and Shadi Dashmiz committed 2023-01-25 15:06:38 -05:00
1 родитель 8b00f56577
Коммит a4dd362a1d
1 file changed
+1 -1
+1 -1
Просмотреть файл
@@ -695,7 +695,7 @@ hipError_t hipLaunchHostFunc_spt(hipStream_t stream, hipHostFn_t fn, void* userD
// ================================================================================================
hipError_t hipLaunchHostFunc(hipStream_t stream, hipHostFn_t fn, void* userData) {
HIP_INIT_API(hipLaunchHostFunc, stream, fn, userData);
if (stream == nullptr) {
if (stream == nullptr && (hip::Stream::StreamCaptureOngoing() == true)) {
HIP_RETURN(hipErrorStreamCaptureImplicit);
}
HIP_RETURN(hipLaunchHostFunc_common(stream, fn, userData));