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

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

candyhe
Principiante
2.059 Visualizações
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 Respostas
TimP
Colaborador honorário III
2.059 Visualizações
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
Funcionário
2.059 Visualizações
/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
Principiante
2.059 Visualizações
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
Contribuidor valorado II
2.059 Visualizações

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

Les

Steven_L_Intel1
Funcionário
2.059 Visualizações
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
Principiante
2.059 Visualizações

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

Responder