-
Notifications
You must be signed in to change notification settings - Fork 522
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: compilation of the AVX512 commands fails (Werror=uninitialized) #1094
Comments
Could you share the build command? Currently FBGEMM (CPU) primarily supports Intel CPUs. For AMD CPUs (e.g., Ryzen with only AVX2 supports), we can possibly remove those fbgemm_avx512 build (e.g., Line 127 in 06c6369
|
I'm building pytorch after https://github.com/archlinux/svntogit-community/blob/packages/python-pytorch/trunk/PKGBUILD Is setup.py using BUILD.bazel or CMakeLists.txt ? I've tried to patch the bazel file, but a myriad of deletions is necessary there. |
I am also seeing this error. I have an Intel CPU. |
@Bidski : do you have more information on the Intel CPU and the compiler you have? We currently require a Intel CPU after Broadwell (AVX2) and a compiler supporting AVX512. |
@jianyuh my apologies, it's been a long day and I forgot I was working on a remote PC 😟 I am actually experiencing this issue on an AMD CPU. Is it possible to build this on an AMD CPU? I will test further on an Intel CPU tomorrow to confirm that it isn't affected. |
I'm seeing this on fedora 36 gcc-12.1 |
Should work with: export CFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict"
export CXXFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict" |
This is a GCC regression. Here's the bug for reference. |
@bulvara did the above fix regarding CFLAGS and CXXFLAGS work for you? |
This was a saving thread for me, thank you. Although I had to remember that simply re-running |
Dear devs,
I'm using ArchLinux (gcc=default) on AMD Ryzen, so I don't even need AVX512 commands.
Here is an example error message with GCC:
When using Clang instead the configure step fails because AVX512 intrinsics are disabled when compiling with -march=native on my platform.
Is there any way to completely patch out AVX512?
The text was updated successfully, but these errors were encountered: