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 21, 2025
1 parent 61a6776 commit cb9aebe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 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,15 @@ jobs:
sudo apt install slurmd slurmctld -y
sudo mkdir /var/spool/slurm
sudo chown slurm /var/spool/slurm
cat <<EOF > slurm.conf
ClusterName=localcluster
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 +59,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 cb9aebe

Please sign in to comment.