This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: The size of thread level storage under OpenMP.
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: Jakub Jelinek <jakub at redhat dot com>, gfortran <fortran at gcc dot gnu dot org>
- Date: Fri, 23 May 2008 22:54:28 +0200
- Subject: Re: The size of thread level storage under OpenMP.
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <483722E6.5010908@moene.indiv.nluug.nl> <48372829.7080307@net-b.de>
Tobias Burnus wrote:
Toon Moene wrote:
I have an OpenMP enabled Fortran program that dies a quick death when
compiled with -fopenmp
A classical problem with OpenMP is that one runs out of stack memory.
The current stack setting can be queried using the sh/bash using "ulimit
-s" and using the (t)csh using "limit stacksize". Try to set it to
"unlimited". Often systems limit the available stack memory; A soft
limit of 8192 kbytes is a typical value under Linux.
We already set ulimit -s to unlimited (since times premordial) because
all of our local arrays are automatic arrays).
This cannot be the problem. The code runs fine if I replace -fopenmp
with -frecursive.
Cheers,
--
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.indiv.nluug.nl/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/ml/gcc/2008-01/msg00009.html