[ET Trac] [Einstein Toolkit] #1184: Update ubuntu.cfg
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Mon Nov 19 19:34:13 CST 2012
#1184: Update ubuntu.cfg
-------------------------+--------------------------------------------------
Reporter: eschnett | Owner: eschnett
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: SimFactory | Version:
Keywords: |
-------------------------+--------------------------------------------------
I suggest to update ubuntu.cfg:
- remove some outdated comments
- consolidate Fortran line length options
- add -ffast-math
- correct Fortran OpenMP flag
- move -rdynamic to LDFLAGS
- add -Wall
{{{
$ svn diff ubuntu.cfg
Index: ubuntu.cfg
===================================================================
--- ubuntu.cfg (revision 1854)
+++ ubuntu.cfg (working copy)
@@ -19,38 +19,32 @@
CPPFLAGS = -DMPICH_IGNORE_CXX_SEEK
FPPFLAGS = -traditional
-# no -msse3
-CFLAGS = -g3 -march=native -std=gnu99 -rdynamic
-CXXFLAGS = -g3 -march=native -std=gnu++0x -rdynamic
+CFLAGS = -g3 -march=native -std=gnu99
+CXXFLAGS = -g3 -march=native -std=gnu++0x
F77FLAGS = -g3 -march=native -fcray-pointer -ffixed-line-length-none
-F90FLAGS = -g3 -march=native -fcray-pointer -ffixed-line-length-none
-LDFLAGS =
+F90FLAGS = -g3 -march=native -fcray-pointer -ffixed-line-length-none
-ffree-line-length-none
+LDFLAGS = -rdynamic
-LIBDIRS =
+LIBDIRS =
C_LINE_DIRECTIVES = yes
F_LINE_DIRECTIVES = yes
-# -check-uninit fails for asm output operands
DEBUG = no
CPP_DEBUG_FLAGS = -DCARPET_DEBUG
FPP_DEBUG_FLAGS = -DCARPET_DEBUG
C_DEBUG_FLAGS = -O0
CXX_DEBUG_FLAGS = -O0
-F77_DEBUG_FLAGS = -O0 -ffixed-line-length-none
-F90_DEBUG_FLAGS = -O0 -ffree-line-length-none
+F77_DEBUG_FLAGS = -O0
+F90_DEBUG_FLAGS = -O0
-# On Abe, the options -O3, -xT, and -ip lead to segmentation faults
-# near MPI calls
-# With Intel 9, using -ip prevents debug information for local variables
-# With Intel 9, using -O3 leads to very long compile times (> 45 minutes)
OPTIMISE = yes
CPP_OPTIMISE_FLAGS = -DKRANC_VECTORS # -DCARPET_OPTIMISE -DNDEBUG
FPP_OPTIMISE_FLAGS = # -DCARPET_OPTIMISE -DNDEBUG
-C_OPTIMISE_FLAGS = -O2
-CXX_OPTIMISE_FLAGS = -O2
-F77_OPTIMISE_FLAGS = -O2
-F90_OPTIMISE_FLAGS = -O2
+C_OPTIMISE_FLAGS = -O2 -ffast-math
+CXX_OPTIMISE_FLAGS = -O2 -ffast-math
+F77_OPTIMISE_FLAGS = -O2 -ffast-math
+F90_OPTIMISE_FLAGS = -O2 -ffast-math
PROFILE = no
CPP_PROFILE_FLAGS =
@@ -62,21 +56,23 @@
OPENMP = no
CPP_OPENMP_FLAGS = -fopenmp
-FPP_OPENMP_FLAGS = -D_OPENMP
+FPP_OPENMP_FLAGS = -fopenmp
C_OPENMP_FLAGS = -fopenmp
CXX_OPENMP_FLAGS = -fopenmp
F77_OPENMP_FLAGS = -fopenmp
F90_OPENMP_FLAGS = -fopenmp
WARN = yes
-CPP_WARN_FLAGS =
-FPP_WARN_FLAGS =
-C_WARN_FLAGS =
-CXX_WARN_FLAGS =
-F77_WARN_FLAGS =
-F90_WARN_FLAGS =
+CPP_WARN_FLAGS = -Wall
+FPP_WARN_FLAGS = -Wall
+C_WARN_FLAGS = -Wall
+CXX_WARN_FLAGS = -Wall
+F77_WARN_FLAGS = -Wall
+F90_WARN_FLAGS = -Wall
-MPI_DIR = /usr
+
+
+MPI_DIR = /usr
MPI_INC_DIRS = /usr/include/mpich2
MPI_LIB_DIRS = /usr/lib
MPI_LIBS = mpich fmpich mpl
}}}
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1184>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list