Go to the source code of this file.
◆ main()
Definition at line 41 of file Papi_add_env_event.c.
41 {
47 float a[1000],
b[1000],
c[1000];
49
50
51
52
53
54
56
57
58
59
61 exit(-1);
62 }
63
66 exit(-1);
67 }
68
69
70
71
74 exit(-1);
75 }
76
79 exit(-1);
80 }
81
82
83
84
85 for (
i=0;
i<1000;
i++){
88 }
89
92 exit(-1);
93 }
94
97 exit(-1);
98 }
99
101
102
103
104
106 exit(0);
107}
int PAPI_add_env_event(int *EventSet, int *Event, char *env_variable)
Create a new empty PAPI EventSet.
Convert a numeric hardware event code to a name.
initialize the PAPI library.
Produces a string on standard error, describing the last library error.
Finish using PAPI and free all related resources.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
char event_name[2][PAPI_MAX_STR_LEN]
static long long values[NUM_EVENTS]
static double a[MATRIX_SIZE][MATRIX_SIZE]
static double b[MATRIX_SIZE][MATRIX_SIZE]
static double c[MATRIX_SIZE][MATRIX_SIZE]
◆ PAPI_add_env_event()
| int PAPI_add_env_event |
( |
int * |
EventSet, |
|
|
int * |
Event, |
|
|
char * |
env_variable |
|
) |
| |
Definition at line 111 of file Papi_add_env_event.c.
111 {
112 int real_event=*EventCode;
115
116 if ( env_variable != NULL ){
117 if ( (
eventname=getenv(env_variable)) ) {
121 }
122 else{
125 else
127 }
128 }
129 }
131 if ( real_event != *EventCode ) {
133){
134 real_event = *EventCode;
135 }
136 }
137 }
138 *EventCode = real_event;
140}
add PAPI preset or native hardware event to an event set
Convert a name to a numeric hardware event code.