#include #include main() { int i; double a[200]; double sum; int rc; double drc; rc = beginmflops(); if ( rc != 0 ) { perfmonerror( "error calling beginmflops()" ); exit(1); } for ( i = 0; i < 200; i++ ) { a[i] = i; } drc = endmflops(); if ( drc == -1.0 ) { perfmonerror( "error calling endmflops()" ); exit(1); } drc = printmflops(); if ( drc == -1.0 ) { perfmonerror( "error calling printmflops()" ); exit(1); } rc = beginmflops(); if ( rc != 0 ) { perfmonerror( "error calling beginmflops()" ); exit(1); } for ( i = 0; i < 200; i++ ) { sum += a[i]; } drc = endmflops(); if ( drc == -1.0 ) { perfmonerror( "error calling endmflops()" ); exit(1); } drc = printmflops(); if ( drc == -1.0 ) { perfmonerror( "error calling printmflops()" ); exit(1); } }