Operating System - HP-UX
1833738 Members
2527 Online
110063 Solutions
New Discussion

More Memory For Fortran Program

 
Pete Randall
Outstanding Contributor

More Memory For Fortran Program

My R&D folks are trying to run a Fortran program that seems to be running out of memory. According to them, they get up to 850 MB of memory allocated and things are still fine, but when they try to add one more vector of 150 MB, the program crashes with the following message:

FORTRAN Runtime ERROR:
Memory allocation failed


I assume that I need to increase one of the max_size kernel parameters but I'm not sure which one - data, text?


Pete

Pete
7 REPLIES 7
Jeff Schussele
Honored Contributor

Re: More Memory For Fortran Program

Pete,

Have you checked the "bitness" of that binary.
If it's 32 then they could be hitting the quadrant wall. They may need to chatr that thing so that it can address more memory.
Also they may be asking for contigous memory & things are too fragmented for that last chunk.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Pete Randall
Outstanding Contributor

Re: More Memory For Fortran Program

Jeff,

Running "file" against the binary simply returns "create_035.f90: fortran program text". Is there some other way to test bitness?


Pete

Pete
Alzhy
Honored Contributor

Re: More Memory For Fortran Program

Unsure but perhaps your 32-bit(?) fortran code is exceeding its quadrant memory demand? Relocate the excutable to a different quadrant via the chatr command perhaps?

chatr +3qp ?


HTH
Hakuna Matata.
Pete Randall
Outstanding Contributor

Re: More Memory For Fortran Program

Thanks, Nelson. I'm still not sure that it's 32 bit code but will keep that in mind.


Pete

Pete
Jeff Schussele
Honored Contributor

Re: More Memory For Fortran Program

Hi Pete,

Run file against the Fortran binary.
Appears this is like a Java executable that will actually call the Java binary to do the heavy lifting.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Pete Randall
Outstanding Contributor

Re: More Memory For Fortran Program

Jeff,

Duh!

# file create_035.o
create_035.o: PA-RISC2.0 relocatable object

I believe that's telling me it's 32 bit, right?

I wonder if there's a compiler option to make it 64 bit.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: More Memory For Fortran Program

Imagine that! There is an option: "+DA2.0W"


Pete

Pete