aboutsummaryrefslogtreecommitdiff
path: root/sysutils/slurm-wlm
diff options
context:
space:
mode:
authorJason W. Bacon <jwb@FreeBSD.org>2021-01-07 20:32:46 +0000
committerJason W. Bacon <jwb@FreeBSD.org>2021-01-07 20:32:46 +0000
commit97c163bbefb764e0fb7e8c78d204838b9b6d36de (patch)
treeb986176c84e570d9f18987287a36d55a4293ac75 /sysutils/slurm-wlm
parentf972c72100cb01a6b9f0c689d27ae5a2202372ab (diff)
downloadports-97c163bbefb764e0fb7e8c78d204838b9b6d36de.tar.gz
ports-97c163bbefb764e0fb7e8c78d204838b9b6d36de.zip
sysutils/slurm-wlm: Switch from hwloc to hwloc2
Also minor improvements to example slurm.conf PR: 252495 Reported by: thierry
Notes
Notes: svn path=/head/; revision=560733
Diffstat (limited to 'sysutils/slurm-wlm')
-rw-r--r--sysutils/slurm-wlm/Makefile4
-rw-r--r--sysutils/slurm-wlm/files/patch-etc_slurm.conf.example23
2 files changed, 14 insertions, 13 deletions
diff --git a/sysutils/slurm-wlm/Makefile b/sysutils/slurm-wlm/Makefile
index cbfa24ea9d21..8065c4a63afb 100644
--- a/sysutils/slurm-wlm/Makefile
+++ b/sysutils/slurm-wlm/Makefile
@@ -2,7 +2,7 @@
PORTNAME= slurm
DISTVERSION= 20.02.1
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= sysutils python
MASTER_SITES= https://download.schedmd.com/slurm/
PKGNAMESUFFIX= -wlm
@@ -64,7 +64,7 @@ HDF5_LIB_DEPENDS= libhdf5.so:science/hdf5 \
libsz.so:science/szip
HDF5_CONFIGURE_WITH= hdf5
-HWLOC_LIB_DEPENDS= libhwloc.so:devel/hwloc
+HWLOC_LIB_DEPENDS= libhwloc.so.15:devel/hwloc2
HWLOC_CONFIGURE_WITH= hwloc
IPMI_LIB_DEPENDS= libfreeipmi.so:sysutils/freeipmi
diff --git a/sysutils/slurm-wlm/files/patch-etc_slurm.conf.example b/sysutils/slurm-wlm/files/patch-etc_slurm.conf.example
index 3d42b8d4f8c1..4b8872095bdc 100644
--- a/sysutils/slurm-wlm/files/patch-etc_slurm.conf.example
+++ b/sysutils/slurm-wlm/files/patch-etc_slurm.conf.example
@@ -1,17 +1,18 @@
--- etc/slurm.conf.example.orig 2020-03-26 21:44:05 UTC
+++ etc/slurm.conf.example
-@@ -8,8 +8,8 @@
+@@ -8,8 +8,9 @@
#
# See the slurm.conf man page for more information.
#
-ClusterName=linux
-ControlMachine=linux0
-+ClusterName=beastie
-+ControlMachine=beastie0
++ClusterName=Beastie
++# Short hostname of the head node
++ControlMachine=head
#ControlAddr=
#BackupController=
#BackupAddr=
-@@ -25,8 +25,8 @@ StateSaveLocation=/var/spool/slurm/ctld
+@@ -25,8 +26,8 @@ StateSaveLocation=/var/spool/slurm/ctld
SlurmdSpoolDir=/var/spool/slurm/d
SwitchType=switch/none
MpiDefault=none
@@ -22,16 +23,16 @@
ProctrackType=proctrack/pgid
#PluginDir=
#FirstJobId=
-@@ -34,7 +34,7 @@ ReturnToService=0
+@@ -34,7 +35,7 @@ ReturnToService=0
#MaxJobCount=
#PlugStackConfig=
#PropagatePrioProcess=
-#PropagateResourceLimits=
-+PropagateResourceLimits=none
++PropagateResourceLimits=NONE
#PropagateResourceLimitsExcept=
#Prolog=
#Epilog=
-@@ -42,7 +42,9 @@ ReturnToService=0
+@@ -42,7 +43,9 @@ ReturnToService=0
#SrunEpilog=
#TaskProlog=
#TaskEpilog=
@@ -42,7 +43,7 @@
#TrackWCKey=no
#TreeWidth=50
#TmpFS=
-@@ -57,10 +59,11 @@ KillWait=30
+@@ -57,10 +60,11 @@ KillWait=30
Waittime=0
#
# SCHEDULING
@@ -55,7 +56,7 @@
#PriorityType=priority/multifactor
#PriorityDecayHalfLife=14-0
#PriorityUsageResetPeriod=14-0
-@@ -72,22 +75,58 @@ SelectTypeParameters=CR_Core
+@@ -72,22 +76,58 @@ SelectTypeParameters=CR_Core
#
# LOGGING
SlurmctldDebug=info
@@ -115,8 +116,8 @@
-PartitionName=debug Nodes=ALL Default=YES MaxTime=INFINITE State=UP
+# Set RealMemory < avail memory in /var/run/dmesg.boot
+# Note that it may change slightly following freebsd-update
-+# NodeName=compute-[001-032] Sockets=2 CoresPerSocket=6 RealMemory=30000 State=UNKNOWN
++NodeName=compute-[001-002] Sockets=2 CoresPerSocket=6 RealMemory=30000 State=UNKNOWN
+# NodeName=compute-256g-[001-002] Sockets=2 CoresPerSocket=6 RealMemory=250000 State=UNKNOWN
+# PartitionName=debug Nodes=ALL Default=NO MaxTime=INFINITE State=UP
-+# PartitionName=batch Nodes=compute-[001-032] Default=YES MaxTime=INFINITE State=UP
++PartitionName=batch Nodes=compute-[001-002] Default=YES MaxTime=INFINITE State=UP
+# PartitionName=256g Nodes=compute-256g-[001-002] Default=NO MaxTime=INFINITE State=UP