How to export Slurm to my PATH in Ubuntu 20.04
1
0
Entering edit mode
appropiate • 0
@appropiate-24139
Last seen 2.6 years ago
Unknonwn

When trying to do parallelization on clusters following the example given on the systemPipeR tutorial, section 8, I get an error asking to export Slurm to your PATH:

   > library(batchtools)
    > resources <- list(walltime=120, ntasks=1, ncpus=4, memory=1024)
    > sal <- clusterRun(sal, 
    +                   FUN = runWF,
    +                   more.args = list(),
    +                   conffile = ".batchtools.conf.R",
    +                   template = "batchtools.slurm.tmpl",
    +                   Njobs = 1,
    +                   runid = "01",
    +                   resourceList = resources)
Error in clusterRun(sal, FUN = runWF, more.args = list(), conffile = ".batchtools.conf.R",  : 
  Please export Slurm to your PATH

So, how do I do this? I am using R in Ubuntu 20.04

Thank you!

systemPipeRdata systempipeR • 1.2k views
ADD COMMENT
3
Entering edit mode
ATpoint ★ 4.5k
@atpoint-13662
Last seen 1 day ago
Germany

R in Ubuntu 20.04 suggests that you are working with a local machine, is that correct, or do you work on a cluster/HPC environment? SLURM is a HPC scheduler to submit jobs, and on HPC systems that use it is should be in PATH by default. So what machine/environment are you on?

ADD COMMENT
0
Entering edit mode

Yes, I am working on a local machine, so I clearly misunderstood this part of the tutorial then. Thanks a lot for clarifying.

ADD REPLY

Login before adding your answer.

Traffic: 446 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6