Hello,
You can just use c/c++ printf to output to the screen. Note that With MSMPI, the stdout/error from the mpi programs are redirected to mpiexec console. So all the output from each rank will be displayed at mpiexec console. Taking the following
simple helloworld mpi app as an example:
#include <stdio.h>
#include "mpi.h"
int main( int argc, char *argv[] )
{
int rank;
MPI_Init( &argc, &argv );
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
printf( "Hello World from Rank %d\n", rank);
MPI_Finalize();
return 0;
}
After compile it, you can execute with the command line:
mpiexec -n 4 HelloWorld.exe
Hello World from Rank 3
Hello World from Rank 1
Hello World from Rank 2
Hello World from Rank 0
Thanks,
James