mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Fixes https://github.com/pytorch/pytorch/issues/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. Pull Request resolved: https://github.com/pytorch/pytorch/pull/136304 Approved by: https://github.com/briancoutinho |
||
|---|---|---|
| .. | ||
| profiler_utils_mock_events.json | ||
| test_cpp_thread.cpp | ||
| test_cpp_thread.py | ||
| test_cpp_thread_lib.pyi | ||
| test_execution_trace.py | ||
| test_memory_profiler.py | ||
| test_profiler.py | ||
| test_profiler_tree.py | ||
| test_record_function.py | ||
| test_torch_tidy.py | ||