Skip to content

native-multi-image: Add coverage for IMAGE_STATUS, FAILED_IMAGES, STOPPED_IMAGES - #396

Merged
bonachea merged 4 commits into
BerkeleyLab:mainfrom
bonachea:native-image-status
Dec 2, 2026
Merged

bonachea merged 4 commits into
BerkeleyLab:mainfrom
bonachea:native-image-status

Conversation

@bonachea

@bonachea bonachea commented Dec 1, 2026

Copy link
Copy Markdown
Member

No description provided.

LOCK_TYPE, NOTIFY_TYPE and (until recently) EVENT_TYPE are not yet PRIF
compliant in flang, but the corresponding multi-image features are also not yet
implemented in those flang versions, so this has no practical effect.

Testing for things we know are not yet properly implemented just generates
scary-looking error messages that might confuse end users, with no real benefit.
…PPED_IMAGES

Also define all the image query knobs together
@bonachea
bonachea force-pushed the native-image-status branch from 371816c to 4a3a8bf Compare December 1, 2026 22:52
@bonachea
bonachea requested a review from ktras December 1, 2026 22:53

@ktras ktras left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one nitpick on a comment and some feedback on the macro setup that may or may not be important to change. Other than that, looks great!

Comment thread app/native-multi-image.F90 Resolved
Comment thread app/native-multi-image.F90 Resolved
Comment thread app/native-multi-image.F90 Resolved
Comment thread app/native-multi-image.F90 Resolved
Comment thread app/native-multi-image.F90 Resolved
Comment thread app/native-multi-image.F90 Resolved
Comment thread app/native-multi-image.F90 Resolved
Comment thread app/native-multi-image.F90 Resolved
* Make the new _TEAM defines depend on the feature instead of HAVE_IMAGE_QUERY
* Remove the duplicate zero-argument tests of {STOPPED,FAILED}_IMAGES inside the CHANGE TEAM

Co-authored-by: Katherine Rasmussen <krasmussen@lbl.gov>
@bonachea
bonachea requested a review from ktras December 2, 2026 19:53
@bonachea

bonachea commented Dec 2, 2026

Copy link
Copy Markdown
Member Author

@ktras Thanks for your careful review! I've applied your suggestions and this is ready for re-review while testing completes.

@ktras ktras left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but there seems to be a couple CI failures due to server issues.

An apparent CCE defect in the implementation of event coarray allocation was
causing intermittent hangs within the subtest:

"Testing event post / event wait (allocatable array)..."

Based on a debugger it appears to be caused by a race between
default initialization of event_type within coarray allocation on
image 1, and event posts from other images. The standard mandates
synchronization after ALLOCATE and before any subsequent statement
so there should be no race possible here, but CCE does not appear
to correctly enforce that. Adding a barrier (that should be
redundant/superfluous) is sufficient to workaround the defect in testing.
@bonachea
bonachea force-pushed the native-image-status branch from 76ef39b to 7abc4dd Compare December 2, 2026 21:51
@bonachea
bonachea merged commit 4f1ab76 into BerkeleyLab:main Dec 2, 2026
1 of 62 checks passed
@bonachea
bonachea deleted the native-image-status branch December 2, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants