Commit 6bf1b82f authored by Sang Ik Lee's avatar Sang Ik Lee Committed by Scott Cyphers

Workaround for gcc 4.8.2: Suppress mkl-dnn warning manually since pragma GCC…

Workaround for gcc 4.8.2: Suppress mkl-dnn warning manually since pragma GCC diagnostic ignored is not working on gcc 4.8.2 (#2812)
parent 1f248d0f
...@@ -105,10 +105,13 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") ...@@ -105,10 +105,13 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0 OR CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 8.0) if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0 OR CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 8.0)
set(MKLDNN_FLAG "-Wno-stringop-truncation -Wno-stringop-overflow") set(MKLDNN_FLAG "-Wno-stringop-truncation -Wno-stringop-overflow")
endif() endif()
elseif(NGRAPH_MANYLINUX_ENABLE) #pragma GCC diagnostic ignored does not work on GCC used for manylinux1 elseif(LINUX)
if(CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 4.8.2)
#pragma GCC diagnostic ignored does not work on GCC used for manylinux1
set(MKLDNN_FLAG "-Wno-error=strict-overflow -Wno-error=unused-result -Wno-error=array-bounds") set(MKLDNN_FLAG "-Wno-error=strict-overflow -Wno-error=unused-result -Wno-error=array-bounds")
set(MKLDNN_FLAG "${MKLDNN_FLAG} -Wno-unused-result -Wno-unused-value") set(MKLDNN_FLAG "${MKLDNN_FLAG} -Wno-unused-result -Wno-unused-value")
endif() endif()
endif()
endif() endif()
ExternalProject_Add( ExternalProject_Add(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment