Dear Martin,
I guess I was being overly enthusiastic. I understand now, every "failed 
test" (e.g.  DEAL_II_HAVE_CXX20_FEATURES) end up in this file.
The majority of the "errors" I get are thus regular configuration "failure"

The final failure I get is related to : Performing C++ SOURCE FILE Test 
DEAL_II_HAVE_USABLE_FLAGS_DEBUG failed with the following output:
Change Dir: /home/blaisbru/dealii/build/CMakeFiles/CMakeTmp

It's a massive error message, but the key line appear to be these one to me:
/cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/MPI/gcc9/openmpi4/trilinos/13.0.1/lib/libzadelus.so:
 
error: undefined reference to 'Adelus::nprocs_col'
/cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/MPI/gcc9/openmpi4/trilinos/13.0.1/lib/libzadelus.so:
 
error: undefined reference to 'Adelus::me'
/cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/MPI/gcc9/openmpi4/trilinos/13.0.1/lib/libzadelus.so:
 
error: undefined reference to 'Adelus::nprocs_row'
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_c4ee5.dir/build.make:266: cmTC_c4ee5] Error 1
gmake[1]: Leaving directory 
'/home/blaisbru/dealii/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_c4ee5/fast] Error 2

Source file was:
int main(){ return 0; }

Is Adelus a Trilinos component that is mandatory? In my case, this is 
clearly the issue, if this component is not there, then that's why I am 
getting this error.

Thank you very much for the help! This community is always so amazing.




On Friday, October 29, 2021 at 6:54:11 a.m. UTC-4 Martin Kronbichler wrote:

> 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, blais...@gmail.com 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, blais...@gmail.com 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: bang...@colostate.edu 
>> 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 dealii+un...@googlegroups.com.
>
> 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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/0571c769-6c61-4cbb-afe3-a462c199563en%40googlegroups.com.

Reply via email to