20int main (
int argc,
char **argv)
23 int retval,cid,numcmp,our_cmp;
40 printf(
"Trying mutiple reads in MX component\n");
46 for(cid=0; cid<numcmp; cid++) {
49 test_fail(__FILE__, __LINE__,
"PAPI_get_component_info failed\n", 0);
52 if (strstr(cmpinfo->
name,
"mx")) {
53 if (!
quiet) printf(
"\tFound Myrinet component %d - %s\n", cid, cmpinfo->
name);
61 test_skip(__FILE__, __LINE__,
"MX component not found\n", 0);
65 test_skip(__FILE__, __LINE__,
"MX component not found\n", 0);
74 "PAPI_create_eventset()",
retval);
80 "could not add event COUNTERS_UPTIME",
retval);
86 "PAPI_add_event()",
retval);
92 "could not add event PUSH_OBSOLETE",
retval);
98 "PAPI_add_event()",
retval);
104 "could not add event PKT_MISROUTED",
retval);
110 "PAPI_add_event()",
retval);
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.
Return codes and api definitions.
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]