Intel® MPI Library
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.

error in compiling FFTW3 with intel compiler

Jingming_S_
Beginner
2,906 Views

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!

 

0 Kudos
1 Solution
Gregg_S_Intel
Employee
2,906 Views

It looks like the soft links are a little muddled in this release because compiler is version 4 and MPI is version 3.  There is no Intel MPI 2017.4.196; however, there are setup scripts in the compiler directory which point there.

Try this generic path to the MPI setup script (it's working for me).

   source /home/loam/intel/compilers_and_libraries/linux/mpi/intel64/bin/mpivars.sh

If that doesn't work, try this.

      /home/loam/intel/compilers_and_libraries_2017.3.191/linux/mpi/intel64/bin/mpivars.sh

View solution in original post

0 Kudos
5 Replies
TimP
Honored Contributor III
2,906 Views
As intel mpi is installed the wrapper for icc is mpiicc. If you need the ifort mpi wrapper it's mpiifort or 'mpif90 -fc=ifort'. You should set the environment variables by sourcing both the mpivars and compilervars scripts.
0 Kudos
Gregg_S_Intel
Employee
2,907 Views

It looks like the soft links are a little muddled in this release because compiler is version 4 and MPI is version 3.  There is no Intel MPI 2017.4.196; however, there are setup scripts in the compiler directory which point there.

Try this generic path to the MPI setup script (it's working for me).

   source /home/loam/intel/compilers_and_libraries/linux/mpi/intel64/bin/mpivars.sh

If that doesn't work, try this.

      /home/loam/intel/compilers_and_libraries_2017.3.191/linux/mpi/intel64/bin/mpivars.sh

0 Kudos
Jingming_S_
Beginner
2,906 Views

Thank you all guys!

Problem solved.

Thank you again~!

0 Kudos
Shaikh__Samir
Beginner
2,906 Views

I'm getting same error with intel 2019.5

0 Kudos
Nguyen__Phuong
Beginner
2,906 Views

Hi. I got the same error with Intel 2019.4.243. Sourcing 2 above paths did not solve the problem.

0 Kudos
Reply