- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, can you tell me how to increase the stack size?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
project properties > Linker property > System > Stack Reserve Size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page