email@example.com wrote on 02/09/2012 12:18:20
> De : Jeff Squyres <firstname.lastname@example.org>
> A : Open MPI Developers <email@example.com>
> Date : 02/09/2012 12:18 PM
> Objet : Re: [OMPI devel] btl/openib: get_ib_dev_distance
> processes as bound if the job has been launched by srun
> Envoyé par : firstname.lastname@example.org
> Just so that I understand this better -- if a process is bound in
> cpuset, will tools like hwloc's lstopo only show the Linux
> processors *in that cpuset*? I.e., does it not have any visibility
> of the processors outside of its cpuset?
Yes, looks like. At least this is what is returned
> On Jan 27, 2012, at 11:38 AM, nadia.derbey wrote:
> > Hi,
> > If a job is launched using "srun --resv-ports --cpu_bind:..."
> > is configured with:
> > TaskPlugin=task/affinity
> > TaskPluginParam=Cpusets
> > each rank of that job is in a cpuset that contains a single CPU.
> > Now, if we use carto on top of this, the following happens in
> > get_ib_dev_distance() (in btl/openib/btl_openib_component.c):
> > . opal_paffinity_base_get_processor_info() is called to
> > number of logical processors (we get 1 due to the
> > . we loop over that # of processors to check whether our
> > bound to one of them. In our case the loop will
be executed only
> > once and we will never get the correct binding
> > . if the process is bound actually get the distance to
> > in our case we won't execute that part of the code.
> > The attached patch is a proposal to fix the issue.
> > Regards,
> > Nadia
> > <get_ib_dev_distance.patch>_______________________________________________
> > devel mailing list
> > email@example.com
> > http://www.open-mpi.org/mailman/listinfo.cgi/devel
> Jeff Squyres
> For corporate legal information go to:
> devel mailing list