9613b3176c
After much work by Jeff and myself, and quite a lot of discussion, it has become clear that we simply cannot resolve the infinite loops caused by RML-involved subsystems calling orte_output. The original rationale for the change to orte_output has also been reduced by shifting the output of XML-formatted vs human readable messages to an alternative approach. I have globally replaced the orte_output/ORTE_OUTPUT calls in the code base, as well as the corresponding .h file name. I have test compiled and run this on the various environments within my reach, so hopefully this will prove minimally disruptive. This commit was SVN r18619.
37 строки
895 B
C
37 строки
895 B
C
/* -*- C -*-
|
|
*
|
|
* $HEADER$
|
|
*
|
|
* The most basic of MPI applications
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include "mpi.h"
|
|
|
|
#include "orte/util/show_help.h"
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
int rank, size;
|
|
int stream, stream2;
|
|
|
|
MPI_Init(&argc, &argv);
|
|
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
|
|
MPI_Comm_size(MPI_COMM_WORLD, &size);
|
|
|
|
stream = opal_output_open(NULL);
|
|
opal_output(stream, "(stream) Hello, World, I am %d of %d\n", rank, size);
|
|
printf("(printf) Hello, World, I am %d of %d\n", rank, size);
|
|
|
|
opal_output_set_verbosity(stream, 10);
|
|
opal_output(stream, "this is an opal_output on the verbose stream");
|
|
|
|
stream2 = opal_output_open(NULL);
|
|
opal_output(stream2, "opal_output stream2");
|
|
opal_output_set_verbosity(stream2, 10);
|
|
opal_output(stream2, "this is an opal_output on the same verbose stream2");
|
|
|
|
MPI_Finalize();
|
|
return 0;
|
|
}
|