14#define NUM_THREADS_TRY 256
25 #pragma omp parallel for num_threads(NUM_THREADS_TRY)
27 #pragma omp atomic compare
28 if (xs <
i) { xs =
i; }
32 printf(
"signed: num_threads=%d\n", numThreads);
33 printf(
"signed: xs=%d\n", xs);
36 unsigned xu = UINT_MAX;
37 #pragma omp parallel for num_threads(NUM_THREADS_TRY)
39 #pragma omp atomic compare
40 if (xu >
i) { xu =
i; }
42 printf(
"unsigned: xu=0x%x\n", xu);
int omp_get_num_threads()