Skip to content

Commit

Permalink
Merge pull request numpy#8308 from rgommers/fix-accelerate-link
Browse files Browse the repository at this point in the history
BUG: do not link to Accelerate if OpenBLAS, MKL or BLIS are found.
  • Loading branch information
charris authored Nov 24, 2016
2 parents 2075e1f + 8df25b2 commit 4d885d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions numpy/distutils/system_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,8 @@ def calc_info(self):
if not atlas_info:
atlas_info = get_info('atlas')

if sys.platform == 'darwin' and not atlas_info:
if sys.platform == 'darwin' and not (atlas_info or openblas_info or
lapack_mkl_info):
# Use the system lapack from Accelerate or vecLib under OSX
args = []
link_args = []
Expand Down Expand Up @@ -1593,7 +1594,8 @@ def calc_info(self):
if not atlas_info:
atlas_info = get_info('atlas_blas')

if sys.platform == 'darwin' and not atlas_info:
if sys.platform == 'darwin' and not (atlas_info or openblas_info or
blas_mkl_info or blis_info):
# Use the system BLAS from Accelerate or vecLib under OSX
args = []
link_args = []
Expand Down

0 comments on commit 4d885d3

Please sign in to comment.