[MITgcm-support] Limitation for Tile's dimensions

Patrick Heimbach heimbach at MIT.EDU
Fri Apr 20 10:04:18 EDT 2007


Eli,

this type of error message is typical for a setup
in which your executable size per processor exceeds the memory limit.
At the link stage some compilers then choke with this type of error  
message.

Two options to test this:
1) Just drastically reduce dimensions in SIZE.h
    and see whether it compiles.
    (should be easy to do).
2) If you have access to more processors,
    see whether you can fit it on more processors.

-Patrick



On Apr 20, 2007, at 9:46 AM, Eli Biton wrote:

> Thanks, Martin and Constantinos
> For now I'm using mpif90, which adding the flag  - mcmodel=medium  
> did not solved the problem (the optFile I'm using is below).
> Any suggestions (before moving to other compilers)?
> Many thanks, Eli
>
>
> FC=mpif90
> F90C=mpif90
> DEFINES='-DWORDLENGTH=4'
> LINK='ifort'
> CPP='cpp  -traditional -P'
> #INCLUDES='-I/usr/include/netcdf'
>
> INCLUDES='-I/opt/netcdf-3.6.0-p1/include -I/usr/local/topspin/mpi/ 
> mpich/include'
> LIBS='-L/opt/netcdf-3.6.0-p1/lib -L/usr/local/topspin/mpi/mpich/ 
> lib64  -lmpich_i -lpthread'
>
> #  Note that the -mp switch is for ieee "maintain precision" and is
> #  roughly equivalent to -ieee
> if test "x$IEEE" = x ; then
>     FOPTIM='-O3 -align'
> #    FOPTIM=
> #P3 FOPTIM=$FOPTIM' -tpp6 -xWKM'
> #P4 FOPTIM=$FOPTIM' -tpp7 -xWKM'
>     FFLAGS='-132 -r8 -i4 -w95 -convert big_endian -assume byterecl'
> else
>     FOPTIM='-O0 -noalign'
>     FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -xN -pc64 -convert big_endian  
> -assume byterecl'
>    #FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB'
> fi
>
>
>
>
>
> ************************************************
> Eliyahu Biton
> Deptartment of Environmental Sciences,
> Weizmann Institute of Science,
> Rehovot,76100
> Israel
> Tel:+972-8-9344924
> Fax:+972-8-9344124
> ************************************************
>
>
>>>> Constantinos Evangelinos <ce107 at ocean.mit.edu> 04/19/07 11:57 PM  
>>>> >>>
> On Thu 19 Apr 2007 11:23, Martin Losch wrote:
>> Hi Eli,
>>
>> the error message means that you are asking for too much stack
>> memory. Many compilers can deal with more stack memory by specifying
>> an option such as "pgf77 - mcmodel=medium".
>> You'll have to find out what the option is for your compiler.
>
> GNU, PGI, Pathscale, Absoft and Intel compilers all accept -  
> mcmodel=medium
> which has to do with the addressing mode not the stack. You have to  
> make
> sure all the libraries you link with are also compiled with -  
> mcmodel=medium
> or - fPIC.
>
> Constantinos
> --  
> Dr. Constantinos Evangelinos
> Department of Earth, Atmospheric and Planetary Sciences
> Massachusetts Institute of Technology
>
> _______________________________________________
> MITgcm- support mailing list
> MITgcm- support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm- support
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support

---
Dr Patrick Heimbach | heimbach at mit.edu | http://www.mit.edu/~heimbach
MIT | EAPS, 54-1518 | 77 Massachusetts Ave | Cambridge, MA 02139, USA
FON: +1-617-253-5259 | FAX: +1-617-253-4464 | SKYPE: patrick.heimbach





More information about the MITgcm-support mailing list