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

Cannot split a team multiple times #658

Open
bertwesarg opened this issue Jul 12, 2019 · 0 comments · May be fixed by #663
Open

Cannot split a team multiple times #658

bertwesarg opened this issue Jul 12, 2019 · 0 comments · May be fixed by #663
Assignees

Comments

@bertwesarg
Copy link
Member

When splitting a team the second time I get the following runtime exception:

[    0 ERROR ] [ 12692 ] Team.cc                  :63   | dash::exception::InvalidArgument             | [ Unit 0 ] child of team 0 already set to 1, cannot set to 3
terminate called after throwing an instance of 'dash::exception::InvalidArgument'
  what():  [ Unit 0 ] child of team 0 already set to 1, cannot set to 3

Here is an example code:

#include <iostream>

#include <libdash.h>

int
main(int ac, char *av[])
{
    using TeamSpecT = dash::TeamSpec<2>;

    dash::init(&ac, &av);

    auto& team_all = dash::Team::All();

    dash::Team& team_1= team_all.split(2);

    team_all.barrier();
    dash::Team& team_2= team_all.split(2);

    dash::finalize();

    return 0;
}

Is this intentional?

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 a pull request may close this issue.

2 participants