summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@ipecompute4.ands.kit.edu>2022-09-07 03:41:26 +0200
committerSuren A. Chilingaryan <csa@ipecompute4.ands.kit.edu>2022-09-07 03:41:26 +0200
commita3f77df3864464fa8cd6fdc613d2cf4bbae39124 (patch)
tree1f561f9e82bfc542cd609aad24c886477ba2e92d /patches
parentdeb9c6115a0b60d0be7ee5306be4a1c794ea6399 (diff)
downloadccpi-a3f77df3864464fa8cd6fdc613d2cf4bbae39124.tar.gz
ccpi-a3f77df3864464fa8cd6fdc613d2cf4bbae39124.tar.bz2
ccpi-a3f77df3864464fa8cd6fdc613d2cf4bbae39124.tar.xz
ccpi-a3f77df3864464fa8cd6fdc613d2cf4bbae39124.zip
Add autovectorization patch
Diffstat (limited to 'patches')
-rw-r--r--patches/ccpi-regularisation-toolkit-autovectorize.patch12
1 files changed, 12 insertions, 0 deletions
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()