Skip to content

Latest commit

 

History

History
117 lines (93 loc) · 2.71 KB

mpi-group-translate-ranks-function.md

File metadata and controls

117 lines (93 loc) · 2.71 KB
title TOCTitle ms:assetid ms:mtpsurl ms:contentKeyID ms.date mtps_version f1_keywords dev_langs api_location api_name api_type product topic_type product_family_name ROBOTS description
MPI_Group_translate_ranks function
MPI_Group_translate_ranks function
3c93c90e-2c99-4e37-8662-c7adea21f291
59360942
03/28/2018
v=VS.85
MPI_GROUP_TRANSLATE_RANKS
mpif/MPI_Group_translate_ranks
mpi/MPI_GROUP_TRANSLATE_RANKS
C++
C
Msmpi.dll
MPI_Group_translate_ranks
DLLExport
Windows
apiref
kbSyntax
VS
INDEX,FOLLOW
Master the MPI_Group_translate_ranks function with this comprehensive guide. Learn syntax, parameters, and return values for efficient process numbering.

MPI_Group_translate_ranks function

Determines the relative numbering of the same processes in two different groups.

Syntax

int MPIAPI MPI_Group_translate_ranks(
        MPI_Group         group1,
        int               n,
        _In_count_(n) int *ranks1,
        MPI_Group         group2,
  _Out_ int               *ranks2
);

Parameters

  • group1
    The first group.

  • n
    The number or ranks in the ranks1 and ranks2 parameter arrays.

  • ranks1
    Zero or more valid ranks in the first group.

    [!NOTE] The MPI_PROC_NULL constant is valid for this parameter. The corresponding rank that is returned in the ranks2 parameter is also MPI_PROC_NULL.

     

  • group2
    The second group.

  • ranks2 [out]
    On return, points to the corresponding ranks in the second group. The value MPI_UNDEFINED indicates that a process is in the first group, but not the second.

Return value

Returns MPI_SUCCESS on success. Otherwise, the return value is an error code.

In Fortran, the return value is stored in the IERROR parameter.

Fortran

    MPI_GROUP_TRANSLATE_RANKS( GROUP1, N, RANKS1, GROUP2, RANKS2, IERROR)
        INTEGER GROUP1, N, RANKS1(*), GROUP2, RANKS2(*), IERROR

Requirements

Product

HPC Pack 2012 MS-MPI Redistributable Package, HPC Pack 2008 R2 MS-MPI Redistributable Package, HPC Pack 2008 MS-MPI Redistributable Package or HPC Pack 2008 Client Utilities

Header

Mpi.h; Mpif.h

Library

Msmpi.lib

DLL

Msmpi.dll

See also

MPI Group Functions

MPI_Group_incl