Skip to content

Conversation

@huydhn
Copy link
Contributor

@huydhn huydhn commented Sep 19, 2024

Fixes #132331

We need another barrier here to ensure that the main thread doesn't stop the profiler while other threads are still using it (and crash). I can reliably reproduce the issue with pytest -v test/profiler/test_cpp_thread.py -k test_profile_memory --flake-finder.

Testing

pytest -v test/profiler/test_cpp_thread.py --flake-finder all passes.

cc @robieta @chaekit @aaronenyeshi @guotuofeng @guyang3532 @dzhulgakov @davidberard98 @briancoutinho @sraikund16 @sanrise

@huydhn huydhn requested review from a team and clee2000 September 19, 2024 06:01
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 19, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/136304

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 8e21fb2 with merge base f2b0fc8 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Sep 19, 2024
@huydhn huydhn added the oncall: profiler profiler-related issues (cpu, gpu, kineto) label Sep 19, 2024
Copy link
Contributor

@briancoutinho briancoutinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm (y)

@huydhn
Copy link
Contributor Author

huydhn commented Sep 19, 2024

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Sep 19, 2024
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@github-actions github-actions bot deleted the fix-test-profile-memory branch October 21, 2024 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged oncall: profiler profiler-related issues (cpu, gpu, kineto) test-config/default topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DISABLED test_profile_memory (__main__.CppThreadTest)

4 participants