Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sergei-Lebedev
Copy link
Contributor

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

reduce/reduce.c \
reduce/reduce_knomial.c \
reduce/reduce_dbt.c \
reduce/reduce_srg_knomial.c
Copy link
Contributor Author

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),
Copy link
Contributor Author

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 */
Copy link
Contributor Author

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,
Copy link
Contributor Author

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;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

rem empty line

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.

1 participant