Skip to content

Commit

Permalink
TEST: sort list of collectives
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrol aderholdt authored and Sergei-Lebedev committed Oct 5, 2023
1 parent a796f8c commit 758d20a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/mpi/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,9 @@ int main(int argc, char *argv[])
std::vector<ucc_coll_type_t> os_colls(onesided_colls.size());
std::vector<ucc_coll_type_t>::iterator it_start;

std::sort(colls.begin(), colls.end());
std::sort(onesided_colls.begin(), onesided_colls.end());

it_start = std::set_intersection(
colls.begin(), colls.end(), onesided_colls.begin(),
onesided_colls.end(), os_colls.begin());
Expand Down

0 comments on commit 758d20a

Please sign in to comment.