diff --git a/Appli-iso3dfd/test_nb_threads.py b/Appli-iso3dfd/test_nb_threads.py index f2f1121e1cb18c9fcbd35e1874649bfef469055f..083638997e4d5ddc97a22dd9a9dc7e12c644dfad 100644 --- a/Appli-iso3dfd/test_nb_threads.py +++ b/Appli-iso3dfd/test_nb_threads.py @@ -1,6 +1,7 @@ import subprocess import sys import os +import re import launcher_SUBP import tools @@ -18,8 +19,8 @@ for nb_threads in range(0,5): if "throughput" in line: # Find float in line throughput = float(re.findall("\d+\.\d+", line)[0]) - troughputs[nb_threads] += troughput - troughputs[nb_threads] = troughputs[nb_threads]/6 + throughputs[nb_threads] += throughput + throughputs[nb_threads] = throughputs[nb_threads]/6 print('Mean value of throughput in the configuration [512, 256, 512, 128, 20, 9]') print('for a number of threads going from 4 to 8 :')