dash
dash copied to clipboard
Cannot split a team multiple times
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?