Skip to content

How to modify slurm template to run inside singularity container #214

@mattwarkentin

Description

@mattwarkentin

Hi @mschubert,

I was just wondering how I should modify my slurm template file in order to run the R worker processes inside a singularity container. Does the below look correct? Basically just taking the entire last line in the default template file and executing it with singularity exec container.sif ....

#!/usr/bin/bash

#SBATCH ...
#SBATCH ...

module load singularity

ulimit -v $(( 1024 * {{ memory | 4096 }} ))
singularity exec container.sif CMQ_AUTH={{ auth }} R --no-save --no-restore -e 'clustermq:::worker("{{ master }}")'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions