LLVM OpenMP
20.0.0git
runtime
test
affinity
format
simple_env.c
Go to the documentation of this file.
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
#include "
omp_testsuite.h
"
8
9
int
main
(
int
argc,
char
** argv) {
10
go_parallel
();
11
go_parallel
();
12
return
get_exit_value
();
13
}
14
15
// CHECK-8: num_threads=8 TESTER-ENV: tl:1 tn:[0-7] nt:8$
omp_testsuite.h
go_parallel
static void go_parallel()
Definition:
omp_testsuite.h:28
get_exit_value
static int get_exit_value()
Definition:
omp_testsuite.h:73
main
int main()
Definition:
test-touch.c:21
Generated on Wed Feb 5 2025 10:57:19 for LLVM OpenMP by
1.9.6