1
1
openmpi/opal/mca
Jeff Squyres 6d173af329 This commit introduces a new "mindist" ORTE RMAPS mapper, as well as
some relevant updates/new functionality in the opal/mca/hwloc and
orte/mca/rmaps bases.  This work was mainly developed by Mellanox,
with a bunch of advice from Ralph Castain, and some minor advice from
Brice Goglin and Jeff Squyres.

Even though this is mainly Mellanox's work, Jeff is committing only
for logistical reasons (he holds the hg+svn combo tree, and can
therefore commit it directly back to SVN).

-----

Implemented distance-based mapping algorithm as a new "mindist"
component in the rmaps framework.  It allows mapping processes by NUMA
due to PCI locality information as reported by the BIOS - from the
closest to device to furthest.

To use this algorithm, specify:

   {{{mpirun --map-by dist:<device_name>}}}

where <device_name> can be mlx5_0, ib0, etc.

There are two modes provided:

 1. bynode: load-balancing across nodes
 1. byslot: go through slots sequentially (i.e., the first nodes are
     more loaded)

These options are regulated by the optional ''span'' modifier; the
command line parameter looks like:

    {{{mpirun --map-by dist:<device_name>,span}}}

So, for example, if there are 2 nodes, each with 8 cores, and we'd
like to run 10 processes, the mindist algorithm will place 8 processes
to the first node and 2 to the second by default. But if you want to
place 5 processes to each node, you can add a span modifier in your
command line to do that.

If there are two NUMA nodes on the node, each with 4 cores, and we run
6 processes, the mindist algorithm will try to find the NUMA closest
to the specified device, and if successful, it will place 4 processes
on that NUMA but leaving the remaining two to the next NUMA node.

You can also specify the number of cpus per MPI process. This option
is handled so that we map as many processes to the closest NUMA as we
can (number of available processors at the NUMA divided by number of
cpus per rank) and then go on with the next closest NUMA.

The default binding option for this mapping is bind-to-numa. It works
if you don't specify any binding policy. But if you specified binding
level that was "lower" than NUMA (i.e hwthread, core, socket) it would
bind to whatever level you specify.

This commit was SVN r28552.
2013-05-22 13:04:40 +00:00
..
backtrace Update OPAL frameworks to use the MCA framework system. 2013-03-27 21:11:47 +00:00
base Per RFC: remove old MCA parameter system. 2013-05-20 15:36:13 +00:00
common Per the meeting on moving the BTLs to OPAL, move the ORTE database "db" framework to OPAL so the relocated BTLs can access it. Because the data is indexed by process, this requires that we define a new "opal_identifier_t" that corresponds to the orte_process_name_t struct. In order to support multiple run-times, this is defined in opal/mca/db/db_types.h as a uint64_t without identifying the meaning of any part of that data. 2013-02-26 17:50:04 +00:00
compress Update OPAL frameworks to use the MCA framework system. 2013-03-27 21:11:47 +00:00
crs Update OPAL frameworks to use the MCA framework system. 2013-03-27 21:11:47 +00:00
db The move of the orte_db framework to opal required that we create an opaque opal_identifier_t type as OPAL cannot know anything about the ORTE process name. However, passing a value down to opal and then having the db components reference it causes alignment issues on Solaris Sparc platforms. So pass the pointer instead and do the old "memcpy" trick to avoid the problem. 2013-04-08 23:34:16 +00:00
event Per the RFC, always enable libevent thread support. 2013-05-03 15:39:05 +00:00
hwloc This commit introduces a new "mindist" ORTE RMAPS mapper, as well as 2013-05-22 13:04:40 +00:00
if Check to ensure that we have struct ifreq.ifr_mtu before we try to use 2013-05-07 13:51:50 +00:00
installdirs Fixes trac:376: bu default the wrappr compilers will enable rpath support 2013-05-11 00:49:17 +00:00
memchecker Fix bug introduced by r28236: make declaration and instantiation agree 2013-04-10 14:10:47 +00:00
memcpy Update OPAL frameworks to use the MCA framework system. 2013-03-27 21:11:47 +00:00
memory Update OPAL frameworks to use the MCA framework system. 2013-03-27 21:11:47 +00:00
pstat Update OPAL frameworks to use the MCA framework system. 2013-03-27 21:11:47 +00:00
shmem Update OPAL frameworks to use the MCA framework system. 2013-03-27 21:11:47 +00:00
timer Update OPAL frameworks to use the MCA framework system. 2013-03-27 21:11:47 +00:00
Makefile.am Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
mca.h Refs trac:3275. 2012-09-11 20:47:24 +00:00