#cmakedefine GMX_BROKEN_CALLOC
/* Do not optimize FFTW setups (not needed with SSE FFT kernels) */
-#cmakedefine GMX_DISABLE_FFTW_MEASURE
-
-/* Use Built-in FFTPACK FFT library */
-#cmakedefine GMX_FFT_FFTPACK
+#cmakedefine01 GMX_DISABLE_FFTW_MEASURE
/* Use FFTW3 FFT library */
-#cmakedefine GMX_FFT_FFTW3
-
-/* Use Intel MKL FFT library */
-#cmakedefine GMX_FFT_MKL
+#cmakedefine01 GMX_FFT_FFTW3
/* Target platform is x86 or x86_64 */
#cmakedefine GMX_TARGET_X86
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2003 Erik Lindahl, David van der Spoel, University of Groningen.
- * Copyright (c) 2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
* files like fft_fftw3.c or fft_mkl.c for that.
*/
-#ifndef GMX_FFT_FFTW3
+#if !GMX_FFT_FFTW3
struct gmx_many_fft {
int howmany;
FILE* debug = 0;
#endif
-#ifdef GMX_FFT_FFTW3
+#if GMX_FFT_FFTW3
+
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/mutex.h"
/* none of the fftw3 calls, except execute(), are thread-safe, so
fprintf(debug, "Running on %d threads\n", nthreads);
}
-#ifdef GMX_FFT_FFTW3
+#if GMX_FFT_FFTW3
/* Don't add more stuff here! We have already had at least one bug because we are reimplementing
* the low-level FFT interface instead of using the Gromacs FFT module. If we need more
* generic functionality it is far better to extend the interface so we can use it for
}
}
-#ifdef GMX_FFT_FFTW3
+#if GMX_FFT_FFTW3
}
#endif
if ((flags&FFT5D_ORDER_YZ)) /*plan->cart is in the order of transposes */
int s = 0, tstart, tend, bParallelDim;
-#ifdef GMX_FFT_FFTW3
+#if GMX_FFT_FFTW3
if (plan->p3d)
{
if (thread == 0)
plan->oNout[s] = 0;
}
}
-#ifdef GMX_FFT_FFTW3
+#if GMX_FFT_FFTW3
FFTW_LOCK;
#ifdef FFT5D_MPI_TRANSPOS
for (s = 0; s < 2; s++)
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2009,2010,2012,2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2009,2010,2012,2013,2014,2015, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
#endif
/*currently only special optimization for FFTE*/
-#ifdef GMX_FFT_FFTW3
+#if GMX_FFT_FFTW3
#include <fftw3.h>
#endif
t_complex *lin;
t_complex *lout, *lout2, *lout3;
gmx_fft_t* p1d[3]; /*1D plans*/
-#ifdef GMX_FFT_FFTW3
+#if GMX_FFT_FFTW3
FFTW(plan) p2d; /*2D plan: used for 1D decomposition if FFT supports transposed output*/
FFTW(plan) p3d; /*3D plan: used for 0D decomposition if FFT supports transposed output*/
FFTW(plan) mpip[2];
int i, j, k;
int fftw_flags;
-#ifdef GMX_DISABLE_FFTW_MEASURE
+#if GMX_DISABLE_FFTW_MEASURE
flags |= GMX_FFT_FLAG_CONSERVATIVE;
#endif
int i, j, k;
int fftw_flags;
-#ifdef GMX_DISABLE_FFTW_MEASURE
+#if GMX_DISABLE_FFTW_MEASURE
flags |= GMX_FFT_FLAG_CONSERVATIVE;
#endif
int i, j, k;
int fftw_flags;
-#ifdef GMX_DISABLE_FFTW_MEASURE
+#if GMX_DISABLE_FFTW_MEASURE
flags |= GMX_FFT_FLAG_CONSERVATIVE;
#endif