Salome HOME
projects
/
plugins
/
blsurfplugin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b25c72
)
Adapt multithread test to work on arbitrary nb of CPU cores - another attempt
V8_4_0a2
author
mnt
<mnt@opencascade.com>
Mon, 11 Sep 2017 10:13:06 +0000
(13:13 +0300)
committer
mnt
<mnt@opencascade.com>
Mon, 11 Sep 2017 10:13:06 +0000
(13:13 +0300)
tests/multithread.py
patch
|
blob
|
history
diff --git
a/tests/multithread.py
b/tests/multithread.py
index a3c10c5faae3aab11f8d793e5fef7f106b96dcec..06bf12cc3961d1bbdb1d97a587cf66b1435dfba0 100644
(file)
--- a/
tests/multithread.py
+++ b/
tests/multithread.py
@@
-10,7
+10,7
@@
salome.salome_init()
theStudy = salome.myStudy
cpu_count = multiprocessing.cpu_count()
-divider =
cpu_count
/2.
+divider =
min(4, cpu_count)
/2.
print "Running test on workstation with %d available cores" % cpu_count