Commit 32385d0e authored by myron's avatar myron

changed a line which gives the total number of cores on the host. To correct a...

changed a line which gives the total number of cores on the host. To correct a bug which appears on recent architecture having complicated NUMA
parent 08ea80b9
......@@ -76,8 +76,15 @@ def setCpuSet(maxnargs=3):
cpuset_string, errors = p.communicate()
##########################################################################################
## 25/01/2020 : this should fix the distribution on some recent architecture
myavailable_cores_on_host = getCpuSetRange.getCpuSetRange(str(cpuset_string).strip())
tmp_ncores4cpu, myavailable_cores_on_host = getCpuSetRange.getCoresOrdered()
# previously the followin line applied
# myavailable_cores_on_host = getCpuSetRange.getCpuSetRange(str(cpuset_string).strip())
#
##########################################################################################
Ntotal_cores_on_host = multiprocessing.cpu_count()
comando = 'grep#physical id#/proc/cpuinfo'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment