[MITgcm-support] Model hangs intermittently on Mac

Gus Correa gus at ldeo.columbia.edu
Wed Feb 27 15:05:40 EST 2013


On 02/27/2013 02:47 PM, Christopher L. P. Wolfe wrote:
>
> Hi all,
>
> I'm having this weird problem where the model will run fine for several hours and then just … stop: the CPU usage goes to zero and output stops, but there are no error messages and the executable remains in memory. If I restart from the last checkpoint, the model will run fine past the original point it stalls only to stall several hours later. I have no NaNs or Infs in the output. The problem seems to occur when I'm away from my machine for a while, so I figured it had something to do with power management, but it still happens if I use the utility "caffeinate" to prevent the machine from sleeping (indeed, I came in this morning and the machine was still awake but the model had stalled in the middle of the night). Nothing interesting appears on the system logs around the time the model stalls.
>
> Has anyone run into anything like this? Any thoughts I what I can do about it? I can't even figure out how to troubleshoot it, since it's so intermittent. Thanks in advance. My configuration follows:
>
> Machine: 8-core Mac Pro OS 10.8.2
>
>
> Build options:
>
> CPP='/opt/local/bin/cpp-mp-4.6 -traditional -P'
> FC=gfortran-mp-4.6
> CC=gcc-mp-4.6
>
> LINK=gfortran-mp-4.6
> NOOPTFLAGS='-O0'
> EXTENDED_SRC_FLAG='-ffixed-line-length-132'
> OMPFLAG="-fopenmp"
>
> S64='$(TOOLSDIR)/set64bitConst.sh'
> DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'
> INCLUDES='-I/opt/local/include'
> LIBS='-L/opt/local/lib -lnetcdf'
>
> FFLAGS='-Wunused -Wuninitialized -fno-second-underscore -fconvert=big-endian'
> FOPTIM='-O3 -funroll-loops'
> NOOPTFLAGS='-O2 -funroll-loops'
>
>
>
> gcc-mp-4.6 is gcc version 4.6.3 (MacPorts gcc46 4.6.3_9)
> gfortran-mp-4.6 and cpp-mp-4.6 call gcc-mp-4.6
>
> I use OpenMP.
>
> Before I run I define
> export OMP_STACKSIZE=16M
> export OMP_NUM_THREADS=4
>
> Thanks in advance,
> Christopher
>
> -----------------------------------------------------------
> Dr. Christopher L. P. Wolfe
> Research Oceanographer
> Climate, Atmospheric Science, and Physical Oceanography
> Scripps Institution of Oceanography, UCSD
> clwolfe at ucsd.edu                           858-534-4560
> -----------------------------------------------------------
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support

How about plugging in the power adapter and on the menus:
System Preferences -> Energy Saver -> Power Adapter
change the computer sleep time to "never",
and perhaps un-check the other power saving options
(like put the disk to sleep).
You can revert to the original settings for normal operation.
Go green!





More information about the MITgcm-support mailing list