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

GCC-14 build is failing due to pytorch/third_party/fbgemm/src/UtilsAvx512.cc:970:35: error: ‘r’ may be used uninitialized [-Werror=maybe-uninitialized] #3731

Open
anmyachev opened this issue Feb 25, 2025 · 2 comments

Comments

@anmyachev
Copy link

Logs:

pytorch/third_party/fbgemm/src/UtilsAvx512.cc:970:35: error: ‘r’ may be used uninitialized [-Werror=maybe-uninitialized]
  970 |   d[0] = _mm512_permutex2var_epi32(r[0], index1, r[1]);
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
pytorch/third_party/fbgemm/src/UtilsAvx512.cc:922:11: note: ‘r’ declared here
  922 |   __m512i r[2], d[2];
      |           ^

Initially found in intel/intel-xpu-backend-for-triton#2897.

This is not a blocker, but I think it is easy to fix and this report can help gradually prepare for the new GCC release.

@cheezeburglar
Copy link

FWIW reproduced on trunk gcc and (slowly) reducing a testcase to report

@q10
Copy link
Contributor

q10 commented Mar 15, 2025

This is being worked on at pytorch/pytorch#129358

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

No branches or pull requests

3 participants