你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 04:56:51 +08:00
Add workaround for bug with Windows Subsystem for Linux, by setting KMP_AFFINITY to disabled when detected.
这个提交包含在:
@@ -71,6 +71,10 @@ def process_singlecmds(singlecmds, G):
|
||||
os.environ['OMP_PROC_BIND'] = 'spread' # Bind threads to physical cores
|
||||
# os.environ['OMP_DISPLAY_ENV'] = 'TRUE' # Prints OMP version and environment variables (useful for debug)
|
||||
|
||||
# Catch bug with Windows Subsystem for Linux (https://github.com/gprMax/gprMax/issues/95)
|
||||
if 'Microsoft' in hostinfo['osversion']:
|
||||
os.environ['KMP_AFFINITY'] = 'disabled'
|
||||
|
||||
if singlecmds[cmd] != 'None':
|
||||
tmp = tuple(int(x) for x in singlecmds[cmd].split())
|
||||
if len(tmp) != 1:
|
||||
|
在新工单中引用
屏蔽一个用户