2
0

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
Este cometimento está contido em:
sdashmiz
2023-01-24 10:31:18 -05:00
cometido por Shadi Dashmiz
ascendente 8b00f56577
cometimento a4dd362a1d
+1 -1
Ver ficheiro
@@ -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));