Dear all,
I'm trying to build FFTW3 with intel compiler, according to the guide in FFTW website. I configure FFTW3 as
./configure CC=icc F77=ifort MPICC=mpiicc --enable-mpi
however, error reported as
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for ocamlbuild... no
checking for mpicc... /home/loam/intel/compilers_and_libraries_2017.4.196/linux/mpi/intel64/bin/mpiicc
checking for MPI_Init... no
checking for MPI_Init in -lmpi... no
checking for MPI_Init in -lmpich... no
configure: error: could not find mpi library for --enable-mpi
I also tried add
LDFLAGS=-L/home/loam/intel/compilers_and_libraries_2017.4.196/linux/mpi/intel64/lib
CPPFLAGS=-I/home/loam/intel/compilers_and_libraries_2017.4.196/linux/mpi/intel64/include
but it still didn't work.
Does anyone could give some advices? Thank you!