[petsc-users] install PETSc on windows
Satish Balay
balay at mcs.anl.gov
Wed Dec 8 12:31:40 CST 2021
Do you get these errors with a petsc example?
BTW: Best to send text [via copy/paste] - instead if images.
Satish
On Tue, 7 Dec 2021, Ning Li wrote:
> I rebuilt HYPRE with cmake on my windows laptop. But this time I got more
> linker problems. Could you have a look at these linker errors? Thanks
> [image: image.png]
>
>
> On Tue, Dec 7, 2021 at 10:28 AM Satish Balay <balay at mcs.anl.gov> wrote:
>
> > Yes - you need to build hypre with the same mpi, compilers (compiler
> > options) as petsc.
> >
> > Satish
> >
> > On Tue, 7 Dec 2021, Ning Li wrote:
> >
> > > I tried to use this new PETSc in my application, and got this HYPRE
> > related
> > > error when I built a solution in visual studio.
> > > [image: image.png]
> > > I have installed the latest HYPRE on my laptop and linked it to my
> > > application, but I disabled MPI option when I configured HYPRE .
> > > Is this why this error occurred?
> > >
> > > On Tue, Dec 7, 2021 at 9:31 AM Satish Balay <balay at mcs.anl.gov> wrote:
> > >
> > > > Your build is with msmpi - but mpiexec from openmpi got used.
> > > >
> > > > You can try compiling and running examples manually [with the correct
> > > > mpiexec]
> > > >
> > > > Satish
> > > >
> > > > On Tue, 7 Dec 2021, liyuansen89 at gmail.com wrote:
> > > >
> > > > > Hi Satish,
> > > > >
> > > > > I have another question. After I run the check command, I got the
> > > > following
> > > > > output (the attached file), have I successfully installed the
> > library? Is
> > > > > there any error?
> > > > >
> > > > > Thanks
> > > > >
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: Satish Balay <balay at mcs.anl.gov>
> > > > > Sent: Monday, December 6, 2021 6:59 PM
> > > > > To: Ning Li <liyuansen89 at gmail.com>
> > > > > Cc: petsc-users <petsc-users at mcs.anl.gov>
> > > > > Subject: Re: [petsc-users] install PETSc on windows
> > > > >
> > > > > Glad it worked. Thanks for the update.
> > > > >
> > > > > Satish
> > > > >
> > > > > On Mon, 6 Dec 2021, Ning Li wrote:
> > > > >
> > > > > > Thanks for your reply.
> > > > > >
> > > > > > After I added '--with-shared-libraries=0', the configuration stage
> > > > > > passed and now it is executing the 'make' command!
> > > > > >
> > > > > > Thanks very much
> > > > > >
> > > > > > On Mon, Dec 6, 2021 at 5:21 PM Satish Balay <balay at mcs.anl.gov>
> > wrote:
> > > > > >
> > > > > > > >>>
> > > > > > > Executing: /home/LiNin/petsc-3.16.1/lib/petsc/bin/win32fe/win32fe
> > > > > > > ifort -o
> > > > > > >
> > > > >
> > > >
> > /cygdrive/c/Users/LiNin/AppData/Local/Temp/petsc-5ly209eh/config.libraries/c
> > > > > onftest.exe
> > > > > > > -MD -O3 -fpp
> > > > > > >
> > /cygdrive/c/Users/LiNin/AppData/Local/Temp/petsc-5ly209eh/config.lib
> > > > > > > raries/conftest.o /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\
> > > > > > > SDKs/MPI/Lib/x64/msmpi.lib /cygdrive/c/Program\ Files\
> > > > > > > \(x86\)/Microsoft\ SDKs/MPI/Lib/x64/msmpifec.lib Ws2_32.lib
> > > > > > > stdout: LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts
> > with
> > > > > > > use of other libs; use /NODEFAULTLIB:library <<<
> > > > > > >
> > > > > > > I'm not sure why this link command is giving this error. Can you
> > > > > > > retry with '--with-shared-libraries=0'?
> > > > > > >
> > > > > > > Satish
> > > > > > >
> > > > > > >
> > > > > > > On Mon, 6 Dec 2021, Ning Li wrote:
> > > > > > >
> > > > > > > > Howdy,
> > > > > > > >
> > > > > > > > I am trying to install PETSc on windows with cygwin but got an
> > mpi
> > > > > error.
> > > > > > > > Could you have a look at my issue and give me some
> > instructions?
> > > > > > > >
> > > > > > > > Here is the information about my environment:
> > > > > > > > 1. operation system: windows 11
> > > > > > > > 2. visual studio version: 2019
> > > > > > > > 3. intel one API toolkit is installed 4. Microsoft MS MPI is
> > > > > > > > installed.
> > > > > > > > 5. Intel MPI is uninstalled.
> > > > > > > > 6. PETSc version: 3.16.1
> > > > > > > >
> > > > > > > > this is my configuration:
> > > > > > > > ./configure --with-cc='win32fe cl' --with-fc='win32fe ifort'
> > > > > > > > --prefix=~/petsc-opt/ --PETSC_ARCH=windows-intel-opt
> > > > > > > > --with-mpi-include=['/cygdrive/c/Program Files (x86)/Microsoft
> > > > > > > > SDKs/MPI/Include','/cygdrive/c/Program Files (x86)/Microsoft
> > > > > > > > SDKs/MPI/Include/x64'] --with-mpi-lib=['/cygdrive/c/Program
> > Files
> > > > > > > > (x86)/Microsoft
> > SDKs/MPI/Lib/x64/msmpi.lib','/cygdrive/c/Program
> > > > > > > > Files (x86)/Microsoft SDKs/MPI/Lib/x64/msmpifec.lib']
> > > > > > > > --with-blas-lapack-lib=['/cygdrive/c/Program Files
> > > > > > > >
> > > > > > >
> > (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_intel_lp64.lib','/cy
> > > > > > > gdrive/c/Program
> > > > > > > > Files
> > > > > > > >
> > > > > > >
> > (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_core.lib','/cygdrive
> > > > > > > /c/Program
> > > > > > > > Files
> > > > > > > >
> > (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_sequential.lib']
> > > > > > > > --with-scalapack-include='/cygdrive/c/Program Files
> > > > > > > > (x86)/Intel/oneAPI/mkl/2021.3.0/include'
> > > > > > > > --with-scalapack-lib=['/cygdrive/c/Program Files
> > > > > > > >
> > > > > > >
> > (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_scalapack_lp64.lib',
> > > > > > > '/cygdrive/c/Program
> > > > > > > > Files
> > > > > > > >
> > (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_blacs_msmpi_lp64.l
> > > > > > > > ib']
> > > > > > > > --with-fortran-interfaces=1 --with-debugging=0
> > > > > > > >
> > > > > > > > attached is the configure.log file.
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > >
> > > > > > > > Ning Li
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>
More information about the petsc-users
mailing list