-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[OpenReg] Add poison fork check for OpenReg #165728
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
base: gh/fffrog/181/base
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/165728
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New FailuresAs of commit 2592d5e with merge base 4295a9a ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
**Background**: ```bash pytest -s tests/test_autocast.py -vv tests/test_autocast.py::TestAutocastoOpenReg::test_openreg_autocast_float16_supported /home/coder/code/pytorch/torch/_dynamo/eval_frame.py:1037: UserWarning: Set seed for `openreg` device does not take effect, please add API's `_is_in_bad_fork` and `manual_seed_all` to `openreg` device module. ``` Therefore, we need to add `_is_in_bad_fork` to OpenReg. In addition, the OpenReg backend uses the CPU to simulate multi-threaded implementations of Stream and Event, so fork prevention is indeed necessary after initialization. ghstack-source-id: 1e6a255 Pull-Request: #165728
albanD
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds great!
Tests and a couple lines in the user guide about this would be great.
Thank you for helpful comments. I will add tests for this changes right now, and the docs will be added in the later PR that are developed by other contributors. |
**Background**: ```bash pytest -s tests/test_autocast.py -vv tests/test_autocast.py::TestAutocastoOpenReg::test_openreg_autocast_float16_supported /home/coder/code/pytorch/torch/_dynamo/eval_frame.py:1037: UserWarning: Set seed for `openreg` device does not take effect, please add API's `_is_in_bad_fork` and `manual_seed_all` to `openreg` device module. ``` Therefore, we need to add `_is_in_bad_fork` to OpenReg. In addition, the OpenReg backend uses the CPU to simulate multi-threaded implementations of Stream and Event, so fork prevention is indeed necessary after initialization. ghstack-source-id: 0413a98 Pull-Request: #165728
**Background**: ```bash pytest -s tests/test_autocast.py -vv tests/test_autocast.py::TestAutocastoOpenReg::test_openreg_autocast_float16_supported /home/coder/code/pytorch/torch/_dynamo/eval_frame.py:1037: UserWarning: Set seed for `openreg` device does not take effect, please add API's `_is_in_bad_fork` and `manual_seed_all` to `openreg` device module. ``` Therefore, we need to add `_is_in_bad_fork` to OpenReg. In addition, the OpenReg backend uses the CPU to simulate multi-threaded implementations of Stream and Event, so fork prevention is indeed necessary after initialization. ghstack-source-id: bd85439 Pull-Request: #165728
Hey @albanD, so sorry for the late commit I have added test case related posion fork, please take a look at it. Thank you. |
|
#166256, which can lead to something wrong for |
**Background**: ```bash pytest -s tests/test_autocast.py -vv tests/test_autocast.py::TestAutocastoOpenReg::test_openreg_autocast_float16_supported /home/coder/code/pytorch/torch/_dynamo/eval_frame.py:1037: UserWarning: Set seed for `openreg` device does not take effect, please add API's `_is_in_bad_fork` and `manual_seed_all` to `openreg` device module. ``` Therefore, we need to add `_is_in_bad_fork` to OpenReg. In addition, the OpenReg backend uses the CPU to simulate multi-threaded implementations of Stream and Event, so fork prevention is indeed necessary after initialization. ghstack-source-id: d6b5e37 Pull-Request: #165728
**Background**: ```bash pytest -s tests/test_autocast.py -vv tests/test_autocast.py::TestAutocastoOpenReg::test_openreg_autocast_float16_supported /home/coder/code/pytorch/torch/_dynamo/eval_frame.py:1037: UserWarning: Set seed for `openreg` device does not take effect, please add API's `_is_in_bad_fork` and `manual_seed_all` to `openreg` device module. ``` Therefore, we need to add `_is_in_bad_fork` to OpenReg. In addition, the OpenReg backend uses the CPU to simulate multi-threaded implementations of Stream and Event, so fork prevention is indeed necessary after initialization. ghstack-source-id: 3dba2dd Pull-Request: #165728
|
@pytorchbot merge |
Merge startedYour 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 |
Merge failedReason: 1 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
Stack from ghstack (oldest at bottom):
Background:
Therefore, we need to add
_is_in_bad_forkto OpenReg.In addition, the OpenReg backend uses the CPU to simulate multi-threaded implementations of Stream and Event, so fork prevention is indeed necessary after initialization.