SWDEV-374402 - Added input stream check for hipExtLaunchKernel

Change-Id: I42915c3b9b10b4a4a5b3ae74b6a2dccc8fddbf7f
이 커밋은 다음에 포함됨:
Ioannis Assiouras
2022-12-20 15:49:15 +00:00
부모 97c5f772c6
커밋 f4f377bcaa
+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,