17 #pragma omp parallel reduction(+:wrong_counts)
21 int th = omp_get_thread_num();
25 #pragma omp target teams distribute map(tofrom: A[:size]) private(i)
29 printf(
"th %d, team %d, i %d\n", th, omp_get_team_num(),
i);
33 printf(
"tid = %d\n", th);
36 if (A[
i] !=
i) wrong_counts++;
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t size
#define omp_set_num_threads