Skip to content
Snippets Groups Projects
Commit 9922ddaf authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Do not allow OpenMP to get more than one core.

Suitesparse, as installed with Debian, is thread-parallel using OpenMP.
OpenMP silently assumes, it can spawn as many threads as there are cores.
In a worst case scenario, this leads to a number of threads quadratic in
the core count, if you also do parallel test execution with the maximum
number of cores. We solve the issue by disallowing OpenMP to allocate more
than one thread.
parent 34f8fff9
No related branches found
No related tags found
1 merge request!227Do not allow OpenMP to get more than one core in CI
Pipeline #10964 passed
......@@ -2,6 +2,15 @@
before_script:
- duneci-install-module https://gitlab.dune-project.org/core/dune-common.git
variables:
# Suitesparse, as installed with Debian, is thread-parallel using OpenMP.
# OpenMP silently assumes, it can spawn as many threads as there are cores.
# In a worst case scenario, this leads to a number of threads quadratic in
# the core count, if you also do parallel test execution with the maximum
# number of cores. We solve the issue by disallowing OpenMP to allocate more
# than one thread.
OMP_NUM_THREADS: 1
debian:10 gcc:c++17:
image: duneci/base:10
script: duneci-standard-test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment