<div>Hi,</div>
<div>&nbsp;</div>
<div>I have some problems with using mpi. My code works with one server but when I test it on another system, I get the wrong answers. In that system, the mpi is located at /usr/local/topspin/mpi/mpich/. I tried to specify it with --with-mpi-dir but it wasn't able to find during config. I then add --with-mpirun=/usr/local/topspin/mpi/mpich/bin/mpirun_ssh and it compiled&nbsp;but wrong answers when run. May I know what file does it look for if --with-mpi-lib is used? My lib64 directory has
</div>
<div>&nbsp;</div>
<div>libfmpich.a&nbsp;&nbsp;&nbsp;&nbsp; libfmpich_p.a&nbsp;&nbsp; libmpich.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmpichf90nc_i.a&nbsp;&nbsp; libmpichf90nc_p.so&nbsp; libmpichfsup.a&nbsp;&nbsp;&nbsp;&nbsp; libmpichfsup_p.a&nbsp;&nbsp; libmpich_i.a&nbsp;&nbsp; libmpich_p.so&nbsp; libpmpich++.so<br>libfmpich_i.a&nbsp;&nbsp; libfmpich_p.so&nbsp; libmpichf90_i.a&nbsp;&nbsp; libmpichf90nc_i.so&nbsp; libmpichf90_p.a&nbsp;&nbsp;&nbsp;&nbsp; libmpichfsup_i.a&nbsp;&nbsp; libmpichfsup_p.so&nbsp; libmpich_i.so&nbsp; 
libmpich.so<br>libfmpich_i.so&nbsp; libfmpich.so&nbsp;&nbsp;&nbsp; libmpichf90_i.so&nbsp; libmpichf90nc_p.a&nbsp;&nbsp; libmpichf90_p.so&nbsp;&nbsp;&nbsp; libmpichfsup_i.so&nbsp; libmpichfsup.so&nbsp;&nbsp;&nbsp; libmpich_p.a&nbsp;&nbsp; libpmpich++.a</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>I then tried to use <font color="#0f0000">--download-mpich=yes</font> but the error msg is</div>
<div>&nbsp;</div>
<div>*********************************************************************************<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UNABLE to CONFIGURE with GIVEN OPTIONS&nbsp;&nbsp;&nbsp; (see configure.log for details):<br>---------------------------------------------------------------------------------------
<br>Error running configure on MPICH: Could not execute 'cd /nfs/lsftmp/g0306332/petsc-2.3.2-p7/externalpackages/mpich2-1.0.4p1;./configure --prefix=/nfs/lsftmp/g0306332/petsc-2.3.2-p7/externalpackages/mpich2-1.0.4p1/linux64-mpi-shared CC=&quot;icc&nbsp; -fPIC -g &quot; --disable-cxx F90=&quot;ifort&nbsp; -fPIC -g&nbsp; &quot; F77=&quot;ifort&nbsp; -fPIC -g&nbsp; &quot; --enable-sharedlibs=libtool --without-mpe --with-pm=gforker':
<br>Configuring MPICH2 version 1.0.4p1 with '--prefix=/nfs/lsftmp/g0306332/petsc-2.3.2-p7/externalpackages/mpich2-1.0.4p1/linux64-mpi-shared' 'CC=icc&nbsp; -fPIC -g ' '--disable-cxx' 'F90=ifort&nbsp; -fPIC -g&nbsp; ' 'F77=ifort&nbsp; -fPIC -g&nbsp; ' '--enable-sharedlibs=libtool' '--without-mpe' '--with-pm=gforker'
<br>Executing mpich2prereq in /nfs/lsftmp/g0306332/petsc-2.3.2-p7/externalpackages/mpich2-1.0.4p1/src/mpid/ch3 with <br>Executing mpich2prereq in /nfs/lsftmp/g0306332/petsc-2.3.2-p7/externalpackages/mpich2-1.0.4p1/src/mpid/ch3/channels/sock
<br>sourcing /nfs/lsftmp/g0306332/petsc-2.3.2-p7/externalpackages/mpich2-1.0.4p1/src/pm/gforker/mpich2prereq<br>checking for gcc... icc&nbsp; -fPIC -g <br>checking for C compiler default output file name... a.out<br>checking whether the C compiler works... yes
<br>checking whether we are cross compiling... no<br>checking for suffix of executables... <br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether icc&nbsp; -fPIC -g&nbsp; accepts -g... yes
<br>checking for icc&nbsp; -fPIC -g&nbsp; option to accept ANSI C... none needed<br>checking for type of weak symbol support... pragma weak<br>checking whether __attribute__ ((weak)) allowed... yes<br>checking for multiple weak symbol support... yes
<br>checking whether we are using the GNU Fortran 77 compiler... no<br>checking whether ifort&nbsp; -fPIC -g&nbsp;&nbsp; accepts -g... yes<br>checking how to get verbose linking output from ifort&nbsp; -fPIC -g&nbsp; ... -v<br>checking for Fortran libraries of ifort&nbsp; -fPIC -g&nbsp; ...&nbsp; -L/usr/local/intel/fc9.0/lib -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/ -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64 -lsvml -lifport -lifcore -limf -lm -lirc -lgcc_s -lirc_s
<br>checking whether C can link with&nbsp; -L/usr/local/intel/fc9.0/lib -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/ -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64 -lsvml -lifport -lifcore -limf -lm -lirc -lgcc_s -lirc_s... yes
<br>checking for linker for Fortran main programs... Use Fortran to link programs<br>checking for Fortran 77 name mangling... lower underscore<br>checking that f works as the extension for Fortran 90 program... yes<br>checking whether we are using the GNU Fortran 90 compiler... no
<br>checking whether ifort&nbsp; -fPIC -g&nbsp;&nbsp; accepts -g... yes<br>checking for extension for Fortran 90 programs... f90<br>checking whether the Fortran 90 compiler (ifort&nbsp; -fPIC -g&nbsp;&nbsp;&nbsp; ) works... yes<br>checking whether the Fortran 90 compiler (ifort&nbsp; -fPIC -g&nbsp;&nbsp;&nbsp; ) is a cross-compiler... no
<br>checking whether Fortran 90 works with Fortran 77... yes<br>checking whether Fortran accepts ! for comments... yes<br>checking for include directory flag for Fortran... -I<br>checking for Fortran 77 flag for library directories... -L
<br>checking for which Fortran libraries are needed to link C with Fortran... none<br>checking whether Fortran compiler processes .F files with C preprocessor... yes<br>checking that f works as the extension for Fortran 90 program... yes
<br>checking whether we are using the GNU Fortran 90 compiler... (cached) no<br>checking whether ifort&nbsp; -fPIC -g&nbsp;&nbsp; accepts -g... (cached) yes<br>checking for extension for Fortran 90 programs... f90<br>checking whether the Fortran 90 compiler (ifort&nbsp; -fPIC -g&nbsp;&nbsp;&nbsp; ) works... yes
<br>checking whether the Fortran 90 compiler (ifort&nbsp; -fPIC -g&nbsp;&nbsp;&nbsp; ) is a cross-compiler... no<br>checking for Fortran 90 module extension... mod<br>checking for Fortran 90 module include flag... -I<br>checking whether Fortran 90 accepts f90 suffix... yes
<br>checking whether Fortran 90 compiler processes .F90 files with C preprocessor... yes<br>checking for f90 compiler vendor... intel<br>checking for perl... /usr/bin/perl<br>checking for ar... ar<br>checking for ranlib... ranlib
<br>checking for etags... etags<br>checking for etags argument to specify language... --language=c<br>checking whether global variables handled properly... yes<br>checking for a BSD-compatible install... /usr/bin/install -c
<br>checking whether install works... yes<br>checking whether install breaks libraries... no<br>checking whether mkdir -p works... yes<br>checking for make... make<br>checking whether clock skew breaks make... no<br>checking whether make supports include... yes
<br>checking whether make allows comments in actions... yes<br>checking for virtual path format... VPATH<br>checking whether make sets CFLAGS... no<br>checking for bash... /bin/sh<br>checking whether /bin/sh supports arrays... yes
<br>configure: error: Creating shared libraries using libtool not yet supported<br>*********************************************************************************<br>&nbsp;</div>
<div>May I know what's wrong?</div>
<div>&nbsp;</div>
<div>Thank you.</div>
<div>&nbsp;</div>
<div>Regards</div>