Leave OMP_WAIT_POLICY set to active for Mac OS X. Seems to improve performance slightly.

这个提交包含在:
Craig Warren
2016-08-19 16:56:20 +01:00
父节点 c6609c300e
当前提交 d891253415

查看文件

@@ -62,7 +62,8 @@ def process_singlecmds(singlecmds, G):
# Number of threads (OpenMP) to use
cmd = '#num_threads'
# os.environ['OMP_WAIT_POLICY'] = 'ACTIVE' # What to do with threads when they are waiting; can drastically effect performance
if sys.platform = 'darwin':
os.environ['OMP_WAIT_POLICY'] = 'ACTIVE' # What to do with threads when they are waiting; can drastically effect performance
os.environ['OMP_DYNAMIC'] = 'FALSE'
os.environ['OMP_PROC_BIND'] = 'TRUE' # Bind threads to physical cores