8000 ENH: add user control to check embedded lapack in openblas by zerothi · Pull Request #5855 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: add user control to check embedded lapack in openblas #5855

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 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 12 additions & 1 deletion numpy/distutils/system_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -1743,7 +1743,18 @@ class openblas_lapack_info(openblas_info):
notfounderror = BlasNotFoundError

def check_embedded_lapack(self, info):
res = False

# Enable the user to force embedded lapack.
# This can be used to bypass the following test
# which will often fail for gnu compiler env's
# Specifically the gfortran library might be necessary
# if OpenBLAS has been compiled without lapack support.
res = self.cp.has_option(self.section,'embedded_lapack')
if res:
res = self.cp.getboolean(self.section,'embedded_lapack')
if res:
return res

c = distutils.ccompiler.new_compiler()
tmpdir = tempfile.mkdtemp()
s = """void zungqr();
Expand Down
17 changes: 17 additions & 0 deletions site.cfg.example
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,23 @@
# multiprocessing.
# (This problem does not exist with multithreaded ATLAS.)
#
# **Notice**: If you have build OpenBLAS without LAPACK support you are encouraged
# to have this:
# [openblas]
# libraries = lapack,openblas
# to force OpenBLAS usage and external lapack, be sure to have the lapack
# directory in the library_dirs path.
# However, this might experience linking problems if you require threaded and/or
# gfortran support as the default C-compiler will not necessarily add correct
# link paths.
# To force numpy to disregard direct checking you can add this option to the
# openblas section:
# [openblas]
# embedded_lapack = True
# which will disable the check. If you experience later linker problems you have
# errors elsewhere.
# If it is False it will check for embedded lapack manually.
#
# http://docs.python.org/3.4/library/multiprocessing.html#contexts-and-start-methods
# https://github.com/xianyi/OpenBLAS/issues/294
#
Expand Down
0