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.

Matrix size overflow

Pablo_Guerron
Beginner
906 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
906 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
906 Views
0 Kudos
Pablo_Guerron
Beginner
906 Views
Thanks, can you tell me how to increase the stack size?
0 Kudos
tropfen
New Contributor I
906 Views
project properties > Linker property > System > Stack Reserve Size
0 Kudos
John_Campbell
New Contributor II
906 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