<div dir="ltr">typing error, should be --> **located at /usr/include/nvml.h**</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 14, 2021 at 5:47 PM Cristóbal Navarro <<a href="mailto:cristobal.navarro.g@gmail.com">cristobal.navarro.g@gmail.com</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 dir="ltr"><div>Hi community,</div><div>I have set up the configuration files as mentioned in the documentation, but the slurmd of the GPU-compute node fails with the following error shown in the log.<br></div><div>After reading the slurm documentation, it is not entirely clear to me how to properly set up GPU autodetection for the gres.conf file as it does not mention if the nvml detection should be automatic or not.<br></div><div>I have also read the top google searches including <a href="https://lists.schedmd.com/pipermail/slurm-users/2020-February/004832.html" target="_blank">https://lists.schedmd.com/pipermail/slurm-users/2020-February/004832.html</a> but that was a problem of a cuda installation overwritten (not my case).<br></div><div>This a DGX A100 node that comes with the Nvidia driver installed and nvml is located at /etc/include/nvml.h, not sure if there is a libnvml.so or similar as well.<br></div><div>How to tell SLURM to look at those paths? any ideas of experience sharing is welcome.</div><div>best<br></div><div></div><div><br></div><div><br></div><div><b>slurmd.log (GPU node)</b></div><div><span style="font-family:monospace">[2021-04-14T17:31:42.302] got shutdown request<br>[2021-04-14T17:31:42.302] all threads complete<br>[2021-04-14T17:31:42.303] debug2: _file_read_uint32s: unable to open '(null)/tasks' for reading : No such file or directory<br>[2021-04-14T17:31:42.303] debug2: xcgroup_get_pids: unable to get pids of '(null)'<br>[2021-04-14T17:31:42.303] debug2: _file_read_uint32s: unable to open '(null)/tasks' for reading : No such file or directory<br>[2021-04-14T17:31:42.303] debug2: xcgroup_get_pids: unable to get pids of '(null)'<br>[2021-04-14T17:31:42.304] debug:  gres/gpu: fini: unloading<br>[2021-04-14T17:31:42.304] debug:  gpu/generic: fini: fini: unloading GPU Generic plugin<br>[2021-04-14T17:31:42.304] select/cons_tres: common_fini: select/cons_tres shutting down ...<br>[2021-04-14T17:31:42.304] debug2: spank: spank_pyxis.so: slurmd_exit = 0<br>[2021-04-14T17:31:42.304] cred/munge: fini: Munge credential signature plugin unloaded<br>[2021-04-14T17:31:42.304] Slurmd shutdown completing<br>[2021-04-14T17:31:42.321] debug:  Log file re-opened<br>[2021-04-14T17:31:42.321] debug2: hwloc_topology_init<br>[2021-04-14T17:31:42.321] debug2: hwloc_topology_load<br>[2021-04-14T17:31:42.440] debug2: hwloc_topology_export_xml<br>[2021-04-14T17:31:42.446] Considering each NUMA node as a socket<br>[2021-04-14T17:31:42.446] debug:  CPUs:256 Boards:1 Sockets:8 CoresPerSocket:16 ThreadsPerCore:2<br>[2021-04-14T17:31:42.446] debug:  Reading cgroup.conf file /etc/slurm/cgroup.conf<br>[2021-04-14T17:31:42.447] debug2: hwloc_topology_init<br>[2021-04-14T17:31:42.447] debug2: xcpuinfo_hwloc_topo_load: xml file (/var/spool/slurmd/slurmd/hwloc_topo_whole.xml) found<br>[2021-04-14T17:31:42.448] Considering each NUMA node as a socket<br>[2021-04-14T17:31:42.448] debug:  CPUs:256 Boards:1 Sockets:8 CoresPerSocket:16 ThreadsPerCore:2<br>[2021-04-14T17:31:42.449] GRES: Global AutoDetect=nvml(1)<br>[2021-04-14T17:31:42.449] debug:  gres/gpu: init: loaded<br><b><span style="color:rgb(224,102,102)">[2021-04-14T17:31:42.449] fatal: We were configured to autodetect nvml functionality, but we weren't able to find that lib when Slurm was configured.</span></b></span><b><br><br><br></b></div><div><br></div><div><b>gres.conf (just AutoDetect=nvml)<br></b></div><div><span style="font-family:monospace">➜  ~ cat /etc/slurm/gres.conf<br># GRES configuration for native GPUS<br># DGX A100 8x Nvidia A100<br># not working, slurm cannot find nvml<br>AutoDetect=nvml<br>#Name=gpu File=/dev/nvidia[0-7]<br>#Name=gpu Type=A100 File=/dev/nvidia[0-7]<br>#Name=gpu Type=A100 File=/dev/nvidia0 Cores=0-7<br>#Name=gpu Type=A100 File=/dev/nvidia1 Cores=8-15<br>#Name=gpu Type=A100 File=/dev/nvidia2 Cores=16-23<br>#Name=gpu Type=A100 File=/dev/nvidia3 Cores=24-31<br>#Name=gpu Type=A100 File=/dev/nvidia4 Cores=32-39<br>#Name=gpu Type=A100 File=/dev/nvidia5 Cores=40-47<br>#Name=gpu Type=A100 File=/dev/nvidia6 Cores=48-55<br>#Name=gpu Type=A100 File=/dev/nvidia7 Cores=56-63</span></div><div><br></div><div><br></div><div><b>slurm.conf</b><span style="font-family:monospace"><br>GresTypes=gpu<br>AccountingStorageTRES=gres/gpu<br>DebugFlags=CPU_Bind,gres<br><br>## We don't want a node to go back in pool without sys admin acknowledgement<br>ReturnToService=0<br><br>## Basic scheduling<br>#SelectType=select/cons_res<br>SelectType=select/cons_tres<br>SelectTypeParameters=CR_Core_Memory,CR_ONE_TASK_PER_CORE<br>SchedulerType=sched/backfill<br><br>TaskPlugin=task/cgroup<br>ProctrackType=proctrack/cgroup<br><br>## Nodes list<br>## use native GPUs<br>NodeName=nodeGPU01 SocketsPerBoard=8 CoresPerSocket=16 ThreadsPerCore=2 RealMemory=1024000 State=UNKNOWN Gres=gpu:8 Feature=ht,gpu<br><br>## Partitions list<br>PartitionName=gpu OverSubscribe=FORCE DefCpuPerGPU=8 MaxTime=INFINITE State=UP Nodes=nodeGPU01  Default=YES<br>PartitionName=cpu OverSubscribe=FORCE MaxCPUsPerNode=128 MaxTime=INFINITE State=UP Nodes=nodeGPU01</span><br></div><div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Cristóbal A. Navarro<br></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Cristóbal A. Navarro<br></div></div></div></div></div></div>