28 #pragma omp parallel private(i)
32 level = omp_get_level();
35 for(
i = 0;
i < iterations;
i++) {
53 pthread_join(*(thread+
i), NULL);
56 fprintf(stderr,
"error: for pthread %d level should be 1 but "
57 "instead equals %d\n",
i,
level);
64 fprintf(stderr,
"a should be %d but instead equals %d\n", known_sum,
a);
int test_omp_team_reuse()
void * thread_function(void *arg)