diff options
Diffstat (limited to 'final/runtime/test/affinity/format/simple_env.c')
-rw-r--r-- | final/runtime/test/affinity/format/simple_env.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/final/runtime/test/affinity/format/simple_env.c b/final/runtime/test/affinity/format/simple_env.c new file mode 100644 index 0000000..ad0a265 --- /dev/null +++ b/final/runtime/test/affinity/format/simple_env.c @@ -0,0 +1,16 @@ +// RUN: %libomp-compile +// 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 + +#include <stdio.h> +#include <stdlib.h> +#include <omp.h> + +int main(int argc, char** argv) { + #pragma omp parallel + { } + #pragma omp parallel + { } + return 0; +} + +// CHECK-8: num_threads=8 TESTER-ENV: tl:1 tn:[0-7] nt:8 |