diff options
author | knarf <knarf@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2011-02-01 22:18:17 +0000 |
---|---|---|
committer | knarf <knarf@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2011-02-01 22:18:17 +0000 |
commit | 26e86f78a3259479492747dd4728b3f3b655cf62 (patch) | |
tree | ba8e723803f1a4ea2573e82c9d8ba2843a0ecd52 /doc/UsersGuide | |
parent | a7cd86f5b2d0f697a4739294ea589b417a8119b4 (diff) |
Ian Hinder:
Cactus supports a variable OPTIMISE=yes/no to control whether optimisation is performed during compilation. Setting this variable to "yes" (for example, make sim-config OPTIMISE=yes) adds the flags in C_OPTIMISE_FLAGS to CFLAGS so that optimisation is performed. This is the default. Setting OPTIMISE=no does not add the flags. For gcc, this results in an unoptimised configuration as gcc assumes -O0 as the default. The Intel compiler, however, uses -O2 as the default. Hence, setting OPTIMISE=no has no effect on Intel, and -O2 is still used.
This patch adds new configuration options C_NO_OPTIMISE_FLAGS, CXX_NO_OPTIMISE_FLAGS, F77_NO_OPTIMISE_FLAGS and F90_NO_OPTIMISE_FLAGS to complement the *_OPTIMISE_FLAGS options. These are added to the flags when OPTIMISE=no is used, and they default to -O0, which for the commonly used gcc and Intel compilers will lead to an unoptimised configuration.
This commit adds the corresponding documentation to the UsersGuide.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4682 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc/UsersGuide')
-rw-r--r-- | doc/UsersGuide/Notes.tex | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/UsersGuide/Notes.tex b/doc/UsersGuide/Notes.tex index b5bb9924..8085eb32 100644 --- a/doc/UsersGuide/Notes.tex +++ b/doc/UsersGuide/Notes.tex @@ -392,6 +392,16 @@ type of optimisation being used. Optimisation flags for the Fortran 77 compiler, their use depends on the type of optimisation being used. +\item [\texttt{C\_NO_OPTIMISE\_FLAGS}] + +\item [\texttt{CXX\_NO\_OPTIMISE\_FLAGS}] + +\item [\texttt{F90\_NO\_OPTIMISE\_FLAGS}] + +\item [\texttt{F77\_NO\_OPTIMISE\_FLAGS}] +Optimisation flags used to indicate that no optimisation should be +performed. These are invoked when OPTIMISE=no is used. + \item [\texttt{PROFILE}] * Specifies what type of profiling should be used. The only options currently available are \texttt{yes} and \texttt{no}. The default |