-
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
pserver runs in parallel #9154
pserver runs in parallel #9154
Conversation
// and this will still work. | ||
std::vector<std::future<void>> fs; | ||
// block0 contains only listen_and_serv op, start run from block1. | ||
for (int blkid = 1; blkid < num_blocks - 1; ++blkid) { |
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 noticed that L94 promise num_blocks >= 2
, but it looks like that if num_blocks==2
, the code would not do anything?
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.
It's a problem, will fix.
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.
Resolve #9103
Related: #8638
This PR improves send_op performance by 50% using the vgg16 benchmark test (pserver uses 6 cores, more cores can gain better results).