<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
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?<br><br>libmca_common_sm.la libmpi_f90.so.0 libopen-rte.la<br>libmca_common_sm.so libmpi_f90.so.0.0.1 libopen-rte.so<br>libmca_common_sm.so.1 libmpi.la libopen-rte.so.0<br>libmca_common_sm.so.1.0.0 libmpi.so libopen-rte.so.0.0.0<br>libmpi_cxx.la libmpi.so.0 libotf.a<br>libmpi_cxx.so libmpi.so.0.0.2 libotf.la<br>libmpi_cxx.so.0 libopenmpi_malloc.la libvt.a<br>libmpi_cxx.so.0.0.1 libopenmpi_malloc.so libvt.fmpi.a<br>libmpi_f77.la libopenmpi_malloc.so.0 libvt.mpi.a<br>libmpi_f77.so libopenmpi_malloc.so.0.0.0 libvt.omp.a<br>libmpi_f77.so.0 libopen-pal.la libvt.ompi.a<br>libmpi_f77.so.0.0.1 libopen-pal.so mpi.mod<br>libmpi_f90.la libopen-pal.so.0 openmpi<br>libmpi_f90.so libopen-pal.so.0.0.0<br><br><br><div>
<br></div><br><br><div><hr id="stopSpelling">Date: Thu, 8 Sep 2011 02:57:27 +0200<br>From: jedbrown@mcs.anl.gov<br>To: petsc-users@mcs.anl.gov<br>Subject: Re: [petsc-users] PETSc config error<br><br><div class="ecxgmail_quote">On Thu, Sep 8, 2011 at 02:01, amrit poudel <span dir="ltr"><<a href="mailto:amrit_pou@hotmail.com">amrit_pou@hotmail.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">
<br> ./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<div class="ecxim"><br>===============================================================================<br>
Configuring PETSc to compile on your system <br>===============================================================================<br></div>TESTING: configureMPIEXEC from config.packages.MPI(config/BuildSystem/config/pac*******************************************************************************<br>
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br>-------------------------------------------------------------------------------<br>Must give a default value for known-mpi-shared since executables cannot be run</blockquote>
</div><br><div>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.</div>
<div><br></div><div>mpicc -show</div><div>ls /home/amrit/MPI/lib # look for *.a for shared libs and *.so or *.dylib for shared libs.</div></div>                                            </div></body>
</html>