Hitmap 1.3
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
c_print_results.c
Go to the documentation of this file.
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 
7 void c_print_results( char *name,
8  char class,
9  int n1,
10  int n2,
11  int n3,
12  int niter,
13  int nprocs_compiled,
14  int nprocs_total,
15  double t,
16  double mops,
17  char *optype,
19  char *npbversion,
20  char *compiletime,
21  char *mpicc,
22  char *clink,
23  char *cmpi_lib,
24  char *cmpi_inc,
25  char *cflags,
26  char *clinkflags )
27 {
28 
29  printf( "\n\n %s Benchmark Completed\n", name );
30 
31  printf( " Class = %c\n", class );
32 
33  if( n3 == 0 ) {
34  long nn = n1;
35  if ( n2 != 0 ) nn *= n2;
36  printf( " Size = %12ld\n", nn ); /* as in IS */
37  }
38  else
39  printf( " Size = %3dx %3dx %3d\n", n1,n2,n3 );
40 
41  printf( " Iterations = %12d\n", niter );
42 
43  printf( " Time in seconds = %12.2f\n", t );
44 
45  printf( " Total processes = %12d\n", nprocs_total );
46 
47  if ( nprocs_compiled != 0 )
48  printf( " Compiled procs = %12d\n", nprocs_compiled );
49 
50  printf( " Mop/s total = %12.2f\n", mops );
51 
52  printf( " Mop/s/process = %12.2f\n", mops/((float) nprocs_total) );
53 
54  printf( " Operation type = %24s\n", optype);
55 
56  if( passed_verification )
57  printf( " Verification = SUCCESSFUL\n" );
58  else
59  printf( " Verification = UNSUCCESSFUL\n" );
60 
61  printf( " Version = %12s\n", npbversion );
62 
63  printf( " Compile date = %12s\n", compiletime );
64 
65  printf( "\n Compile options:\n" );
66 
67  printf( " MPICC = %s\n", mpicc );
68 
69  printf( " CLINK = %s\n", clink );
70 
71  printf( " CMPI_LIB = %s\n", cmpi_lib );
72 
73  printf( " CMPI_INC = %s\n", cmpi_inc );
74 
75  printf( " CFLAGS = %s\n", cflags );
76 
77  printf( " CLINKFLAGS = %s\n", clinkflags );
78 #ifdef SMP
79  evalue = getenv("MP_SET_NUMTHREADS");
80  printf( " MULTICPUS = %s\n", evalue );
81 #endif
82 
83  printf( "\n\n" );
84  printf( " Please send the results of this run to:\n\n" );
85  printf( " NPB Development Team\n" );
86  printf( " Internet: npb@nas.nasa.gov\n \n" );
87  printf( " If email is not available, send this to:\n\n" );
88  printf( " MS T27A-1\n" );
89  printf( " NASA Ames Research Center\n" );
90  printf( " Moffett Field, CA 94035-1000\n\n" );
91  printf( " Fax: 650-604-3957\n\n" );
92 }
93 
void c_print_results(char *name, char class, int n1, int n2, int n3, int niter, int nprocs_compiled, int nprocs_total, double t, double mops, char *optype, int passed_verification, char *npbversion, char *compiletime, char *mpicc, char *clink, char *cmpi_lib, char *cmpi_inc, char *cflags, char *clinkflags)
HitCounter passed_verification
Definition: is.c:185