Go to the source code of this file.
◆ ERROR_RETURN
| #define ERROR_RETURN |
( |
|
retval | ) |
{ fprintf(stderr, "Error %d %s:line %d: \n", retval,__FILE__,__LINE__); exit(retval); } |
◆ MAX_TO_ADD
◆ NUM_ITERS
| #define NUM_ITERS 10000000 |
◆ do_flops()
Definition at line 23 of file multiplex.c.
static double b[MATRIX_SIZE][MATRIX_SIZE]
static double a[MATRIX_SIZE][MATRIX_SIZE]
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 142 of file multiplex.c.
145 printf(
"Using %d iterations\n\n",
NUM_ITERS);
146 printf(
"Does PAPI_multiplex_init() handle lots of events?\n");
◆ multiplex()
Definition at line 35 of file multiplex.c.
46 printf(
"Library initialization error! \n");
78 printf(
"Adding %s\n", pset.
symbol);
85 printf(
"Added %s\n", pset.
symbol);
87 printf(
"Could not add %s due to resource limitation.\n",
101 printf(
"Not enough memory available. \n");
125 printf(
"Event name: %s value: %lld \n", pset.
symbol,
values[
i]);
int PAPI_stop(int EventSet, long long *values)
int PAPI_add_event(int EventSet, int EventCode)
int PAPI_get_event_info(int EventCode, PAPI_event_info_t *info)
char events[MAX_EVENTS][BUFSIZ]
#define PAPI_MAX_PRESET_EVENTS
int PAPI_library_init(int version)
char symbol[PAPI_HUGE_STR_LEN]
#define ERROR_RETURN(retval)
int PAPI_cleanup_eventset(int EventSet)
int PAPI_create_eventset(int *EventSet)
int PAPI_multiplex_init(void)
int PAPI_set_multiplex(int EventSet)
int PAPI_destroy_eventset(int *EventSet)
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]
int PAPI_list_events(int EventSet, int *Events, int *number)