Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

insufficient virtuell memory during open statement

tropfen
New Contributor I
700 Views
Hello,

i came across a strange behavior i can not understand.

i have a application using 767660K virtual memory (according to the task manager). I would like to open a file using the following statement:

open( 10,file=..., access="direct",recl=192690800,action="read")

At this statement the programm stops showing the error:

forrtl: severe(41): insufficient virtual memory

Does a open statement need any additional memory?

I have the following pc configuration
WIN XP Prof
2GByte RAM
IVF 10....26
VS2005 German

thanks in advance for any help.

Frank
0 Kudos
3 Replies
TimP
Honored Contributor III
700 Views
Yes, OPEN, and many other run-time functions, grab a little more dynamic memory (maybe a great deal, for such an abnormally large recl value).
0 Kudos
tropfen
New Contributor I
700 Views
Thanks for the information.

what size of memory is needed? How can i calculate the needed size?

Thanks in advance
Frank
0 Kudos
Steven_L_Intel1
Employee
700 Views
The RTL allocates a buffer the size of the record specified, which for an unformatted file is RECL*4, unless you also set /assume:byterecl.
0 Kudos
Reply