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 have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

Matrix size overflow

Pablo_Guerron
Beginner
929 Views
Hi,
My project includes a large matrix (30000x200x20). During compilation I get the error
fatal error LNK 1248: image size exceeds maximum allowable size (80000000)
If the matrix size is 20000x200x20, no problem at all.The system is Windows 7 with intel fortran 11.038 (64 bit). Any suggestion?
Pablo
0 Kudos
5 Replies
simonwoodward
Beginner
929 Views
Do you need to increase the stack size? This is a compilar option.
I had to do this for my project, which has many large arrays.
0 Kudos
mecej4
Honored Contributor III
929 Views
0 Kudos
Pablo_Guerron
Beginner
929 Views
Thanks, can you tell me how to increase the stack size?
0 Kudos
tropfen
New Contributor I
929 Views
project properties > Linker property > System > Stack Reserve Size
0 Kudos
John_Campbell
New Contributor II
929 Views
The solution is not to increase the stack size, but use ALLOCATE to declare the array, eg

real*8, allocatable, dimension(:,:,:) :: matrix ! declaration statement

ALLOCATE ( matrix(30000,200,20) ) ! allocate statement

If I interpret the TYPE of the matrix you are declaring, it is not too large, but this isthe best way to declare large arrays.

0 Kudos
Reply