Cluster functions for Slurm (https://slurm.schedmd.com/).
Job files are created based on the brew template template.file
. This
file is processed with brew and then submitted to the queue using the
sbatch
command. Jobs are killed using the scancel
command and
the list of running jobs is retrieved using squeue
. The user must
have the appropriate privileges to submit, delete and list jobs on the
cluster (this is usually the case).
The template file can access all resources passed to submitJobs
as well as all variables stored in the JobCollection
.
It is the template file's job to choose a queue for the job and handle the desired resource
allocations.
Note that you might have to specify the cluster name here if you do not want to use the default, otherwise the commands for listing and killing jobs will not work.
makeClusterFunctionsSlurm( template = "slurm", array.jobs = TRUE, nodename = "localhost", scheduler.latency = 1, fs.latency = 65 )
template | [
|
---|---|
array.jobs | [ |
nodename | [
|
scheduler.latency | [ |
fs.latency | [ |
Other ClusterFunctions:
makeClusterFunctionsDocker()
,
makeClusterFunctionsInteractive()
,
makeClusterFunctionsLSF()
,
makeClusterFunctionsMulticore()
,
makeClusterFunctionsOpenLava()
,
makeClusterFunctionsSGE()
,
makeClusterFunctionsSSH()
,
makeClusterFunctionsSocket()
,
makeClusterFunctionsTORQUE()
,
makeClusterFunctions()