<div dir="ltr">Hi Palle,<div><br></div><div>You should  probably get the latest stable SLURM version from <a href="http://www.schedmd.com">www.schedmd.com</a> and use the build/install instructions found there. Note that you should check for WARNING messages in the config.log produced by SLURM's configure, as they're the best place to find you've missing packages that may be useful.</div><div><br></div><div>When configuring OpenMPI, you'll want to use "--with-pmi=/usr/local" if you build SLURM and install it into /usr/local. You'll probably also want "--enable-mpi-cxx".</div><div><br></div><div>Regards,</div><div>Sam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 20, 2019 at 12:33 PM Pär Lundö <<a href="mailto:par.lundo@foi.se">par.lundo@foi.se</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">
  

    
  
  <div bgcolor="#FFFFFF">
    <p>Dear all,</p>
    <p><br>
    </p>
    <p>I have been following this mailinglist for some time, and as a
      complete newbie using Slurm I have learned some lessons from you.</p>
    <p>I have an issue with building and configuring Slurm to use
      OpenMPI.</p>
    <p>When running srun for some task I get the error stating that
      Slurm has not been built or configured to use MPI and I am advised
      to rebuild it accordingly.<br>
    </p>
    <p>i have taken the following steps in order to configure and build
      Slurm with OpenMPI (or PMI2, it really doesnt matter for me right
      now, I just want to have the know how on this such configuration
      should be made).</p>
    <ol>
      <li>Download source-code via "apt-get source slurm-llnl" (current
        version for Ubuntu 18.10 is 17.11.9)</li>
      <li>Extracted the source code from the slurm-llnl_17.11.9-1.dsc"</li>
      <li>cd to source dir</li>
      <ol>
        <li>First I ran the following steps:</li>
        <ol>
          <li>"./configure --with-pmi"</li>
          <li>"debuild -i -us -uc -b" -> Fails.</li>
        </ol>
        <li>I then ran the following steps (noting that the
          "debuild-command" overwrites some configuration, thus I added
          "--with-pmi" for that case):</li>
        <ol>
          <li>debuild -i -us -uc -b" -> Fails</li>
        </ol>
      </ol>
    </ol>
    <p><br>
    </p>
    <p>I followed the same procedure when configuring OpenMPI to be
      built with Slurm, which worked after some back and forth with
      clean commands.</p>
    <p><br>
    </p>
    <p>Any suggestions as to why this does not work?</p>
    <p>I must be missing out on something very basic, because Slurm must
      surely be used with Ubuntu and OpenMPI .<br>
    </p>
    <p>Best regards,</p>
    <p>Palle <br>
    </p>
  </div>

</blockquote></div>