Skip to content

Commit 05ecc53

Browse files
committed
Fewer OpenMP threads to reduce synchronization overhead.
1 parent f97d60a commit 05ecc53

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ gcc-macro:
1212
- export OPDI_DIR=$(pwd)/include
1313
- cd tests
1414
- export CXX=g++
15+
- export OMP_NUM_THREADS=$(expr $(nproc --all) / 2)
1516
- make all
1617

1718
clang-macro:
@@ -26,6 +27,7 @@ clang-macro:
2627
- export OPDI_DIR=$(pwd)/include
2728
- cd tests
2829
- export CXX=clang++
30+
- export OMP_NUM_THREADS=$(expr $(nproc --all) / 2)
2931
- make all
3032

3133
clang-ompt:
@@ -42,6 +44,7 @@ clang-ompt:
4244
- export CXX=clang++
4345
- export CXXFLAGS="$FLAGS"
4446
- export BACKEND=OMPT
47+
- export OMP_NUM_THREADS=$(expr $(nproc --all) / 2)
4548
- make all
4649

4750
output:
@@ -55,6 +58,7 @@ output:
5558
- export CXX=g++
5659
- export OUTPUT_INSTRUMENT=yes
5760
- export STDERR_OUTPUT_IS_ERROR=no
61+
- export OMP_NUM_THREADS=$(expr $(nproc --all) / 2)
5862
- make all
5963

6064
syntax:

0 commit comments

Comments
 (0)