你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
Further update to Linux exception handling for host info.
这个提交包含在:
@@ -242,10 +242,12 @@ def get_host_info():
|
|||||||
hostinfo['cpuID'] = cpuID
|
hostinfo['cpuID'] = cpuID
|
||||||
hostinfo['osversion'] = osversion
|
hostinfo['osversion'] = osversion
|
||||||
hostinfo['hyperthreading'] = hyperthreading
|
hostinfo['hyperthreading'] = hyperthreading
|
||||||
hostinfo['physicalcores'] = psutil.cpu_count(logical=False) # Get number of physical CPU cores, i.e. avoid hyperthreading with OpenMP
|
hostinfo['logicalcores'] = psutil.cpu_count()
|
||||||
hostinfo['logicalcores'] = psutil.cpu_count(logical=True)
|
try:
|
||||||
|
hostinfo['physicalcores'] = psutil.cpu_count(logical=False) # Get number of physical CPU cores, i.e. avoid hyperthreading with OpenMP
|
||||||
|
except ValueError:
|
||||||
|
hostinfo['physicalcores'] = hostinfo['logicalcores']
|
||||||
hostinfo['ram'] = psutil.virtual_memory().total
|
hostinfo['ram'] = psutil.virtual_memory().total
|
||||||
|
|
||||||
return hostinfo
|
return hostinfo
|
||||||
|
|
||||||
|
|
||||||
|
在新工单中引用
屏蔽一个用户