diff options
author | Gu, Jinghui <jinghui.gu@intel.com> | 2018-12-12 22:39:29 -0800 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2018-12-12 22:41:33 -0800 |
commit | 4b97a4642100e26d14c34c07c31643422d60ac48 (patch) | |
tree | 2c56efdd8c14e8038d450f3da2da854f3dc74136 /cmake | |
parent | 1e93317b99bf04cd9ee9029b66eb492b6eb58980 (diff) | |
download | pytorch-4b97a4642100e26d14c34c07c31643422d60ac48.tar.gz pytorch-4b97a4642100e26d14c34c07c31643422d60ac48.tar.bz2 pytorch-4b97a4642100e26d14c34c07c31643422d60ac48.zip |
Disable strict-overflow flag to avoid compilation error (#14977)
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
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/FindMKLDNN.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/Modules/FindMKLDNN.cmake b/cmake/Modules/FindMKLDNN.cmake index b4ae4dedeb..97d9683e3b 100644 --- a/cmake/Modules/FindMKLDNN.cmake +++ b/cmake/Modules/FindMKLDNN.cmake @@ -115,6 +115,8 @@ find_package_handle_standard_args(MKLDNN DEFAULT_MSG ${__mkldnn_looked_for}) 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) |