[MITgcm-support] domain size limit?

Ryan Abernathey ryan.abernathey at gmail.com
Tue Dec 3 00:00:21 EST 2013


Dear Super Modelers,

I found a weird error when trying to compile a large domain (500 x 1600 x
1) on a single processor. On the final link stage of the build, I get:
ld: 32-bit RIP relative reference out of range (2162237024 max is +/-4GB):
from _find_beta__ (0x100227200) to _rhoden.4514 (0x18103AE80) in
'_find_beta__' from find_alpha.o for architecture x86_64
The error disappears if I just reduce sNx * sNy. I guess this has something
to do with running out of memory address space? Is it weird that "32-bit
RIP" is being used even though my platform is 64 bit?

My one weak attempt to overcome this was by adding -fPIC to my FFLAGS. No
success.

Is there any way to overcome this problem, or am I hitting some kind of
fundamental limit to the domain size?

Thanks for your suggestions,
Ryan


My platform is Mac OX 10.8.5, Intel Core i7, gcc version 4.2.1 (via xcode),
gfortran GNU Fortran (GCC) 4.7.1. My optfile is the
default darwin_amd64_gfortran.


More information about the MITgcm-support mailing list