[Developers] Re: Developers Digest, Vol 20, Issue 11

Thomas Radke tradke at aei.mpg.de
Fri May 13 03:47:09 CDT 2005


Jian Tao wrote:
> Hi Frank,
> 
> Intel limits stachsize by default for good.
> Try the following command before you run your code
> 
> #limit stacksize unlimited
> 
> If the above doesn't work then try the latest version.

I've also noticed that different releases of Intel seem to use different
default stacksizes. Therefore it might work for 7.x or 8.1 but not for
8.0. And it's difficult to debug because usually the stack is always
corrupted.

You should check your Fortran code for definitions of large local
arrays, eg.

  CCTK_REAL dimension(1:ntheta, 1:nphi) :: txx,tyy,tzz,txy,txz,tyz

Depending on ntheta and nphi, these array definitions can cause a stack
overflow. Such arrays should then be dynamically allocated instead (see
CactusEinstein/AHFinder/src/AHFinder_int.F as an example).


-- 
Cheers, Thomas.



More information about the Developers mailing list