Open andrew-niaid opened 5 years ago
That error means that a 32-bit compiler was asked to allocate memory larger than the 32-bit addressing can reach. I now reduced the block dimensions in 2dx_fftrans.for. Please try again if this works now better. Thanks.
Interesting. Since I don't have a 32bit compiler anywhere on the system, I did some more digging. It appears we are bumping into a memory model issue. The default gcc/gfortran option of -mcmodel=small is generating this error.
https://stackoverflow.com/a/12917191
I was able to fix the error (with the original larger block dimensions in 2dx_fftrans.for) by adding this option to the cmake in build_all:
-DCMAKE_Fortran_FLAGS=-mcmodel=medium
I can also confirm that the reduced block dimensions also compile correctly now without this option.
Thanks.
I get the following error when building focus on Linux (CentOS 7.5).
I'm linking against fftw 3.3.3 provided with the distro (not sure if it's relevant here).
I've tried gcc/gfortran versions 4.8.5 and 6.3.1 and get the same result.