Update Variorum Service to use Energy API.#579
Draft
tpatki wants to merge 18 commits intollnl:masterfrom
Draft
Conversation
e13c1d0 to
06ee911
Compare
Member
Author
|
Note: Once llnl/variorum#575 is addressed, we will update the Caliper service to support nested regions in a separate PR. |
Member
Author
|
@daboehme This is ready for your review. Please let me know if I missed something. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes llnl/variorum#572.
Problem:
The existing Variorum service in Caliper uses the
variorum_get_power_jsonAPI, which only returns instantaneous power. This is not meaningful when we are looking at function start/end.Solution:
What we'd like instead is total energy for the function. With Variorum v0.8, we have added the
variorum_get_energy_jsonAPI. This PR updates the existing service to use this newly added API.This PR supersedes #567 from @tjeter.
Limitations and future work:
This version of the service will not support nested regions in Caliper. Once llnl/variorum#575 is addressed, we will update the Caliper service to support nested regions in a separate PR.
Testing:
This PR as been tested with multiple caliper examples (
examples/apps/c-spinloop-example) by @rountree and @tpatki on Lassen. This new spinloop example has also been added to the PR.ToDo:
m.delta_attr.Co-authored by @tjeter.