hu-macsy / simexpal

Simplifying Experimental Algorithmics
https://simexpal.readthedocs.io
MIT License
17 stars 18 forks source link

add max_simultaneous experiment setting #182

Closed bernlu closed 1 day ago

bernlu commented 1 week ago

This PR adds a new parameter to the experiments section. This parameter limits the maximum number of runs that slurm executes at once (extending the slurm array syntax that we already use: https://slurm.schedmd.com/job_array.html).

experiments:
  - name: foo
    args: ['foo.py']
    stdout: out
    max_simultaneous: 2

Use case: sometimes license limitations prevent us from running more than a specific number of experiments at once.

Limitation of this implementation: since this PR just extends the slurm array syntax, this setting only applies to a single launch. When launching multiple sets of experiments, the limit will be applied to each set individually.