num_pes
- Date:
02-08-2023
NAME
_num_pes, NUM_PES - Returns the number of processing elements (PEs) running in an application
SYNOPSIS
C
#include <intrinsics.h>
int _num_pes (void);
Fortran
NUM_PES()
STANDARDS
C extension
Fortran extension
DESCRIPTION
The C _num_pes and the Fortran NUM_PES functions return the number of processing elements (PEs) running in an application.
NOTES
The _num_pes and NUM_PES intrinsic functions are evaluated at run time and cannot be used in constant expressions.
Because _num_pes and NUM_PES are intrinsic functions, no externally visible library functions are available for them. The compiler generates inline code to produce the result.
SEE ALSO
intro_shmem(3), start_pes(3)
Cray Fortran Reference Manual or Cray C and C++ Reference Manual