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

debug: add MPIR_thread_id() #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

debug: add MPIR_thread_id() #14

wants to merge 2 commits into from

Conversation

hzhou
Copy link
Owner

@hzhou hzhou commented May 26, 2021

Pull Request Description

Author Checklist

  • Provide Description
    Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
  • Commits Follow Good Practice
    Commits are self-contained and do not do two things at once.
    Commit message is of the form: module: short description
    Commit message explains what's in the commit.
  • Passes All Tests
    Whitespace checker. Warnings test. Additional tests via comments.
  • Contribution Agreement
    For non-Argonne authors, check contribution agreement.
    If necessary, request an explicit comment from your companies PR approval manager.

It is often needed to track threads during debugging and the system
level thread_id is difficult to use. Create a 0-based internal thread_id
to facilitate thread-tracking and debugging.

The thread_id potentially can also be used for occasional hashing based
performance experiments.
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

Successfully merging this pull request may close these issues.

1 participant