On Thursday, August 3 at 04:13 PM, quoth Kyle Wheeler:
> Iâm fiddling with the profiling layer, and I want to convert a
> communicator-specific rank to global rank. Is there a good way of
> doing this?
I found the following, which I think does it. Is this the best way?
MPI_Group world, cur;
int globalrank;
PMPI_Comm_group(comm, &cur);
PMPI_Comm_group(MPI_COMM_WORLD, &world);
PMPI_Group_translate_ranks(cur, 1, &rank, world, &globalrank);
--
Kyle B. Wheeler Scalable Computing Systems (1423)
Student Intern Sandia National Laboratories
kbwheel_at_[hidden] 505-844-7179
MS: 1319 CSRI/237
- application/pgp-signature attachment: stored
|