-
-
Notifications
You must be signed in to change notification settings - Fork 55
Incorrect shape of coindexed multidimensional array component #511
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
@gutmann I'm tagging you so you'll get updates on this issue. Notice that this issue occurs with all versions tested, including 6.4.0. Either the error creeped in after 6.3.0 or we luckily circumvented it or we had an undetected, silent failure. |
@scrasmussen The send-get/alloc_comp_multidim_shape.F90 unit test provides a more comprehensive test of the feature required to close this issue. |
Just an update on where I am, I think @vehre were you seeing any strange array indexing behavior with your fixes? Anyway I'll work on the indexing but wanted to give an update because this bug might pop up in other issues. OpenCoarrays Version: 3d485ea Compiled and ran the following program with
|
@scrasmussen are you building using OpenCoarrays from 3d485ea or from 7d6d24f ? Master will not work with GCC >= 8 (at least not until we merge Andre's PR, but we need to clean it up to work with GFortran 7.1 - 7.3 first. |
This [alloc_comp_multidim_shape] test now passes with a patched GCC 8.1.0. Wow! Great work, @scrasmussen. I'm closing this issue. @gutmann This fixes one issue that was blocking Coarray ICAR, but my tests with a patched GCC 8.1.0 lead to a runtime error in the OpenCoarrays |
We may also have @neok-m4700 to thank in PR #531. I know he has been trouble shooting a lot of cobounds/codim issues recently, for which we are very grateful! Props to @scrasmussen too for all of his great work! |
Credit due where credit deserved, @vehre's changes fixed the [alloc_comp_multidim_shape]. Thanks for that! I'm reopening this issue since for any |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@afanfa I just put code online here demonstrating what we ultimate need to work once this issue gets fixed. If the code executes correctly, it prints "Test passed." Currently, Intel 18 compiler compiles the code correctly.
Sadly, this code generates an internal compiler error in |
The PR made by @neok-m4700 is not enough to fix this problem. In fact, the test code provided by @rouson generates an internal compiler error with the current gcc-trunk (10.0.1). |
Uh oh!
There was an error while loading. Please reload this page.
A future pull request will add a unit test that exposes this bug in a more complete way than the small reproducer below.
Defect/Bug Report
When compiled with GCC 6.4, 7.3, and 8.0.1, OpenCoarrays returns the incorrect shape of a coindexed variable even in single-image execution.
2.0.0-rc1-14-g3af39fa
install.sh
uname -a
:Linux sourcery-VirtualBox 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Observed Behavior
Expected Behavior
Steps to Reproduce
To reproduce this problem, the
shape
argument mustThis appears to be an OpenCoarrays bug and is unrelated to the compiler's
shape
intrinsic function. Any reference to a coindexed variable yields an array with incorrect extents. For example, if an array that meets the above criteria is assigned to a non-coarray allocatable array, the latter array acquires the wrong shape through automatic (re)allocation.CONTRIBUTING.md
The text was updated successfully, but these errors were encountered: