From 251d55fe098cd18fccec40cfacba9c2b64c0d485 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sun, 16 Feb 2020 11:00:09 +0100 Subject: [PATCH] current thread pool is useless for performance https://stackoverflow.com/questions/33969151 https://stackoverflow.com/questions/10789042 --- python/damask/dadf5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/damask/dadf5.py b/python/damask/dadf5.py index b04e89d3e..33fd51566 100644 --- a/python/damask/dadf5.py +++ b/python/damask/dadf5.py @@ -1032,7 +1032,7 @@ class DADF5(): args['results'].put({**args['func'](**args['in']),'group':args['group']}) env = Environment() - N_threads = int(env.options['DAMASK_NUM_THREADS']) + N_threads = 1#int(env.options['DAMASK_NUM_THREADS']) results = Queue(N_threads) pool = util.ThreadPool(N_threads)