Skip to content

Commit b3e5a88

Browse files
authored
Patch mkldnn for build on gcc 4.8.2 (#10616)
* test_patch_mkldnn * use patch file * follow comments * fix patch
1 parent 8c7d2e2 commit b3e5a88

File tree

2 files changed

+4254
-0
lines changed

2 files changed

+4254
-0
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)