1 // RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true OMP_PLACES='{0},{0,1},{0},{0,1},{0},{0,1},{0},{0,1},{0},{0,1},{0}' %libomp-run | %python %S/check.py -c 'CHECK' %s
7 #include "omp_testsuite.h"
9 int main(int argc
, char** argv
) {
10 omp_set_affinity_format("TESTER: tl:%L tn:%n nt:%N aff:{%A}");
11 omp_set_num_threads(8);
15 // Affinity changes here
18 // Affinity changes here
21 return get_exit_value();
24 // CHECK: num_threads=8 TESTER: tl:1 tn:[0-7] nt:8 aff:
25 // CHECK: num_threads=8 TESTER: tl:1 tn:[0-7] nt:8 aff:
26 // CHECK: num_threads=8 TESTER: tl:1 tn:[0-7] nt:8 aff: