The attached patch disables the gfortran flag -march=native.
Same patch can be found at the URL
http://www.nwchem-sw.org/images/Disable_march_native.patch.gz
--- nwchem-6.6/src/config/makefile.h	2016-11-17 22:29:09.794581240 +0000
+++ nwchem-6.6/src/config/makefile.h.orig	2016-11-17 22:26:29.497599135 +0000
@@ -1956,7 +1956,7 @@
           FOPTIONS +=  -ff2c -fno-second-underscore
         endif
         ifeq ($(GNU_GE_4_6),true) 
-          FOPTIONS +=  -mtune=native
+          FOPTIONS += -march=native -mtune=native
           FOPTIONS += -finline-functions
         else
         ifeq ($(_GOT3DNOW),Y) 

Reply via email to