apeforest commented on a change in pull request #13197: build mkldnn as static 
lib on mac/linux
URL: https://github.com/apache/incubator-mxnet/pull/13197#discussion_r238008665
 
 

 ##########
 File path: mkldnn.mk
 ##########
 @@ -19,14 +19,20 @@ ifeq ($(USE_MKLDNN), 1)
        MKLDNN_SUBMODDIR = $(ROOTDIR)/3rdparty/mkldnn
        MKLDNN_BUILDDIR = $(MKLDNN_SUBMODDIR)/build
        MXNET_LIBDIR = $(ROOTDIR)/lib
+       MKLDNN_LIBRARY_TYPE=STATIC
 ifeq ($(UNAME_S), Darwin)
        OMP_LIBFILE = $(MKLDNNROOT)/lib/libiomp5.dylib
        MKLML_LIBFILE = $(MKLDNNROOT)/lib/libmklml.dylib
-       MKLDNN_LIBFILE = $(MKLDNNROOT)/lib/libmkldnn.0.dylib
+       MKLDNN_LIBFILE = $(MKLDNNROOT)/lib/libmkldnn.a
+else ifeq ($(UNAME_S), Windows)
 
 Review comment:
   NVM, seems this is correct syntax in Makefile.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to