1/*****************************************************************/ 2/****** C _ P R I N T _ R E S U L T S ******/ 3/*****************************************************************/ 4#include <stdlib.h> 5#include <stdio.h> 6#define class _class_ 7 8void print_results( char *name, 9 char *class, 10 int *n1, 11 int *n2, 12 int *n3, 13 int *niter, 14 int *nprocs_compiled, 15 int *nprocs_total, 16 double *t, 17 double *mops, 18 char *optype, 19 int *passed_verification, 20 char *npbversion, 21 char *compiletime, 22 char *mpicc, 23 char *clink, 24 char *cmpi_lib, 25 char *cmpi_inc, 26 char *cflags, 27 char *clinkflags ) 28{ 29 char *evalue="1000"; 30 31 printf( "\n\n %s Benchmark Completed\n", name ); 32 33 printf( " Class = %c\n", *class ); 34 35 printf( " Size = %3dx %3dx %3d\n", *n1,*n2,*n3 ); 36 37 printf( " Iterations = %12d\n", *niter ); 38 39 printf( " Time in seconds = %12.2f\n", *t ); 40 41 printf( " Total processes = %12d\n", *nprocs_total ); 42 43 if ( nprocs_compiled != 0 ) 44 printf( " Compiled procs = %12d\n", *nprocs_compiled ); 45 46 printf( " Mop/s total = %12.2f\n", *mops ); 47 48 printf( " Mop/s/process = %12.2f\n", *mops/((float) *nprocs_total) ); 49 50 printf( " Operation type = %24s\n", optype); 51 52 if( *passed_verification ) 53 printf( " Verification = SUCCESSFUL\n" ); 54 else 55 printf( " Verification = UNSUCCESSFUL\n" ); 56 57 printf( " Version = %12s\n", npbversion ); 58 59 printf( " Compile date = %12s\n", compiletime ); 60 61 printf( "\n Compile options:\n" ); 62 63 printf( " MPICC = %s\n", mpicc ); 64 65 printf( " CLINK = %s\n", clink ); 66 67 printf( " CMPI_LIB = %s\n", cmpi_lib ); 68 69 printf( " CMPI_INC = %s\n", cmpi_inc ); 70 71 printf( " CFLAGS = %s\n", cflags ); 72 73 printf( " CLINKFLAGS = %s\n", clinkflags ); 74#ifdef SMP 75 evalue = getenv("MP_SET_NUMTHREADS"); 76 printf( " MULTICPUS = %s\n", evalue ); 77#endif 78 79 printf( "\n\n" ); 80 printf( " Please send the results of this run to:\n\n" ); 81 printf( " NPB Development Team\n" ); 82 printf( " Internet: npb@nas.nasa.gov\n \n" ); 83 printf( " If email is not available, send this to:\n\n" ); 84 printf( " MS T27A-1\n" ); 85 printf( " NASA Ames Research Center\n" ); 86 printf( " Moffett Field, CA 94035-1000\n\n" ); 87 printf( " Fax: 650-604-3957\n\n" ); 88} 89 90