[cig-commits] [commit] devel: added OpenMP compiler flags as comments to flags.guess (f88679e)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Fri Aug 1 11:06:34 PDT 2014


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

On branch  : devel
Link       : https://github.com/geodynamics/specfem3d/compare/d759e09dd946c593868753fbb4253d77378fb276...f88679e531125d8af6f2a6e24e5588bae85364d3

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

commit f88679e531125d8af6f2a6e24e5588bae85364d3
Author: Dimitri Komatitsch <komatitsch at lma.cnrs-mrs.fr>
Date:   Fri Aug 1 19:54:44 2014 +0200

    added OpenMP compiler flags as comments to flags.guess


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

f88679e531125d8af6f2a6e24e5588bae85364d3
 flags.guess | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/flags.guess b/flags.guess
index b41ec6a..97b7acc 100644
--- a/flags.guess
+++ b/flags.guess
@@ -2,16 +2,30 @@
 
 # Attempt to guess suitable flags for the Fortran compiler.
 
+###########################################################################################################################
+###########################################################################################################################
+###########################################################################################################################
+
+# if you want to compile with OpenMP, add this to the flags listed below, depending on the compiler you use:
 #
+#   -fopenmp for GNU gfortran
+#   -openmp for Intel ifort
+#   -mp for Portland pgf90
+#   -qsmp=omp for IBM xlf
+
+###########################################################################################################################
+###########################################################################################################################
+###########################################################################################################################
+
 # You can add -DFORCE_VECTORIZATION to the options below (for all compilers, except for IBM for which the syntax is -WF,-DFORCE_VECTORIZATION )
 # to speed up the code in the fluid (acoustic) parts (only; FORCE_VECTORIZATION support for elastic parts has been discontinued in the source code).
 # This works fine if (and only if) your computer always allocates a contiguous memory block for each allocatable array;
 # this is the case for most machines and most compilers, but not all. For more details see https://github.com/geodynamics/specfem3d/issues/81 .
 # To check if that option works fine on your machine, run the code with and without it for a model containing a significant fluid layer
 # (or entirely fluid) and make sure the seismograms are identical.
-#
 
-# can add -DUSE_SERIAL_CASCADE_FOR_IOs to the compiler options to make the mesher output mesh data
+
+# you can add -DUSE_SERIAL_CASCADE_FOR_IOs to the compiler options to make the mesher output mesh data
 # to the disk for one MPI slice after the other, and to make the solver do the same thing when reading the files back from disk.
 
 # First find the "real" compiler



More information about the CIG-COMMITS mailing list