1
1
openmpi/orte/test/mpi/mpi_spin.c
Ralph Castain f95e20e2e1 Add another test program - an MPI app that just spins. This supports testing of system response to signal-terminated processes.
Add some debugger output to the ODLS default component.

Modify the orted command communication system so that it is done via non-blocking sends. This removes the linearity of the transmission and improves the response time.

This commit was SVN r12585.
2006-11-13 21:51:34 +00:00

31 строка
412 B
C

/* -*- C -*-
*
* $HEADER$
*
* A program that just spins - provides mechanism for testing user-driven
* abnormal program termination
*/
#include <stdio.h>
#include "mpi.h"
int main(int argc, char* argv[])
{
int i;
double pi;
MPI_Init(&argc, &argv);
i = 0;
while (1) {
i++;
pi = i / 3.14159256;
if (i > 100) i = 0;
}
MPI_Finalize();
return 0;
}