Skip to content
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

cache nexus testlist to save ~1s configuration time #3706

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

quantumsteve
Copy link
Contributor

Please review the developer documentation
on the wiki of this project that contains help and requirements.

Proposed changes

Describe what this PR changes and why. If it closes an issue, link to it here
with a supported keyword.

CMake configuration time is dominated by calls to execute_process that run a python script. Caching the output variable TESTLIST brings later configuration times from 6.3s to 5.3s.

Is there a better way to do this?

What type(s) of changes does this code introduce?

Delete the items that do not apply

  • Refactoring (no functional changes, no api changes)
  • Build related changes

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

Checklist

Update the following with a yes where the items apply. If you're unsure about any of them, don't hesitate to ask. This is
simply a reminder of what we are going to look for before merging your code.

  • Yes. This PR is up to date with current the current state of 'develop'

nexus/tests/CMakeLists.txt Outdated Show resolved Hide resolved
Signed-off-by: Steven Hahn <hahnse@ornl.gov>
@ye-luo
Copy link
Contributor

ye-luo commented Jan 6, 2022

Test this please

@ye-luo ye-luo enabled auto-merge January 6, 2022 16:27
@ye-luo ye-luo merged commit 5017f0d into QMCPACK:develop Jan 6, 2022
@quantumsteve quantumsteve deleted the cache_execute_process branch January 6, 2022 19:08
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