Skip to content

Move compile-time error to runtime when variant doesn't include something - #671

Open
adamdempsey90 wants to merge 2 commits into
mainfrom
dempsey/variants
Open

adamdempsey90 wants to merge 2 commits into
mainfrom
dempsey/variants

Conversation

@adamdempsey90

Copy link
Copy Markdown
Collaborator

PR Summary

This let's a downstream code define a different variant that doesn't contain every modifier and get the code to compile. Previously, we would fail at compile-time even if the modifier is never used by the host. This moves the error to runtime if the host tries to use it.

PR Checklist

  • Adds a test for any bugs fixed. Adds tests for new features.
  • Format your changes by using the make format command after configuring with cmake.
  • Document any new features, update documentation for changes made.
  • Make sure the copyright notice on any files you modified is up to date.
  • After creating a pull request, note it in the CHANGELOG.md file.
  • LANL employees: make sure tests pass both on the github CI and on the Darwin CI
  • If ML was used, make sure to add a disclaimer at the top of a file indicating ML was used to assist in generating the file.
  • If Agentic AI was used, have the AI generate a "proposed changes" markdown file and store it in the plan_histories folder, with a filename the same as the MR number.

If preparing for a new release, in addition please check the following:

  • Update the version in cmake.
  • Move the changes in the CHANGELOG.md file under a new header for the new release, and reset the categories.
  • Maintainers: ensure spackages are up to date:
    • LANL-internal team, update XCAP spackages
    • Current maintainer of upstream spackages, submit MR to spack

… runtime error. This lets a downstream consumer define a different variant without all of the modifiers or eoss.

This branch has not been deployed

No deployments
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