Michal,
The job has only 1 task. -c is cpus per task. Each task can run on only one 
node. So if each node has only 1 cpu, you can only assign 1 cpu per task.
Martin

From: Michal Zielinski [mailto:michal.zielin...@uconn.edu]
Sent: Tuesday, September 09, 2014 6:36 AM
To: slurm-dev
Subject: [slurm-dev] Re: "Requested node configuration is not available" when 
using -c

Josh,
I believe that -n sets the number of tasks. I only want a single task, as when 
a single process uses multiple cores. srun -n 2 hostname returns
linux-slurm2
linux-slurm3
which is definitely not what I want.

Thanks,
Mike


On Mon, Sep 8, 2014 at 8:07 PM, Josh McSavaney 
<mcsa...@csh.rit.edu<mailto:mcsa...@csh.rit.edu>> wrote:
I believe your slurm.conf is defining 4 nodes with a single logical processor 
each. You are then trying to allocate two CPUs on a single node with srun, 
which (according to your slurm.conf) you do not have.

You may want to consider `srun -n 2 hostname` and see where that lands you.

Regards,

Josh McSavaney
Bit Flipper
Rochester Institute of Technology


On Mon, Sep 8, 2014 at 7:42 PM, Christopher Samuel 
<sam...@unimelb.edu.au<mailto:sam...@unimelb.edu.au>> wrote:

On 09/09/14 07:26, Michal Zielinski wrote:
I have a small test cluster (node[1-4]) running slurm 14.03.0 setup with
CR_CPU and no usage restrictions. Each node has just 1 CPU.
[...]
But, *srun -c 2 hostname* does not work, and it returns the above error.

I have no idea why I can't dedicate 2 cores to a single job if I can
dedicate each core individually to a job.

What does "scontrol show node" say?

cheers,
Chris
--
 Christopher Samuel        Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computation Initiative
 Email: sam...@unimelb.edu.au<mailto:sam...@unimelb.edu.au> Phone: +61 (0)3 903 
55545<tel:%2B61%20%280%293%20903%2055545>
 http://www.vlsci.org.au/      http://twitter.com/vlsci




Reply via email to