PGAGetNumProcs(4)

PGAGetNumProcs4

Returns the size of communicator comm in processes.

Usage

#include "pgapack.h"
int  PGAGetNumProcs(ctx, comm)
PGAContext *ctx
MPI_Comm comm

Overview

If comm is NULL or a sequential version of PGAPack is used, PGAGetNumProcs() returns 1.

Input parameters

ctx

- context variable structure pointer

comm

- an MPI communicator

Output parameters

none

Location

parallel.c

Examples

Example:
PGAContext  *ctx;
:
if (PGAGetNumProcs(ctx, MPI_COMM_WORLD) < 4) {
printf("Too few processors for decent performance!0);
exit(-1);
}

Releases

Unchanged in 4 releases since Debian 5.0 (Lenny).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.