1
1
Brian Barrett 5b9fa7e998 reapply r15517 and r15520, which were removed in r15527 so that I could get
the RML/OOB merge in slightly easier

This commit was SVN r15530.

The following SVN revision numbers were found above:
  r15517 --> open-mpi/ompi@41977fcc95
  r15520 --> open-mpi/ompi@9cbc9df1b8
  r15527 --> open-mpi/ompi@2d17dd9516
2007-07-20 02:34:29 +00:00

39 строки
747 B
C

/* -*- C -*-
*
* $HEADER$
*
* A program that just spins - provides mechanism for testing user-driven
* abnormal program termination
*/
#include <stdio.h>
#include <unistd.h>
#include "orte/util/proc_info.h"
#include "orte/runtime/runtime.h"
int main(int argc, char* argv[])
{
int i, rc;
double pi;
pid_t pid;
if (0 > (rc = orte_init(ORTE_NON_INFRASTRUCTURE, ORTE_NON_BARRIER))) {
fprintf(stderr, "spin: couldn't init orte - error code %d\n", rc);
return rc;
}
pid = getpid();
printf("spin: Name %s Pid %ld\n", ORTE_NAME_PRINT(orte_process_info.my_name), (long)pid);
i = 0;
while (1) {
i++;
pi = i / 3.14159256;
if (i > 100) i = 0;
}
return 0;
}