18 main(
int argc,
char **argv )
20 float real_time, proc_time, mflops;
26 double double_result,error;
45 if ( !
quiet ) printf(
"PAPI_FP_INS and PAPI_FP_OPS are not defined for this platform.\n" );
46 test_skip(__FILE__,__LINE__,
"No FP events available",1);
86 if (!
quiet) printf(
"result=%lf\n",double_result);
89 printf(
"Real_time: %f Proc_time: %f MFLOPS: %f\n",
90 real_time, proc_time, mflops );
92 printf(
"Total flpins: ");
94 printf(
"Total flpops: ");
96 printf(
"%lld\n\n", flpins );
101 if ((error > 1.0) || (error<-1.0)) {
102 if (!
quiet) printf(
"Instruction count off by more than 1%%\n");
103 test_fail( __FILE__, __LINE__,
"Validation failed", 1 );
void test_pass(const char *filename)
static int expected[NUM_THREADS]
double display_error(long long average, long long high, long long low, long long expected, int quiet)
int PAPI_flops(float *rtime, float *ptime, long long *flpops, float *mflops)
Return codes and api definitions.
void test_skip(const char *file, int line, const char *call, int retval)
int PAPI_flips(float *rtime, float *ptime, long long *flpins, float *mflips)
int PAPI_library_init(int version)
int flops_float_init_matrix(void)
int PAPI_query_event(int EventCode)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
int main(int argc, char **argv)
float flops_float_matrix_matrix_multiply(void)