use correct mkl lib path for jar
This commit is contained in:
Родитель
0d1834f103
Коммит
78ee54d1e9
7
Makefile
7
Makefile
|
@ -174,12 +174,13 @@ ifeq ("$(MATHLIB)","mkl")
|
||||||
INCLUDEPATH += $(MKL_PATH)/$(CNTK_CUSTOM_MKL_VERSION)/include
|
INCLUDEPATH += $(MKL_PATH)/$(CNTK_CUSTOM_MKL_VERSION)/include
|
||||||
LIBS_LIST += m
|
LIBS_LIST += m
|
||||||
ifeq ("$(MKL_THREADING)","sequential")
|
ifeq ("$(MKL_THREADING)","sequential")
|
||||||
LIBPATH += $(MKL_PATH)/$(CNTK_CUSTOM_MKL_VERSION)/x64/sequential
|
MKL_LIB_PATH := $(MKL_PATH)/$(CNTK_CUSTOM_MKL_VERSION)/x64/sequential
|
||||||
LIBS_LIST += mkl_cntk_s
|
LIBS_LIST += mkl_cntk_s
|
||||||
else
|
else
|
||||||
LIBPATH += $(MKL_PATH)/$(CNTK_CUSTOM_MKL_VERSION)/x64/parallel
|
MKL_LIB_PATH := $(MKL_PATH)/$(CNTK_CUSTOM_MKL_VERSION)/x64/parallel
|
||||||
LIBS_LIST += mkl_cntk_p iomp5 pthread
|
LIBS_LIST += mkl_cntk_p iomp5 pthread
|
||||||
endif
|
endif
|
||||||
|
LIBPATH += $(MKL_LIB_PATH)
|
||||||
COMMON_FLAGS += -DUSE_MKL
|
COMMON_FLAGS += -DUSE_MKL
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -1448,7 +1449,7 @@ java: $(JAVA_LIBS)
|
||||||
mkdir -p $(JAVA_SWIG_DIR)/com/microsoft/CNTK/lib/linux
|
mkdir -p $(JAVA_SWIG_DIR)/com/microsoft/CNTK/lib/linux
|
||||||
echo $(JAVA_LIB:$(LIBDIR)/%=%) > $(JAVA_SWIG_DIR)/com/microsoft/CNTK/lib/linux/NATIVE_LOAD_MANIFEST
|
echo $(JAVA_LIB:$(LIBDIR)/%=%) > $(JAVA_SWIG_DIR)/com/microsoft/CNTK/lib/linux/NATIVE_LOAD_MANIFEST
|
||||||
for so in libiomp5.so libmkl_cntk_p.so; do \
|
for so in libiomp5.so libmkl_cntk_p.so; do \
|
||||||
cp -p $(MKL_PATH)/3/x64/parallel/$$so $(JAVA_SWIG_DIR)/com/microsoft/CNTK/lib/linux; \
|
cp -p $(MKL_LIB_PATH)/$$so $(JAVA_SWIG_DIR)/com/microsoft/CNTK/lib/linux; \
|
||||||
echo $$so >> $(JAVA_SWIG_DIR)/com/microsoft/CNTK/lib/linux/NATIVE_MANIFEST; \
|
echo $$so >> $(JAVA_SWIG_DIR)/com/microsoft/CNTK/lib/linux/NATIVE_MANIFEST; \
|
||||||
done
|
done
|
||||||
for so in $(JAVA_DEP_SO_NAMES); do \
|
for so in $(JAVA_DEP_SO_NAMES); do \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче