Skip to content

Commit c287fe7

Browse files
committed
[make] use BLAS=apple if osx is detected
1 parent 80597d8 commit c287fe7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

make/config.mk

+10-3
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,23 @@ USE_OPENMP = 1
5858

5959
# choose the version of blas you want to use
6060
# can be: mkl, blas, atlas, openblas
61-
USE_STATIC_MKL = NONE
62-
USE_BLAS = blas
61+
# in default use atlas for linux while apple for osx
62+
UNAME_S := $(shell uname -s)
63+
ifeq ($(UNAME_S), Darwin)
64+
USE_BLAS = apple
65+
else
66+
USE_BLAS = atlas
67+
endif
6368

6469
# add path to intel libary, you may need it for MKL, if you did not add the path
6570
# to enviroment variable
6671
USE_INTEL_PATH = NONE
6772

6873
# If use MKL, choose static link automaticly to allow python wrapper
6974
ifeq ($(USE_BLAS), mkl)
70-
USE_STATIC_MKL = 1
75+
USE_STATIC_MKL = 1
76+
else
77+
USE_STATIC_MKL = NONE
7178
endif
7279

7380
#----------------------------

0 commit comments

Comments
 (0)