Add workaround for bug with Windows Subsystem for Linux.

这个提交包含在:
Craig Warren
2017-02-28 13:26:55 +00:00
父节点 c3a3a455f1
当前提交 2d1025d494

查看文件

@@ -74,6 +74,8 @@ def process_singlecmds(singlecmds, G):
# Catch bug with Windows Subsystem for Linux (https://github.com/gprMax/gprMax/issues/95) # Catch bug with Windows Subsystem for Linux (https://github.com/gprMax/gprMax/issues/95)
if 'Microsoft' in hostinfo['osversion']: if 'Microsoft' in hostinfo['osversion']:
os.environ['KMP_AFFINITY'] = 'disabled' os.environ['KMP_AFFINITY'] = 'disabled'
del os.environ['OMP_PLACES']
del os.environ['OMP_PROC_BIND']
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())