From a3f77df3864464fa8cd6fdc613d2cf4bbae39124 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 7 Sep 2022 03:41:26 +0200 Subject: Add autovectorization patch --- patches/ccpi-regularisation-toolkit-autovectorize.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 patches/ccpi-regularisation-toolkit-autovectorize.patch diff --git a/patches/ccpi-regularisation-toolkit-autovectorize.patch b/patches/ccpi-regularisation-toolkit-autovectorize.patch new file mode 100644 index 0000000..8823001 --- /dev/null +++ b/patches/ccpi-regularisation-toolkit-autovectorize.patch @@ -0,0 +1,12 @@ +diff --git a/src/Core/CMakeLists.txt b/src/Core/CMakeLists.txt +index 64abcb4..893abc5 100644 +--- a/src/Core/CMakeLists.txt ++++ b/src/Core/CMakeLists.txt +@@ -25,6 +25,6 @@ if(WIN32) + elseif(APPLE) + set (FLAGS "-DCCPiReconstructionIterative_EXPORTS ") + elseif(UNIX) +- set (FLAGS "-O3 -funsigned-char -Wall -Wl,--no-undefined -DCCPiReconstructionIterative_EXPORTS ") ++ set (FLAGS "-O3 -funsigned-char -Wall -Wl,--no-undefined -DCCPiReconstructionIterative_EXPORTS -march=native -ftree-vectorize -fopt-info-vec-optimized -fopt-info-vec -fopenmp ") + set(EXTRA_LIBRARIES "m") + endif() -- cgit v1.2.3