Purpose
Passes numeric and text data to the Program Marker Array.
Library
libmpi.a
libmpi_r.a
C synopsis
#include <mp_marker.h> void mpc_marker(int light, int color, char *string);
FORTRAN synopsis
MP_MARKER(INTEGER LIGHT, INTEGER COLOR,
CHARACTER STRING)
Parameters
If the value of light is out of range, the parameter is ignored. No light is colored by the subroutine. Setting the light to a negative number lets you update the string only.
If the value of color is out of range, the parameter is ignored. The subroutine does not give the light a new color.
Description
This parallel utility subroutine requests that the numeric and text data passed in the call be forwarded to the Program Marker Array for display. This call waits for a specific acknowledgement from the Partition Manager if the number of lights (specified by the MP_PMLIGHTS environment variable) is positive. The program returns only after the message has been acknowledged by the POE home node. Hence, this call will slow down the user's application and synchronize it approximately with the Program Marker Array.
If MP_PMLIGHTS is set to 0, no message is sent.
Notes
Examples
C Example
The C statement:
#include <mp_marker.h> mpc_marker(2, 0, "Starting task 2");
gives the third light of the calling task the color black and after the lights on that task's row, prints the string "Starting task 2".
FORTRAN Example
The FORTRAN statement:
CALL MP_MARKER(2, 0, 'Starting task 2')
gives the third light of the calling task the color black and after the lights on that task's row, prints the string 'Starting task 2'.
Related information
Commands: pmarray
Subroutines: MP_NLIGHTS, mpc_nlights