STEllAR-GROUP / hpx

The C++ Standard Library for Parallelism and Concurrency
https://hpx.stellar-group.org
Boost Software License 1.0
2.51k stars 427 forks source link

Allow HPX counters to be requested before they are registered #4627

Open khuck opened 4 years ago

khuck commented 4 years ago

Expected Behavior

The current HPX counter interface expects that all counters are registered during HPX initialization. However, in order for APEX to share counters with HPX, APEX won't register the counter until the first time it is sampled (APEX doesn't know about it's existence before then). Registering and measuring the counter is fine, but there's no way to request the counter on the command line because the counter names have to match at program startup.

Actual Behavior

Would like to be able to run:

/dev/shm/khuck/hpx/install/bin/fibonacci --n-value 20 --hpx:print-counter-at shutdown --hpx:print-counter=/apex/*

...and have HPX print counters that were registered after startup be printed at exit.

Steps to Reproduce the Problem

... Please be as specific as possible while describing how to reproduce your problem.

  1. Configure HPX with APEX enabled
  2. request HPX counters on the command line that aren't registered during startup

Specifications

... Please describe your environment

hkaiser commented 4 years ago

This can be potentially achieved by supplying your own counter discoverer function. I'll try to put together an example demonstrating its use for delayed counter registration.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.