Remove flag __FFTW3_UNALIGNED

This commit is contained in:
Ole Schütt 2025-12-19 13:25:19 +01:00 committed by Ole Schütt
parent 759b24ff12
commit 449fa423b8
3 changed files with 1 additions and 12 deletions

View file

@ -60,10 +60,7 @@ FFTW is also provided by MKL. Pass `-DCP2K_USE_FFTW3_WITH_MKL=ON` to CMake.
:warning: Note that FFTW must know the Fortran compiler you will use in order to install properly
(e.g., `export F77=gfortran` before configure if you intend to use gfortran).
:warning: Note that FFTW configured for SIMD vectorization, requires buffers aligned to SIMD width.
If this cannot be ensured for the compiler used (e.g., NAG f95, Intel IA32/gfortran), one should
either configure FFTW without SIMD support or otherwise set the define `-D__FFTW3_UNALIGNED`. Since
CP2K is OpenMP parallelized, the FFTW3 threading library libfftw3_threads (or libfftw3_omp) is
Since CP2K is OpenMP parallelized, the FFTW3 threading library libfftw3_threads (or libfftw3_omp) is
required. Pass `-DCP2K_ENABLE_FFTW3_THREADS_SUPPORT=ON` or `-DCP2K_ENABLE_FFTW3_OPENMP_SUPPORT=ON`
respectivly to CMake.

View file

@ -686,10 +686,6 @@ CONTAINS
CPABORT("fftw3_create_plan_3d")
END SELECT
#if defined(__FFTW3_UNALIGNED)
fftw_plan_type = fftw_plan_type + FFTW_UNALIGNED
#endif
IF (plan%fsign == +1) THEN
fft_direction = FFTW_FORWARD
ELSE
@ -1020,9 +1016,6 @@ CONTAINS
CPABORT("fftw3_create_plan_1dm")
END SELECT
#if defined(__FFTW3_UNALIGNED)
fftw_plan_type = fftw_plan_type + FFTW_UNALIGNED
#endif
num_threads = 1
plan%separated_plans = .FALSE.
!$OMP PARALLEL DEFAULT(NONE), &

View file

@ -91,7 +91,6 @@ FLAG_EXCEPTIONS = (
r"__CRAY_PM_ENERGY",
r"__STATM_RESIDENT",
r"__STATM_TOTAL",
r"__FFTW3_UNALIGNED",
)
FLAG_EXCEPTIONS_RE = re.compile(r"|".join(FLAG_EXCEPTIONS))