Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[inductor] subproc parallel compile: initialize future before sending…
… work to the pool (pytorch#128086) Summary: I got reports of intermittent failures in CI and the logs show errors like this: ``` CRITICAL:concurrent.futures:Future 139789013754560 in unexpected state: FINISHED ``` I can't repro locally, but seems clear that we should initialize the future _before_ sending work to the subprocess pool since it could finish before we call set_running_or_notify_cancel() Differential Revision: [D58239829](https://our.internmc.facebook.com/intern/diff/D58239829) Pull Request resolved: pytorch#128086 Approved by: https://github.com/jansel ghstack dependencies: pytorch#128037
- Loading branch information