[petsc-users] How can PETSc configure with MSMPI

Satish Balay balay at mcs.anl.gov
Sun Feb 2 10:32:57 CST 2014


You can try --download-mpich [not MSMPI] - if you are using gnu
compilers on windows.

Saitsh

On Sun, 2 Feb 2014, Danyang Su wrote:

> To see if it is because of the compiler problems, I use gcc, gfortran and g++
> as the compiler.
> 
> The configuration is
> 
> ./configure --with-cc='gcc' --with-fc='gfortran' --with-cxx='g++'
> --download-f-blas-lapack --with-threadcomm --with-openmp
> --with-mpi-include="/cygdrive/c/MSHPC/MSHPC2008R2/Inc"
> --with-mpi-lib="/cygdrive/c/MSHPC/MSHPC2008R2/Lib/amd64/msmpi.lib"
> 
> The error is
> 
> *******************************************************************************
>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for
> details):
> -------------------------------------------------------------------------------
> --with-mpi-lib=['/cygdrive/c/MSHPC/MSHPC2008R2/Lib/amd64/msmpi.lib'] and
> --with-mpi-include=['/cygdrive/c/MSHPC/MSHPC2008R2/Inc'] did not work
> *******************************************************************************
> 
> On 31/01/2014 1:01 PM, Danyang Su wrote:
> > On 31/01/2014 12:05 PM, Satish Balay wrote:
> > > Try:
> > > --with-mpi-lib="/cygdrive/c/MSHPC/MicrosoftHPCPack2012/Lib/amd64/msmpifec.lib
> > > /cygdrive/c/MSHPC/MicrosoftHPCPack2012/Lib/amd64/msmpi.lib"
> > ******************************************************************************* 
> >
> >          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for
> > details):
> > ------------------------------------------------------------------------------- 
> >
> > External package threadcomm does not work with Microsoft compilers
> > ******************************************************************************* 
> >
> > >
> > > Satish
> > >
> > >
> > > On Fri, 31 Jan 2014, Danyang Su wrote:
> > >
> > > > On 31/01/2014 9:23 AM, Danyang Su wrote:
> > > > > On 31/01/2014 8:41 AM, Satish Balay wrote:
> > > > > > Try:
> > > > > >
> > > > > > --with-mpi-include=/cygdrive/c/Program\ Files/Microsoft\ HPC\ Pack\
> > > > > > 2008\
> > > > > > R2/Inc
> > > > > > --with-mpi-lib=/cygdrive/c/Program\ Files/Microsoft\ HPC\ Pack\
> > > > > > 2008\
> > > > > > R2/Lib/amd64/msmpi.lib
> > > > > ******************************************************************************* 
> > > > >
> > > > >
> > > > >           UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log
> > > > > for
> > > > > details):
> > > > > ------------------------------------------------------------------------------- 
> > > > >
> > > > >
> > > > > --with-mpi-lib=['/cygdrive/c/Program', 'Files/Microsoft', 'HPC',
> > > > > 'Pack',
> > > > > '2008', 'R2/Lib/amd64/msmpi.lib'] and
> > > > > --with-mpi-include=['/cygdrive/c/Program Files/Microsoft HPC Pack 2008
> > > > > R2/Inc'] did not work
> > > > > ******************************************************************************* 
> > > > >
> > > > >
> > > > > It's this due to the blank space in the path? Maybe I can reinstall
> > > > > HPC
> > > > > package to another destination without blank space in the path.
> > > > After reinstall Microsoft HPC in C:\MSHPC\MicrosoftHPCPack2012, I
> > > > configure
> > > > PETSc installation with
> > > >
> > > > ./configure --with-cc='win32fe cl' --with-fc='win32fe ifort'
> > > > --with-cxx='win32fe cl' --download-f-blas-lapack --with-threadcomm
> > > > --with-openmp
> > > > --with-mpi-include="/cygdrive/c/MSHPC/MicrosoftHPCPack2012/Inc"
> > > > --with-mpi-lib="/cygdrive/c/MSHPC/MicrosoftHPCPack2012/Lib/amd64/msmpi.lib" 
> > > >
> > > >
> > > > The error is as follows:
> > > >
> > > > ******************************************************************************* 
> > > >
> > > >           UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log
> > > > for
> > > > details):
> > > > ------------------------------------------------------------------------------- 
> > > >
> > > > Fortran error! mpi_init() could not be located!
> > > > ******************************************************************************* 
> > > >
> > > > > Thanks,
> > > > >
> > > > > Danyang
> > > > > > Satish
> > > > > >
> > > > > >
> > > > > > On Fri, 31 Jan 2014, Danyang Su wrote:
> > > > > >
> > > > > > > Hi Barry,
> > > > > > >
> > > > > > > The configure.log has been attached. I can configure with MPICH2
> > > > > > > before.
> > > > > > > There
> > > > > > > are three MPI implementations (MPICH2, Intel MPI and MSMPI) in  my
> > > > > > > computer,
> > > > > > > the intel mpi distribution comes along with the installation of
> > > > > > > Intel
> > > > > > > Parallel
> > > > > > > Studio. The MPICH2 and MSMPI is installed separately. Now I have
> > > > > > > uninstalled
> > > > > > > MPICH2 and there is only MSMPI (with sdk) and Intel MPI
> > > > > > > distribution.
> > > > > > > The system is WIN7 X64 Pro.
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Danyang
> > > > > > >
> > > > > > > On 30/01/2014 7:40 PM, Barry Smith wrote:
> > > > > > > >      We need configure.log
> > > > > > > >
> > > > > > > > On Jan 30, 2014, at 8:50 PM, Danyang Su <danyang.su at gmail.com>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > > Hi All,
> > > > > > > > >
> > > > > > > > > When configure petsc with msmpi
> > > > > > > > >
> > > > > > > > > ./configure --with-cc='win32fe cl' --with-fc='win32fe ifort'
> > > > > > > > > --with-cxx='win32fe cl' --download-f-blas-lapack
> > > > > > > > > --with-threadco
> > > > > > > > > mm --with-openmp --with-mpi-include="/cygdrive/c/Program
> > > > > > > > > Files/Microsoft
> > > > > > > > > HPC Pack 2008 R2/Inc" --with-mpi-lib="/cygdrive/c/Prog
> > > > > > > > > ram Files/Microsoft HPC Pack 2008 R2/Lib/amd64/msmpi.lib"
> > > > > > > > >
> > > > > > > > > I get the following error
> > > > > > > > >
> > > > > > > > > --with-mpi-lib=['/cygdrive/c/Program', 'Files/Microsoft',
> > > > > > > > > 'HPC',
> > > > > > > > > 'Pack',
> > > > > > > > > '2008', 'R2/Lib/amd64/msmpi.lib'] and
> > > > > > > > > --with-mpi-include=['/cygdrive/c/Program Files/Microsoft HPC
> > > > > > > > > Pack
> > > > > > > > > 2008
> > > > > > > > > R2/Inc'] did not work
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > >
> > > > > > > > > Danyang
> > > > > > >
> > > >
> > > >
> >
> 
> 
> 



More information about the petsc-users mailing list