Skip to content

Conversation

@wthrowe
Copy link
Member

@wthrowe wthrowe commented Jul 14, 2025

This does not update containers, CI, or clusters, just the docs and cmake files.

Proposed changes

Upgrade instructions

Charm version 8 is now recommended over version 7, but 7 is still supported for applications not using dynamic h-refinement or similar post-startup element creation.

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

Parallel::number_of_procs<size_t>(cache) > 1) {
ERROR_NO_TRACE(
"Dynamically creating elements in parallel executables is broken "
"until charm 8.");
Copy link
Member

Choose a reason for hiding this comment

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

It's not quite this bad, is it? I've been using AMR with h-refinement in a separate phase in elliptic executables for a while now with no issues.

Copy link
Member Author

Choose a reason for hiding this comment

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

@kidder Do you know what operations can trigger the hang?

Copy link
Member

Choose a reason for hiding this comment

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

I believe it occurs when one of the initial elements is destroyed and then recreated in a later iteration on a PE other than PE 0. If the current elliptic code usage only refines, and never coarsens, this condition won't occur.

See https://github.com/kidder/charm_spectre_tests/tree/main/dynamic_array_hang

Copy link
Member

Choose a reason for hiding this comment

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

The elliptic code only refines, yes.

Copy link
Member

Choose a reason for hiding this comment

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

okay, then probably only erroring in CreateParent would be adequate

Copy link
Member Author

Choose a reason for hiding this comment

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

I've dropped the changes to CreateChild.

nilsdeppe
nilsdeppe previously approved these changes Jul 24, 2025
Copy link
Member

@nilsdeppe nilsdeppe left a comment

Choose a reason for hiding this comment

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

Larry and Nils, any followup on the discussion so we can merge this?

@kidder kidder merged commit 68dce62 into sxs-collaboration:develop Aug 18, 2025
42 of 48 checks passed
@nilsvu nilsvu added the build system CMake build system label Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build system CMake build system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants