Salome HOME
Loosen the check of multithread test V9_5_0a2
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Thu, 26 Mar 2020 10:16:46 +0000 (11:16 +0100)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Thu, 26 Mar 2020 10:16:46 +0000 (11:16 +0100)
tests/multithread.py

index a318c80ebc71db84c6d6af78d4ac1a3e3596da5b..165d6fd1fd5cdcdae6e351bea8850eb5bd55a52e 100644 (file)
@@ -27,7 +27,7 @@ import multiprocessing
 salome.salome_init()
 
 cpu_count = multiprocessing.cpu_count()
-divider = min(4, cpu_count)/2.
+divider = min(4, cpu_count)/2.3
 
 print ("Running test on workstation with %d available cores" % cpu_count)
 
@@ -80,7 +80,7 @@ time1 = time.time()
 
 time_multithread = time1-time0
 
-print ("Time in multi thread (%d cores): %.3s"%(cpu_count, time_multithread))
+print ("Time in multi thread (4 procs): %.3f s"%(time_multithread))
 
 Mesh_2 = smesh.Mesh(flight_solid_brep_1)
 MG_CADSurf = Mesh_2.Triangle(algo=smeshBuilder.MG_CADSurf)
@@ -98,7 +98,7 @@ isDone = Mesh_2.Compute()
 time3 = time.time()
 
 time_singlethread = time3-time2
-print ("Time in single thread (1 proc): %.3s"%(time_singlethread))
+print ("Time in single thread (1 proc): %.3s"%(time_singlethread))
 
 if cpu_count == 1:
     print ("Warning: cannot validate test - only 1 cpu core is available")