szha closed pull request #11471: Fix MKLDNN build for Mac. URL: https://github.com/apache/incubator-mxnet/pull/11471
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/mkldnn.mk b/mkldnn.mk index f17fdbce084..1be0704dcde 100644 --- a/mkldnn.mk +++ b/mkldnn.mk @@ -32,9 +32,9 @@ endif .PHONY: mkldnn mkldnn_clean -mkldnn_build: $(MKLDNNROOT)/lib/libmkldnn.so +mkldnn_build: $(MKLDNN_LIBFILE) -$(MKLDNNROOT)/lib/libmkldnn.so: +$(MKLDNN_LIBFILE): mkdir -p $(MKLDNNROOT) cd $(MKLDNN_SUBMODDIR) && rm -rf external && cd scripts && ./prepare_mkl.sh && cd .. && cp -a external/*/* $(MKLDNNROOT)/. cmake $(MKLDNN_SUBMODDIR) -DCMAKE_INSTALL_PREFIX=$(MKLDNNROOT) -B$(MKLDNN_BUILDDIR) -DARCH_OPT_FLAGS="-mtune=generic" -DWITH_TEST=OFF -DWITH_EXAMPLE=OFF ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services