File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ IF(${CBLAS_PROVIDER} STREQUAL "MKLML")
45
45
ELSE ()
46
46
MESSAGE (FATAL_ERROR "Should enable MKLML when build MKLDNN" )
47
47
ENDIF ()
48
- SET (MKLDNN_FLAG "-Wno-error=strict-overflow -Wno-error=unused-result" )
48
+ SET (MKLDNN_FLAG "-Wno-error=strict-overflow -Wno-error=unused-result -Wno-error=array-bounds " )
49
49
SET (MKLDNN_FLAG "${MKLDNN_FLAG} -Wno-unused-result -Wno-unused-value" )
50
50
SET (MKLDNN_CFLAG "${CMAKE_C_FLAGS} ${MKLDNN_FLAG} " )
51
51
SET (MKLDNN_CXXFLAG "${CMAKE_CXX_FLAGS} ${MKLDNN_FLAG} " )
@@ -54,7 +54,7 @@ ExternalProject_Add(
54
54
${EXTERNAL_PROJECT_LOG_ARGS}
55
55
DEPENDS ${MKLDNN_DEPENDS}
56
56
GIT_REPOSITORY "https://github.com/01org/mkl-dnn.git"
57
- GIT_TAG "64e03a1939e0d526aa8e9f2e3f7dc0ad8d372944 "
57
+ GIT_TAG "21fb5f2af1dd14e132af4f1b79160977ee487818 "
58
58
PREFIX ${MKLDNN_SOURCES_DIR}
59
59
UPDATE_COMMAND ""
60
60
CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
Original file line number Diff line number Diff line change @@ -375,8 +375,7 @@ class ConvMKLDNNOpKernel : public paddle::framework::OpKernel<T> {
375
375
auto src_md = platform::MKLDNNMemDesc (
376
376
src_tz, platform::MKLDNNGetDataType<T>(), chosen_memory_format);
377
377
auto weights_md = platform::MKLDNNMemDesc (
378
- weights_tz, platform::MKLDNNGetDataType<T>(),
379
- (g == 1 ) ? chosen_memory_format : mkldnn::memory::format::goihw);
378
+ weights_tz, platform::MKLDNNGetDataType<T>(), chosen_memory_format);
380
379
std::vector<int > bias_tz; // TODO(mgallus): avoid empty vector creation.
381
380
// Currently used whenever bias is != nullptr.
382
381
auto dst_md = platform::MKLDNNMemDesc (
You can’t perform that action at this time.
0 commit comments