Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2025.1.0 - 日本語


MPI_Comm_size

Determines the size of the group associated with a communicator

Syntax

sz = MPI_Comm_size(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.

sz

The number of processes in the group of comm.

Description

Gets the size of the group associated with a communicator.

Examples

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

See also

  • MPI_Init — Initialize the MPI environment
  • MPI_Comm_rank — Determines the rank of a calling process in a communicator
Report an issue
<< MPI_Comm_rank Scilab MPI MPI_Create_comm >>

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:57:16 CEST 2025