Skip to content

Commit

Permalink
Merge pull request apache#23 from jpauwels/refactor
Browse files Browse the repository at this point in the history
Added config option to use system supplied BLAS library on OS X
  • Loading branch information
tqchen committed Feb 9, 2015
2 parents af75a47 + 4bacb7b commit c594466
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions guide/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ USE_CUDA_PATH = NONE

#
# choose the version of blas you want to use
# can be: mkl, blas, atlas, openblas
# can be: mkl, blas, atlas, openblas, apple
USE_BLAS = blas
#
# add path to intel libary, you may need it
# add path to intel library, you may need it
# for MKL, if you did not add the path to enviroment variable
#
USE_INTEL_PATH = NONE
Expand Down
5 changes: 4 additions & 1 deletion make/mshadow.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#----------------------------------------------------------------------------------------

MSHADOW_CFLAGS = -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas
MSHADOW_LDFLAGS = -lm
MSHADOW_LDFLAGS = -lm
MSHADOW_NVCCFLAGS =

ifeq ($(USE_CUDA), 0)
Expand Down Expand Up @@ -38,6 +38,9 @@ else ifeq ($(USE_BLAS), atlas)
MSHADOW_LDFLAGS += -lcblas
else ifeq ($(USE_BLAS), blas)
MSHADOW_LDFLAGS += -lblas
else ifeq ($(USE_BLAS), apple)
MSHADOW_CFLAGS += -I/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current/Headers/
MSHADOW_LDFLAGS += -framework Accelerate
endif

ifeq ($(PS_PATH), NONE)
Expand Down

0 comments on commit c594466

Please sign in to comment.