21{
22
23 int retval,cid,numcmp,our_cmp;
26 int code;
29
30
32
33
37 }
38
40 printf("Trying mutiple reads in MX component\n");
41 }
42
44 our_cmp=-1;
45
46 for(cid=0; cid<numcmp; cid++) {
47
49 test_fail(__FILE__, __LINE__,
"PAPI_get_component_info failed\n", 0);
50 }
51
52 if (strstr(cmpinfo->
name,
"mx")) {
53 if (!
quiet) printf(
"\tFound Myrinet component %d - %s\n", cid, cmpinfo->
name);
54 our_cmp=cid;
55 break;
56 }
57
58 }
59
60 if (our_cmp<0) {
61 test_skip(__FILE__, __LINE__,
"MX component not found\n", 0);
62 }
63
65 test_skip(__FILE__, __LINE__,
"MX component not found\n", 0);
66 }
67
68
70
74 "PAPI_create_eventset()",
retval);
75 }
76
80 "could not add event COUNTERS_UPTIME",
retval);
81 }
82
86 "PAPI_add_event()",
retval);
87 }
88
92 "could not add event PUSH_OBSOLETE",
retval);
93 }
94
98 "PAPI_add_event()",
retval);
99 }
100
104 "could not add event PKT_MISROUTED",
retval);
105 }
106
110 "PAPI_add_event()",
retval);
111 }
112
116 }
117
121 }
122
124
128 }
129
131
132
133
135
136 return 0;
137}
add PAPI preset or native hardware event to an event set
Create a new empty PAPI EventSet.
Convert a name to a numeric hardware event code.
get information about a specific software component
initialize the PAPI library.
Get the number of components available on the system.
Read hardware counters from an event set.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
static long long values[NUM_EVENTS]
#define NUM_EVENTS
Tests basic mx myrinet functionality.
int tests_quiet(int argc, char **argv)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void PAPI_NORETURN test_pass(const char *filename)
void PAPI_NORETURN test_skip(const char *file, int line, const char *call, int retval)
char name[PAPI_MAX_STR_LEN]