<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Chuck,<br>
<br>
I have a an install of mpi that has no compiler wrappers. I know the
include dir and the list of libraries to use. How do I tell the new
cmake module? Is it no longer supported to tell the module what to
use for these?<br>
<br>
Burlen<br>
<br>
<div class="moz-cite-prefix">On 09/17/2018 06:46 AM, Chuck Atkins
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOXZzG7ri7CCx_LzZFBqs9ZEK2bQNRJ2gFUCeTzXRsvmxAHr-A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div dir="ltr">Hi Burlen<br>
<div><br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Of course I read
the documentation. </div>
</blockquote>
<div><br>
</div>
<div>I certainly didn't mean for that to come off as an
"rtfm", so my appologies if it did, that wasn't my intent.<br>
</div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">why did they
MPI_C_LIBRARIES and MPI_C_INCLUDE_DIRS/PATH get changed
from cache variables to not chached variables? that
seems to be the cause of the issue.</div>
</blockquote>
<div><br>
</div>
<div>There was a completere-write of FindMPI from scratch to
address a wide range of issues with it. In general many
of the "old" behaviors were in opposition to other
established "best practices" so it was re-written with
many of these in mind. As such, much of the old behavior
w.r.t. variable names may not have been preserved in an
attemnt to bring the behavior more inline with recommended
current CMake practices. So in some scenarios it should
be considdered a breaking change.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">Alas after trying various
settings described there in, nothing worked. my
settings are ignored and erased.<br>
</div>
</blockquote>
<div> </div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Now how does one
override the detection and tell it what to use in the
new module?<br>
</div>
</blockquote>
<div><br>
</div>
<div>There's several different scenarios to try to detect
MPI and I believe they happen in this order:</div>
<div>
<ol>
<li>Using the mpicc compiler wrapper as your "regular
compiler"</li>
<ul>
<li>libraries and includes should remain empty as
nothing needs to be added for MPI to work</li>
<li>This is the case when using the CrayPE wrappers</li>
</ul>
<li>Locating mpicc in your path and interrogating it</li>
<ul>
<li>Determined the set of includes and libraries to be
added to the regular compiler to make MPI work</li>
<li>This is the typical behavior that get's used in
*most* mpi environments.</li>
</ul>
<li>Falling back to manually searching for headers and
libraries<br>
</li>
</ol>
</div>
<div>Can you describe your environment and scenario more
specifically so I can try to reproduce it?</div>
<div><br>
</div>
<div>Thanks</div>
<div>- Chuck</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>