Gromacs and FFTW library

GROMACS version: 2023.3
GROMACS modification: Yes/No

I am trying to get some prints out of what is happening inside the FFTW when Gromacs is running.

I have built Gromacs with -DGMX_BUILD_OWN_FFTW=ON
Running CMake gives:
– The GROMACS-managed build of FFTW 3 will configure with the following optimizations: --enable-sse2;–enable-avx;–enable-avx2
– Using external FFT library - FFTW3 build managed by GROMACS

I have located the downloaded FFTW sources and the object files, and I was able to rebuild those separately. However, gromacs build system does not recognize these changes and it is still using the “old” version of static library even after rebuilding the gromacs.

Any ideas how to achieve this easily?

Thanks,

T

Hi!

Perhaps the easiest solution would be to build FFTW separately and use -DFFTWF_INCLUDE_DIR=/path/to/include -DFFTWF_LIBRARY=/path/to/lib/libfftw3f.so -DGMX_BUILD_OWN_FFTW=OFF.

GMX_BUILD_OWN_FFTW is a basic convenience for building on systems without pre-installed FFTW, and this mechanism is not suitable for any advanced usage. You can try changing the GMX_BUILD_OWN_FFTW_URL value (it can be just a path to a file) if you cannot use the external FFTW.