Summary:
Disable strict-overflow flag to avoid compilation error
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14977
Differential Revision:
D13447577
Pulled By: soumith
fbshipit-source-id:
1957bd5aa3c7b79219da3dd53560464977c89526
IF(MKLDNN_FOUND)
IF(NOT APPLE AND CMAKE_COMPILER_IS_GNUCC)
ADD_COMPILE_OPTIONS(-Wno-maybe-uninitialized)
+ ADD_COMPILE_OPTIONS(-Wno-strict-overflow)
+ ADD_COMPILE_OPTIONS(-Wno-error=strict-overflow)
ENDIF(NOT APPLE AND CMAKE_COMPILER_IS_GNUCC)
SET(MKLDNN_THREADING "OMP:COMP")
SET(WITH_TEST FALSE CACHE BOOL "build with mkl-dnn test" FORCE)