你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-06 20:46:52 +08:00
Improved setting of threads in benchmarking mode.
这个提交包含在:
@@ -202,11 +202,14 @@ def run_benchmark_sim(args, inputfile, usernamespace):
|
||||
"""
|
||||
|
||||
# Number of threads to test - start from max physical CPU cores and divide in half until 1
|
||||
thread = psutil.cpu_count(logical=False)
|
||||
threads = [thread]
|
||||
while not thread % 2:
|
||||
thread /= 2
|
||||
minthreads = 1
|
||||
maxthreads = psutil.cpu_count(logical=False)
|
||||
threads = []
|
||||
while thread < maxthreads:
|
||||
threads.append(int(thread))
|
||||
thread *= 2
|
||||
threads.append(int(maxthreads))
|
||||
threads.reverse()
|
||||
|
||||
benchtimes = np.zeros(len(threads))
|
||||
numbermodelruns = len(threads)
|
||||
|
在新工单中引用
屏蔽一个用户