[MITgcm-support] Model hangs intermittently on Mac
Nicolas Grisouard
nicolas.grisouard at stanford.edu
Wed Feb 27 15:57:19 EST 2013
Hi,
I'm replying because I am also interested in the answer. It never
happened to me on a mac, but on other machines and I'm wondering if
there is something more universal to it.
I might have misunderstood Gus' answer, but it is mentioned that the
machine is a Mac Pro that is setup so that it never goes to sleep. These
babies don't even turn on if you don't plug them in! :)
Cheers,
Nico.
On 27/02/13 12:05, Gus Correa wrote:
> 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!
>
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
--
Nicolas Grisouard - Post Doctoral Scholar
Stanford University - Dept. Environmental Earth System Science
473 via Ortega - room 153
Stanford, CA 94305-4216
Tel: (+1) 650-725-9645 - Dept. fax: (+1) 650-498-5099
Office Skype ID: nicolas.grisouard
http://nicolas.grisouard.free.fr
http://www.mendeley.com/profiles/nicolas-grisouard/
More information about the MITgcm-support
mailing list