[petsc-users] build with Scalapack/Blacs from MKL (failed to compile a test)

Denis Davydov davydden at gmail.com
Mon Mar 14 10:55:59 CDT 2016


Dear all,

What is the correct way to build PETSc with Scalapack/Blacs from MKL?
I tried:

—with-scalapack-lib=/path/to/mkl/lib/intel64/libmkl_scalapack_lp64.so /path/to/mkl/lib/intel64/libmkl_blacs_openmpi_lp64.so
—with-scalapack-include=/path/to/mkl/include

but PETSc config fails to compile a test program and gives a lot of 
	“undefined reference to ‘ompi_mpi_real’, ‘MPI_Allgather’, ‘MPI_Cart_create’” etc from libmkl_blacs_openmpi_lp64.so. 
Strangely enough I do see “-lmpi_f90 -lmpi_f77 -lmpi” in the compiler line, so i don’t know why these symbols are missing.
Also MPI wrapper is used (/usr/bin/mpicc).

I already built MUMPS without a problem and even tests run ok, so I am quite puzzled whether it’s something related to PETSc or MKL.

p.s. I use OpenMPI provided by Ubuntu.
 
Kind regards,
Denis 



More information about the petsc-users mailing list