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 7void c_print_results( char *name, 8 char class, 9 int n1, 10 int n2, 11 int n3, 12 int niter, 13 int nthreads, 14 double t, 15 double mops, 16 char *optype, 17 int passed_verification, 18 char *npbversion, 19 char *compiletime, 20 char *cc, 21 char *clink, 22 char *c_lib, 23 char *c_inc, 24 char *cflags, 25 char *clinkflags, 26 char *rand) 27{ 28 char *evalue="1000"; 29 30 printf( "\n\n %s Benchmark Completed\n", name ); 31 32 printf( " Class = %c\n", class ); 33 34 if( n2 == 0 && n3 == 0 ) 35 printf( " Size = %12d\n", n1 ); /* as in IS */ 36 else 37 printf( " Size = %3dx%3dx%3d\n", n1,n2,n3 ); 38 39 printf( " Iterations = %12d\n", niter ); 40 41 printf( " Threads = %12d\n", nthreads ); 42 43 printf( " Computetime %12.2f\n", t ); 44 45 printf( " Mop/s total = %12.2f\n", mops ); 46 47 printf( " Operation type = %24s\n", optype); 48 49 if( passed_verification ) 50 printf( " Verification = SUCCESSFUL\n" ); 51 else 52 printf( " Verification = UNSUCCESSFUL\n" ); 53 54 printf( " Version = %12s\n", npbversion ); 55 56 printf( " Compile date = %12s\n", compiletime ); 57 58 printf( "\n Compile options:\n" ); 59 60 printf( " CC = %s\n", cc ); 61 62 printf( " CLINK = %s\n", clink ); 63 64 printf( " C_LIB = %s\n", c_lib ); 65 66 printf( " C_INC = %s\n", c_inc ); 67 68 printf( " CFLAGS = %s\n", cflags ); 69 70 printf( " CLINKFLAGS = %s\n", clinkflags ); 71 72 printf( " RAND = %s\n", rand ); 73#ifdef SMP 74 evalue = getenv("MP_SET_NUMTHREADS"); 75 printf( " MULTICPUS = %s\n", evalue ); 76#endif 77 78/* printf( "\n\n" ); 79 printf( " Please send the results of this run to:\n\n" ); 80 printf( " NPB Development Team\n" ); 81 printf( " Internet: npb@nas.nasa.gov\n \n" ); 82 printf( " If email is not available, send this to:\n\n" ); 83 printf( " MS T27A-1\n" ); 84 printf( " NASA Ames Research Center\n" ); 85 printf( " Moffett Field, CA 94035-1000\n\n" ); 86 printf( " Fax: 415-604-3957\n\n" );*/ 87} 88 89