Skip to content

Gpu trunk prepatory cmake#3

Merged
ubulling merged 7 commits into
CompFUSE:masterfrom
PDoakORNL:GPUTrunk_prepatory_cmake
Aug 19, 2018
Merged

Gpu trunk prepatory cmake#3
ubulling merged 7 commits into
CompFUSE:masterfrom
PDoakORNL:GPUTrunk_prepatory_cmake

Conversation

@PDoakORNL

Copy link
Copy Markdown
Contributor

This collects a number of minor changes to the cmake build, supporting later work.

@jenkins-cscs

Copy link
Copy Markdown

Can I test this patch?

@ubulling

ubulling commented Aug 16, 2018

Copy link
Copy Markdown
Contributor

test this please

@gbalduzz

Copy link
Copy Markdown
Contributor

I removed the reference to our group directory in summit.cmake, as all the necessary packages should now be available.

@PDoakORNL

Copy link
Copy Markdown
Contributor Author

Someone from a non ORNL site should approve and then we’ll merge

TODO: shell program to prevent directory tree mistakes building PR's
@ubulling

Copy link
Copy Markdown
Contributor

test this please

@ubulling ubulling left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ready to be merged if tests pass.

@ubulling

Copy link
Copy Markdown
Contributor

retest this please

@ubulling ubulling merged commit 12c6c12 into CompFUSE:master Aug 19, 2018
PDoakORNL referenced this pull request in PDoakORNL/DCA-2 Oct 22, 2020
PDoakORNL added a commit that referenced this pull request Jun 14, 2021
PDoakORNL pushed a commit that referenced this pull request Jun 5, 2026
A DCA++ executable is compiled for one model and reads one "*-model"
section. Previously a typo'd or missing model section was silently
ignored: ModelParameters::readWrite swallows the missing-group exception
and the run proceeds on default model parameters.

Detect this at parse time, while the parsed tree is still live:
  * Instrument the JSON reader to track which top-level groups were
    read.
    JSONObject gains a mutable accessed_ flag (set on successful
    getGroup); JSONGroup::childGroupAccess() / JSONReader::
    topLevelGroupAccess() report {name, accessed} as ChildGroupStatus.
    getGroup also switched from operator[] to find(), so a lookup miss
    no
    longer inserts a null entry.
  * Add checkModelSections (model_section_check.hpp), a standalone
    helper
    invoked from readInput for the JSON path. It reacts to three cases:
      - typo / wrong file (model section present, none read) -> throw
        std::invalid_argument;
      - multi-model file (built model read, others present) -> warn;
      - no model section at all -> warn, so model-agnostic uses of
        Parameters keep working.

The check is compile-time guarded to JSONReader, since the HDF5
reader does not implement a model-section input guard (justified,
since HDF5 input is, presumably, machine-generated.

Tests: reader-level access tracking in json_reader_test, and unit
coverage of all checkModelSections branches in a new
model_section_check_test.
PDoakORNL added a commit that referenced this pull request Jun 5, 2026
detect model-section input mistakes (issue #300 bugs #2 & #3)
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.

4 participants