Skip to content

Commit

Permalink
Made Intel MKL path platform dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
jpauwels committed Feb 14, 2015
1 parent 197c9e6 commit 00dab41
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions make/mshadow.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@ endif

ifeq ($(USE_BLAS), mkl)
ifneq ($(USE_INTEL_PATH), NONE)
MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/mkl/lib/intel64
MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/lib/intel64
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/mkl/lib
MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/lib
else
MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/mkl/lib/intel64
MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/lib/intel64
endif
MSHADOW_CFLAGS += -I$(USE_INTEL_PATH)/mkl/include
endif
MSHADOW_LDFLAGS += -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5
Expand Down

0 comments on commit 00dab41

Please sign in to comment.