Martin,

Thank you for reporting the bug and supplying a patch.  It will appear in the 
v2.2.3 release.

Don

From: [email protected] [mailto:[email protected]] On 
Behalf Of [email protected]
Sent: Friday, February 18, 2011 9:59 AM
To: [email protected]
Cc: [email protected]; [email protected]
Subject: [slurm-dev] Incorrect results for task/affinity block second 
distribution and cpus-per-task > 1


There is a bug in the task affinity code that produces incorrect results for 
jobs with cpus-per-task >1 when the second distribution method is "block" (srun 
option -m xxxxx:block).  Here is an example to show the problem:

slurm.conf settings:
SelectType=select/cons_res
SelectTypeParameters=CR_Core,CR_CORE_DEFAULT_DIST_BLOCK
TaskPlugin=task/affinity
TaskPluginParam=sched,cores
NodeName=n8 NodeHostname=bones NodeAddr=bones Sockets=2 CoresPerSocket=4 
ThreadsPerCore=1 Procs=8
PartitionName=bones-only    Nodes=n8  State=UP

[sulu] (slurm) etc> srun -p bones-only -c 3 -n 2 -m block:block  -l cat 
/proc/self/status | grep Cpus_allowed_list | sort
0: Cpus_allowed_list:   0-4,6
1: Cpus_allowed_list:   0-3,6

The attached patch fixes the problem in 2.2.1.  Here are the results after the 
patch is applied:

[sulu] (slurm) etc> srun -p bones-only -c 3 -n 2 -m block:block  -l cat 
/proc/self/status | grep Cpus_allowed_list | sort
0: Cpus_allowed_list:   0,2,4
1: Cpus_allowed_list:   1,3,6

Regards,
Martin

Reply via email to