From dc2e7e63b6266c7c6c2ee757d215e1b624669cc1 Mon Sep 17 00:00:00 2001 From: EMILE PROST <emile.prost@student-cs.fr> Date: Mon, 5 Apr 2021 16:05:06 +0200 Subject: [PATCH] debuggage --- Appli-iso3dfd/test_nb_threads.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Appli-iso3dfd/test_nb_threads.py b/Appli-iso3dfd/test_nb_threads.py index f2f1121..0836389 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 :') -- GitLab