8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6ab313 commit a746e3aCopy full SHA for a746e3a
numpy/core/__init__.py
@@ -3,15 +3,14 @@
3
from .info import __doc__
4
from numpy.version import version as __version__
5
6
-
7
-# disables openblas affinity setting of the main thread that limits
+# disables OpenBLAS affinity setting of the main thread that limits
8
# python threads or processes to one core
9
import os
10
envbak = os.environ.copy()
11
-if 'openblas_main_free' not in os.environ:
12
- os.environ['openblas_main_free'] = '1'
13
-if 'gotoblas_main_free' not in os.environ:
14
- os.environ['gotoblas_main_free'] = '1'
+if 'OPENBLAS_MAIN_FREE' not in os.environ:
+ os.environ['OPENBLAS_MAIN_FREE'] = '1'
+if 'GOTOBLAS_MAIN_FREE' not in os.environ:
+ os.environ['GOTOBLAS_MAIN_FREE'] = '1'
15
from . import multiarray
16
os.environ.clear()
17
os.environ.update(envbak)
0 commit comments