Created by: liu-plus-wei
PR types
Bug fixes
PR changes
Others
Describe
same as issue #21201, cudaStreamSynchronize may randomly hang on windows, this API maybe also used in some other parts. In the long term, we should have a review of the usage of this API, and solve it by a unified method.