SWDEV-374402 - Added input stream check for hipExtLaunchKernel

Change-Id: I42915c3b9b10b4a4a5b3ae74b6a2dccc8fddbf7f


[ROCm/clr commit: f4f377bcaa]
此提交包含在:
Ioannis Assiouras
2022-12-20 15:49:15 +00:00
父節點 c4d2a2c557
當前提交 1ddb9a2ddf
+5
查看文件
@@ -496,6 +496,11 @@ extern "C" hipError_t hipExtLaunchKernel(const void* hostFunction, dim3 gridDim,
hipEvent_t startEvent, hipEvent_t stopEvent, int flags) {
HIP_INIT_API(hipExtLaunchKernel, hostFunction, gridDim, blockDim, args, sharedMemBytes,
stream, startEvent, stopEvent, flags);
if (!hip::isValid(stream)) {
HIP_RETURN(hipErrorInvalidValue);
}
STREAM_CAPTURE(hipExtLaunchKernel, stream, hostFunction, gridDim, blockDim, args, sharedMemBytes,
startEvent, stopEvent, flags);
HIP_RETURN(ihipLaunchKernel(hostFunction, gridDim, blockDim, args, sharedMemBytes, stream,