Hi Bruno,

You'll have to explicitly enable the instruction set with your
CXXFLAGS. For example, by compiling via

  $ cmake -DDEAL_II_CXX_FLAGS="-march=native" [...]

Best,
Matthias



On Wed, Apr 20, 2022, at 06:50 CDT, "[email protected]" 
<[email protected]> wrote:

> Dear all,
> I hope you are well.
>
> I was wondering if there was anything specific that had to be done to 
> enable deal.II to leverage AVX and AVX512 instructions on intel processors?
>
> By default, it seems that on my intel machine, these vectorization 
> instructions are not detected, e.g.:
> -- Performing Test DEAL_II_HAVE_SSE2
> -- Performing Test DEAL_II_HAVE_SSE2 - Success
> -- Performing Test DEAL_II_HAVE_AVX
> -- Performing Test DEAL_II_HAVE_AVX - Failed
> -- Performing Test DEAL_II_HAVE_AVX512
> -- Performing Test DEAL_II_HAVE_AVX512 - Failed
> -- Performing Test DEAL_II_HAVE_ALTIVEC
> -- Performing Test DEAL_II_HAVE_ALTIVEC - Failed
>
>
> However, I can see that avx  is a supported set of instruction on my 
> processor by looking at /proc/cpuinfo.
>
> Is there something I am missing that needs to be done to enable full 
> support of vectorization instruction?
>
> Best :)
> Bruno

-- 
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/87sfq7wwrd.fsf%4043-1.org.

Reply via email to