xxxxxxxxxx
nextflow run nextflow-io/elixir-workshop-21 -r master -profile hpc_slurm -with-docker
xxxxxxxxxx
/*
* This configuration file is the one used when indicating the Nextflow parameter -profile hpc_slurm
*/
process {
// definition of the slurm executor. Run the pipeline in a node able to submit jobs to a HPC via sbatch
executor="slurm"
// resources for default process execution
cpus='1'
time='6h'
// resources for execution of processes / modules with the label "two cpus". This override the default ones.
withLabel: 'twocpus' {
queue = "bigcpus"
cpus='2'
}
}
xxxxxxxxxx
$ sudo systemctl start slurmctld
$ sudo systemctl start slurmd
xxxxxxxxxx
$ sudo scontrol update nodename=localhost state=idle
$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
LocalQ* up infinite 1 idle localhost