This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: OpenMP - segfault if parallel do loop upper limit too high


On Mon, Apr 04, 2011 at 05:10:25PM +0100, mexas@bristol.ac.uk wrote:
>  I've this OMP fortran program, which I adapted from
>  https://computing.llnl.gov/tutorials/openMP/index.html#DO

(code elided)

>  I build and run it as (dual CPU FreeBSD ia64 9.0-current):
> 
>  TZAV gfortran45 -o try2.sx try2.f90 -static -fopenmp

You should probably remove -static.  ISTR an issue with
-static and openmp, but cannot remember the details.

>  TZAV ./try2.sx
>   HELLO FROM THREAD           0
>   NUMBER OF THREADS           2
>   HELLO FROM THREAD           1
>    300000.00
>  TZAV
> 
>  However, if I increase N to N=1000000, I get segfault:
> 
>  TZAV ./try2.sx
>  Segmentation fault (core dumped)

troutmask:kargl[201] limits
Resource limits (current):
  cputime              infinity secs
  filesize             infinity kB
  datasize              8388608 kB
  stacksize             1048576 kB

What is your stacksize limit set to?

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]