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

Satish Balay balay at mcs.anl.gov
Mon Mar 14 10:59:38 CDT 2016


please send corresponding configure.log

Satish

On Mon, 14 Mar 2016, Denis Davydov wrote:

> 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