Skip to content
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

Combined -Wextra -Werror Commits #627

Merged
merged 16 commits into from
Oct 1, 2024
Merged

Conversation

aws-nslick
Copy link
Contributor

@aws-nslick aws-nslick commented Sep 27, 2024

CI is moving too slowly, and rebasing triggers too many rebuilds, to continue to use stacked PRs. This is a single PR that is combining all of the following PRS:

For and PR marked above as unapproved, please click and re-review it. It will land (but will not be targeting master). Once all commits are "merged" into a some non-master branch, then we can just approve this PR, containing roughly the same contents, and we can merge it to master all-together and delete the branches.

I would prefer to be able to just land directly into master by changing base branches, but it's not realistic today given the way that CI is triggering. So here we are.

Description of changes:

Bunch of changes that bring us significantly closer to building successfully with C++, but also enables -Werror -Wextra going forward, and CI actions ensure that it will stay that way. I'm not sure that this is all pointless and nit-picky, a build failure caught on #624 very possibly can explain a segfault that was reported when initializing the plugin when less than 32 EFAs are available.

edit: needed to be rebased due to a bug introduced during rebase on the very first in the series, see comment here.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@aws-nslick aws-nslick changed the title Wextra werror Combined -Wextra -Werror Commits Sep 27, 2024
@aws-nslick
Copy link
Contributor Author

bot:aws:retest

bwbarrett
bwbarrett previously approved these changes Sep 27, 2024
src/nccl_ofi_rdma.c Outdated Show resolved Hide resolved
@aws-nslick
Copy link
Contributor Author

bot:aws:retest

aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wcast-align -Wnull-dereference
-Wimplicit-fallthrough whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wcast-align -Wnull-dereference
-Wimplicit-fallthrough whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wcast-align -Wnull-dereference
-Wimplicit-fallthrough whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wcast-align -Wnull-dereference
-Wimplicit-fallthrough whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wcast-align -Wnull-dereference
-Wimplicit-fallthrough whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wcast-align -Wnull-dereference
-Wimplicit-fallthrough whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wcast-align -Wnull-dereference
-Wimplicit-fallthrough whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference -Wimplicit-fallthrough
whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference -Wimplicit-fallthrough
whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference -Wimplicit-fallthrough
whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference -Wimplicit-fallthrough
whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference -Wimplicit-fallthrough
whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference -Wimplicit-fallthrough
whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference -Wimplicit-fallthrough
whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference -Wimplicit-fallthrough
whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Sep 30, 2024
We get these for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference -Wimplicit-fallthrough
whenever -Werror is enabled.
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 4, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 5, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 5, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 5, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 5, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit to aws-nslick/nccl-net-ofi that referenced this pull request Oct 8, 2024
We get this for free, likely fixed in aws#627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
aws-nslick added a commit that referenced this pull request Oct 9, 2024
We get this for free, likely fixed in #627 or with some of the
-fanalyzer fixes. Enable -Wnull-dereference whenever -Werror is enabled.

Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants