[MITgcm-devel] Beaufort experiment on mac os x

Torge Martin torge.martin at gmail.com
Wed Mar 14 13:08:55 EDT 2012


Hi Dimitris, Martin,

looks like Martin is right. I just found that using the -ieee option with
genmake2 sets FOPTIM=-O0. This helps to get pass the Segmentation Fault.

Now, I the Beaufort set up is running with this option on my MacPro, OS X
10.5.8 (Snow Leopard), 2 x 3 GHz Dual-Core, 4 GB Memory, using gcc version
4.0.1 (Apple Inc. build 5465) and
MITgcm/tools/build_options/darwin_ia32_gfortran.

Torge

P.S. Haven't tried running with MPI using both processors, yet.


On Wed, Mar 14, 2012 at 6:09 AM, Martin Losch <Martin.Losch at awi.de> wrote:

> Hi Dimitris, Torge,
>
> the problem is obviously connected to the degree of optimization.
> This works:
> FFLAGS = -O0/-O1/-O3
> this gives a segmentation fault:
> FFLAGS= -O3
>
> (Caveat: I was to lazy to download all of the pickup and forcing data and
> had to turn off obcs etc.)
>
> Here are the sizes of the executables (although they don't tell me
> anything):
> ize mitgcmuv_*
> __TEXT  __DATA  __OBJC  others  dec     hex
> 1937408 160423936       0       4295045120      4457406464
>  109aea000       mitgcmuv_O1
> 2039808 160423936       0       4295045120      4457508864
>  109b03000       mitgcmuv_O2
> 2510848 160423936       0       4295045120      4457979904
>  109b76000       mitgcmuv_O3
> 3387392 160423936       0       4295045120      4458856448
>  109c4c000       mitgcmuv_ieee
>
> Maybe updating the gcc/gfortran compiler beyond version 4.6.0 might solve
> the problem?
>
> Martin
>
> On Mar 14, 2012, at 7:49 AM, Menemenlis, Dimitris (3248) wrote:
>
> > Torge, sorry that sea ice code is changing so much.
> > Hopefully things will stabilize now.
> >
> > I have updated Beaufort experiment to work with latest
> > MITgcm code, including the fixes that you mention below.
> >
> > You can run the experiment using the instructions from
> > README_beaufort.txt for convenience.
> > I will keep digging for the segmentation-fault
> > large-memory footprint problem.
> >
> >>>>>>>>>>>>
> >
> >  cvs co -d beaufort MITgcm_contrib/MPMice/beaufort
> >  cd beaufort
> >  cvs co MITgcm_code
> >
> >>> Obtain copies of following directories and put them in beaufort
> >>> ftp://ecco2.jpl.nasa.gov/data1/beaufort/run_template
> >>> ftp://ecco2.jpl.nasa.gov/data1/data/atmos/blend_forcing/cube78_forcing
> >
> > cd MITgcm
> > mkdir bin exe
> > cd bin
> > \cp ../../code/* .
> > \mv CPP_EEOPTIONS.h_UNCOUPLED CPP_EEOPTIONS.h
> > ../tools/genmake2
> > make depend
> > make -j 16
> >
> > cd ../exe
> > cp ../../run_template/* .
> > cp ../../input/* .
> > cp ../bin/mitgcmuv .
> > ./mitgcmuv >& output.txt &
> >
> > <<<<<<<<
> >
> > Dimitris Menemenlis
> >
> > On Mar 13, 2012, at 5:29 PM, Menemenlis, Dimitris (3248) wrote:
>
>
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-devel/attachments/20120314/ecd02cc5/attachment.htm>


More information about the MITgcm-devel mailing list