<html><head></head><body><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;"></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;">
        </div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;" dir="ltr" data-setdir="false">Hello,</div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;" dir="ltr" data-setdir="false"><br></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;" dir="ltr" data-setdir="false">I moved Intel-MPI libs to a directory without space, now the configuration/build of Petsc-3.12.4 worked with Intel-MPI, and test of ex2 worked well with mpiexec. However, my Fortran-90 program linked with this Petsc lib still crashed at calling <span><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">KSPSetType(ksp_solver,KSPBCGS,ierr), same as what happened when using MPICH2. I suspect the issue is not in MPI, but in how Petsc is configured/built in Windows-10 using Intel compilers (the same program in Win-7 works without problem). The configuration is attached below.</span></span></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;" dir="ltr" data-setdir="false"><span><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);"><br></span></span></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;" dir="ltr" data-setdir="false"><span><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);"><br></span></span></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;" dir="ltr" data-setdir="false"><span><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">Do you any suggestions how to proceed?</span></span></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;" dir="ltr" data-setdir="false"><span><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);"><br></span></span></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;" dir="ltr" data-setdir="false"><span><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">Thanks,</span></span></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;" dir="ltr" data-setdir="false"><span><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">Qin</span></span></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;" dir="ltr" data-setdir="false"><span><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);"><br></span></span></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;" dir="ltr" data-setdir="false"><span><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">============</span></span></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;" dir="ltr" data-setdir="false"><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-variant: normal; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);"><span><span style="font: 400 12pt/115% New serif; text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">./configure --with-cc='win32fe icl' --with-fc='win32fe ifort' --with-cxx='win32fe icl' --with-petsc-arch="arch-win64-release-intel-mpi"
 --prefix=/cygdrive/c/cygwin_cache/petsc-3.12.4-release-win-64bit-intel-mpi --with-blas-lapack-dir="/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018.5.274/windows/mkl/lib/intel64" --</span><span style="text-align: left; background-image: none; color: black; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: New serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; background-repeat: repeat; background-attachment: scroll; word-spacing: 0px; white-space: normal; orphans: 2; background-size: auto; background-color: white;">with</span><span style="font: 400 12pt/115% New serif; text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">-</span><span style="text-align: left; background-image: none; color: black; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: New serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; background-repeat: repeat; background-attachment: scroll; word-spacing: 0px; white-space: normal; orphans: 2; background-size: auto; background-color: white;">mpi</span><span style="font: 400 12pt/115% New serif; text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">-</span><span style="text-align: left; background-image: none; color: black; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: New serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; background-repeat: repeat; background-attachment: scroll; word-spacing: 0px; white-space: normal; orphans: 2; background-size: auto; background-color: white;">include</span><span style="font: 400 12pt/115% New serif; text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">="/cygdrive/c/cygwin_cache/Intel-mpi-2019.6.166/intel64/include"
 --</span><span style="text-align: left; background-image: none; color: black; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: New serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; background-repeat: repeat; background-attachment: scroll; word-spacing: 0px; white-space: normal; orphans: 2; background-size: auto; background-color: white;">with</span><span style="font: 400 12pt/115% New serif; text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">-</span><span style="text-align: left; background-image: none; color: black; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: New serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; background-repeat: repeat; background-attachment: scroll; word-spacing: 0px; white-space: normal; orphans: 2; background-size: auto; background-color: white;">mpi</span><span style="font: 400 12pt/115% New serif; text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">-</span><span style="text-align: left; background-image: none; color: black; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: New serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; background-repeat: repeat; background-attachment: scroll; word-spacing: 0px; white-space: normal; orphans: 2; background-size: auto; background-color: white;">lib</span><span style="font: 400 12pt/115% New serif; text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">="/cygdrive/c/cygwin_cache/Intel-mpi-2019.6.166/intel64/lib/release/impi.lib"  --</span><span style="text-align: left; background-image: none; color: black; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: New serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; background-repeat: repeat; background-attachment: scroll; word-spacing: 0px; white-space: normal; orphans: 2; background-size: auto; background-color: white;">with</span><span style="font: 400 12pt/115% New serif; text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">-</span><span style="text-align: left; background-image: none; color: black; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: New serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; background-repeat: repeat; background-attachment: scroll; word-spacing: 0px; white-space: normal; orphans: 2; background-size: auto; background-color: white;">mpi</span><span style="font: 400 12pt/115% New serif; text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">-</span><span style="text-align: left; background-image: none; color: black; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: New serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; background-repeat: repeat; background-attachment: scroll; word-spacing: 0px; white-space: normal; orphans: 2; background-size: auto; background-color: white;">compilers=0
