Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable ARCH_OPT_FLAGS in mkl-dnn #618

Merged
merged 1 commit into from
Sep 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mkl-dnn/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ case $PLATFORM in
mkdir -p external
tar --totals -xf mklml_lnx_$MKLML_VERSION.tgz -C external
# libmklml_intel.so does not have a SONAME, so libmkldnn.so.0 needs an RPATH to be able to load
"$CMAKE" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DCMAKE_CXX_FLAGS='-Wl,-rpath,$ORIGIN/' -Wno-error=unused-result
"$CMAKE" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DCMAKE_CXX_FLAGS='-Wl,-rpath,$ORIGIN/' -DARCH_OPT_FLAGS='' -Wno-error=unused-result
make -j $MAKEJ
make install/strip
cp external/mklml_lnx_$MKLML_VERSION/include/* ../include/
Expand All @@ -39,7 +39,7 @@ case $PLATFORM in
export CC="$(ls -1 /usr/local/bin/gcc-? | head -n 1)"
export CXX="$(ls -1 /usr/local/bin/g++-? | head -n 1)"
sedinplace 's/__thread/thread_local/g' src/common/utils.hpp
"$CMAKE" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH
"$CMAKE" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DARCH_OPT_FLAGS=''
make -j $MAKEJ
make install/strip
cp external/mklml_mac_$MKLML_VERSION/include/* ../include/
Expand All @@ -50,7 +50,7 @@ case $PLATFORM in
download https://github.com/intel/mkl-dnn/releases/download/v$MKLDNN_VERSION/mklml_win_$MKLML_VERSION.zip mklml_win_$MKLML_VERSION.zip
mkdir -p external
unzip -o mklml_win_$MKLML_VERSION.zip -d external
"$CMAKE" -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH
"$CMAKE" -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DARCH_OPT_FLAGS=''
make -j $MAKEJ
make install/strip
cp external/mklml_win_$MKLML_VERSION/include/* ../include/
Expand Down