Skip to content

Don't Allow Profiling Thread to pick up wrong config #1076

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sraikund16
Copy link
Contributor

@sraikund16 sraikund16 commented Apr 14, 2025

Summary:
Now that we have two types of on-demand threads accepting requests (GPU Traces + Memory Snapshots) we need to lock out one thread from using another's request. Right now there is a possibility that a user does memory profiling then gpu trace profiling which will cause the second trace to be invalid.

NOTE: To get both types of requests working in a single run, we will need a follow up diff in which both threads can be instantiated and tracked. Currently, if we make one type of thread, we don't allow the controller to make another. This diff is an incremental step towards getting both to work.

Differential Revision: D72980123

@facebook-github-bot
Copy link
Contributor

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

Summary:

Now that we have two types of on-demand threads accepting requests (GPU Traces + Memory Snapshots) we need to lock out one thread from using another's request. Right now there is a possibility that a user does memory profiling then gpu trace profiling which will cause the second trace to be invalid.

NOTE: To get both types of requests working in a single run, we will need a follow up diff in which both threads can be instantiated and tracked. Currently, if we make one type of thread, we lock out the other. This diff is an incremental step towards getting both to work.

Differential Revision: D72980123
@facebook-github-bot
Copy link
Contributor

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

@sraikund16 sraikund16 requested a review from aaronenyeshi April 14, 2025 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants