Unique to each process?

Try this:

int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
uint64_t unique = rank;

To get additional unique values:

int size;
MPI_Comm_size(MPI_COMM_WORLD, &size);
unique += size;

If this isn't insufficient, please ask to question differently. 

There is no canonical method for this. 

Jeff

Sent from my iPhone

On Jan 3, 2014, at 3:50 AM, MM <finjulhich@gmail.com> wrote:

Hello,
Is there a canonical way to obtain a globally unique 64bit unsigned integer across all mpi processes, multiple times?

Thanks

MM

_______________________________________________
users mailing list
users@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users