<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I did that too, and I am using the same compiler. <br>
</p>
<p>In fact I also checked the compilation of my code by setting
VERBOSE=1 and looking at the compilation command. It is indeed the
same compiler... It's pretty odd...</p>
<p>Thanks anyway,</p>
<p> D.<br>
</p>
<div class="moz-cite-prefix">On 12/10/2024 00:04, Junchao Zhang
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+MQGp9v3pAdOt7p1DECbzqZt2D4EK8WHy+XprtcbvFfEYKqtg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Check they are the same MPI wrappers(if you use them), for
example with "which mpicc" or "make V=1" to compare the exact
executable path</div>
<div><br>
</div>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">--Junchao Zhang</div>
</div>
</div>
<br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Oct 11, 2024 at
4:10 PM Daniel Pino Munoz <<a
href="mailto:daniel.pino_munoz@mines-paristech.fr"
moz-do-not-send="true" class="moz-txt-link-freetext">daniel.pino_munoz@mines-paristech.fr</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear
all,<br>
<br>
I am currently trying to compile my code but the compilation
fails with <br>
the following error:<br>
<br>
error "PETSc was configured with OpenMPI but now appears to be
compiling <br>
using a non-OpenMPI mpi.h<br>
<br>
I have obviously checked and I am compiling my sources using
the same <br>
compiler used to compile Petsc. To check this, I looked into
the <br>
configure.log file generated by petsc and verified that the
compiler <br>
listed was indeed the one currently been used to compile my
sources.<br>
<br>
Does anyone have any idea of where the problem might be coming
from?<br>
<br>
Thank you,<br>
<br>
D.<br>
<br>
</blockquote>
</div>
</blockquote>
</body>
</html>