你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 04:56:51 +08:00
Remove some debug print messages.
这个提交包含在:
@@ -65,11 +65,11 @@ def process_singlecmds(singlecmds, G):
|
|||||||
# Number of threads (OpenMP) to use
|
# Number of threads (OpenMP) to use
|
||||||
cmd = '#num_threads'
|
cmd = '#num_threads'
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
os.environ['OMP_WAIT_POLICY'] = 'ACTIVE' # Should waiting threads consume CPU power; can drastically effect performance
|
os.environ['OMP_WAIT_POLICY'] = 'ACTIVE' # Should waiting threads consume CPU power (can drastically effect performance)
|
||||||
os.environ['OMP_DYNAMIC'] = 'FALSE' # Number of threads may be adjusted by the run time environment to best utilize system resources
|
os.environ['OMP_DYNAMIC'] = 'FALSE' # Number of threads may be adjusted by the run time environment to best utilize system resources
|
||||||
os.environ['OMP_PLACES'] = 'cores'
|
os.environ['OMP_PLACES'] = 'cores'
|
||||||
os.environ['OMP_PROC_BIND'] = 'spread' # Bind threads to physical cores
|
os.environ['OMP_PROC_BIND'] = 'spread' # Bind threads to physical cores
|
||||||
os.environ['OMP_DISPLAY_ENV'] = 'TRUE'
|
# os.environ['OMP_DISPLAY_ENV'] = 'TRUE' # Prints OMP version and environment variables (useful for debug)
|
||||||
|
|
||||||
if singlecmds[cmd] != 'None':
|
if singlecmds[cmd] != 'None':
|
||||||
tmp = tuple(int(x) for x in singlecmds[cmd].split())
|
tmp = tuple(int(x) for x in singlecmds[cmd].split())
|
||||||
|
@@ -174,7 +174,6 @@ def get_host_info():
|
|||||||
allcpuinfo = allcpuinfo.split('\n')
|
allcpuinfo = allcpuinfo.split('\n')
|
||||||
sockets = 0
|
sockets = 0
|
||||||
for line in allcpuinfo:
|
for line in allcpuinfo:
|
||||||
print(line)
|
|
||||||
if 'CPU' in line:
|
if 'CPU' in line:
|
||||||
cpuID = line.strip()
|
cpuID = line.strip()
|
||||||
sockets += 1
|
sockets += 1
|
||||||
|
在新工单中引用
屏蔽一个用户