Skip to content

Commit c72a4f4

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into feature/exec_strategy
2 parents 08295f9 + 8231960 commit c72a4f4

File tree

3 files changed

+4264
-7
lines changed

3 files changed

+4264
-7
lines changed

cmake/external/mkldnn.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ ExternalProject_Add(
5656
GIT_TAG "v0.14"
5757
PREFIX ${MKLDNN_SOURCES_DIR}
5858
UPDATE_COMMAND ""
59+
# Patch MKLDNN to compile with gcc 4.8, the related issue is in intel/mkl-dnn#237.
60+
PATCH_COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/patches/mkldnn.hpp ${MKLDNN_SOURCES_DIR}/src/extern_mkldnn/include/mkldnn.hpp
5961
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${MKLDNN_INSTALL_DIR}
6062
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
6163
CMAKE_ARGS -DMKLROOT=${MKLML_ROOT}

0 commit comments

Comments
 (0)