- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I think this is novice-level question in Co-Array usage.
The test program below crashes...What am I missing? If the lines printing the variable OBJ from different imagesare commented out, it works. Thus, the bounds can be accessed and printed but not the values.
Abhi
=========
[fortran] Program Test Implicit None Type Base Integer, Allocatable :: M(:) End Type Base Type(Base) :: OBJ
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the compiler release notes section on Coarrays, there is a list of features known to not work. One of them is:
Coarrays of derived type where the type contains an ultimate component that is ALLOCATABLE or POINTER
You have coarray OBJ which is of derived type with an ultimate ALLOCATABLE component, and are running into this problem. Some aspects of it may work, others do not.
While your program doesn't quite do this, another feature listed as not working is:
Output (WRITE, PRINT, etc.) of an array slice of a coarray referencing another image. A whole array reference, or a single element works.
This will be resolved in a future version - we apologize for the inconvenience.
Coarrays of derived type where the type contains an ultimate component that is ALLOCATABLE or POINTER
You have coarray OBJ which is of derived type with an ultimate ALLOCATABLE component, and are running into this problem. Some aspects of it may work, others do not.
While your program doesn't quite do this, another feature listed as not working is:
Output (WRITE, PRINT, etc.) of an array slice of a coarray referencing another image. A whole array reference, or a single element works.
This will be resolved in a future version - we apologize for the inconvenience.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oops. Thanks and my sincere apologies, Steve,for not reading the release notes first. It is very good that IVF is putting in the CoArrays.
Abhi
Abhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
As per the release notes of update 6 I thought that this will work. However, it does not.
If I replace the print out inside the do loop to "print *, OBJ%M" i.e whole-array statement it works (as mentioned in the release note". However, as is i.e. referencing an element does not work.
Also, no matter which way I do the above, the program seems to crash. That is, I get "program has stopped working" dialogue pops up.
Did I mistakenly assume that this issue was fixed by update 6?
Abhi
As per the release notes of update 6 I thought that this will work. However, it does not.
If I replace the print out inside the do loop to "print *, OBJ
Also, no matter which way I do the above, the program seems to crash. That is, I get "program has stopped working" dialogue pops up.
Did I mistakenly assume that this issue was fixed by update 6?
Abhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I too would have thought this should work. I'll let the developers know.
I find that the results are unpredictable. In tests I did, sometimes it would work, sometimes I'd get zero values and sometimes the processes would go CPU bound. This was with either the whole array or elements. Escalated as DPD200173725.
I find that the results are unpredictable. In tests I did, sometimes it would work, sometimes I'd get zero values and sometimes the processes would go CPU bound. This was with either the whole array or elements. Escalated as DPD200173725.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am told that this is fixed for an update later this year, probably October.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page