Hi !
I set the name of two created comms and end up with
if I don't set the names all goes fine - so I guess the comms are
ok ?
MPI_Comm_set_name: invalid communicator: Invalid argument (rank 1, MPI_COMM_WORLD)
Rank (1, MPI_COMM_WORLD): Call stack within LAM:
Rank (1, MPI_COMM_WORLD): - MPI_Comm_set_name()
Rank (1, MPI_COMM_WORLD): - main()
MPI_Comm_set_name: invalid communicator: Invalid argument (rank 3, MPI_COMM_WORLD)
same story on all ranks.
Is there a problem with MPI_Comm_set_name or am I
doing something obviously stupid here ?
sequence leading up to the problem:
MPI_Group world,lgroup,rgroup;
int left[2] = {0,2};
int right[2] = {1,3};
MPI_Comm rcomm,lcomm,mycomm;
char rname[] = "right group\n";
char lname[] = "left group\n";
char cname[MPI_MAX_OBJECT_NAME];
...
MPI_Comm_group(MPI_COMM_WORLD,&world);
MPI_Group_incl(world,2,left,&lgroup);
MPI_Group_incl(world,2,right,&rgroup);
...
MPI_Comm_create(
MPI_COMM_WORLD,
lgroup,
&lcomm);
MPI_Comm_set_name(lcomm,rname);
MPI_Comm_create(
MPI_COMM_WORLD,
rgroup,
&rcomm);
MPI_Comm_set_name(rcomm,rname);
Linux 2.4 (X86)
Lam 7.0.6 (default config)
thx !
hofrat
|