title: HPC cluster: select the number of CPUs and threads in SLURM sbatch
body: <p>The terminology used in the <code>sbatch</code> man page might be a bit confusing. Thus, I want to be sure I am getting the options set right. Suppose I have a task to run on a single node with N threads.  Am I correct to assume that I would use <code>--nodes=1</code> and <code>--ntasks=N</code>?</p>
  
  <p>I am used to thinking about using, for example, pthreads to create N threads within a single process.  Is the result of that what they refer to as "cores" or "cpus per task"?  CPUs and threads are not the same things in my mind.</p>