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

forrt1: sever <170>: Program Exception - stack overflow

candyhe
Beginner
2,053 Views
I got this error message when I increased my meshes for calculation. I tried the /heap-arrays tip, but it seems doesn't work in the 10.1.021 version. How to expand the stack size? Is it still 1MB by default?
0 Kudos
6 Replies
TimP
Honored Contributor III
2,053 Views
Defaults depend on your Windows version, and possibly on whether you mean thread stack, if you used OpenMP or Qparallel. For OpenMP, you would use KMP_STACKSIZE (environment variable or function call).
0 Kudos
Steven_L_Intel1
Employee
2,053 Views
/heap-arrays should work.

You can increase the stack size by setting the project property Linker > System > Stack reserve size. If you cannot resolve this, please send an example showing the problem to Intel Compiler Support.
0 Kudos
candyhe
Beginner
2,053 Views
I increased the stack size and it works! Hooray! But the /heap-arrays doesn't seem to work. I got the linking warning like this: LINK: Warning LNK4044: unrecognized option '/heap-arrays'; ignore. I set it in project property Linker > Command Line > Additional Options. Is that right? Thanks, Steve.
0 Kudos
Les_Neilson
Valued Contributor II
2,053 Views

I think it should be added to the Fortran > Command Line > Additional options

Les

0 Kudos
Steven_L_Intel1
Employee
2,053 Views
Les is correct, this is a compiler option, not linker. However, you can set it in the IDE directly. Fortran > Optimization > Heap Arrays. Enter 0 in the field.
0 Kudos
candyhe
Beginner
2,053 Views

Thanks, Les and Steve. It's really helpful.

0 Kudos
Reply