[Info-vax] problems allocating "large" arrays in OpenVMS-Fortran
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Wed Oct 30 08:20:26 EDT 2013
On 2013-10-29, hb <end.of at inter.net> wrote:
> On 10/29/2013 08:10 PM, Simon Clubley wrote:
>>
>> Did you try running SDA as I suggested to see where the memory is being
>> allocated to within the virtual address space when using the builtin
>> Fortran intrinsic ?
>
> Hmm, the "already allocated" one from the error message:
> %FOR-F-INVREALLOC, allocatable array is already allocated
> ?
>
> The OP asked FORTRAN to dynamically allocate (a big chunk of) memory,
> named 'size_array', so that the OP can easily address the data within
> the FORTRAN program. The FORRTL tries to, but fails with INVREALLOC.
> With the given !DEC$ATTRIBUTES ADDRESS64 for size_array there is very
> likely a 64bit call to allocate/map the memory...
>
If you look back to the original message, you will see the original
problem, using the builtin Fortran memory allocation intrinsics, was
that the OP could allocate 1Gbytes of memory but not 2Gbytes of memory.
Brian thought it may be because it's getting allocated out of P0 space.
If you can determine the address of the 1Gbytes of allocated memory,
either with SDA or with some native Fortran intrinsic, you would know
for sure.
(My last Fortran compiler was a Fortran 77 compiler, so I don't know
what memory support exists in the current HP Fortran compilers).
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980s technology to a 21st century world
More information about the Info-vax
mailing list