[cig-commits] [commit] devel, master: added comments about the fact that one needs to run "configure" with option --disable-vectorization when debugging the code with range checking on (3095918)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Nov 6 08:28:43 PST 2014


Repository : https://github.com/geodynamics/specfem3d_globe

On branches: devel,master
Link       : https://github.com/geodynamics/specfem3d_globe/compare/bc58e579b3b0838a0968725a076f5904845437ca...be63f20cbb6f462104e949894dbe205d2398cd7f

>---------------------------------------------------------------

commit 30959180c35f6d8f9cfcfad5ad17a7479d29e609
Author: Dimitri Komatitsch <komatitsch at lma.cnrs-mrs.fr>
Date:   Thu Aug 14 00:35:24 2014 +0200

    added comments about the fact that one needs to run "configure" with option --disable-vectorization when debugging the code with range checking on


>---------------------------------------------------------------

30959180c35f6d8f9cfcfad5ad17a7479d29e609
 flags.guess | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/flags.guess b/flags.guess
index 8474d2c..1feaf6d 100644
--- a/flags.guess
+++ b/flags.guess
@@ -79,7 +79,9 @@ case $my_FC in
         # Cray Fortran
         #
         DEF_FFLAGS="-O3 -Onoaggress -Oipa0 -hfp2 -Ovector3 -Oscalar3 -Ocache2 -Ounroll2 -Ofusion2 -M 1193 -M 1438" # turn on optimization; -Oaggress -Oipa4 would make it even more aggressive
-        # -eC -eD -ec -en -eI -ea -g -G0 -M 1193 -M 1438  # turn on full debugging and range checking
+        # turn on full debugging and range checking, use:
+        # -eC -eD -ec -en -eI -ea -g -G0 -M 1193 -M 1438 
+        # you then need to run "configure" with option --disable-vectorization
         ;;
     pgf95|*/pgf95|pgf90|*/pgf90)
         #
@@ -101,6 +103,7 @@ case $my_FC in
         DEF_FFLAGS="-O3 -check nobounds -xHost -fpe0 -ftz -assume buffered_io -assume byterecl -align sequence -vec-report0 -std03 -diag-disable 6477 -implicitnone -gen-interfaces -warn all" # -mcmodel=medium -shared-intel
         # useful for debugging...
         # for debugging: change -O3 -check nobounds to      -check all -debug -g -O0 -fp-stack-check -traceback -ftrapuv
+        # you then need to run "configure" with option --disable-vectorization
         #
         ;;
     gfortran|*/gfortran|f95|*/f95)
@@ -109,6 +112,7 @@ case $my_FC in
         #
         DEF_FFLAGS="-std=gnu -fimplicit-none -frange-check -O2 -fmax-errors=10 -pedantic -pedantic-errors -Waliasing -Wampersand -Wcharacter-truncation -Wline-truncation -Wsurprising -Wno-tabs -Wunderflow -ffpe-trap=invalid,zero,overflow" # -mcmodel=medium
         # useful for debugging: add   -ggdb -fbacktrace -fbounds-check
+        # you then need to run "configure" with option --disable-vectorization
         # useful to track loss of accuracy because of automatic double to single precision conversion:  -Wconversion  (this may generate many warnings...)
         ;;
     g95|*/g95)
@@ -188,6 +192,7 @@ case $my_FC in
         # -qtune=auto -qarch=450d -qsave     instead of -qtune=auto -qarch=auto
         #
         # to debug with IBM xlf, remove -Wl,-relax and add -g -O0 -C -qddim -qfullpath -qflttrap=overflow:zerodivide:invalid:enable -qfloat=nans -qinitauto=7FBFFFFF
+        # you then need to run "configure" with option --disable-vectorization
         #
         ;;
     pathf90|*/pathf90)



More information about the CIG-COMMITS mailing list