diff --git a/fwk/wutils.py b/fwk/wutils.py index b914d2eb6facce8ef53d623f903856664a414f20..46d19993e2fc56dd8d7ef72d00120201e4544dbf 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