diff options
Diffstat (limited to 'mapgen/__init__.py')
| -rw-r--r-- | mapgen/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mapgen/__init__.py b/mapgen/__init__.py new file mode 100644 index 0000000..63fd969 --- /dev/null +++ b/mapgen/__init__.py @@ -0,0 +1,7 @@ +"""World generator.""" +import os + +# OpenBLAS threads spin ~0.1 s after each call before sleeping; with solves on several threads (and other jobs on the +# machine) that spinning steals the cores doing the work. A short timeout changes nothing in how work is split, so +# results stay the same bits (the thread *count* would not: see pipeline/graph notes). Only before numpy loads. +os.environ.setdefault("OPENBLAS_THREAD_TIMEOUT", "4") |
