<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>At least according to configure.log mpiexec was defined as</p>
<p>Checking for program
/opt/intel/oneapi/mpi/2021.4.0//bin/mpiexec...found<br>
Defined make macro "MPIEXECEXECUTABLE" to
"/opt/intel/oneapi/mpi/2021.4.0/bin/mpiexec"</p>
<p>When running ex19 with this mpiexec it fails with the usual
error, even though all configuration steps worked fine. I attached
the configuration log.<br>
</p>
<p>Regards,</p>
<p>Roland<br>
</p>
<div class="moz-cite-prefix">Am 11.10.21 um 14:24 schrieb Stefano
Zampini:<br>
</div>
<blockquote type="cite"
cite="mid:1280E270-AAA1-44CE-AE2A-93A2B70462E2@gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
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="moz-txt-link-freetext" moz-do-not-send="true">roland.richter@ntnu.no</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div 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="">
<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 class="" clear="all">
<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 class="" clear="all">
<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>
</blockquote>
</body>
</html>