Hey Mike, I had assumed that this is what you were trying to accomplish. Seeing as your are trying to create a single task with multiple cores, you must first define a node that has enough cores.
As far as SLURM knows, you currently have 1 CPU core per node (as Phil stated). SLURM is refusing to over-allocate CPUs. Try increasing your CPU count beyond 1 for a node and SLURM should be happy with allocating more than 1 CPU core. I've attached a file to show a slice of my config along with a few srun submissions. Ignore the `--qos free` portions of the srun statements as these are required for my configuration. Hope this helps, Josh McSavaney Bit Flipper Rochester Institute of Technology On Tue, Sep 9, 2014 at 9:35 AM, Michal Zielinski <michal.zielin...@uconn.edu > wrote: > 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> > 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 >> > 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 Phone: +61 (0)3 903 55545 >>> http://www.vlsci.org.au/ http://twitter.com/vlsci >>> >> >> >
srun_stuffs
Description: Binary data