Torque#
- class lsst.ctrl.bps.parsl.sites.Torque(*args, **kwargs)#
Bases:
SiteConfigConfiguration for generic Torque cluster.
This can be used directly as the site configuration for a Torque cluster by setting the BPS config, e.g.:
computeSite: torque site: torque: class: lsst.ctrl.bps.parsl.sites.Torque nodes: 4 tasks_per_node: 20 walltime: "00:59:00" # Note: always quote walltime in YAML
Alternatively, it can be used as a base class for Torque cluster configurations.
The following BPS configuration parameters are recognised (and required unless there is a default mentioned here, or provided by a subclass):
queue(int): Queue for the Torque job.nodes(int): number of nodes for each Torque job.tasks_per_node(int): number of cores per node for each Torque job; by default we use all cores on the node.walltime(str): time limit for each Torque job.scheduler_options(str): text to prepend to the Torque submission script (each line usually starting with#PBS).
Methods Summary
Get a list of executors to be used in processing.
make_executor(label, *[, queue, nodes, ...])Return an executor for running on a Torque cluster.
select_executor(job)Get the
labelof the executor to use to execute a job.Methods Documentation
- get_executors() list[ParslExecutor]#
Get a list of executors to be used in processing.
Each executor should have a unique
label.
- make_executor(label: str, *, queue: str | None = None, nodes: int | None = None, tasks_per_node: int | None = None, walltime: str | None = None, mem_per_worker: float | None = None, scheduler_options: str | None = None, worker_init: str | None = None, provider_options: dict[str, Any] | None = None, executor_options: dict[str, Any] | None = None) ParslExecutor#
Return an executor for running on a Torque cluster.
Parameters#
- label
str Label for executor.
- queue
str, optional Queue for the Torque job.
- nodes
int, optional Default number of nodes for each Torque job.
- tasks_per_node
int, optional Default number of cores per node for each Torque job.
- walltime
str, optional Default time limit for each Torque job.
- mem_per_worker
float, optional Minimum memory per worker (GB), limited by the executor.
- worker_init
str, optional Environment initiation command
- scheduler_options
str, optional #SBATCHdirectives to prepend to the Torque submission script.- provider_options
dict, optional Additional arguments for
TorqueProviderconstructor.- executor_options
dict, optional Additional arguments for
HighThroughputExecutorconstructor.
Returns#
- executor
HighThroughputExecutor Executor for Torque jobs.
- label