|
PAPI 7.1.0.0
|

Go to the source code of this file.
Macros | |
| #define | NUM_FLOPS 20000000 |
| #define | NUM_ITERS 100000 |
| #define | THRESHOLD 100000 |
| #define | ERROR_RETURN(retval) { fprintf(stderr, "Error %d %s:line %d: \n", retval,__FILE__,__LINE__); exit(retval); } |
| #define | DO_FLOPS1 (vptr_t)(do_flops1) |
| #define | DO_FLOPS2 (vptr_t)(do_flops2) |
Functions | |
| void | do_flops2 (int) |
| void | do_flops1 (int n) |
| void | do_both (int n) |
| int | main (int argc, char **argv) |
Variables | |
| volatile double | t1 = 0.8 |
| volatile double | t2 = 0.9 |
| volatile double | a = 0.5 |
| volatile double | b = 2.2 |
Definition at line 22 of file examples/sprofile.c.
Definition at line 23 of file examples/sprofile.c.
| #define ERROR_RETURN | ( | retval | ) | { fprintf(stderr, "Error %d %s:line %d: \n", retval,__FILE__,__LINE__); exit(retval); } |
Definition at line 16 of file examples/sprofile.c.
| #define NUM_FLOPS 20000000 |
Definition at line 13 of file examples/sprofile.c.
| #define NUM_ITERS 100000 |
Definition at line 14 of file examples/sprofile.c.
| #define THRESHOLD 100000 |
Definition at line 15 of file examples/sprofile.c.
| void do_both | ( | int | n | ) |
Definition at line 37 of file examples/sprofile.c.


| void do_flops1 | ( | int | n | ) |
Definition at line 28 of file examples/sprofile.c.

| void do_flops2 | ( | int | n | ) |
Definition at line 174 of file examples/sprofile.c.

Definition at line 50 of file examples/sprofile.c.

| volatile double a = 0.5 |
Definition at line 173 of file examples/sprofile.c.
| volatile double b = 2.2 |
Definition at line 173 of file examples/sprofile.c.
| volatile double t1 = 0.8 |
Definition at line 27 of file examples/sprofile.c.
| volatile double t2 = 0.9 |
Definition at line 27 of file examples/sprofile.c.