Skip to content

Use nullptr in gloo/cuda_allreduce_halving_doubling.h #417

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

Merged
merged 1 commit into from
Mar 9, 2025

Conversation

r-barnes
Copy link
Contributor

@r-barnes r-barnes commented Mar 8, 2025

Summary:
nullptr is preferable to 0 or NULL. Let's use it everywhere so we can enable -Wzero-as-null-pointer-constant.

  • If you approve of this diff, please use the "Accept & Ship" button :-)

Reviewed By: dtolnay

Differential Revision: D70818154

Summary:
`nullptr` is preferable to `0` or `NULL`. Let's use it everywhere so we can enable `-Wzero-as-null-pointer-constant`.

 - If you approve of this diff, please use the "Accept & Ship" button :-)

Reviewed By: dtolnay

Differential Revision: D70818154
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D70818154

@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D70818154

@facebook-github-bot facebook-github-bot merged commit cbe963b into pytorch:main Mar 9, 2025
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants