8000 Move dotblas to multiarray by charris · Pull Request #4969 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Move dotblas to multiarray #4969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d8af083
ENH: np.dot: better "matrices not aligned" message
larsmans Aug 23, 2014
a746e3a
BUG: Capitalize environmental variables in numpy/core/__init__.py.
charris Aug 23, 2014
d07c4c7
ENH: include shapes in "matrices not aligned" msg
larsmans Aug 23, 2014
ce32d9e
BLD: check for CBLAS header in "unoptimized" blas
juliantaylor Aug 24, 2014
91f89e4
Merge pull request #3 from juliantaylor/system-blas
charris Aug 24, 2014
ec5ef40
Merge branch 'dot-errmsg' into pr/4969
larsmans Aug 24, 2014
cfd462e
Merge pull request #2 from larsmans/dot-errmsg-no-dotblas
charris Aug 25, 2014
a3c70cc
STY: Add spaces around '-'.
charris Aug 25, 2014
affeaf5
TST: Silence some warning that turns up on OpenBSD.
charris Aug 29, 2014
4097ec3
BUG: fix percentage reporting when testing.assert_allclose fails.
pp-mo Aug 31, 2014
ea32c90
Use more portable test methods.
pp-mo Sep 1, 2014
138b3bf
Merge pull request #5031 from charris/speedup-old-polynomial-functions
seberg Sep 2, 2014
4a501a0
Merge pull request #5025 from pp-mo/assert_allclose_percent
juliantaylor Sep 2, 2014
588bcc4
Merge pull request #5020 from charris/disable-some-test-warnings
juliantaylor Sep 2, 2014
0f0575c
Merge pull request #4572 from juliantaylor/string-cmp
juliantaylor Sep 2, 2014
889821a
Merge branch 'old-move-dotblas' into move-dotblas-to-multiarray
charris Sep 2, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ENH: Move dotblas_matrixproduct down into multiarray.
Move the dotblas_matrixproduct function from the _dotblas.c file to a
new cblasfuncs.c file in multiarray and rename it cblas_matrixproduct.
Modify it so that it can called directly from PyArray_MatrixProduct2 and
do so.  Fix up numeric.py and core/__init__.py to reflect these changes.
  • Loading branch information
charris committed Aug 17, 2014
commit 4e6066b35e3698e2c74c76092d4315c8fd6cc382
14 changes: 14 additions & 0 deletions numpy/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,21 @@
from .info import __doc__
from numpy.version import version as __version__


# disables openblas affinity setting of the main thread that limits
# python threads or processes to one core
import os
envbak = os.environ.copy()
if 'openblas_main_free' not in os.environ:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the caps disappeared

os.environ['openblas_main_free'] = '1'
if 'gotoblas_main_free' not in os.environ:
os.environ['gotoblas_main_free'] = '1'
from . import multiarray
os.environ.clear()
os.environ.update(envbak)
del envbak
del os

from . import umath
from . import _internal # for freeze programs
from . import numerictypes as nt
Expand Down
Loading
0