This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Fortran] Segfault using -fopenmp
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Alessandro Fanfarillo <fanfarillo dot gcc at gmail dot com>
- Cc: gfortran <fortran at gcc dot gnu dot org>
- Date: Tue, 17 Mar 2015 17:26:17 -0700
- Subject: Re: [Fortran] Segfault using -fopenmp
- Authentication-results: sourceware.org; auth=none
- References: <CAHqFgjWLNH2RZef481L5rcOkhTsJc+pBfP06G3=hYjhkDMoaSg at mail dot gmail dot com>
On Tue, Mar 17, 2015 at 05:15:32PM -0700, Alessandro Fanfarillo wrote:
> type user_type
> real :: value
> integer, dimension(30,30) :: array
> end type
>
> Compiling with -fdump-tree-original, with and without -fopenmp, the
> only difference I see is in a "static" declaration of the struct
> user_type var[100000]. I also tried to add openmp statements but I
> still get the segfault.
>
> Any suggestions?
>
You proabaly need to significantly increase your stack size:
(4+4*30*30)*1e5 = 344 MB
--
Steve