Chapter 9.3 : The vectorization of barycentre
- 9.3.1) The barycentre_vectorize.h
- 9.3.2) The barycentre_vectorize.cpp
- 9.3.3) The main_barycentre_vectorize.cpp
- 9.3.4) The barycentre_vectorizeSplit.h
- 9.3.5) The barycentre_vectorizeSplit.cpp
- 9.3.6) The main_barycentre_vectorizeSplit.cpp
- 9.3.7) The CMakeLists.txt
- 9.3.8) The compilation
- 9.3.9) The performances
We, again, have to inform the compiler :
- The tables (or pointers) are aligned with __builtin_assume_aligned
- The tables (or pointers) do not overhead eachother with __restrict__
- Enable the vectorization with -O3 -ftree-vectorize -march=native -mtune=native -mavx2