[mpich-discuss] MPI / openmp - big static arrays fortran
Jan Wittke
wittke at geo.uni-koeln.de
Sun Mar 15 05:25:23 CDT 2015
Hi,
I have a strange problem. When I compile this code:
module user
implicit none
type user_type
real :: value
integer, dimension(30,30) :: array
end type
end module
program test_mpi
use user
implicit none
integer, parameter :: num = 1e5
type(user_type), dimension(num) :: var
var(1)%value = 19.
write(*,*) var(1)%value
end program
with gfortran and run it there is no problem.
Now If I compile this program with
mpifort -fcoarray=lib -fopenmp testmod.f95 -lcaf_mpi
and run it with
mpirun -np 1 ./a.out
I got an error Segmentation fault (signal 11)
Now if if compile it with
mpifort -fcoarray=lib testmod.f95 -lcaf_mpi
everything is fine.
Why is it a problem to add the option -fopenmp with this code?
Doing some web searches suggests that using big static array
will not work .
Thanks
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20150315/9f8c9e1d/attachment.html>
-------------- next part --------------
_______________________________________________
discuss mailing list discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss
More information about the discuss
mailing list