[cig-commits] r12635 - seismo/3D/SPECFEM3D_GLOBE/trunk/version41_beta

dkomati1 at geodynamics.org dkomati1 at geodynamics.org
Thu Aug 14 13:39:53 PDT 2008


Author: dkomati1
Date: 2008-08-14 13:39:53 -0700 (Thu, 14 Aug 2008)
New Revision: 12635

Modified:
   seismo/3D/SPECFEM3D_GLOBE/trunk/version41_beta/Makefile
   seismo/3D/SPECFEM3D_GLOBE/trunk/version41_beta/Makefile.rang
Log:
updated the compiler options to force allocation of automatic arrays on the stack rather than on the heap


Modified: seismo/3D/SPECFEM3D_GLOBE/trunk/version41_beta/Makefile
===================================================================
--- seismo/3D/SPECFEM3D_GLOBE/trunk/version41_beta/Makefile	2008-08-14 19:22:05 UTC (rev 12634)
+++ seismo/3D/SPECFEM3D_GLOBE/trunk/version41_beta/Makefile	2008-08-14 20:39:53 UTC (rev 12635)
@@ -37,8 +37,10 @@
 FC = ifort
 MPIFC = mpif90
 MPIFLAGS = -DUSE_MPI # -lmpi
-#FLAGS_NO_CHECK = -O1 -vec-report0 -e03 -std03 -implicitnone -warn truncated_source -warn argument_checking -warn unused -warn declarations -warn alignments -warn ignore_loc -warn usage -check nobounds -align sequence -assume byterecl -fpe0 -ftz -traceback -ftrapuv
-FLAGS_NO_CHECK = -O3 -xP -vec-report0 -e03 -std03 -implicitnone -warn truncated_source -warn argument_checking -warn unused -warn declarations -warn alignments -warn ignore_loc -warn usage -check nobounds -align sequence -assume byterecl -fpe3 -ftz
+#FLAGS_NO_CHECK = -O1 -vec-report0 -no-heap-arrays -e03 -std03 -implicitnone -warn truncated_source -warn argument_checking -warn unused -warn declarations -warn alignments -warn ignore_loc -warn usage -check nobounds -align sequence -assume byterecl -fpe0 -ftz -traceback -ftrapuv
+FLAGS_NO_CHECK = -O3 -xP -vec-report0 -no-heap-arrays -e03 -std03 -implicitnone -warn truncated_source -warn argument_checking -warn unused -warn declarations -warn alignments -warn ignore_loc -warn usage -check nobounds -align sequence -assume byterecl -fpe3 -ftz
+# we need the -no-heap-arrays flag to force the compiler to allocate memory on the stack
+# instead of on the heap to minimize memory fragmentation
 
 #
 # GNU gfortran
@@ -54,7 +56,9 @@
 #FC = pgf90
 #MPIFC = mpif90
 #MPIFLAGS = -DUSE_MPI
-#FLAGS_NO_CHECK = -fast -Mnobounds -Minline -Mdclchk -Knoieee -fastsse -tp amd64e -Minform=warn -Ktrap=none
+#FLAGS_NO_CHECK = -fast -Mnobounds -Mrecursive -Minline -Mdclchk -Knoieee -fastsse -tp amd64e -Minform=warn -Ktrap=none
+# we need the -Mrecursive flag to force the compiler to allocate memory on the stack
+# instead of on the heap to minimize memory fragmentation
 
 #
 # IBM xlf

Modified: seismo/3D/SPECFEM3D_GLOBE/trunk/version41_beta/Makefile.rang
===================================================================
--- seismo/3D/SPECFEM3D_GLOBE/trunk/version41_beta/Makefile.rang	2008-08-14 19:22:05 UTC (rev 12634)
+++ seismo/3D/SPECFEM3D_GLOBE/trunk/version41_beta/Makefile.rang	2008-08-14 20:39:53 UTC (rev 12635)
@@ -27,14 +27,16 @@
 
 # Makefile.  Generated from Makefile.in by configure.
 
-FC = mpif90  -Mcray=pointer -Msmartalloc=huge,hugebss -O3 -tp barcelona-64 -fastsse  -Munroll -Knoieee #-Mlarge_arrays -Mnobounds
+FC = pgf90  -Mcray=pointer -Msmartalloc=huge,hugebss -O3 -tp barcelona-64 -fastsse  -Munroll -Knoieee #-Mlarge_arrays -Mnobounds
 FCFLAGS = #-g
 MPIFC = mpif90 -Mcray=pointer -Msmartalloc=huge,hugebss -O3 -tp barcelona-64 -fastsse -Munroll #-Mlarge_arrays -Mnobounds
 MPILIBS =
-FLAGS_NO_CHECK =-fast -Mnobounds -Minline -Mneginfo -Mdclchk -Knoieee -Minform=warn -Mstandard -fastsse #-tp amd64e
+FLAGS_NO_CHECK =-fast -Mnobounds -Mrecursive -Minline -Mneginfo -Mdclchk -Knoieee -Minform=warn -Mstandard -fastsse #-tp amd64e
 FLAGS_CHECK = $(FLAGS_NO_CHECK)
 FLAGS_NO_CHECK2 = $(FLAGS_NO_CHECK)
 FCFLAGS_f90 =
+# we need the -Mrecursive flag to force the compiler to allocate memory on the stack
+# instead of on the heap to minimize memory fragmentation
 
 SPECINC = setup/
 BIN = bin



More information about the cig-commits mailing list