[petsc-users] MKL library - how to force static linking

Satish Balay balay at mcs.anl.gov
Wed Mar 9 12:31:11 CST 2011


If you know the correct MLK library list for static linking- you can
try specifying with --with-blas-lapack-lib option

Satish


On Wed, 9 Mar 2011, Robert Ellis wrote:

> Hi PETSc Experts,
> 
> Environment: Win, Cygwin, ifort, MKL to produce Win exes.
> 
> I'm using the MKL blas-lapack with the configure parameter  --with-blas-lapack-dir=/cygdrive/c/mkl/lib/intel64. The resultant executable requires MKL dlls to run, specifically fmpich2.dll, libiomp5md.dll, mkl_core.dll, mkl_intel_thread.dll, mpich2mpi.dll. Can I force a static PETSc  build using the MKL libraries? (BTW, using --download-f-blas-lapack produces a statically linked exe.)
> 
> Thanks for any help,
> Cheers,
> Rob
> 



More information about the petsc-users mailing list