8000 BUG: Capitalize environmental variables in numpy/core/__init__.py. · numpy/numpy@a746e3a · GitHub
[go: up one dir, main page]

Skip to content

Commit a746e3a

Browse files
committed
BUG: Capitalize environmental variables in numpy/core/__init__.py.
1 parent f6ab313 commit a746e3a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

numpy/core/__init__.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
from .info import __doc__
44
from numpy.version import version as __version__
55

6-
7-
# disables openblas affinity setting of the main thread that limits
6+
# disables OpenBLAS affinity setting of the main thread that limits
87
# python threads or processes to one core
98
import os
109
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'
10+
if 'OPENBLAS_MAIN_FREE' not in os.environ:
11+
os.environ['OPENBLAS_MAIN_FREE'] = '1'
12+
if 'GOTOBLAS_MAIN_FREE' not in os.environ:
13+
os.environ['GOTOBLAS_MAIN_FREE'] = '1'
1514
from . import multiarray
1615
os.environ.clear()
1716
os.environ.update(envbak)

0 commit comments

Comments
 (0)
0