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

Use parent frame indiscriminately in nested provenance #666

Merged
merged 3 commits into from
Apr 11, 2023

Conversation

manopapad
Copy link
Contributor

Currently, even if all nested calls to provenance-tracking functions are recorded, each level will record the same provenance string (*), since they all go all the way up to the first user-level frame. With this change, each time we record provenance we simply use the frame which called into the tracked function. This should be equivalent to the current behavior in cases where nesting is disabled, but should allow us to better track intra-library recursive calls if we want to.

Eventually we will want to be recording all the levels of nesting, in the machine-readable part of the provenance, not just the top or bottom.

(*) Technically if the calls switch between libraries, the stack walking will stop at each library switch, but that doesn't help if we're trying to track recursive calls within the same library.

@manopapad manopapad added the category:improvement PR introduces an improvement and will be classified as such in release notes label Apr 6, 2023
@manopapad manopapad requested review from magnatelee and bryevdv April 6, 2023 00:05
Co-authored-by: Bryan Van de Ven <bryan@bokeh.org>
@manopapad manopapad merged commit 21d71f7 into nv-legate:branch-23.05 Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:improvement PR introduces an improvement and will be classified as such in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants