Go to the source code of this file.
◆ NUM_THREADS
◆ CallMatMul()
| void * CallMatMul |
( |
void * |
args | ) |
|
Definition at line 17 of file pthread_hl.c.
18{
19 long tid;
21 char* region_name;
22
24 tid = (*papi_args).
tid;
25 quiet = (*papi_args).quiet;
26 region_name = "do_flops";
27
29 printf("\nThread %ld: instrument flops\n", tid);
30 }
31
35 }
36
38
42 }
43
44 pthread_exit(NULL);
45}
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...
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 47 of file pthread_hl.c.
48{
52 long t;
54
55
57
61 rc = pthread_create(&threads[t], NULL,
CallMatMul, (
void *)&args[t]);
63 printf(
"ERROR; return code from pthread_create() is %d\n",
rc);
64 exit(-1);
65 }
66 }
67
69 pthread_join(threads[t], NULL);
70 }
71
72
76 rc = pthread_create(&threads[t], NULL,
CallMatMul, (
void *)&args[t]);
78 printf(
"ERROR; return code from pthread_create() is %d\n",
rc);
79 exit(-1);
80 }
81 }
82
84 pthread_join(threads[t], NULL);
85 }
86
88
89 return 0;
90}
unsigned long int pthread_t
int tests_quiet(int argc, char **argv)
void PAPI_NORETURN test_hl_pass(const char *filename)
void * CallMatMul(void *args)