Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SLURM job scheduler #17

Open
bjpop opened this issue Aug 12, 2013 · 2 comments
Open

Support SLURM job scheduler #17

bjpop opened this issue Aug 12, 2013 · 2 comments

Comments

@bjpop
Copy link
Owner

bjpop commented Aug 12, 2013

Add support for SLURM job scheduler.

@nschiraldi
Copy link

nschiraldi commented Oct 17, 2018

I was looking for something similar. Looking through https://github.com/bjpop/rubra/blob/master/rubra/cluster_job.py it doesn't seem like it would be difficult to add SLURM support. I'd be happy to contribute this, but I'm not sure if it's necessary.

Would it provide an increase in performance to use distributed: True with a flag for SLURM, compared to submitting an SBATCH script, with distributed: False and a rubra configuration that matches the SBATCH configuration?

Right now I'm essentially running a bash script via sbatch run.sh:

#!/usr/bin/sh
#SBATCH -n 1
#SBATCH --cpus-per-task=40
#SBATCH --mem=50000 # memory pool for all cores, this is in mb

rubra RedDog2 --config RedDog_config --style run

With the following config:

pipeline = {
    "logDir": "log",
    "logFile": "All_pipeline.log",
    "style": "print",
    "procs": 40,
    "paired": True,
    "verbose": 1,
    "end": ["deleteDir"],
    "force": [],
    "rebuild": "fromstart"
}
stageDefaults = {
    "distributed":    False,
    "walltime":    "01:00:00",
    "memInGB":    50,
    "queue":    None,
    "modules": [
        # Note that these are for Barcoo at VLSCI
        # You will need to change these for distributed (queuing) installation
        "python-gcc/2.7.5",
        "bwa-intel/0.6.2",
        "samtools-intel/1.3.1",
        "bcftools-intel/1.2",
        "eautils-gcc/1.1.2",
        "bowtie2-gcc/2.2.9",
        "fasttree-gcc/2.1.7dp"
    ]
}

This appears to be spawning parallel processes correctly.

@d-j-e
Copy link

d-j-e commented Oct 17, 2018

see katholt/RedDog#58 for answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants