SWDEV-326800 - hipStreamWaitEvent shouldnt accept flags other than 0

Change-Id: Ic9e2e8e7ac5d34d4286356534810c8e7aa0ee5ad
这个提交包含在:
Satyanvesh Dittakavi 于 2022-03-18 03:34:53 -04:00 提交
1 父节点 8e81b8495c
当前提交 796b8c2b62
1 个文件已更改
+4
+4
查看文件
@@ -457,6 +457,10 @@ hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int
HIP_RETURN(hipErrorInvalidHandle);
}
if (flags != 0) {
HIP_RETURN(hipErrorInvalidValue);
}
if (!hip::isValid(stream)) {
HIP_RETURN(hipErrorContextIsDestroyed);
}