-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Compilation failure with gcc-6 ('_mm256_set1_pd': target specific option mismatch) #1797
Comments
For a quick fix you can try to disable AVX512 extension usage by adding NO_AVX512=1 to command line or Makefile.rule. |
|
Indeed make build proceeds just fine (like ubuntu 16/04 installed hour ago). |
Could you provide some system information - 16.04 is Ubuntu I assume?
Intel - is it x86_64 ?
yes.
Default gcc should be gcc v5 - does it work?
Défaut is 6.4 in out Docker...
And yes, or works fine.
|
cmake/system_check.cmake just needs an |
@martin-frbg yes, that is missing. after adding march flag allows cmake build to complete on gcc-6 and above. |
Thanks a lot for the prompt fix! |
I am sorry but this should be open again:
|
Sorry, closed automatically as I had written "should fix" in the commit message. Not sure what went wrong but probably some silly mistake again. |
Seems modifications to CCOMMON_OPT are ignored at that point in the build sequence, setting KERNEL_DEFINITIONS in #1812 instead. |
#1812 fixes the compilation for me. |
Thanks. I had some misgivings that it might not work with non-DYNAMIC, TARGET=SKYLAKEX builds but apparently there was something else wrong with my test. (Not surprising as I was doing this on the side at work) |
I can also confirm that the crash is gone. |
I do not have AVX512 hardware at the moment either, but at least I can see that a TARGET=SKYLAKEX build gets the -march=skylake-avx512 option now as it should. Thanks for confirming that the original issue is resolved. |
Platform: Linux-Intel standard 16.04 (gcc-6)
OpenBLAS HEAD of develop: 6e2c494
Going back to this commit fixes the compilation error:
02ef20a Merge pull request #1786 from martin-frbg/immintrin
Full cmake build error:
In file included from /home/ayounes/devel/nv3dfi-build/linux_host/src/openblas_project-build/kernel/CMakeFiles/dgemm_kernel_SKYLAKEX.c:8:0:
/home/ayounes/devel/nv3dfi/ext/pkg-openblas/src/kernel/x86_64/dgemm_kernel_4x8_skylakex.c: In function 'dgemm_kernel_SKYLAKEX':
/home/ayounes/devel/nv3dfi/ext/pkg-openblas/src/kernel/x86_64/dgemm_kernel_4x8_skylakex.c:48:7: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
ymm4 = _mm256_setzero_pd(); \
The text was updated successfully, but these errors were encountered: