How to install FFTW-3.3.10 on an M2 MacBook Pro?
I'm trying to install fftw to run my MPI code which also requires the use of fftw3-MPI header file (#include <fftw3-mpi.h>). I have no problem running the code on other systems such as Linux, but I cannot install fftw on M2 MacBook pro.
I got the following error:
# **checking build system type... Invalid configuration arm64-apple-darwin20.0.0': machine arm64-apple' not recognized
configure: error: /bin/sh ./config.sub arm64-apple-darwin20.0.0 failed
I downloaded the latest version of the FFTW from the website www.fftw.org. I did following steps:
- ./configure
- make
- make install
However, I am getting error at the configure step. I also tried to install fftw using Homebrew. I got the following error:
aad.c:2:10: fatal error: 'fftw3-mpi.h' file not found
#include <fftw3-mpi.h>
^~~~~~~~~~~~~
1 error generated.
--------------------------------------------------------------------------
mpirun was unable to find the specified executable file, and therefore
did not launch the job. This error was first reported for process
rank 0; it may have occurred for other processes as well.
NOTE: A common cause for this error is misspelling a mpirun command
line parameter option (remember that mpirun interprets the first
unrecognized command line token as the executable).
MacBook Pro 14″, macOS 13.3