PGAGetNumProcs3
Returns the size of communicator comm in processes. if comm is null or a sequential version of pgapack is used, pgagetnumprocs() returns 1.
Usage
#include "pgapack.h" int PGAGetNumProcs(ctx, comm) PGAContext *ctx MPI_Comm comm
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
8 releases since Debian 1.1 (Buzz); the text changed 1 time.