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 

Reply via email to