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

enable diagnostic counters without debug #782

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

mjmac
Copy link
Contributor

@mjmac mjmac commented Feb 11, 2025

In some cases, it may be useful to enable the counters without
enabling the full debugging configuration.

Signed-off-by: Michael MacDonald mjmac@google.com

Copy link

github-actions bot commented Feb 11, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@mjmac
Copy link
Contributor Author

mjmac commented Feb 11, 2025

I have read the CLA Document and I hereby sign the CLA

@mjmac
Copy link
Contributor Author

mjmac commented Feb 11, 2025

@soumagne: Are these build failures expected? Glancing through them, it seems like an environmental issue (can't find MPI compiler?).

CMakeLists.txt Outdated
@@ -175,10 +175,22 @@ endif()
option(MERCURY_ENABLE_DEBUG "Enable debug statements." OFF)
if(MERCURY_ENABLE_DEBUG)
set(HG_HAS_DEBUG 1)
set(HG_HAS_DIAG 1)
Copy link
Member

Choose a reason for hiding this comment

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

I think here you should do instead (so that there is no conflict with the value of HG_HAS_DIAG):

  # Always enable counters if debug is turned ON
  set(MERCURY_ENABLE_COUNTERS "ON" CACHE BOOL "Enable diagnostics counters (enabled with debug)." FORCE)

@soumagne
Copy link
Member

@soumagne: Are these build failures expected? Glancing through them, it seems like an environmental issue (can't find MPI compiler?).

Yes, please rebase on top of latest master to pickup CI fixes. Also if you don't mind please add the prefix HG core: to your commit. Thanks!

@soumagne
Copy link
Member

(oh and last thing, because you've signed the CLA, you don't need to sign off the commit)

In some cases, it may be useful to enable the counters without
enabling the full debugging configuration.
Copy link
Member

@soumagne soumagne left a comment

Choose a reason for hiding this comment

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

looks good, thanks!

@soumagne soumagne merged commit d2e5de9 into mercury-hpc:master Feb 11, 2025
21 of 22 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants