[petsc-users] PETSc config error

amrit poudel amrit_pou at hotmail.com
Wed Sep 7 20:13:29 CDT 2011


This is what I have in /lib, and by looking at libmpi.so, I believe I have a shared library.  Would you recommend building a static library for open mpi or is shared library okay?

libmca_common_sm.la        libmpi_f90.so.0             libopen-rte.la
libmca_common_sm.so        libmpi_f90.so.0.0.1         libopen-rte.so
libmca_common_sm.so.1      libmpi.la                   libopen-rte.so.0
libmca_common_sm.so.1.0.0  libmpi.so                   libopen-rte.so.0.0.0
libmpi_cxx.la              libmpi.so.0                 libotf.a
libmpi_cxx.so              libmpi.so.0.0.2             libotf.la
libmpi_cxx.so.0            libopenmpi_malloc.la        libvt.a
libmpi_cxx.so.0.0.1        libopenmpi_malloc.so        libvt.fmpi.a
libmpi_f77.la              libopenmpi_malloc.so.0      libvt.mpi.a
libmpi_f77.so              libopenmpi_malloc.so.0.0.0  libvt.omp.a
libmpi_f77.so.0            libopen-pal.la              libvt.ompi.a
libmpi_f77.so.0.0.1        libopen-pal.so              mpi.mod
libmpi_f90.la              libopen-pal.so.0            openmpi
libmpi_f90.so              libopen-pal.so.0.0.0






Date: Thu, 8 Sep 2011 02:57:27 +0200
From: jedbrown at mcs.anl.gov
To: petsc-users at mcs.anl.gov
Subject: Re: [petsc-users] PETSc config error

On Thu, Sep 8, 2011 at 02:01, amrit poudel <amrit_pou at hotmail.com> wrote:


 ./config/configure.py --prefix=/home/amrit/PETSc --with-scalar-type=complex --with-batch --with-cc=/home/amrit/MPI/bin/mpicc --with-fc=/home/amrit/MPI/bin/mpif77
===============================================================================

             Configuring PETSc to compile on your system                       
===============================================================================
TESTING: configureMPIEXEC from config.packages.MPI(config/BuildSystem/config/pac*******************************************************************************

         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
-------------------------------------------------------------------------------
Must give a default value for known-mpi-shared since executables cannot be run

You need to determine whether your MPI implementation uses static or shared libraries, then pass --known-mpi-shared=1 if it shared and --known-mpi-shared=0 otherwise. You can determine whether it is shared by examining the libraries.

mpicc -showls /home/amrit/MPI/lib                  # look for *.a for shared libs and *.so or *.dylib for shared libs. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110908/0cd41082/attachment.htm>


More information about the petsc-users mailing list