Dear Bruno,
This is a regular error and not related to the actual problem I believe.
This is simply the message that we use to detect what SIMD extensions we
can enable, and in your case the compilation does not support AVX. But I
think further down in the CMakeFiles/CMakeError.log file you should find
the culprit.
As a side remark, the AMD Rome architecture does indeed support AVX2, as
long as you pass "-mavx2 -mfma" or "-march=znver2" or simply
"-march=native" to the compile flags ("CMAKE_CXX_FLAGS"). However, AMD
does not (yet) support AVX-512, which might be what you're referring to.
In other words, the compiler needs to be told what kind of architecture
extensions are supported on the target CPU. I most often use
"-march=native" unless I'm cross-compiling on a different CPU compared
to where the code is eventually executed.
Best,
Martin
On 29.10.21 12:47, [email protected] wrote:
Wolfgang, you are a genius.
The exact error I am getting is related to AVX instructions not being
available. I think this is normal because this is an AMD Rome based
cluster and not an intel one.
Run Build
Command(s):/cvmfs/soft.computecanada.ca/gentoo/2020/usr/bin/gmake
cmTC_be568/fast &&
/cvmfs/soft.computecanada.ca/gentoo/2020/usr/bin/gmake -f
CMakeFiles/cmTC_be568.dir/build.make CMakeFiles/cmTC_be568.dir/build
gmake[1]: Entering directory
'/home/blaisbru/dealii/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_be568.dir/src.cxx.o
/cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/bin/c++
-DDEAL_II_HAVE_AVX -o CMakeFiles/cmTC_be568.dir/src.cxx.o -c
/home/blaisbru/dealii/build/CMakeFiles/CMakeTmp/src.cxx
/home/blaisbru/dealii/build/CMakeFiles/CMakeTmp/src.cxx:3:6: error:
#error "__AVX__ flag not set, no support for AVX"
3 | #error "__AVX__ flag not set, no support for AVX"
| ^~~~~
/home/blaisbru/dealii/build/CMakeFiles/CMakeTmp/src.cxx: In function
‘int main()’:
/home/blaisbru/dealii/build/CMakeFiles/CMakeTmp/src.cxx:35:9: warning:
AVX vector return without AVX enabled changes the ABI [-Wpsabi]
35 | b = _mm256_set1_pd (static_cast<volatile double>(2.25));
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake[1]: *** [CMakeFiles/cmTC_be568.dir/build.make:66:
CMakeFiles/cmTC_be568.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory
'/home/blaisbru/dealii/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_be568/fast] Error 2
Hopefully I find a solution from there :)!
On Thursday, October 28, 2021 at 11:20:42 p.m. UTC-4 Wolfgang Bangerth
wrote:
On 10/28/21 8:02 PM, [email protected] wrote:
>
> However, whenever I run CMAKE using deal.II AND enabling
Trilinos, I get the
> following error:
> Configuration error: Cannot compile a test program with the
final set of
> compiler and linker flags:
> CXX flags (DEBUG): -pedantic -fPIC -Wall -Wextra
-Wmissing-braces
> -Woverloaded-virtual -Wpointer-arith -Wsign-compare
-Wsuggest-override
> -Wswitch -Wsynth -Wwrite-strings -Wno-placement-new
> -Wno-deprecated-declarations -Wno-literal-suffix -Wno-psabi
> -Wno-class-memaccess -fopenmp-simd -Wno-parentheses
-Wno-unused-local-typedefs
> -O0 -ggdb -Wa,--compress-debug-sections
Somewhere, in some file that is probably located under CMakeFiles
in your
build directory, it will provide you with whatever error messages
cmake got
when it tried to compile a test program with these flags. If you
know what
that error is, you're probably 75% there towards identifying what
the real
underlying problem is.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google
Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/fb910de8-53f0-4eca-90a7-14a54e3069a1n%40googlegroups.com
<https://groups.google.com/d/msgid/dealii/fb910de8-53f0-4eca-90a7-14a54e3069a1n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/3df11b08-91b3-f72b-2356-60b24dee76f7%40gmail.com.