makeClusterFunctionsSLURM {BatchJobs} | R Documentation |
Create cluster functions for SLURM-based systems.
Description
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 arguments passed to the
submitJob
function, see here ClusterFunctions
.
It is the template file's job to choose a queue for the job
and handle the desired resource allocations.
Examples can be found on
https://github.com/tudo-r/BatchJobs/tree/master/examples/cfSLURM.
Usage
makeClusterFunctionsSLURM(
template.file,
list.jobs.cmd = c("squeue", "-h", "-o %i", "-u $USER")
)
Arguments
template.file |
[ |
list.jobs.cmd |
[ |
Value
See Also
Other clusterFunctions:
makeClusterFunctionsInteractive()
,
makeClusterFunctionsLSF()
,
makeClusterFunctionsLocal()
,
makeClusterFunctionsMulticore()
,
makeClusterFunctionsOpenLava()
,
makeClusterFunctionsSGE()
,
makeClusterFunctionsSSH()
,
makeClusterFunctionsTorque()
,
makeClusterFunctions()