<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">You are most probably using a different mpiexec then the one used to compile petsc.<div class=""><br class=""></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 11, 2021, at 3:23 PM, Roland Richter <<a href="mailto:roland.richter@ntnu.no" class="">roland.richter@ntnu.no</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
<div class=""><p class="">I tried either <i class="">./ex19</i> (SNES-example), <i class="">mpirun ./ex19</i>
or <i class="">mpirun -n 1 ./ex19</i>, all with the same result.</p><p class="">Regards,</p><p class="">Roland<br class="">
</p>
<div class="moz-cite-prefix">Am 11.10.21 um 14:22 schrieb Matthew
Knepley:<br class="">
</div>
<blockquote type="cite" cite="mid:CAMYG4Gk+KxdcmJ27ZEoS1UFK4bfY5hgD8PLuc7rL4UNe219K3g@mail.gmail.com" class="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">On Mon, Oct 11, 2021 at 8:07 AM Roland Richter
<<a href="mailto:roland.richter@ntnu.no" moz-do-not-send="true" class="moz-txt-link-freetext">roland.richter@ntnu.no</a>>
wrote:<br class="">
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div class=""><p class="">Hei,</p><p class="">at least in gdb it fails with</p><p class=""><span style="font-family:monospace" class=""><span style="background-color: rgb(255, 255, 255);" class="">Attempting
to use an MPI routine before initializing MPICH </span><br class="">
[Inferior 1 (process 7854) exited with code 01] <br class="">
(gdb) backtrace <br class="">
No stack.<br class="">
</span></p>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">What were you running? If it never makes it into PETSc
code, I am not sure what we are</div>
<div class="">doing to cause this.</div>
<div class=""><br class="">
</div>
<div class=""> Thanks,</div>
<div class=""><br class="">
</div>
<div class=""> Matt</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div class=""><p class=""><span style="font-family:monospace" class=""> </span>Regards,</p><p class="">Roland<br class="">
<span style="font-family:monospace" class=""></span></p>
<div class="">Am 11.10.21 um 13:57 schrieb Matthew Knepley:<br class="">
</div>
<blockquote type="cite" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">On Mon, Oct 11, 2021 at 5:24 AM Roland
Richter <<a href="mailto:roland.richter@ntnu.no" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">roland.richter@ntnu.no</a>>
wrote:<br class="">
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px
0px 0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Hei,<br class="">
<br class="">
I compiled PETSc with Intel MPI (MPICH) and GCC as
compiler (i.e. using<br class="">
Intel OneAPI together with the supplied
mpicxx-compiler). Compilation<br class="">
and installation worked fine, but running the
tests resulted in the<br class="">
error "Attempting to use an MPI routine before
initializing MPICH". A<br class="">
simple test program (attached) worked fine with
the same combination.<br class="">
<br class="">
What could be the reason for that?<br class="">
</blockquote>
<div class=""><br class="">
</div>
<div class="">Hi Roland,</div>
<div class=""><br class="">
</div>
<div class="">Can you get a stack trace for this error using
the debugger?</div>
<div class=""><br class="">
</div>
<div class=""> Thanks,</div>
<div class=""><br class="">
</div>
<div class=""> Matt</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0px
0px 0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex"> Thanks!<br class="">
<br class="">
Regards,<br class="">
<br class="">
Roland Richter<br class="">
</blockquote>
</div>
<br clear="all" class="">
<div class=""><br class="">
</div>
-- <br class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">What most experimenters take for
granted before they begin their
experiments is infinitely more
interesting than any results to which
their experiments lead.<br class="">
-- Norbert Wiener</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" moz-do-not-send="true" class="">https://www.cse.buffalo.edu/~knepley/</a><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
<br clear="all" class="">
<div class=""><br class="">
</div>
-- <br class="">
<div dir="ltr" class="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">What most experimenters take for granted before
they begin their experiments is infinitely more
interesting than any results to which their
experiments lead.<br class="">
-- Norbert Wiener</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" moz-do-not-send="true" class="">https://www.cse.buffalo.edu/~knepley/</a><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div></blockquote></div><br class=""></div></body></html>