Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

program exception-stack overflow

moh_sayedal
Beginner
697 Views

I'm using the Intel Fortran Compiler on a Windows xp Edition x64 SP2 (processor at 2.83 GHz and with 16 GB of RAM). I'm compiling the code using the x64 option.
I'm tried to allocate up to 8 GB of memory using stack reserve size. I'm not able to allocate more than 2 GB as whenever the total dimension of the common block is greater than about 16 GB, I get the message "program exception-stack overflow".

Any suggestion? Thank you.

0 Kudos
1 Reply
Steven_L_Intel1
Employee
697 Views
2GB is the absolute max for stacksize - this is a Windows limitation. Try building with /heap-arrays to cause array temps to be allocated dynamically. You may also want to see if you can figure out how to avoid having stack temps created in the first place - in some cases you may not be able to that.
0 Kudos
Reply