stilt.execution.SlurmExecutor#
- class stilt.execution.SlurmExecutor(n_workers: 'int', cpus_per_task: 'int' = 1, array_parallelism: 'int | None' = None, setup: 'list[str] | None' = None, **kwargs: 'Any') 'None'[source]#
Run receptors as a Slurm job array submitted with
sbatch.start()splits the receptor ids into one chunk file per array task under<project>/chunks/<batch>/, writes a submission script under<project>/slurm/, and submits it. Each task runsstilt push-workeron its chunk. The project must be a local directory.
Parameters
n_workersintNumber of array tasks.
cpus_per_taskint, default 1CPUs per array task. With more than one, each task runs its receptors in a process pool of that size.
array_parallelismint, optionalMaximum number of array tasks running at once (the
%Nsuffix of--array).setuplist of str, optionalShell commands to run before the worker, such as loading modules.
**kwargsOther
sbatchoptions, written as#SBATCH --key=value. Underscores in keys become hyphens, andTruewrites a bare flag.
Methods#
|
Return an executor for a config's |
|
Write the chunk files and submission script, submit it, and return a handle. |
Attributes#
|
|
|
Number of array tasks. |