Skip to content

Add option to programmatically merge CallGraph threads on construct#253

Open
benghaem wants to merge 2 commits intofacebookresearch:mainfrom
benghaem:export-D75534398
Open

Add option to programmatically merge CallGraph threads on construct#253
benghaem wants to merge 2 commits intofacebookresearch:mainfrom
benghaem:export-D75534398

Conversation

@benghaem
Copy link
Contributor

Summary:
We'd like the CallGraph to merge the forward and backward threads for ease of processing downstream.

This diff adds an option to pass a callable (rank, thread_id) -> thread_id that allows mapping multiple threads into a single output thread in the call graph

Differential Revision: D75534398

benghaem added 2 commits May 29, 2025 11:05
Summary:

Adds a new singleton class HTAEnvOptions that contains the environment configuration for HTA and allows setting the options from a python API as well.

This diff makes it easier to use HTA as a library when one of these options need to be set.

Differential Revision: D75534399
Summary:
We'd like the CallGraph to merge the forward and backward threads for ease of processing downstream. 

This diff adds an option to pass a callable (rank, thread_id) -> thread_id that allows mapping multiple threads into a single output thread in the call graph

Differential Revision: D75534398
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels May 29, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75534398

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants