This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Memory for large arrays in cygwin/g77


I have similar problem than the one posted a while ago in

http://www.cygwin.com/ml/cygwin/2003-02/msg00842.html

Using cygwin/g77, in a PC with 1024 Mb of physical memory. 
After compiling and running the following test program 
the limit of 160 Mb cannot be surpassed. 

implicit double precision (a-h,o-z)
c ny=200 works (160 Mb), > 200 doesnt (message error see beloww)
parameter(nx=100000,ny=300)
dimension a(nx,ny)
c dimension a1(nx,ny)
write(6,*) 'megabytes= ',nx*ny*8/1d6
a(1,1)=1d0
a(nx,ny)=1d0
write(6,*) 'extremes initialized'
end

error message after running
C:\cygwin\home\dchialvo\test.exe (1972): *** MapViewOfFileEx(0x71C, in_h 
0x71C) failed, Win32 error 6

I follow each one of the recomendation described here:

http://sources.redhat.com/ml/cygwin/2003-02/msg00234.html

setting the limit at 1024 Mb,etc, the registry shows that there
1024 allocated however the problem persist, 
no more than  160 mb can be allocated.

Any suggestions will be appreciatted

Dante Chialvo


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]