<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">We just cannot cope with spaces in paths. Can you use the shortened<br class="">contiguous name instead of "Program File"?</blockquote></blockquote><div class=""><br class=""></div>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.<div class=""><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div>Best regards,<br class=""><br class="">Jacob Faibussowitsch<br class="">(Jacob Fai - booss - oh - vitch)<br class="">Cell: (312) 694-3391</div></div>

</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Mar 30, 2020, at 9:18 PM, Satish Balay via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" class="">petsc-users@mcs.anl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">On Mon, 30 Mar 2020, Matthew Knepley wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">On Mon, Mar 30, 2020 at 9:28 PM Qin Lu <<a href="mailto:lu_qin_2000@yahoo.com" class="">lu_qin_2000@yahoo.com</a>> wrote:<br class=""><br class=""><blockquote type="cite" class="">Hi,<br class=""><br class="">I installed Intel-MPI 2019, and configured petsc-3.12.4 using<br class="">--with-mpi-dir="/cygdrive/c/Program Files<br class="">(x86)/IntelSWTools/mpi/2019.6.166/intel64", it didn't work. So I change to<br class="">use --with-mpi-include and --with-mpi-lib, still didn't work. The<br class="">config.log is attached.<br class=""><br class="">The following is my configuration:<br class="">===============<br class=""><br class="">./configure --with-cc='win32fe icl' --with-fc='win32fe ifort'<br class="">--with-cxx='win32fe icl' --with-petsc-arch="arch-win64-release-intel-mpi"<br class="">--prefix=/cygdrive/c/cygwin_cache/petsc-3.12.4-release-win-64bit-intel-mpi<br class="">--with-blas-lapack-dir="/cygdrive/c/Program Files<br class="">(x86)/IntelSWTools/compilers_and_libraries_2018.5.274/windows/mkl/lib/intel64"<br class="">--with-mpi-include="/cygdrive/c/Program Files<br class="">(x86)/IntelSWTools/mpi/2019.6.166/intel64/include" --with-mpi-lib="/cygdrive/c/Program<br class="">Files (x86)/IntelSWTools/mpi/2019.6.166/intel64/lib/impicxx.lib"  --with-<br class="">mpi-compilers=0 --with-debugging=0 --useThreads=0 --with-x=0 --with-x11=0<br class="">--with-xt=0 --with-shared-libraries=0<br class=""><br class="">=============<br class=""><br class="">Thanks for any suggestions.<br class=""><br class=""></blockquote>We just cannot cope with spaces in paths. Can you use the shortened<br class="">contiguous name instead of "Program File"?<br class=""></blockquote><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Yeah - the config/examples/arch-ci-mswin*.py lists paths without spaces - and<span class="Apple-converted-space"> </span></span><a href="https://www.mcs.anl.gov/petsc/documentation/installation.html" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://www.mcs.anl.gov/petsc/documentation/installation.html</a><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""><span class="Apple-converted-space"> </span>has the instructions</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">The way to get this is: (for example)</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">balay@ps5 ~</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">$ cygpath -u `cygpath -ms '/cygdrive/C/Program Files/Microsoft MPI/Bin/mpiexec'`</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">/cygdrive/c/PROGRA~1/MICROS~2/Bin/mpiexec.exe</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Satish</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""> Thanks,<br class=""><br class="">   Matt<br class=""><br class=""><blockquote type="cite" class="">Regards,<br class=""><br class="">Qin<br class=""><br class=""><br class=""><br class=""><br class=""><br class="">On Monday, March 30, 2020, 04:15:14 PM CDT, Matthew Knepley <<br class=""><a href="mailto:knepley@gmail.com" class="">knepley@gmail.com</a>> wrote:<br class=""><br class=""><br class="">On Mon, Mar 30, 2020 at 4:43 PM Qin Lu via petsc-users <<br class=""><a href="mailto:petsc-users@mcs.anl.gov" class="">petsc-users@mcs.anl.gov</a>> wrote:<br class=""><br class="">Hi Satish,<br class=""><br class="">The ex2.exe works with "mpiexec -np 2" when I ran it from command line.<br class="">Then I ran "which mpiexec", it actually points to Intel-MPI instead of<br class="">MPICH2, probably because I have set the former's path in environment<br class="">variable PATH in Win-10. I will try to reinstall Intel-MPI and build Petsc<br class="">with Intel-MPI.<br class=""><br class="">As for the crash of calling to KSPSetPCSide(ksp_solver,PC_RIGHT,ierr) in<br class="">my Fortran-90 program, do you have any idea what can be wrong? Can it be<br class="">related to MPI?<br class=""><br class="">I tested config/examples/arch-ci-mswin-intel.py as you suggested, but got<br class="">the following output:<br class=""><br class="">============<br class="">python ./arch-ci-mswin-intel.py<br class="">Traceback (most recent call last):<br class=""> File "./arch-ci-mswin-intel.py", line 10, in <module><br class="">   import configure<br class="">ImportError: No module named configure<br class="">============<br class=""><br class=""><br class="">You have to run those from $PETSC_DIR.<br class=""><br class=""> Matt<br class=""><br class=""><br class="">Thanks,<br class="">Qin<br class=""><br class=""><br class=""><br class="">I will try to use Intel-MPI and see what will happen.<br class=""><br class="">Thanks,<br class="">Qin<br class=""><br class="">On Monday, March 30, 2020, 01:47:49 PM CDT, Satish Balay <<br class=""><a href="mailto:balay@mcs.anl.gov" class="">balay@mcs.anl.gov</a>> wrote:<br class=""><br class=""><br class="">Please preserve cc: to the list<br class=""><br class=""><blockquote type="cite" class="">shared libraries: disabled<br class=""></blockquote><br class="">So PETSc  is correctly built as static.<br class=""><br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">C:/Program Files/mpich2x64/bin/mpiexec.exe: error while loading shared<br class=""></blockquote></blockquote>libraries: ?: cannot open shared object file: No such file or directory<br class=""><br class="">So its not clear which shared library this error is referring to. But then<br class="">- this error was with petsc-3.4.2<br class=""><br class="">You can always try to run the code manually without mpiexec - and see if<br class="">that works.<br class=""><br class="">cd src/ksp/ksp/examples/tutorials<br class="">make ex2<br class="">./ex2<br class=""><br class="">Wrt MSMPI - yes its free to download<br class=""><br class="">And PETSc does work with Intel-MPI. It might be a separate<br class="">download/install. [so I can't say if what you have is the correct install<br class="">of IntelMPI or not]<br class=""><br class="">Check the builds we use for testing - for ex:<br class="">config/examples/arch-ci-mswin-*.py<br class=""><br class="">Satish<br class=""><br class="">On Mon, 30 Mar 2020, Qin Lu wrote:<br class=""><br class=""><blockquote type="cite" class="">Hi Satish,<br class="">The configure.log and RDict.log of  Petsc-3.12.4 build is attached.<br class="">Is the MSMPI free to use in Windows-10?<br class="">Does Petsc support Intel-MPI? I have it in my machine, but for some<br class=""></blockquote>reason I only find the /mpi/intel64/bin, but not /mpi/intel64/include<br class="">subdirectory of it.<br class=""><blockquote type="cite" class="">Thanks a lot for your help.Qin<br class="">  On Monday, March 30, 2020, 12:26:09 PM CDT, Satish Balay <<br class=""></blockquote><a href="mailto:balay@mcs.anl.gov" class="">balay@mcs.anl.gov</a>> wrote:<br class=""><blockquote type="cite" class=""><br class="">MPICH is unsupported - and we haven't tested with it for a long time.<br class=""><br class="">And petsc-3.4.2 is from 2013 - and untested with current gen<br class=""></blockquote>os/compilers/libraries.<br class=""><blockquote type="cite" class=""><br class="">Can you send logs from Petsc-3.12.4 build [or try latest Petsc-3.13.0]?<br class=""><br class="">We recommend 64bit MSMPI for windows.<br class=""><br class="">Satish<br class=""><br class="">On Mon, 30 Mar 2020, Qin Lu via petsc-users wrote:<br class=""><br class=""><blockquote type="cite" class="">Hello,<br class="">I am trying to build Petsc-3.4.2 in my Windows-10 workstation using<br class=""></blockquote></blockquote>Cygwin, with Intel-2018 compilers and MKL, and MPICH2. The<br class="">configuration/compilation/installation seem to finish without problem, but<br class="">test program (ex19) failed since it could not find a shared lib. Then I<br class="">linked the libpetsc.lib with my program (in Fortran-90), but it got run<br class="">time crash when it calls KSPSetPCSide(ksp_solver,PC_RIGHT,ierr) or other<br class="">Petsc subroutines. Note that this package was built, tested and worked well<br class="">with the same Fortran-90 program in my Windows-7 workstation.<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class="">Also tried Petsc-3.12.4 but got the same errors.<br class=""><br class="">The following is my configuration:<br class=""><br class=""><br class="">===============<br class=""><br class="">./configure --with-cc='win32fe icl' --with-fc='win32fe ifort'<br class=""></blockquote></blockquote>--with-cxx='win32fe icl' --with-petsc-arch="arch-win64-release"<br class="">--prefix=/cygdrive/c/cygwin_cache/petsc-3.4.2-release-win-64bit<br class="">--with-blas-lapack-dir="/cygdrive/c/Program Files<br class="">(x86)/IntelSWTools/compilers_and_libraries_2018.5.274/windows/mkl/lib/intel64"<br class="">--with-mpi-dir="/cygdrive/c/Program Files/mpich2x64" --with-debugging=0<br class="">--useThreads=0 --with-x=0 --with-x11=0 --with-xt=0 --with-shared-libraries=0<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class="">===============<br class=""><br class=""><br class="">The error message of running ex19 is:<br class=""><br class=""><br class="">=================<br class=""><br class="">$ make PETSC_DIR=/cygdrive/c/cygwin_cache/petsc-3.4.2-debug-win-64bit<br class=""></blockquote></blockquote>test<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class="">Running test examples to verify correct installation<br class=""><br class="">Using PETSC_DIR=/cygdrive/c/cygwin_cache/petsc-3.4.2-debug-win-64bit<br class=""></blockquote></blockquote>and PETSC_ARCH=arch-win64-debug<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class="">Possible error running C/C++ src/snes/examples/tutorials/ex19 with 1<br class=""></blockquote></blockquote>MPI process<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class="">See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" class="">http://www.mcs.anl.gov/petsc/documentation/faq.html</a><br class=""><br class="">C:/Program Files/mpich2x64/bin/mpiexec.exe: error while loading shared<br class=""></blockquote></blockquote>libraries: ?: cannot open shared object file: No such file or directory<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class="">=================<br class=""><br class=""><br class="">Thanks a lot for any suggestions.<br class=""><br class=""><br class="">Best Regards,<br class=""><br class="">Qin<br class=""></blockquote></blockquote><br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class=""><br class=""><br class=""><br class=""><br class=""></blockquote></blockquote><br class=""><br class=""><br class="">--<br class="">What most experimenters take for granted before they begin their<br class="">experiments is infinitely more interesting than any results to which their<br class="">experiments lead.<br class="">-- Norbert Wiener<br class=""><br class=""><a href="https://www.cse.buffalo.edu/~knepley/" class="">https://www.cse.buffalo.edu/~knepley/</a><br class=""><<a href="http://www.cse.buffalo.edu/~knepley/" class="">http://www.cse.buffalo.edu/~knepley/</a>></blockquote></blockquote></div></blockquote></div><br class=""></div></body></html>