Skip to content

Commit

Permalink
Install correct dependency and adjust slurm config
Browse files Browse the repository at this point in the history
Dramatic speedup in test time (~10-fold)
  • Loading branch information
berland committed Jan 23, 2025
1 parent ab55946 commit 241b6b7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test_ert_with_slurm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: |
set -e
sudo apt install slurmd slurmctld -y
sudo apt install libpmix-dev slurmd slurmctld -y
sudo mkdir /var/spool/slurm
sudo chown slurm /var/spool/slurm
Expand All @@ -43,6 +43,7 @@ jobs:
ClusterName=localcluster
SlurmUser=slurm
SlurmctldHost=localhost
SchedulerType=sched/builtin # Avoid default backfill scheduler which adds delays
SelectType=select/cons_tres # Select nodes based on consumable resources
SelectTypeParameters=CR_Core # Cores are the consumable resource
StateSaveLocation=/var/spool/slurm
Expand All @@ -59,12 +60,13 @@ jobs:
sudo mv slurm.conf /etc/slurm/
sudo systemctl start slurmd # The compute node slurm daemon
sudo systemctl start slurmctld # The slurm controller daemon
sleep 1
systemctl status slurmd
systemctl status slurmctld
# Show partition and node information configured:
sinfo
scontrol show nodes
- name: Verify slurm cluster works
# Timeout is set low to catch a misconfigured cluster where srun will hang.
Expand All @@ -77,7 +79,7 @@ jobs:
run: |
set -e
export _ERT_TESTS_ALTERNATIVE_QUEUE=AlternativeQ
pytest tests/ert/unit_tests/scheduler/test_{generic,slurm}_driver.py --slurm \
pytest tests/ert/unit_tests/scheduler/test_{generic,slurm}_driver.py -sv --slurm \
-n 8 --durations=10 -k "not (LsfDriver or LocalDriver or OpenPBSDriver)"
scontrol show job
Expand Down

0 comments on commit 241b6b7

Please sign in to comment.