Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

use sync threads #785

Merged
merged 7 commits into from May 12, 2022

Conversation

SunNy820828449
Copy link
Collaborator

@SunNy820828449 SunNy820828449 commented May 11, 2022

修复线程同步的问题,在block中添加sync thread同步对shared memory的访问
image

@Xreki
Copy link
Collaborator

Xreki commented May 12, 2022

生成的代码有2个sync

@Xreki
Copy link
Collaborator

Xreki commented May 12, 2022

laplace2d自动版测试,连续两次运行结果如下:

image

image

mse数值已经稳定,但与不使用CINN仍存在一定的diff,后续需要逐个排查pass。

Copy link
Collaborator

@haozech haozech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SunNy820828449 SunNy820828449 merged commit 515eb03 into PaddlePaddle:develop May 12, 2022
@SunNy820828449
Copy link
Collaborator Author

SunNy820828449 commented May 12, 2022

这个是在 reduce的schedule里面生成的,每个reduce op都会有一个

@thisjiang
Copy link
Collaborator

laplace2d自动版测试,连续两次运行结果如下:

image image

mse数值已经稳定,但与不使用CINN仍存在一定的diff,后续需要逐个排查pass。

mse当前只要求与不使用CINN在同一个数量即可,已经满足要求了~

zhhsplendid pushed a commit that referenced this pull request Jun 9, 2022
* fix sync threads

Co-authored-by: haozech <chenhaoze94@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants