From 17d2b0fa316c06d4887f1cd4febe068684e0b013 Mon Sep 17 00:00:00 2001 From: Trent Piepho Date: Sun, 27 Nov 2022 12:37:49 -0800 Subject: [PATCH] Enable Altivec for single precision Altivec only works for single precision. Signed-off-by: Trent Piepho --- fftw.spec | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/fftw.spec b/fftw.spec index f13434d..32a1a34 100644 --- a/fftw.spec +++ b/fftw.spec @@ -309,12 +309,12 @@ for ((i=0; i<2; i++)) ; do done %endif -#%ifarch ppc ppc64 -## Compile support for Altivec instructions -#for ((i=0; i<2; i++)) ; do -# prec_flags[i]+=" --enable-altivec" -#done -#%endif +%ifarch ppc ppc64 +# Compile support for Altivec instructions; only supported for single precision +for ((i=0; i<1; i++)) ; do + prec_flags[i]+=" --enable-altivec" +done +%endif # Loop over precisions for ((iprec=0; iprec<%{nprec}; iprec++)) ; do @@ -530,6 +530,7 @@ done - Clean up precision list - Fix for OpenMPI build with < 4 processors - Fix building with no enabled MPI types +- Enable single precision Altivec on PPC * Thu Mar 02 2023 Orion Poplawski - 3.3.10-5 - Use make macros