Exactly, SLURM should set some environment variable containing the number
of cores. Check the documentation.


On Fri, Dec 6, 2013 at 1:16 PM, Mario Giovacchini
<notifications@github.com>wrote:

> In pipeline.sh:
>
> >  fi
> >
> > -# determine the number of threads to use
> > +# HACK nproc isn't working for some reason on the cluster -- hack it
> > +SYS_CORES=16
>
> Well what I'm actually trying to do is determine how many processors are
> available, which isn't always the same as the number that are present on
> the system (e.g. salloc -n 4). So the nproc solution itself is kind of
> flawed -- I need to do something with the slurm commands, I suppose.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/SciLifeLab/miRNA_processing/pull/1/files#r8159593>
> .
>



-- 
--------------------------------------------------------
Pontus Larsson, PhD
Science For Life Laboratory
www.scilifelab.se

Email: Pontus.Larsson@scilifelab.se
Phone: +46 8 5248 1440
Mobile: +46 76 946 9788
--------------------------------------------------------