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

stack overflow

antfu
Beginner
290 Views
Dear all,

I wonder how I can increase the stack size in my Intel Fortran 11.1 professional ?

Thanks
0 Kudos
3 Replies
Steven_L_Intel1
Employee
290 Views
First suggestion is to set the project property Fortran > Optimization > Heap Arrays to 0 (zero).

If that doesn't help, then the stack size is set by property Linker > System > Stack Reserve Size. The default is 1000000 (one million bytes), so start with 100,000,000 and see where that gets you.
0 Kudos
TimP
Honored Contributor III
290 Views
The primary stack size is controlled by Visual Studio options such as /link /stack: and the corresponding options in Visual Studio project linker properties (or by editbin ....). If you are using /Qopenmp or /Qparallel, there is also per thread stack, for which you would look up kmp_stacksize.
0 Kudos
antfu
Beginner
290 Views
Thanks for your reply and instruction. I will try that .
0 Kudos
Reply