Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2025.1.0 - Português


MPI_Comm_rank

Determines the rank of a calling process in a communicator

Syntax

rk = MPI_Comm_rank(comm=mpi_comm)

Arguments

comm=mpi_comm

If the optional argument "comm" is given, this function will use the MPI communicator created by MPI_Create_comm. If not, the default MPI_COMM_WORLD is used.

rk

The rank of a calling process in a communicator's group.

Description

Gets the rank of the calling process in the group of comm.

Examples

MPI_Init();
rnk = MPI_Comm_rank();
sizeNodes = MPI_Comm_size();
MPI_Finalize();

See also

  • MPI_Init — Initialize the MPI environment
  • MPI_Comm_size — Determines the size of the group associated with a communicator
Report an issue
<< MPI_Bcast Scilab MPI MPI_Comm_size >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu May 22 12:56:24 CEST 2025