File: MPI_Pcontrol.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 (95 lines) | stat: -rw-r--r-- 2,445 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.. _mpi_pcontrol:


MPI_Pcontrol
============

.. include_body

:ref:`MPI_Pcontrol` |mdash| Controls profiling.


SYNTAX
------


C Syntax
^^^^^^^^

.. code-block:: c

   #include <mpi.h>

   int MPI_Pcontrol(const int level, ... )


Fortran Syntax
^^^^^^^^^^^^^^

.. code-block:: fortran

   USE MPI
   ! or the older form: INCLUDE 'mpif.h'
   MPI_PCONTROL(LEVEL)
   	INTEGER	LEVEL


Fortran 2008 Syntax
^^^^^^^^^^^^^^^^^^^

.. code-block:: fortran

   USE mpi_f08
   MPI_Pcontrol(level)
   	INTEGER, INTENT(IN) :: level


INPUT PARAMETER
---------------
* ``level``: Profiling level.

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

MPI libraries themselves make no use of this routine; they simply return
immediately to the user code. However the presence of calls to this
routine allows a profiling package to be explicitly called by the user.

Since MPI has no control of the implementation of the profiling code, we
are unable to specify precisely the semantics that will be provided by
calls to :ref:`MPI_Pcontrol`. This vagueness extends to the number of arguments
to the function, and their datatypes.

However to provide some level of portability of user codes to different
profiling libraries, we request the following meanings for certain
values of level:

 o    level==0 Profiling is disabled.

 o    level==1 Profiling is enabled at a normal default level of detail.

 o    level==2 Profile buffers are flushed. (This may be a no-op in some profilers).

 o    All other values of level have profile library-defined effects and additional arguments.

We also request that the default state after :ref:`MPI_Init` has been called is
for profiling to be enabled at the normal default level (i.e., as if
:ref:`MPI_Pcontrol` had just been called with the argument 1). This allows
users to link with a profiling library and obtain profile output without
having to modify their source code at all.

The provision of :ref:`MPI_Pcontrol` as a no-op in the standard MPI library
allows users to modify their source code to obtain more detailed
profiling information, but still be able to link exactly the same code
against the standard MPI library.


NOTES
-----

This routine provides a common interface for profiling control. The
interpretation of level and any other arguments is left to the profiling
library.

This function does not return an error value. Consequently, the result
of calling it before :ref:`MPI_Init` or after :ref:`MPI_Finalize` is undefined.