Skip to content

Conversation

Make what we're doing as obvious as possible to the compiler.

Differential Revision: [D66108811](https://our.internmc.facebook.com/intern/diff/D66108811/)

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 19, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/141035

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 7f3d535 with merge base 33191bb (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot
Copy link
Contributor

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

swolchok added a commit that referenced this pull request Nov 19, 2024
Pull Request resolved: #141035

Make what we're doing as obvious as possible to the compiler.
ghstack-source-id: 254339612
@exported-using-ghexport

Differential Revision: [D66108811](https://our.internmc.facebook.com/intern/diff/D66108811/)
@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 19, 2024
#include <bit>
#define C10_HAVE_STD_BIT_CAST 1
#else
#define C10_HAVE_STD_BIT_CAST 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar logic to the prev PR. Does this macro serve any useful purpose. Main difference is whether bit_cast is constexpr I guess?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally speaking, it would be good to move those C10_HAVE_... macros to say c10/macros/Macros.h or define new Compiler.h there

As defining those in various headers can lead to a potential duplication and than divergence

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wanted to avoid duplicating the condition in this file.

defining those in various headers

what other header would reasonably define or consume this? this is the bit_cast header.

I can update the diff to undefine its temporary macro

@malfet malfet added release notes: cpp release notes category topic: improvements topic category labels Nov 19, 2024
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

swolchok added a commit that referenced this pull request Nov 19, 2024
Pull Request resolved: #141035

Make what we're doing as obvious as possible to the compiler.
ghstack-source-id: 254364210
@exported-using-ghexport

Differential Revision: [D66108811](https://our.internmc.facebook.com/intern/diff/D66108811/)
@facebook-github-bot
Copy link
Contributor

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

@swolchok
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

q10 added a commit to q10/FBGEMM that referenced this pull request Nov 20, 2024
- Upgrade gcc version to support newer libstdc++, which is required now that
pytorch/pytorch#141035 has landed
@MatzeB
Copy link
Contributor

MatzeB commented Nov 20, 2024

q10 added a commit to q10/FBGEMM that referenced this pull request Nov 20, 2024
- Upgrade gcc version to support newer libstdc++, which is required now that
pytorch/pytorch#141035 has landed
@MatzeB
Copy link
Contributor

MatzeB commented Nov 20, 2024

(Seems the #include is already there, but something is failing here...)


#include <cstring>
#include <type_traits>

Copy link
Contributor

@MatzeB MatzeB Nov 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs #include <version> before testing __cpp_lib_xxx.

(though I think this is unlikely the root cause of my build failures...)

q10 added a commit to q10/FBGEMM that referenced this pull request Nov 21, 2024
- Upgrade gcc version to support newer libstdc++, which is required now that
pytorch/pytorch#141035 has landed

- Deprecate support for CUDA 12.1 and add support for 12.6, per changes in
pytorch/pytorch#138899
q10 added a commit to q10/FBGEMM that referenced this pull request Nov 21, 2024
- Upgrade gcc version to support newer libstdc++, which is required now that
pytorch/pytorch#141035 has landed

- Deprecate support for CUDA 12.1 and add initial support for 12.6, per changes
in pytorch/pytorch#138899
q10 added a commit to q10/FBGEMM that referenced this pull request Nov 21, 2024
- Upgrade gcc version to support newer libstdc++, which is required now that
pytorch/pytorch#141035 has landed

- Deprecate support for CUDA 12.1 and add initial support for 12.6, per changes
in pytorch/pytorch#138899
q10 added a commit to q10/FBGEMM that referenced this pull request Nov 21, 2024
- Upgrade gcc version to support newer libstdc++, which is required now that
pytorch/pytorch#141035 has landed

- Deprecate support for CUDA 12.1 and add initial support for 12.6, per changes
in pytorch/pytorch#138899
facebook-github-bot pushed a commit to pytorch/FBGEMM that referenced this pull request Nov 21, 2024
Summary:
X-link: facebookresearch/FBGEMM#486

- Upgrade gcc version to support newer libstdc++, which is required now that
pytorch/pytorch#141035 has landed

- Deprecate support for CUDA 12.1 and add support for 12.6, per changes in
pytorch/pytorch#138899

Pull Request resolved: #3398

Reviewed By: sryap

Differential Revision: D66277492

Pulled By: q10

fbshipit-source-id: 24817efb5c07c1985ab3beeb1610879edbd81acc
@github-actions github-actions bot deleted the gh/swolchok/701/head branch December 21, 2024 02:05
sarckk added a commit to sarckk/torchrec that referenced this pull request Dec 23, 2024
Summary:
TorchRec CI currently is failing with issues on incompatible GLIBCXX version. The cause is that FBGEMM now requires g++ 11.1+ for building binaries that reference GLIBCXX_3.4.29 (as of pytorch/pytorch#141035)

As recommended in https://github.com/pytorch/FBGEMM/blob/main/.github/scripts/utils_build.bash and pytorch/FBGEMM#3423, install GCC using conda to control glibcxx version being used.

Differential Revision: D67607624
sarckk added a commit to sarckk/torchrec that referenced this pull request Dec 23, 2024
Summary:

TorchRec CI currently is failing with issues on incompatible GLIBCXX version. The cause is that FBGEMM now requires g++ 11.1+ for building binaries that reference GLIBCXX_3.4.29 (as of pytorch/pytorch#141035)

As recommended in https://github.com/pytorch/FBGEMM/blob/main/.github/scripts/utils_build.bash and pytorch/FBGEMM#3423, install GCC using conda to control glibcxx version being used.

Differential Revision: D67607624
sarckk added a commit to sarckk/torchrec that referenced this pull request Dec 23, 2024
Summary:

TorchRec CI currently is failing with issues on incompatible GLIBCXX version. The cause is that FBGEMM now requires g++ 11.1+ for building binaries that reference GLIBCXX_3.4.29 (as of pytorch/pytorch#141035)

As recommended in https://github.com/pytorch/FBGEMM/blob/main/.github/scripts/utils_build.bash and pytorch/FBGEMM#3423, install GCC using conda to control glibcxx version being used.

Differential Revision: D67607624
sarckk added a commit to sarckk/torchrec that referenced this pull request Dec 23, 2024
Summary:

TorchRec CI currently is failing with issues on incompatible GLIBCXX version. The cause is that FBGEMM now requires g++ 11.1+ for building binaries that reference GLIBCXX_3.4.29 (as of pytorch/pytorch#141035)

As recommended in https://github.com/pytorch/FBGEMM/blob/main/.github/scripts/utils_build.bash and pytorch/FBGEMM#3423, install GCC using conda to control glibcxx version being used.

Differential Revision: D67607624
sarckk added a commit to sarckk/torchrec that referenced this pull request Dec 24, 2024
Summary:

TorchRec CI currently is failing with issues on incompatible GLIBCXX version. The cause is that FBGEMM now requires g++ 11.1+ for building binaries that reference GLIBCXX_3.4.29 (as of pytorch/pytorch#141035)

As recommended in https://github.com/pytorch/FBGEMM/blob/main/.github/scripts/utils_build.bash and pytorch/FBGEMM#3423, install GCC using conda to control glibcxx version being used.

Differential Revision: D67607624
sarckk added a commit to sarckk/torchrec that referenced this pull request Dec 26, 2024
Summary:

TorchRec CI currently is failing with issues on incompatible GLIBCXX version. The cause is that FBGEMM now requires g++ 11.1+ for building binaries that reference GLIBCXX_3.4.29 (as of pytorch/pytorch#141035)

As recommended in https://github.com/pytorch/FBGEMM/blob/main/.github/scripts/utils_build.bash and pytorch/FBGEMM#3423, install GCC using conda to control glibcxx version being used.

Differential Revision: D67607624
sarckk added a commit to sarckk/torchrec that referenced this pull request Jan 3, 2025
Summary:

TorchRec CI currently is failing with issues on incompatible GLIBCXX version. The cause is that FBGEMM now requires g++ 11.1+ for building binaries that reference GLIBCXX_3.4.29 (as of pytorch/pytorch#141035)

As recommended in https://github.com/pytorch/FBGEMM/blob/main/.github/scripts/utils_build.bash and pytorch/FBGEMM#3423, install GCC using conda to control glibcxx version being used.

Differential Revision: D67607624
sarckk added a commit to sarckk/torchrec that referenced this pull request Jan 3, 2025
Summary:

TorchRec CI currently is failing with issues on incompatible GLIBCXX version. The cause is that FBGEMM now requires g++ 11.1+ for building binaries that reference GLIBCXX_3.4.29 (as of pytorch/pytorch#141035)

As recommended in https://github.com/pytorch/FBGEMM/blob/main/.github/scripts/utils_build.bash and pytorch/FBGEMM#3423, install GCC using conda to control glibcxx version being used.

Differential Revision: D67607624
sarckk added a commit to sarckk/torchrec that referenced this pull request Jan 3, 2025
Summary:

TorchRec CI currently is failing with issues on incompatible GLIBCXX version. The cause is that FBGEMM now requires g++ 11.1+ for building binaries that reference GLIBCXX_3.4.29 (as of pytorch/pytorch#141035)

As recommended in https://github.com/pytorch/FBGEMM/blob/main/.github/scripts/utils_build.bash and pytorch/FBGEMM#3423, install GCC using conda to control glibcxx version being used.

Differential Revision: D67607624
sarckk added a commit to sarckk/torchrec that referenced this pull request Jan 3, 2025
Summary:

TorchRec CI currently is failing with issues on incompatible GLIBCXX version. The cause is that FBGEMM now requires g++ 11.1+ for building binaries that reference GLIBCXX_3.4.29 (as of pytorch/pytorch#141035)

As recommended in https://github.com/pytorch/FBGEMM/blob/main/.github/scripts/utils_build.bash and pytorch/FBGEMM#3423, install GCC using conda to control glibcxx version being used.

Differential Revision: D67607624
sarckk added a commit to sarckk/torchrec that referenced this pull request Jan 6, 2025
Summary:

TorchRec CI currently is failing with issues on incompatible GLIBCXX version. The cause is that FBGEMM now requires g++ 11.1+ for building binaries that reference GLIBCXX_3.4.29 (as of pytorch/pytorch#141035)

As recommended in https://github.com/pytorch/FBGEMM/blob/main/.github/scripts/utils_build.bash and pytorch/FBGEMM#3423, install GCC using conda to control glibcxx version being used.

Differential Revision: D67607624
sarckk added a commit to sarckk/torchrec that referenced this pull request Jan 6, 2025
Summary:

TorchRec CI currently is failing with issues on incompatible GLIBCXX version. The cause is that FBGEMM now requires g++ 11.1+ for building binaries that reference GLIBCXX_3.4.29 (as of pytorch/pytorch#141035)

As recommended in https://github.com/pytorch/FBGEMM/blob/main/.github/scripts/utils_build.bash and pytorch/FBGEMM#3423, install GCC using conda to control glibcxx version being used.

Differential Revision: D67607624
sarckk added a commit to sarckk/torchrec that referenced this pull request Jan 6, 2025
Summary:

TorchRec CI currently is failing with issues on incompatible GLIBCXX version. The cause is that FBGEMM now requires g++ 11.1+ for building binaries that reference GLIBCXX_3.4.29 (as of pytorch/pytorch#141035)

As recommended in https://github.com/pytorch/FBGEMM/blob/main/.github/scripts/utils_build.bash and pytorch/FBGEMM#3423, install GCC using conda to control glibcxx version being used.

Differential Revision: D67607624
q10 added a commit to q10/FBGEMM that referenced this pull request Apr 10, 2025
Summary:
Pull Request resolved: facebookresearch/FBGEMM#486

- Upgrade gcc version to support newer libstdc++, which is required now that
pytorch/pytorch#141035 has landed

- Deprecate support for CUDA 12.1 and add support for 12.6, per changes in
pytorch/pytorch#138899

X-link: pytorch#3398

Reviewed By: sryap

Differential Revision: D66277492

Pulled By: q10

fbshipit-source-id: 24817efb5c07c1985ab3beeb1610879edbd81acc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged release notes: cpp release notes category topic: improvements topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants