File: shmem_n_pes.3.rst

package info (click to toggle)
openmpi 5.0.8-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 201,692 kB
  • sloc: ansic: 613,078; makefile: 42,351; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,179; python: 1,859; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (42 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.. _shmem_n_pes:


shmem_n_pes
===========

.. include_body

:ref:`num_pes`, \_num_pes  :ref:`shmem_n_pes` - Returns the number of processing
elements (PEs) used to run the application.


SYNOPSIS
--------

C or C++:

.. code-block:: c++

   #include <mpp/shmem.h>

   int _num_pes (void)
   int shmem_n_pes (void)

Fortran:

.. code-block:: fortran

   include 'mpp/shmem.fh'
   I = NUM_PES ()
   I = SHMEM_N_PES ()


DESCRIPTION
-----------

num_pes() or shmem_n_pes() return the total number of PEs running in an
application.


.. seealso::
   *intro_shmem*\ (3) *shmem_my_pe*\ (3) *shmem_init*\ (3)