Skip to content

Commit

Permalink
Adapt Slurm setup to Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Jan 22, 2025
1 parent 15109bb commit 56f6ec4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test_ert_with_slurm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
test-ert-on-slurm:
name: Run ert tests
timeout-minutes: 20
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand All @@ -36,11 +36,16 @@ jobs:
sudo apt install slurmd slurmctld -y
sudo mkdir /var/spool/slurm
sudo chown slurm /var/spool/slurm
cat <<EOF > slurm.conf
ClusterName=localcluster
SlurmUser=slurm
SlurmctldHost=localhost
SelectType=select/cons_res # Select nodes based on consumable resources
SelectType=select/cons_tres # Select nodes based on consumable resources
SelectTypeParameters=CR_Core # Cores are the consumable resource
StateSaveLocation=/var/spool/slurm
ProctrackType=proctrack/linuxproc # Use /proc to track processes
PartitionName=LocalQ Nodes=ALL Default=YES MaxTime=INFINITE State=UP
PartitionName=AlternativeQ Nodes=ALL Default=YES MaxTime=INFINITE State=UP
Expand All @@ -55,6 +60,9 @@ jobs:
sudo systemctl start slurmd # The compute node slurm daemon
sudo systemctl start slurmctld # The slurm controller daemon
systemctl status slurmd
systemctl status slurmctld
# Show partition and node information configured:
sinfo
Expand Down

0 comments on commit 56f6ec4

Please sign in to comment.