Skip to content

Generate a warning (or two?) for stencil-distributed arrays of owned classes #27454

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bradcray
Copy link
Member

@bradcray bradcray commented Jun 27, 2025

This follows up on a suggestion made by Lydia to generate a warning when creating a Stencil-distributed array, because calling the updateFluff() method on such an array has the effect of turning array elements into 'nil' values when they are copied into their neighbor's caches (fluff) since the ownership will be transferred.

For some reason that I didn't have time to investigate, this generates two warnings rather than one for a simple program. At present, my thought is that two is better than zero. :)

…classes

This follows up on a suggestion [made by
Lydia](https://chapel.discourse.group/t/unable-to-compile-pure-virtual-method-called/43307/15?u=bradcray)
to generate a warning when creating a Stencil-distributed array,
because calling the updateFluff() method on such an array has the
effect of turning array elements into 'nil' values when they are
copied into their neighbor's caches (fluff) since the ownership will
be transferred.

For some reason that I didn't have time to investigate, this generates
two warnings rather than one for a simple program.  At present, my
thought is that two is better than zero.  :)

---
Signed-off-by: Brad Chamberlain <bradcray@users.noreply.github.com>
@bradcray bradcray changed the title Generate a warning (or two?) for stencil-distributed arrays of owned … Generate a warning (or two?) for stencil-distributed arrays of owned classes Jun 27, 2025
@bradcray
Copy link
Member Author

@lydia-duncan : Would you be up for reviewing this?

Copy link
Member

@lydia-duncan lydia-duncan left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

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