From 6965252b2b5c95f44c54bd6ee3ee2db3879b1001 Mon Sep 17 00:00:00 2001 From: xinyu-intel Date: Sat, 5 Jan 2019 23:57:49 +0800 Subject: [PATCH] fix c complier to clang --- MKLDNN_README.md | 2 +- docs/install/osx_setup.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MKLDNN_README.md b/MKLDNN_README.md index 6b25fee85195..ecb721e5fffe 100644 --- a/MKLDNN_README.md +++ b/MKLDNN_README.md @@ -78,7 +78,7 @@ cd incubator-mxnet ### Build MXNet with MKL-DNN ``` -LIBRARY_PATH=$(brew --prefix llvm)/lib/ make -j $(sysctl -n hw.ncpu) CC=$(brew --prefix llvm)/bin/clang++ CXX=$(brew --prefix llvm)/bin/clang++ USE_OPENCV=1 USE_OPENMP=1 USE_MKLDNN=1 USE_BLAS=apple USE_PROFILER=1 +LIBRARY_PATH=$(brew --prefix llvm)/lib/ make -j $(sysctl -n hw.ncpu) CC=$(brew --prefix llvm)/bin/clang CXX=$(brew --prefix llvm)/bin/clang++ USE_OPENCV=1 USE_OPENMP=1 USE_MKLDNN=1 USE_BLAS=apple USE_PROFILER=1 ```

Windows

diff --git a/docs/install/osx_setup.md b/docs/install/osx_setup.md index 95efb75abc25..7d90d3d456f6 100644 --- a/docs/install/osx_setup.md +++ b/docs/install/osx_setup.md @@ -96,7 +96,7 @@ The file called ```osx.mk``` has the configuration required for building MXNet o To build with MKLDNN ```bash -echo "CC=$(brew --prefix llvm)/bin/clang++" >> ./config.mk +echo "CC=$(brew --prefix llvm)/bin/clang" >> ./config.mk echo "CXX=$(brew --prefix llvm)/bin/clang++" >> ./config.mk echo "USE_OPENCV=1" >> ./config.mk echo "USE_OPENMP=1" >> ./config.mk