Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
◆ INDEX
Definition at line 13 of file ipc.c.
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 16 of file ipc.c.
18 extern void dummy(
void * );
20 float real_time, proc_time, ipc;
31 for( j= 0; j <
INDEX; j++ ) {
33 matrixa[
i][j] = matrixb[
i][j] = ( float )
rand( ) * ( float ) 1.1;
40 if (!
quiet) printf(
"Trouble starting IPC\n");
46 for ( j = 0; j <
INDEX; j++ )
47 for ( k = 0; k <
INDEX; k++ )
48 mresult[
i][j] = mresult[
i][j] + matrixa[
i][k] * matrixb[k][j];
53 dummy( (
void * ) mresult );
56 printf(
"Real_time: %f Proc_time: %f Total ins: ", real_time,
59 printf(
" IPC: %f\n", ipc );
65 test_fail( __FILE__, __LINE__,
"Instruction count too low.",
71 test_fail( __FILE__, __LINE__,
"IPC equals zero.",
void test_pass(const char *filename)
int PAPI_ipc(float *rtime, float *ptime, long long *ins, float *ipc)
void test_skip(const char *file, int line, const char *call, int retval)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)