-
Notifications
You must be signed in to change notification settings - Fork 102
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
TL/UCP: add reduce srg knomial #1058
base: master
Are you sure you want to change the base?
Conversation
reduce/reduce.c \ | ||
reduce/reduce_knomial.c \ | ||
reduce/reduce_dbt.c \ | ||
reduce/reduce_srg_knomial.c |
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.
alignment
@@ -499,6 +513,9 @@ ucc_tl_ucp_reduce_scatter_knomial_init_r(ucc_base_coll_args_t *coll_args, | |||
ucc_kn_rsx_pattern_init(size, rank, radix, | |||
count, &task->reduce_scatter_kn.p); | |||
|
|||
} else if (ct == UCC_COLL_TYPE_REDUCE) { | |||
ucc_kn_rsx_pattern_init(size, VRANK(rank, coll_args->args.root, size), |
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.
add reordering for reduce
UCC_TL_TEAM_SIZE(tl_team), | ||
count); | ||
|
||
/* 1st step of reduce: knomial reduce_scatter */ |
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.
move comment up
cfg_radix = ucc_tl_ucp_get_radix_from_range(tl_team, | ||
count * ucc_dt_size(dt), | ||
mt, p, 4); | ||
radix = ucc_knomial_pattern_get_min_radix(cfg_radix, |
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.
add tl_trace
args.args.dst.info.buffer = rs_rbuf; | ||
args.args.mask |= UCC_COLL_ARGS_FIELD_FLAGS; | ||
args.args.flags |= UCC_COLL_ARGS_FLAG_IN_PLACE; | ||
|
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.
rem empty line
What
Add reduce srg knomial algorithm to TL UCP
Why ?
Improves performance of large msg reduce collective
How ?
Implemented as schedule of reduce scatter knomial followed by gather knomial