Subject: large array, fortran 90, SGI compiler

From: Wang Xiaogang <[email-masked]>
Date: Fri, 10 Mar 2000 14:12:35 -0500

Dear CCLers,

 The question is about how to handle large array in fortran 90.
 
 An example:
 
 program
 real*8 a(10000,10000)  ! an 800MB array
 common /test/a
 end

 However on one SGI origin2000, MIPSpro Fortran 90 Version 7.3,
the compiling fails.

 On another SGI origin2000, Ragnarok Compilers: Version 6.2,
the compiling passes.
 It also passes on DEC Alpha with Digital f90 compiler.

 It seems that the SGI f90 compiler (version 7.3) puts the common block
data to the stack segment instead of data segment. The error message
is 'exceeds 268,435,455 bytes, the maximum storage size available'

Any hints? Thanks.

Xiaogang

------------------------------------------------
Dr Xiaogang Wang 
Departement de chimie 
Universite de Montreal
C.P. 6128, succursale Centre-ville
Montreal, Quebec H3C 3J7

Tel. (514) 3436111 ext. 3947 (office)
FAX  (514) 3437586 (office)
e-mail: [email-masked]
http://physchem.ox.ac.uk/~xgwang/
------------------------------------------------