SWDEV-374390 - add correct error
- null stream should return error on host function Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: I17659ad7af0814091dbf6cb4a2cb2644514551f0
This commit is contained in:
@@ -674,6 +674,9 @@ 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) {
|
||||
HIP_RETURN(hipErrorStreamCaptureImplicit);
|
||||
}
|
||||
HIP_RETURN(hipLaunchHostFunc_common(stream, fn, userData));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user