From 721dacaabd2e7b3973b48285fb6bfc76c30ecfd2 Mon Sep 17 00:00:00 2001 From: acrovato <a.crovato@uliege.be> Date: Fri, 9 Jul 2021 11:16:34 +0200 Subject: [PATCH] Patch compatibility with TBB < 2019.4 --- fwk/wutils.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fwk/wutils.py b/fwk/wutils.py index b914d2eb..46d19993 100644 --- a/fwk/wutils.py +++ b/fwk/wutils.py @@ -137,6 +137,14 @@ def initDLL(): # ------------------------------------------------------------------------------ +def initTBB(): + # For TBB <= 2019.4, needed to include global_control + # @todo to be removed + import os + os.environ['TBB_PREVIEW_GLOBAL_CONTROL'] = 'TRUE' + +#------------------------------------------------------------------------------- + def initMKL(nthreads): import os # we try to have full control over the threading environment -- GitLab