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: [Fortran] Segfault using -fopenmp


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


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