[all-commits] [llvm/llvm-project] 81bc7c: [OpenMP][NFC] lit: Allow setting default environme...
Joachim via All-commits
all-commits at lists.llvm.org
Tue Jul 11 06:01:01 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 81bc7cf609c09374a62793d74fa33709828377b6
https://github.com/llvm/llvm-project/commit/81bc7cf609c09374a62793d74fa33709828377b6
Author: Joachim Jenke <jenke at itc.rwth-aachen.de>
Date: 2023-07-11 (Tue, 11 Jul 2023)
Changed paths:
M openmp/README.rst
M openmp/libomptarget/test/lit.cfg
M openmp/runtime/test/lit.cfg
M openmp/tools/archer/tests/lit.cfg
M openmp/tools/multiplex/tests/lit.cfg
Log Message:
-----------
[OpenMP][NFC] lit: Allow setting default environment variables for test
Add CHECK_OPENMP_ENV environment variable which will be passed to environment
variables for test (make check-* target). This provides a handy way to
exercise various openmp code with different settings during development.
For example, to change default barrier pattern:
```
$ env CHECK_OPENMP_ENV="KMP_FORKJOIN_BARRIER_PATTERN=hier,hier \
KMP_PLAIN_BARRIER_PATTERN=hier,hier \
KMP_REDUCTION_BARRIER_PATTERN=hier,hier" \
ninja check-openmp
```
Even with this, each test can set appropriate environment variables if needed
as before.
Also, this commit adds missing documention about how to run tests in README.
Patch provided by t-msn
Differential Revision: https://reviews.llvm.org/D122645
More information about the All-commits
mailing list