You need to increase the stack for both the master thread (on linux that would be with the limit or ulimit command) and for the slave threads (if you are using OpenMP V3.0, that would be through the environment variable OMP_STACKSIZE).
Up vote 0 down vote favorite share g+ share fb share tw.
I have an existing fortran code which is compiled using mpif90. It compiles and runs successfully. But when I introduce -fopenmp option mpif90 compiler compiles the code successfully but the program fails to run to completion.
It abruptly quits before entering a subroutine. Seems like the stack is full so the program quits abruptly. The manpages say that -fopenmp will allocate arrays on stack and it is like using -frecursive flag.
How do I proceed with this problem and what -frecursive flag? Openmp link|improve this question asked Jun 22 '11 at 22:26Thiyagarajan Chockalingam1.
I tried setting the stack size but that didn't help. I went upto a maximum of 500mb – Thiyagarajan Chockalingam Jun 22 '11 at 23:06 Another strange problem I found was when I run the program using 1 mpi task the program fails. But when I tried to use 2 mpi tasks the programs runs to completion.
– Thiyagarajan Chockalingam Jun 22 '11 at 23:14.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.