1 // RUN: %libomp-compile 2 // RUN: env OMP_DISPLAY_AFFINITY=true OMP_AFFINITY_FORMAT='TESTER-ENV: tl:%L tn:%n nt:%N' OMP_NUM_THREADS=8 %libomp-run | %python %S/check.py -c 'CHECK-8' %s 3 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <omp.h> 7 8 int main(int argc, char** argv) { 9 #pragma omp parallel 10 { } 11 #pragma omp parallel 12 { } 13 return 0; 14 } 15 16 // CHECK-8: num_threads=8 TESTER-ENV: tl:1 tn:[0-7] nt:8$ 17