[llvm] Stop including unordered_map (NFC)
[llvm-project.git] / openmp / runtime / test / affinity / format / proc_bind.c
blob815f20f9a31799ce74143bcc89b70d65c7e4e382
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
2 // REQUIRES: affinity
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <omp.h>
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);
12 // Initial parallel
13 go_parallel_spread();
14 go_parallel_spread();
15 // Affinity changes here
16 go_parallel_close();
17 go_parallel_close();
18 // Affinity changes here
19 go_parallel_master();
20 go_parallel_master();
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: