GROMACS version: 2025.1
GROMACS modification: No
Hi!
I apologize ahead of time if this is an oversight on my part. I have a Linux system with two compilers, gcc (=v7) and gcc-11 (=v11). I set up a Gromacs build via:
cmake .. -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g+±11 -DGMX_SIMD=AVX2_256 -DREGRESSIONTEST_DOWNLOAD=ON -DCMAKE_INSTALL_PREFIX=/opt/gromacs_2025.1 -DGMX_FFT_LIBRARY=fftw3 -DGMX_BUILD_OWN_FFTW=ON
I noticed that when FFTW3 is built, the compilation defaults to using gcc, instead of gcc-11. Only Gromacs itself is compiled with gcc-11. I can override this by setting the environment variable CC (e.g. ‘export CC=gcc-11’) before issuing the “cmake” command, but in my opinion users might expect the “CMAKE_C_COMPILER” setting to be propagated to the compilation of FFTW. Or does all this reflect a misconfiguration in my system?
Many thanks,
Erik