LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Big (I mean big) arrays in gfortran??? (https://www.linuxquestions.org/questions/linux-software-2/big-i-mean-big-arrays-in-gfortran-648732/)

ezrider 06-12-2008 01:38 AM

Big (I mean big) arrays in gfortran???
 
I'm running the gfortran (f95) that came in my FC7 (32 bit) distro & the biggest 2-dimensional array seems to be about 16000 x 16000 (single precision complex). I have plenty of memory (8 GB), so I don't think it's a size limitation on linking. It seems to be inherent to the gfortran, at least for the 32 bit distro. Do I have to go to the 64 bit distro in order to handle bigger arrays?

-- EZRIDER

pinniped 06-12-2008 07:54 AM

You cannot address 8GB with a 32-bit address, unless you have software to emulate the missing bits and an OS which uses 64-bit internally - or a cpu which has 32-bit addresses + page switching. So ... try the 64-bit version. The 16000x16000 single complex is just under 2GB.

ezrider 06-12-2008 09:12 AM

OK on 64 bit...
 
Quote:

Originally Posted by pinniped (Post 3182503)
You cannot address 8GB with a 32-bit address, unless you have software to emulate the missing bits and an OS which uses 64-bit internally - or a cpu which has 32-bit addresses + page switching. So ... try the 64-bit version. The 16000x16000 single complex is just under 2GB.

Thanks for the reply. I forgot to say I'm using the FC7 PAE kernel now, but I'm sure that doesn't help if the gfortran only uses 32 bit addressing. Is there a 64 bit gfortran available to go with the 64 bit Fedora?

-- EZRIDER


All times are GMT -5. The time now is 07:33 PM.