-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added more receivers less senders. Receivers should block. #8061
Conversation
paddle/framework/channel_test.cc
Outdated
std::this_thread::sleep_for(std::chrono::milliseconds(100)); // wait 0.5 sec | ||
EXPECT_EQ(sum_send, 10U); | ||
EXPECT_EQ(sum_receive, 10U); | ||
EXPECT_EQ(sum_send, sum_receive); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think EXPECT_EQ(sum_send, sum_receive);
is uncessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out, will fix this in a commit.
paddle/framework/channel_test.cc
Outdated
t.join(); | ||
EXPECT_EQ(sum_send, 28U); | ||
EXPECT_EQ(sum_receive, 28U); | ||
EXPECT_EQ(sum_send, sum_receive); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing this as well. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.