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

Expose API for creating sub-boxes on the profiler #960

Open
manopapad opened this issue Oct 21, 2024 · 1 comment
Open

Expose API for creating sub-boxes on the profiler #960

manopapad opened this issue Oct 21, 2024 · 1 comment
Assignees

Comments

@manopapad
Copy link
Contributor

These are the calls that will start a "sub-box" within a "parent box" on the profiler: https://gitlab.com/StanfordLegion/legion/-/blob/209675d6c3aeb5f74cc0f55fffae2e3ef34dec67/runtime/legion.h?page=9#L8531-8543

We want to expose it through the Scope class, for C++ and Python.

E.g. this feature could be used to separate out a part of a long-running task:

@task
def foo():
  # do stuff
  with Scope(...):
     # do stuff, that will appear under a sub-box within foo's overall box
  # do stuff
@magnatelee
Copy link
Contributor

One problem with how Scope is currently set up is that it's a global state maintained by the runtime. So, we need to keep track of Scopes for individual tasks so they won't get clobbered by each other.

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

No branches or pull requests

3 participants