-
-
Notifications
You must be signed in to change notification settings - Fork 55
OC 1.9.0: allocatable component in derived type coarray can't be allocated #399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi Michael,
Does this mean you're building GCC and GFortran from source using the current GCC
So you're not using CMake, you're just typing I'm tempted to completely remove the Makefiles from the src tree, since I think they are used almost exclusively by Alessandro (@afanfa) and are not really intended for end users. |
Hi @MichaelSiehl, When I try to run your code locally using MPICH and OpenCoarrays (master) with GFortran/GCC 7.1 on MacOS, the program hangs. I'm still digging around a bit, but this does look like it's either a bug, or due to some yet to be implemented feature. @vehre any chance you could take a look at Michael's code? (https://github.com/MichaelSiehl/Coarray-with-Allocatable-Component-Example) |
@vehre Here is a minimalistic reproducer: program main
implicit none
type :: nonsymmetric
real, dimension(:), allocatable :: arr
end type
type(nonsymmetric), codimension[*] :: parent_obj
sync all
if (this_image() == 2) then
allocate(parent_obj%arr(3))
end if
sync all
if (this_image() == 1) then
print*, 'Image 2 has size ', size(parent_obj[2]%arr), ' asymmetric allocation'
end if
end program Any ideas why this hangs? Tested with master @ 232d234 |
@zbeekman please do not remove the Makefile. I know several users that rely on that and they would not be happy to deal with CMake. |
I've confirmed this bug happens using CMake too, so it's not the Makefile's fault 😄 |
@afanfa would it be acceptable to keep the Makefiles in the git repo, but exclude them from release archives? That way most users who get official releases won't be tempted into running |
Hi Zaak, |
There is a branch now issue-399 which addresses the issue for gcc 7+ unfortunately does is break some things on gcc 6.x. Still investigating. |
I have found that there are almost as many preferred installation methods as there are users. While we can't provide every installation method to every user, keeping the Makefile in the repository but out of releases seems like a good compromise. Thanks for the suggestion, @afanfa. We might need to hang a sign on the Makefile that says, "Abandon all hope, ye who enter here." ;) |
Uh oh!
There was an error while loading. Please reload this page.
Defect/Bug Report: OpenCoarrays 1.9.0: allocatable component in derived type coarray can't be allocated#
Are allocatable components in derived type coarrays are really supported with the current OpenCoarrays 1.9.0 master download? I tried it out but the allocate statement itself does (seem to) crash the application. I have a small example program here: https://github.com/MichaelSiehl/Coarray-with-Allocatable-Component-Example
The following ALLOCATE statements did crash my example program:
ALLOCATE (Coarray_Object % reaDataArray (LBOUND (reaDataArray, DIM=1) : UBOUND (reaDataArray, DIM=1)))
and also the simpler form
ALLOCATE (Coarray_Object % reaDataArray (1 : 2))
did crash my example program. Therefore, it must be the ALLOCATE statement itself that makes the program hang.
1.9.0, the current master
gfortran 8.0.0
gcc 8.0.0
make
MPICH 3.2
Linux Ubuntu 14.04 on an intel icore, 4 cores
The text was updated successfully, but these errors were encountered: