Skip to content

Comments

Refine prefetch#11366

Merged
jacquesqiao merged 11 commits intoPaddlePaddle:developfrom
jacquesqiao:refine-prefetch
Jun 12, 2018
Merged

Refine prefetch#11366
jacquesqiao merged 11 commits intoPaddlePaddle:developfrom
jacquesqiao:refine-prefetch

Conversation

@jacquesqiao
Copy link
Member

@jacquesqiao jacquesqiao commented Jun 11, 2018

project: #10868

std::string in_var_name = request_->Varname();
std::string out_var_name = request_->OutVarname();
VLOG(3) << "in_var_name: " << in_var_name
<< " RequestPrefetch: " << out_var_name;
Copy link
Contributor

Choose a reason for hiding this comment

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

Log format should like: "RequestPrefetch, in_var_name: " << in_var_name << " out_var_name: " << out_var_name

Copy link
Member Author

Choose a reason for hiding this comment

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

done

typhoonzero
typhoonzero previously approved these changes Jun 12, 2018
Copy link
Contributor

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

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

LGTM++

@typhoonzero
Copy link
Contributor

Need to fix transpiler tests before merging.

}
parallel_blkids.push_back(blkid);
for (size_t i = 1; i < optimize_block_id_list.size(); ++i) {
// skip the first optimize block because it is already in the
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment here is skip the first optimize block..., but still start from i = 1?

Copy link
Member Author

@jacquesqiao jacquesqiao Jun 12, 2018

Choose a reason for hiding this comment

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

i is the index of optimize_block_id_list, the optimize_block_id_list[0] is 1, so optimize_block_id_list[1] will not be 1.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, got it.

last_parent_blkid = program->Block(blkid).Parent();
}
parallel_blkids.push_back(blkid);
for (size_t i = 1; i < optimize_block_id_list.size(); ++i) {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe should start from 2? block0 is only listen_and_serv, and block1 is pushed at line 139

Copy link
Member Author

Choose a reason for hiding this comment

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

the first(index=0) item in optimize_block_id_list is 1, the second(index=1) will be 2.

@jacquesqiao jacquesqiao merged commit 431491a into PaddlePaddle:develop Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants