-
Notifications
You must be signed in to change notification settings - Fork 24.2k
[RFC][BE] assume error checking is on by default #141914
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/141914
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New Failures, 1 Unrelated FailureAs of commit 44fd16e with merge base 1a26cdd ( NEW FAILURES - The following jobs have failed:
UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D66672062 |
acaa242
to
72a7354
Compare
Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. Assume that the world has all upgraded to later version of NCCL library. Test Plan: Unit tests. Differential Revision: D66672062
This pull request was exported from Phabricator. Differential Revision: D66672062 |
72a7354
to
e51e824
Compare
Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. Assume that the world has all upgraded to later version of NCCL library. Test Plan: Unit tests. Differential Revision: D66672062
This pull request was exported from Phabricator. Differential Revision: D66672062 |
Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. 1. Assuming that the world has all upgraded to later version of NCCL library. 2. Assuming that at Meta this always evaluates to true. Test Plan: Unit tests. Differential Revision: D66672062
e51e824
to
b593482
Compare
This pull request was exported from Phabricator. Differential Revision: D66672062 |
I think this PR is essentially masquerading a bigger assumption (NCCL >=2.4) under a smaller title (error checking). Would be good to make a few things more explicit
I'd vote for making a specific PR for the nccl version assertion, and get more eyes on that (also state why we feel 2.4 or 2.x is the right oldest cutoff version to pick). If we can get that landed, then this PR is a no-brainer on top. |
I made a pull request #142023 with a static_assert that NCCL version is 2.4 or above.
|
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.
LGTM. Please update this PR desc to reference the 2.4 PR.
Summary: Static assert that NCCL VERSION is greater than 2.4. This is in preparation of enabling error checking by default in PyTorch library and removal of some macros. This is in PR #141914. The rationale behind this version is: 1. 2.4 released ~2 years ago so it's unlikely that someone is still using the old library. 2. Enabling error checking is benefitial to the community as it helps debug subtle bugs in production environments. Test Plan: unit tests Differential Revision: D66737055 Pull Request resolved: #142023 Approved by: https://github.com/kwen2501
This pull request was exported from Phabricator. Differential Revision: D66672062 |
@pytorchbot rebase |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Rebase failed due to Command
Raised by https://github.com/pytorch/pytorch/actions/runs/13002690637 |
f874f37
to
e955b06
Compare
Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. Pull request #142023 adds a static_assert that NCCL version should be 2.7 or above for PyTorch to work. 2.4 released about 2 years ago so it's relatively safe to assume that everyone has upgraded. Assume that the world has all upgraded to later version of NCCL library. Release note for PyTorch must specify that going forward, PyTorch will only work with NCCL version 2.7 and above. Test Plan: Unit tests. cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k Reviewed By: wconstab, fduwjj, kwen2501 Differential Revision: D66672062 Pulled By: c-p-i-o
Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. Pull request pytorch#142023 adds a static_assert that NCCL version should be 2.7 or above for PyTorch to work. 2.4 released about 2 years ago so it's relatively safe to assume that everyone has upgraded. Assume that the world has all upgraded to later version of NCCL library. Release note for PyTorch must specify that going forward, PyTorch will only work with NCCL version 2.7 and above. Test Plan: Unit tests. cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k Reviewed By: wconstab, fduwjj, kwen2501 Differential Revision: D66672062 Pulled By: c-p-i-o
e955b06
to
b8f586d
Compare
Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. Pull request pytorch#142023 adds a static_assert that NCCL version should be 2.7 or above for PyTorch to work. 2.4 released about 2 years ago so it's relatively safe to assume that everyone has upgraded. Assume that the world has all upgraded to later version of NCCL library. Release note for PyTorch must specify that going forward, PyTorch will only work with NCCL version 2.7 and above. Test Plan: Unit tests. cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k Reviewed By: wconstab, fduwjj, kwen2501 Differential Revision: D66672062 Pulled By: c-p-i-o
ef38dd8
to
a4a3fa4
Compare
Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. Pull request pytorch#142023 adds a static_assert that NCCL version should be 2.7 or above for PyTorch to work. 2.4 released about 2 years ago so it's relatively safe to assume that everyone has upgraded. Assume that the world has all upgraded to later version of NCCL library. Release note for PyTorch must specify that going forward, PyTorch will only work with NCCL version 2.7 and above. Test Plan: Unit tests. cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k Reviewed By: wconstab, fduwjj, kwen2501 Differential Revision: D66672062 Pulled By: c-p-i-o
This pull request was exported from Phabricator. Differential Revision: D66672062 |
Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. Pull request pytorch#142023 adds a static_assert that NCCL version should be 2.7 or above for PyTorch to work. 2.4 released about 2 years ago so it's relatively safe to assume that everyone has upgraded. Assume that the world has all upgraded to later version of NCCL library. Release note for PyTorch must specify that going forward, PyTorch will only work with NCCL version 2.7 and above. Test Plan: Unit tests. cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k Reviewed By: wconstab, fduwjj, kwen2501 Differential Revision: D66672062 Pulled By: c-p-i-o
a4a3fa4
to
cf86bed
Compare
This pull request was exported from Phabricator. Differential Revision: D66672062 |
Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. Pull request pytorch#142023 adds a static_assert that NCCL version should be 2.7 or above for PyTorch to work. 2.4 released about 2 years ago so it's relatively safe to assume that everyone has upgraded. Assume that the world has all upgraded to later version of NCCL library. Release note for PyTorch must specify that going forward, PyTorch will only work with NCCL version 2.7 and above. Test Plan: Unit tests. cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k Reviewed By: wconstab, fduwjj, kwen2501 Differential Revision: D66672062 Pulled By: c-p-i-o
cf86bed
to
44fd16e
Compare
This pull request was exported from Phabricator. Differential Revision: D66672062 |
Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. Pull request #142023 adds a static_assert that NCCL version should be 2.7 or above for PyTorch to work. 2.4 released about 2 years ago so it's relatively safe to assume that everyone has upgraded. Assume that the world has all upgraded to later version of NCCL library. Release note for PyTorch must specify that going forward, PyTorch will only work with NCCL version 2.7 and above. Test Plan: Unit tests. cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k Reviewed By: wconstab, fduwjj, kwen2501 Differential Revision: D66672062 Pulled By: c-p-i-o [ghstack-poisoned]
Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. Pull request #142023 adds a static_assert that NCCL version should be 2.7 or above for PyTorch to work. 2.4 released about 2 years ago so it's relatively safe to assume that everyone has upgraded. Assume that the world has all upgraded to later version of NCCL library. Release note for PyTorch must specify that going forward, PyTorch will only work with NCCL version 2.7 and above. Test Plan: Unit tests. cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k Reviewed By: wconstab, fduwjj, kwen2501 Differential Revision: D66672062 Pulled By: c-p-i-o ghstack-source-id: 07f274b Pull Request resolved: #148900
…default (#141914)" Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. Pull request #142023 adds a static_assert that NCCL version should be 2.7 or above for PyTorch to work. 2.4 released about 2 years ago so it's relatively safe to assume that everyone has upgraded. Assume that the world has all upgraded to later version of NCCL library. Release note for PyTorch must specify that going forward, PyTorch will only work with NCCL version 2.7 and above. Test Plan: Unit tests. cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k Reviewed By: wconstab, fduwjj, kwen2501 Differential Revision: D66672062 Pulled By: c-p-i-o cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o [ghstack-poisoned]
Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. Pull request #142023 adds a static_assert that NCCL version should be 2.7 or above for PyTorch to work. 2.4 released about 2 years ago so it's relatively safe to assume that everyone has upgraded. Assume that the world has all upgraded to later version of NCCL library. Release note for PyTorch must specify that going forward, PyTorch will only work with NCCL version 2.7 and above. Test Plan: Unit tests. cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k Reviewed By: wconstab, fduwjj, kwen2501 Differential Revision: D66672062 Pulled By: c-p-i-o ghstack-source-id: 14c319b Pull Request resolved: #148900
Summary: Remove conditional MACRO `ENABLE_NCCL_ERROR_CHECKING` and assume that error checking is always on. These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago. Pull request #142023 adds a static_assert that NCCL version should be 2.7 or above for PyTorch to work. 2.4 released about 2 years ago so it's relatively safe to assume that everyone has upgraded. Assume that the world has all upgraded to later version of NCCL library. Release note for PyTorch must specify that going forward, PyTorch will only work with NCCL version 2.7 and above. Test Plan: Unit tests. cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k Reviewed By: wconstab, fduwjj, kwen2501 Differential Revision: D66672062 Pulled By: c-p-i-o cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o [ghstack-poisoned]
Summary:
Remove conditional MACRO
ENABLE_NCCL_ERROR_CHECKING
and assume that error checking is always on.These checks were wrapped in a macro because older NCCL libraries didn't have the pre-requisite functions to do error checks. This check was put in several years ago.
Pull request #142023 adds a static_assert that NCCL version should be 2.7 or above for PyTorch to work.
NCCL 2.7 released about 2 years ago so it's relatively safe to assume that everyone has upgraded.
Assume that the world has all upgraded to later version of NCCL library.
Release note for PyTorch must specify that going forward, PyTorch will only work with NCCL version 2.7 and above.
Test Plan: Unit tests.
Differential Revision: D66672062
cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k