[slurm-users] NVML not found when Slurm was configured.

Groner, Rob rug262 at psu.edu
Fri Nov 11 14:32:11 UTC 2022


Hi Mike,

I can't tell if you're compiling slurm or not on your own.  You will have to if you want the functionality.

On RedHat8, I had to install cuda-nvml-devel-11-7, so find what the equivalent is for that in Ubuntu.  Basically, whatever package includes nvml.h and libnvidia-ml.so.  Then, modify your configure statement when building slurm to add "--with-nvml".  Check the configure output, because it may still not find it (it didn't on our system because we installed the devel package to a non-standard location.  If that's the case, you just change it to --with-nvml=<path to nvml lib dir>.  Then it should all work.

I'll note once it's all setup, then your gres.conf becomes just "<nodenames> AutoDetect=nvml"

G'luck.

rob

________________________________
From: slurm-users <slurm-users-bounces at lists.schedmd.com> on behalf of Michael Lewis <mike.lewis at queensu.ca>
Sent: Friday, November 11, 2022 9:12 AM
To: slurm-users at lists.schedmd.com <slurm-users at lists.schedmd.com>
Subject: [slurm-users] NVML not found when Slurm was configured.

You don't often get email from mike.lewis at queensu.ca. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>

Hello Everyone,



New here and very new to slurm and hopefully someone can shed some light on this for me.  I’m in the process of setting up a single node slurm environment with nvidia a100.  I keep getting the error We were configured to autodetect nvml functionality, but we weren't able to find that lib when Slurm was configured.  when trying to start slurmd.  When removing GresTypes=gpu from slurm.conf slurmd starts up fine and can queue up and run jobs.  Cuda toolkit is installed along with NVIDIA Management Library (NVML).  I went as far as removing slurm and reinstalling to see if it would pick it up.  No go.



OS Ubuntu 20.04,  slurm.conf GresTypes=gpu is added, gres.conf AutoDetect=nvml Name=gpu Type=a100 File=/dev/nvidia0 COREs=0,1



I’ve searched around and see that many others have run into this but I haven’t found a fix yet.  Any help would be greatly appreciated.



Thanks,



Mike




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20221111/c93c4ea7/attachment-0001.htm>


More information about the slurm-users mailing list