Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
fix the issue that libiomp5 cannot be found when compiling when using…
Browse files Browse the repository at this point in the history
… full MKL package (#173)
  • Loading branch information
zhenlinluo authored and piiswrong committed Oct 27, 2016
1 parent 37f8500 commit f67e112
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions make/mshadow.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ ifneq ($(USE_INTEL_PATH), NONE)
MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/lib
else
MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/mkl/lib/intel64
MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/compiler/lib/intel64
MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/lib/intel64
endif
MSHADOW_CFLAGS += -I$(USE_INTEL_PATH)/mkl/include
Expand All @@ -51,7 +52,7 @@ ifeq ($(USE_INTEL_PATH), NONE)
else
MKLROOT = $(USE_INTEL_PATH)/mkl
endif
MSHADOW_LDFLAGS += -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_intel_thread.a -Wl,--end-group -liomp5 -ldl -lpthread -lm
MSHADOW_LDFLAGS += -L${MKLROOT}/../compiler/lib/intel64 -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_intel_thread.a -Wl,--end-group -liomp5 -ldl -lpthread -lm
else
MSHADOW_LDFLAGS += -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5
endif
Expand Down Expand Up @@ -109,4 +110,4 @@ endif

# Set MSDHADOW_USE_PASCAL to one to enable nvidia pascal gpu features.
# Like cublasHgemm
MSHADOW_CFLAGS += -DMSDHADOW_USE_PASCAL=0
MSHADOW_CFLAGS += -DMSDHADOW_USE_PASCAL=0

0 comments on commit f67e112

Please sign in to comment.