</span><span style="font: 400 12pt/115% New serif; text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">--with-debugging=0 --useThreads=0 --with-x=0 --with-x11=0 --with-xt=0 --with-shared-libraries=0</span></span><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><br></span></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;" dir="ltr" data-setdir="false"><span><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);"><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><br></span></span></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;"><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><br></div><div class="ydpe2790939yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;">
        
        </div><div class="ydp1a9fb297yahoo_quoted" id="ydp1a9fb297yahoo_quoted_6281231568">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Tuesday, March 31, 2020, 08:39:01 AM CDT, Satish Balay via petsc-users <petsc-users@mcs.anl.gov> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">On Mon, 30 Mar 2020, Jacob Faibussowitsch wrote:<br clear="none"><br clear="none">> >> We just cannot cope with spaces in paths. Can you use the shortened<br clear="none">> >> contiguous name instead of "Program File"?<br clear="none">> <br clear="none">> FYI: Program Files or Program Files(x86) is where windows installs all of its applications (from OS or installed by user). It is best to install your MPI and other packages in root dir C:. Thats why for example MinGW installs itself in there, so it doesn’t have to deal with the space in the path.<br clear="none"><br clear="none">No need to do this alternate install if using cygpath - as per installation instructions <a href="https://www.mcs.anl.gov/petsc/documentation/installation.html" target="_blank" rel="nofollow" shape="rect">https://www.mcs.anl.gov/petsc/documentation/installation.html</a><br clear="none"><br clear="none">Satish<div class="ydp1a9fb297yqt9011750115" id="ydp1a9fb297yqtfd88163"><br clear="none"><br clear="none">> <br clear="none">> Best regards,<br clear="none">> <br clear="none">> Jacob Faibussowitsch<br clear="none">> (Jacob Fai - booss - oh - vitch)<br clear="none">> Cell: (312) 694-3391<br clear="none">> <br clear="none">> > On Mar 30, 2020, at 9:18 PM, Satish Balay via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank" rel="nofollow" shape="rect">petsc-users@mcs.anl.gov</a>> wrote:<br clear="none">> > <br clear="none">> > On Mon, 30 Mar 2020, Matthew Knepley wrote:<br clear="none">> > <br clear="none">> >> On Mon, Mar 30, 2020 at 9:28 PM Qin Lu <<a href="mailto:lu_qin_2000@yahoo.com" target="_blank" rel="nofollow" shape="rect">lu_qin_2000@yahoo.com</a>> wrote:<br clear="none">> >> <br clear="none">> >>> Hi,<br clear="none">> >>> <br clear="none">> >>> I installed Intel-MPI 2019, and configured petsc-3.12.4 using<br clear="none">> >>> --with-mpi-dir="/cygdrive/c/Program Files<br clear="none">> >>> (x86)/IntelSWTools/mpi/2019.6.166/intel64", it didn't work. So I change to<br clear="none">> >>> use --with-mpi-include and --with-mpi-lib, still didn't work. The<br clear="none">> >>> config.log is attached.<br clear="none">> >>> <br clear="none">> >>> The following is my configuration:<br clear="none">> >>> ===============<br clear="none">> >>> <br clear="none">> >>> ./configure --with-cc='win32fe icl' --with-fc='win32fe ifort'<br clear="none">> >>> --with-cxx='win32fe icl' --with-petsc-arch="arch-win64-release-intel-mpi"<br clear="none">> >>> --prefix=/cygdrive/c/cygwin_cache/petsc-3.12.4-release-win-64bit-intel-mpi<br clear="none">> >>> --with-blas-lapack-dir="/cygdrive/c/Program Files<br clear="none">> >>> (x86)/IntelSWTools/compilers_and_libraries_2018.5.274/windows/mkl/lib/intel64"<br clear="none">> >>> --with-mpi-include="/cygdrive/c/Program Files<br clear="none">> >>> (x86)/IntelSWTools/mpi/2019.6.166/intel64/include" --with-mpi-lib="/cygdrive/c/Program<br clear="none">> >>> Files (x86)/IntelSWTools/mpi/2019.6.166/intel64/lib/impicxx.lib"  --with-<br clear="none">> >>> mpi-compilers=0 --with-debugging=0 --useThreads=0 --with-x=0 --with-x11=0<br clear="none">> >>> --with-xt=0 --with-shared-libraries=0<br clear="none">> >>> <br clear="none">> >>> =============<br clear="none">> >>> <br clear="none">> >>> Thanks for any suggestions.<br clear="none">> >>> <br clear="none">> >> We just cannot cope with spaces in paths. Can you use the shortened<br clear="none">> >> contiguous name instead of "Program File"?<br clear="none">> > <br clear="none">> > <br clear="none">> > Yeah - the config/examples/arch-ci-mswin*.py lists paths without spaces - and <a href="https://www.mcs.anl.gov/petsc/documentation/installation.html " target="_blank" rel="nofollow" shape="rect">https://www.mcs.anl.gov/petsc/documentation/installation.html </a><<a href="https://www.mcs.anl.gov/petsc/documentation/installation.html" target="_blank" rel="nofollow" shape="rect">https://www.mcs.anl.gov/petsc/documentation/installation.html</a>> has the instructions<br clear="none">> > <br clear="none">> > The way to get this is: (for example)<br clear="none">> > <br clear="none">> > <a href="mailto:balay@ps5" target="_blank" rel="nofollow" shape="rect">balay@ps5</a> ~<br clear="none">> > $ cygpath -u `cygpath -ms '/cygdrive/C/Program Files/Microsoft MPI/Bin/mpiexec'`<br clear="none">> > /cygdrive/c/PROGRA~1/MICROS~2/Bin/mpiexec.exe<br clear="none">> > <br clear="none">> > Satish<br clear="none">> > <br clear="none">> > <br clear="none">> > <br clear="none">> >> <br clear="none">> >>  Thanks,<br clear="none">> >> <br clear="none">> >>    Matt<br clear="none">> >> <br clear="none">> >>> Regards,<br clear="none">> >>> <br clear="none">> >>> Qin<br clear="none">> >>> <br clear="none">> >>> <br clear="none">> >>> <br clear="none">> >>> <br clear="none">> >>> <br clear="none">> >>> On Monday, March 30, 2020, 04:15:14 PM CDT, Matthew Knepley <<br clear="none">> >>> <a href="mailto:knepley@gmail.com" target="_blank" rel="nofollow" shape="rect">knepley@gmail.com</a>> wrote:<br clear="none">> >>> <br clear="none">> >>> <br clear="none">> >>> On Mon, Mar 30, 2020 at 4:43 PM Qin Lu via petsc-users <<br clear="none">> >>> <a href="mailto:petsc-users@mcs.anl.gov" target="_blank" rel="nofollow" shape="rect">petsc-users@mcs.anl.gov</a>> wrote:<br clear="none">> >>> <br clear="none">> >>> Hi Satish,<br clear="none">> >>> <br clear="none">> >>> The ex2.exe works with "mpiexec -np 2" when I ran it from command line.<br clear="none">> >>> Then I ran "which mpiexec", it actually points to Intel-MPI instead of<br clear="none">> >>> MPICH2, probably because I have set the former's path in environment<br clear="none">> >>> variable PATH in Win-10. I will try to reinstall Intel-MPI and build Petsc<br clear="none">> >>> with Intel-MPI.<br clear="none">> >>> <br clear="none">> >>> As for the crash of calling to KSPSetPCSide(ksp_solver,PC_RIGHT,ierr) in<br clear="none">> >>> my Fortran-90 program, do you have any idea what can be wrong? Can it be<br clear="none">> >>> related to MPI?<br clear="none">> >>> <br clear="none">> >>> I tested config/examples/arch-ci-mswin-intel.py as you suggested, but got<br clear="none">> >>> the following output:<br clear="none">> >>> <br clear="none">> >>> ============<br clear="none">> >>> python ./arch-ci-mswin-intel.py<br clear="none">> >>> Traceback (most recent call last):<br clear="none">> >>>  File "./arch-ci-mswin-intel.py", line 10, in <module><br clear="none">> >>>    import configure<br clear="none">> >>> ImportError: No module named configure<br clear="none">> >>> ============<br clear="none">> >>> <br clear="none">> >>> <br clear="none">> >>> You have to run those from $PETSC_DIR.<br clear="none">> >>> <br clear="none">> >>>  Matt<br clear="none">> >>> <br clear="none">> >>> <br clear="none">> >>> Thanks,<br clear="none">> >>> Qin<br clear="none">> >>> <br clear="none">> >>> <br clear="none">> >>> <br clear="none">> >>> I will try to use Intel-MPI and see what will happen.<br clear="none">> >>> <br clear="none">> >>> Thanks,<br clear="none">> >>> Qin<br clear="none">> >>> <br clear="none">> >>> On Monday, March 30, 2020, 01:47:49 PM CDT, Satish Balay <<br clear="none">> >>> <a href="mailto:balay@mcs.anl.gov" target="_blank" rel="nofollow" shape="rect">balay@mcs.anl.gov</a>> wrote:<br clear="none">> >>> <br clear="none">> >>> <br clear="none">> >>> Please preserve cc: to the list<br clear="none">> >>> <br clear="none">> >>>> shared libraries: disabled<br clear="none">> >>> <br clear="none">> >>> So PETSc  is correctly built as static.<br clear="none">> >>> <br clear="none">> >>>>> C:/Program Files/mpich2x64/bin/mpiexec.exe: error while loading shared<br clear="none">> >>> libraries: ?: cannot open shared object file: No such file or directory<br clear="none">> >>> <br clear="none">> >>> So its not clear which shared library this error is referring to. But then<br clear="none">> >>> - this error was with petsc-3.4.2<br clear="none">> >>> <br clear="none">> >>> You can always try to run the code manually without mpiexec - and see if<br clear="none">> >>> that works.<br clear="none">> >>> <br clear="none">> >>> cd src/ksp/ksp/examples/tutorials<br clear="none">> >>> make ex2<br clear="none">> >>> ./ex2<br clear="none">> >>> <br clear="none">> >>> Wrt MSMPI - yes its free to download<br clear="none">> >>> <br clear="none">> >>> And PETSc does work with Intel-MPI. It might be a separate<br clear="none">> >>> download/install. [so I can't say if what you have is the correct install<br clear="none">> >>> of IntelMPI or not]<br clear="none">> >>> <br clear="none">> >>> Check the builds we use for testing - for ex:<br clear="none">> >>> config/examples/arch-ci-mswin-*.py<br clear="none">> >>> <br clear="none">> >>> Satish<br clear="none">> >>> <br clear="none">> >>> On Mon, 30 Mar 2020, Qin Lu wrote:<br clear="none">> >>> <br clear="none">> >>>> Hi Satish,<br clear="none">> >>>> The configure.log and RDict.log of  Petsc-3.12.4 build is attached.<br clear="none">> >>>> Is the MSMPI free to use in Windows-10?<br clear="none">> >>>> Does Petsc support Intel-MPI? I have it in my machine, but for some<br clear="none">> >>> reason I only find the /mpi/intel64/bin, but not /mpi/intel64/include<br clear="none">> >>> subdirectory of it.<br clear="none">> >>>> Thanks a lot for your help.Qin<br clear="none">> >>>>   On Monday, March 30, 2020, 12:26:09 PM CDT, Satish Balay <<br clear="none">> >>> <a href="mailto:balay@mcs.anl.gov" target="_blank" rel="nofollow" shape="rect">balay@mcs.anl.gov</a>> wrote:<br clear="none">> >>>> <br clear="none">> >>>> MPICH is unsupported - and we haven't tested with it for a long time.<br clear="none">> >>>> <br clear="none">> >>>> And petsc-3.4.2 is from 2013 - and untested with current gen<br clear="none">> >>> os/compilers/libraries.<br clear="none">> >>>> <br clear="none">> >>>> Can you send logs from Petsc-3.12.4 build [or try latest Petsc-3.13.0]?<br clear="none">> >>>> <br clear="none">> >>>> We recommend 64bit MSMPI for windows.<br clear="none">> >>>> <br clear="none">> >>>> Satish<br clear="none">> >>>> <br clear="none">> >>>> On Mon, 30 Mar 2020, Qin Lu via petsc-users wrote:<br clear="none">> >>>> <br clear="none">> >>>>> Hello,<br clear="none">> >>>>> I am trying to build Petsc-3.4.2 in my Windows-10 workstation using<br clear="none">> >>> Cygwin, with Intel-2018 compilers and MKL, and MPICH2. The<br clear="none">> >>> configuration/compilation/installation seem to finish without problem, but<br clear="none">> >>> test program (ex19) failed since it could not find a shared lib. Then I<br clear="none">> >>> linked the libpetsc.lib with my program (in Fortran-90), but it got run<br clear="none">> >>> time crash when it calls KSPSetPCSide(ksp_solver,PC_RIGHT,ierr) or other<br clear="none">> >>> Petsc subroutines. Note that this package was built, tested and worked well<br clear="none">> >>> with the same Fortran-90 program in my Windows-7 workstation.<br clear="none">> >>>>> <br clear="none">> >>>>> Also tried Petsc-3.12.4 but got the same errors.<br clear="none">> >>>>> <br clear="none">> >>>>> The following is my configuration:<br clear="none">> >>>>> <br clear="none">> >>>>> <br clear="none">> >>>>> ===============<br clear="none">> >>>>> <br clear="none">> >>>>> ./configure --with-cc='win32fe icl' --with-fc='win32fe ifort'<br clear="none">> >>> --with-cxx='win32fe icl' --with-petsc-arch="arch-win64-release"<br clear="none">> >>> --prefix=/cygdrive/c/cygwin_cache/petsc-3.4.2-release-win-64bit<br clear="none">> >>> --with-blas-lapack-dir="/cygdrive/c/Program Files<br clear="none">> >>> (x86)/IntelSWTools/compilers_and_libraries_2018.5.274/windows/mkl/lib/intel64"<br clear="none">> >>> --with-mpi-dir="/cygdrive/c/Program Files/mpich2x64" --with-debugging=0<br clear="none">> >>> --useThreads=0 --with-x=0 --with-x11=0 --with-xt=0 --with-shared-libraries=0<br clear="none">> >>>>> <br clear="none">> >>>>> ===============<br clear="none">> >>>>> <br clear="none">> >>>>> <br clear="none">> >>>>> The error message of running ex19 is:<br clear="none">> >>>>> <br clear="none">> >>>>> <br clear="none">> >>>>> =================<br clear="none">> >>>>> <br clear="none">> >>>>> $ make PETSC_DIR=/cygdrive/c/cygwin_cache/petsc-3.4.2-debug-win-64bit<br clear="none">> >>> test<br clear="none">> >>>>> <br clear="none">> >>>>> Running test examples to verify correct installation<br clear="none">> >>>>> <br clear="none">> >>>>> Using PETSC_DIR=/cygdrive/c/cygwin_cache/petsc-3.4.2-debug-win-64bit<br clear="none">> >>> and PETSC_ARCH=arch-win64-debug<br clear="none">> >>>>> <br clear="none">> >>>>> Possible error running C/C++ src/snes/examples/tutorials/ex19 with 1<br clear="none">> >>> MPI process<br clear="none">> >>>>> <br clear="none">> >>>>> See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank" rel="nofollow" shape="rect">http://www.mcs.anl.gov/petsc/documentation/faq.html</a><br clear="none">> >>>>> <br clear="none">> >>>>> C:/Program Files/mpich2x64/bin/mpiexec.exe: error while loading shared<br clear="none">> >>> libraries: ?: cannot open shared object file: No such file or directory<br clear="none">> >>>>> <br clear="none">> >>>>> =================<br clear="none">> >>>>> <br clear="none">> >>>>> <br clear="none">> >>>>> Thanks a lot for any suggestions.<br clear="none">> >>>>> <br clear="none">> >>>>> <br clear="none">> >>>>> Best Regards,<br clear="none">> >>>>> <br clear="none">> >>>>> Qin<br clear="none">> >>> <br clear="none">> >>>>> <br clear="none">> >>>>> <br clear="none">> >>>>> <br clear="none">> >>>>> <br clear="none">> >>>>> <br clear="none">> >>> <br clear="none">> >>> <br clear="none">> >>> <br clear="none">> >>> --<br clear="none">> >>> What most experimenters take for granted before they begin their<br clear="none">> >>> experiments is infinitely more interesting than any results to which their<br clear="none">> >>> experiments lead.<br clear="none">> >>> -- Norbert Wiener<br clear="none">> >>> <br clear="none">> >>> <a href="https://www.cse.buffalo.edu/~knepley/" target="_blank" rel="nofollow" shape="rect">https://www.cse.buffalo.edu/~knepley/</a><br clear="none">> >>> <<a href="http://www.cse.buffalo.edu/~knepley/ " target="_blank" rel="nofollow" shape="rect">http://www.cse.buffalo.edu/~knepley/ </a><<a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" rel="nofollow" shape="rect">http://www.cse.buffalo.edu/~knepley/</a>>><br clear="none">> <br clear="none">> <br clear="none"></div></div></div>
            </div>
        </div></body></html>