Lockless Inc

NAME

MPI_Group_translate_ranks - Looks up the corresponding ranks in one group from another

SYNOPSIS

#include <mpi.h> int MPI_Group_translate_ranks(MPI_Group g1 , int n , int *r1 , MPI_Group g2 , int *r2 );

#include <pmpi.h> int PMPI_Group_translate_ranks(MPI_Group g1 , int n , int *r1 , MPI_Group g2 , int *r2 );

INPUT PARAMETERS

g1 - group 1 (handle)

n - size of rank arrays (integer)

r1 - ranks (array)

g1 - group 2 (handle)

OUTPUT PARAMETER

r2 - equivalent ranks in group 2 (array).

DESCRIPTION

The MPI_Group_translate_ranks() function is used to determine the corresponding ranks between two groups g1 and g2 . An array of n ranks ( r1 ) are looked up inside g1 .

The corresponding ranks within g2 are stored within the r2 array.

Note that the groups must be valid (not MPI_GROUP_NULL). PMPI_Group_translate_ranks() is the profiling version of this function.

ERRORS

All MPI routines except for MPI_Wtime and MPI_Wtick return an error value. The the current MPI error handler is invoked if this return value is not MPI_SUCCESS. The default error handler aborts, but this may be changed with by using the MPI_Errhandler_set() function. The predefined error handler MPI_ERRORS_RETURN may be used to cause error values to be returned instead. Note that MPI does not guarentee that an MPI program can continue past an error. In this implementation, all errors except MPI_ERR_INTERN or MPI_ERR_OTHER should always be recoverable.

MPI_SUCCESS - No error;

MPI_ERR_GROUP - Invalid group;

MPI_ERR_ARG - Invalid input or output pointer;

MPI_ERR_RANK - Invalid rank.

SEE ALSO

MPI_Group_size (3) MPI_Group_rank (3)

About Us Returns Policy Privacy Policy Send us Feedback
Company Info | Product Index | Category Index | Help | Terms of Use
Copyright © Lockless Inc All Rights Reserved.
My Account View Cart