<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div dir="auto">
<div dir="auto">Not sure if I did the same. I first made the petsc install in a folder in my cygwin home and then copied the mpich executables, their .dll dependencies, my executable and its dependencies in a folder on my desktop.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Then I went there with both terminals (cygwin and window) and launched using mpiexec.hydra.exe in the folder (noting the difference between using ./ and .\ prepended to both executables in the two terminals).</div>
<div dir="auto"><br>
</div>
<div dir="auto">With cygwin terminal things worked as expected. It is kind of premarure now for testing performances, but I feel that some compromise here can be admitted, considering the different constraints. I didn't pay too much attention in this phase
but I haven't seen nothing suspiciously slow as well (the point is that I don't have a native linux install now to make a meaningful comparison).</div>
<div dir="auto"><br>
</div>
<div dir="auto">However, running from the Windows terminal, things worked differently for me. It seems that it worked, but I had to give a second Enter hit... maybe I'm missing something behind the lines.</div>
<div dir="auto"><br>
</div>
<div dir="auto">I still have to recompile with OpenMPI to have a meaningful comparison</div>
<div dir="auto"><br>
</div>
<div dir="auto">Thanks</div>
<div dir="auto"><br>
</div>
<div dir="auto">Paolo </div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div id="x_composer_signature" dir="auto">
<div dir="auto" style="font-size:85%; color:#575757">Inviato da smartphone Samsung Galaxy.</div>
</div>
<div dir="auto"><br>
</div>
<div>-------- Messaggio originale --------</div>
<div>Da: Satish Balay <balay@mcs.anl.gov> </div>
<div>Data: 28/06/20 18:17 (GMT+01:00) </div>
<div>A: Satish Balay via petsc-users <petsc-users@mcs.anl.gov> </div>
<div>Cc: Paolo Lampitella <paololampitella@hotmail.com>, Pierre Jolivet <pierre.jolivet@enseeiht.fr>
</div>
<div>Oggetto: Re: [petsc-users] PETSc and Windows 10 </div>
<div><br>
</div>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">On Sun, 28 Jun 2020, Satish Balay via petsc-users wrote:<br>
<br>
> On Sun, 28 Jun 2020, Paolo Lampitella wrote:<br>
<br>
> > * For my Cygwin-GNU route (basically what is mentioned in PFLOTRAN documentation), am I expected to then run from the cygwin terminal or should the windows prompt work as well? Is the fact that I require a second Enter hit and the mismanagement of
serial executables the sign of something wrong with the Windows prompt?<br>
> <br>
> I would think Cygwin-GNU route should work. I'll have to see if I can reproduce the issues you have.<br>
<br>
I attempted a couple of builds - one with mpich and the other with cygwin-openmpi<br>
<br>
mpich compiled petsc example works sequentially - however mpiexec appears to require cygwin env.<br>
<br>
>>>>>>>><br>
C:\petsc-install\bin>ex5f<br>
Number of SNES iterations = 4<br>
<br>
C:\petsc-install\bin>mpiexec -n 1 ex5f<br>
[cli_0]: write_line error; fd=448 buf=:cmd=init pmi_version=1 pmi_subversion=1<br>
:<br>
system msg for write_line failure : Bad file descriptor<br>
[cli_0]: Unable to write to PMI_fd<br>
[cli_0]: write_line error; fd=448 buf=:cmd=get_appnum<br>
:<br>
system msg for write_line failure : Bad file descriptor<br>
Fatal error in MPI_Init: Other MPI error, error stack:<br>
MPIR_Init_thread(467):<br>
MPID_Init(140).......: channel initialization failed<br>
MPID_Init(421).......: PMI_Get_appnum returned -1<br>
[cli_0]: aborting job:<br>
Fatal error in MPI_Init: Other MPI error, error stack:<br>
MPIR_Init_thread(467):<br>
MPID_Init(140).......: channel initialization failed<br>
MPID_Init(421).......: PMI_Get_appnum returned -1<br>
<br>
C:\petsc-install\bin><br>
<<<<<<<br>
<br>
cygwin-openmpi compiled petsc example binary gives errors even for sequential run<br>
<br>
>>>>>>>><br>
C:\Users\balay\test>ex5f<br>
Warning: '/dev/shm' does not exists or is not a directory.<br>
<br>
POSIX shared memory objects require the existance of this directory.<br>
Create the directory '/dev/shm' and set the permissions to 01777.<br>
For instance on the command line: mkdir -m 01777 /dev/shm<br>
[ps5:00560] [[INVALID],INVALID] ORTE_ERROR_LOG: A system-required executable either could not be found or was not executable by this user in file /cygdrive/d/cyg_pub/devel/openmpi/v3.1/prova/openmpi-3.1.6-1.x86_64/src/openmpi-3.1.6/orte/mca/ess/singleton/ess_singleton_module.c
at line 388<br>
[ps5:00560] [[INVALID],INVALID] ORTE_ERROR_LOG: A system-required executable either could not be found or was not executable by this user in file /cygdrive/d/cyg_pub/devel/openmpi/v3.1/prova/openmpi-3.1.6-1.x86_64/src/openmpi-3.1.6/orte/mca/ess/singleton/ess_singleton_module.c
at line 166<br>
--------------------------------------------------------------------------<br>
Sorry! You were supposed to get help about:<br>
orte_init:startup:internal-failure<br>
But I couldn't open the help file:<br>
/usr/share/openmpi/help-orte-runtime: No such file or directory. Sorry!<br>
--------------------------------------------------------------------------<br>
<<<<<<<<br>
<br>
So looks like you would need cygwin installed to run Cygwin-MPI binaries.. Also I don't know how cygwin/windows interaction overhead will affect parallel performance.<br>
<br>
Satish<br>
</div>
</span></font>
</body>
</html>