11typedef struct papi_args
24 tid = (*papi_args).
tid;
25 quiet = (*papi_args).quiet;
26 region_name =
"do_flops";
29 printf(
"\nThread %ld: instrument flops\n", tid);
47int main(
int argc,
char **argv )
61 rc = pthread_create(&threads[t], NULL,
CallMatMul, (
void *)&args[t]);
63 printf(
"ERROR; return code from pthread_create() is %d\n",
rc);
69 pthread_join(threads[t], NULL);
76 rc = pthread_create(&threads[t], NULL,
CallMatMul, (
void *)&args[t]);
78 printf(
"ERROR; return code from pthread_create() is %d\n",
rc);
84 pthread_join(threads[t], NULL);
Read performance events at the beginning of a region.
Read performance events at the end of a region and store the difference to the corresponding beginnin...
Return codes and api definitions.
unsigned long int pthread_t
int tests_quiet(int argc, char **argv)
void PAPI_NORETURN test_hl_pass(const char *filename)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void * CallMatMul(void *args)