From 78f2974e321c677e207f2ff2c0006a3c9ac3dfbb Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Tue, 28 Nov 2017 09:53:04 +0100 Subject: [PATCH] Do not allow OpenBLAS/numpy to run multithreaded --- python/dune/perftool/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/dune/perftool/__init__.py b/python/dune/perftool/__init__.py index d433436b..a8b87105 100644 --- a/python/dune/perftool/__init__.py +++ b/python/dune/perftool/__init__.py @@ -1,3 +1,8 @@ +# Disallow numpy to use multithreading - it breaks parallel code generation +# on machines with large core count. +import os +os.environ["OMP_NUM_THREADS"] = 1 + # Trigger imports that involve monkey patching! import dune.perftool.loopy.symbolic -- GitLab