Re: [OMPI users] Help with Specific Binding

2015-09-13 Thread Ralph Castain
Checkout the man page “OMPI_Affinity_str” for an MPI extension that might help > On Sep 13, 2015, at 7:28 AM, Saliya Ekanayake wrote: > > Thank you, I'll try this. Also, is there a way to know which core a process > is bound to within the program other than executing

Re: [OMPI users] Help with Specific Binding

2015-09-13 Thread Gilles Gouaillardet
on linux, you can look at /proc/self/status and search allowed_cpus_list or you can use the sched_getaffinity system call note that in some (hopefully rare)cases, this will return different results than hwloc On Sunday, September 13, 2015, Saliya Ekanayake wrote: > Thank

Re: [OMPI users] Help with Specific Binding

2015-09-13 Thread Saliya Ekanayake
Thank you, I'll try this. Also, is there a way to know which core a process is bound to within the program other than executing something like taskset from program? On Sun, Sep 13, 2015 at 10:05 AM, Ralph Castain wrote: > Actually, the error was correct - it was me that was

Re: [OMPI users] Help with Specific Binding

2015-09-13 Thread Ralph Castain
Actually, the error was correct - it was me that was incorrect. The correct set of options would be: —map-by ppr:12_node —bind-to core —cpu-set=0,2,4,… Sorry about the confusion > On Sep 13, 2015, at 2:43 AM, Ralph Castain wrote: > > The rankfile will certainly do it, but

Re: [OMPI users] Help with Specific Binding

2015-09-13 Thread Ralph Castain
The rankfile will certainly do it, but that error is a bug and I’ll have to fix it. > On Sep 13, 2015, at 1:10 AM, Saliya Ekanayake wrote: > > I could get it working by manually generating a rankfile all the ranks and > not using any --map-by options. > > I'll try the

Re: [OMPI users] Help with Specific Binding

2015-09-13 Thread Saliya Ekanayake
I could get it working by manually generating a rankfile all the ranks and not using any --map-by options. I'll try the --map-by core as well On Sun, Sep 13, 2015 at 3:59 AM, Tobias Kloeffel wrote: > Hi, > use: --map-by core > > regards, > Tobias > > > On 09/13/2015

Re: [OMPI users] Help with Specific Binding

2015-09-13 Thread Tobias Kloeffel
Hi, use: --map-by core regards, Tobias On 09/13/2015 09:41 AM, Saliya Ekanayake wrote: I tried, --map-by ppr:12:node --slot-list 0,2,4,6,8,10,12,14,16,18,20,22 --bind-to core -np 12 but it complains, "Conflicting directives for binding policy are causing the policy to be redefined:

Re: [OMPI users] Help with Specific Binding

2015-09-13 Thread Saliya Ekanayake
I tried, --map-by ppr:12:node --slot-list 0,2,4,6,8,10,12,14,16,18,20,22 --bind-to core -np 12 but it complains, "Conflicting directives for binding policy are causing the policy to be redefined: New policy: socket Prior policy: CORE Please check that only one policy is defined. " On

Re: [OMPI users] Help with Specific Binding

2015-09-13 Thread Ralph Castain
Try something like this instead: —map-by ppr:12:node —bind-to core —slot-list=0,2,4,6,8,… You’ll have to play a bit with the core numbers in the slot-list to get the numbering right as I don’t know how your machine numbers them, and I can’t guarantee it will work - but it’s worth a shot. If it

[OMPI users] Help with Specific Binding

2015-09-12 Thread Saliya Ekanayake
Hi, We've a machine as in the following picture. I'd like to run 12 MPI procs per node each bound to 1 core, but like shown in blue dots in the pictures. I can use the following command to run 12 procs per node, but PE=1 makes all the 12 processes will run in just 1 socket. PE=2 will make a