mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 14:15:19 -04:00
Remove flag __FFTW3_UNALIGNED
This commit is contained in:
parent
759b24ff12
commit
449fa423b8
3 changed files with 1 additions and 12 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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), &
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue