Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29611 ディスカッション

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

candyhe
ビギナー
2,055件の閲覧回数
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 件の賞賛
6 返答(返信)
TimP
名誉コントリビューター III
2,055件の閲覧回数
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).
Steven_L_Intel1
従業員
2,055件の閲覧回数
/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.
candyhe
ビギナー
2,055件の閲覧回数
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.
Les_Neilson
高評価コントリビューター II
2,055件の閲覧回数

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

Les

Steven_L_Intel1
従業員
2,055件の閲覧回数
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.
candyhe
ビギナー
2,055件の閲覧回数

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

返信