<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Unfortunately, there isn’t an easy way not to link with some optional libraries that is available on the building host. Probably at some point we’ll clean up our configure scripts to approach optional libraries more consistently. For now,
all I can suggest is to hack it: modify `src/pm/hydra/configure.ac`, search for `have_libslurm`, it should land you somewhere that has `AC_CHECK_HEADERS` and `AC_CHECK_LIB` for slurm, delete both. Re-run `autogen.sh` follow by the usual `configure` and `make`.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">-- <br>
Hui Zhou<o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Per Berg via discuss <discuss@mpich.org><br>
<b>Reply-To: </b>"discuss@mpich.org" <discuss@mpich.org><br>
<b>Date: </b>Thursday, May 28, 2020 at 3:13 AM<br>
<b>To: </b>"discuss@mpich.org" <discuss@mpich.org><br>
<b>Cc: </b>Per Berg <peb@fcoo.dk><br>
<b>Subject: </b>[mpich-discuss] troubles with 3.3.2 and libslurm<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div id="divtagdefaultwrapper">
<div>
<div>
<div id="x_divtagdefaultwrapper">
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black">Hi,<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black">I have version 3.2 running smoothly. Now I want to upgrade to vers 3.3.2, but I get a problem that the libslurm.so is required by the mpiexec in v3.3.2. This is a pitty since I don't have
that on the compute nodes (and I don't use slurm). In vers3.2 this was not a problem.
<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black">I use the same compiler suite and the same configure arguments for both versions (except prefix path, of course).
<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black">From ldd on the mpiexec from v3.3.2 I get:<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black"> libslurm.so.29 => /usr/lib64/libslurm.so.29 (0x00007fc91ebf8000)<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black">which will eventually lead to runtime errors when running across nodes that don't have it.<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black">As said, vers3.2 doesn't have the slurm lib path burned into the mpiexec (and I don't need it).<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black">How do I get rid of the libslurm in mpiexec? Which combination of configure args should I use? I have tried a tons of different args, but without success.<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black">Please, help.<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black">Regards,<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black">Per<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
</div>
</div>
</body>
</html>