2013-07-19 22:13:58 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
# University Research and Technology
|
|
|
|
# Corporation. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
# of Tennessee Research Foundation. All rights
|
|
|
|
# reserved.
|
2014-07-30 20:56:15 +00:00
|
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2013-07-19 22:13:58 +00:00
|
|
|
# University of Stuttgart. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
# All rights reserved.
|
|
|
|
# Copyright (c) 2006 Sandia National Laboratories. All rights
|
|
|
|
# reserved.
|
2015-02-19 05:35:38 -08:00
|
|
|
# Copyright (c) 2010-2015 Cisco Systems, Inc. All rights reserved.
|
2015-09-04 16:54:40 -07:00
|
|
|
# Copyright (c) 2015 Intel, Inc. All rights reserved.
|
2016-09-06 16:41:56 -04:00
|
|
|
# Copyright (c) 2016 IBM Corporation. All rights reserved.
|
2013-07-19 22:13:58 +00:00
|
|
|
# $COPYRIGHT$
|
2014-07-30 20:56:15 +00:00
|
|
|
#
|
2013-07-19 22:13:58 +00:00
|
|
|
# Additional copyrights may follow
|
2014-07-30 20:56:15 +00:00
|
|
|
#
|
2013-07-19 22:13:58 +00:00
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
2016-09-06 16:41:56 -04:00
|
|
|
AM_CPPFLAGS = -DBTL_IN_OPAL=1 $(opal_common_libfabric_CPPFLAGS) -DOMPI_LIBMPI_NAME=\"$(OMPI_LIBMPI_NAME)\"
|
2013-07-19 22:13:58 +00:00
|
|
|
|
2014-02-26 07:47:50 +00:00
|
|
|
EXTRA_DIST = README.txt README.test
|
|
|
|
|
2014-07-31 04:41:04 +00:00
|
|
|
dist_opaldata_DATA = \
|
2013-07-19 22:13:58 +00:00
|
|
|
help-mpi-btl-usnic.txt
|
|
|
|
|
2014-02-26 07:48:05 +00:00
|
|
|
test_sources = \
|
2014-02-26 07:49:54 +00:00
|
|
|
test/btl_usnic_component_test.h \
|
|
|
|
test/btl_usnic_graph_test.h
|
2014-02-26 07:48:05 +00:00
|
|
|
|
2013-07-19 22:13:58 +00:00
|
|
|
sources = \
|
2013-09-06 15:53:56 +00:00
|
|
|
btl_usnic_compat.h \
|
2014-12-02 13:09:46 -08:00
|
|
|
btl_usnic_compat.c \
|
2013-07-19 22:13:58 +00:00
|
|
|
btl_usnic_module.c \
|
|
|
|
btl_usnic_module.h \
|
|
|
|
btl_usnic.h \
|
|
|
|
btl_usnic_ack.c \
|
|
|
|
btl_usnic_ack.h \
|
|
|
|
btl_usnic_component.c \
|
2014-02-26 22:21:25 +00:00
|
|
|
btl_usnic_connectivity.h \
|
|
|
|
btl_usnic_cclient.c \
|
|
|
|
btl_usnic_cagent.c \
|
2013-07-19 22:13:58 +00:00
|
|
|
btl_usnic_endpoint.c \
|
|
|
|
btl_usnic_endpoint.h \
|
|
|
|
btl_usnic_frag.c \
|
|
|
|
btl_usnic_frag.h \
|
2014-02-26 07:49:54 +00:00
|
|
|
btl_usnic_graph.h \
|
|
|
|
btl_usnic_graph.c \
|
2015-09-05 05:02:00 -07:00
|
|
|
btl_usnic_hwloc.c \
|
2013-07-19 22:13:58 +00:00
|
|
|
btl_usnic_hwloc.h \
|
usnic: add btl_usnic_connectivity_map MCA param to output link information
If the btl_usnic_connectivity_map MCA param is set to a non-NULL
value, then each MPI process will output a file named
<prefix>-<hostname>.pid<pid>.job<jobid>.mcwrank<MCW rank>.txt. Its
contents will detail which usNIC device(s) (and therefore which
link(s)) are being used to communicate with each peer MPI process.
Here is a sample output file (named
mpi005.pid26071.job1640759297.mcwrank0.txt):
{{{
device=usnic_0,interface=eth4,ip=10.10.0.5/16,mac=24:57:20:05:20:00,mtu=9000
device=usnic_1,interface=eth5,ip=10.2.0.5/16,mac=24:57:20:05:21:00,mtu=9000
device=usnic_2,interface=eth6,ip=10.3.0.5/16,mac=24:57:20:05:50:00,mtu=9000
peer=1,hostname=mpi006,device=usnic_0@peer_ip=10.10.0.6/16@peer_mac=24:57:20:06:20:00,device=usnic_1@peer_ip=10.2.0.6/16@peer_mac=24:57:20:06:21:00,device=usnic_2@peer_ip=10.3.0.6/16@peer_mac=24:57:20:06:50:00
peer=2,hostname=mpi007,device=usnic_0@peer_ip=10.10.0.7/16@peer_mac=24:57:20:07:20:00,device=usnic_1@peer_ip=10.2.0.7/16@peer_mac=24:57:20:07:21:00,device=usnic_2@peer_ip=10.3.0.7/16@peer_mac=24:57:20:07:50:00
peer=3,hostname=mpi008,device=usnic_0@peer_ip=10.10.0.8/16@peer_mac=24:57:20:08:20:00,device=usnic_1@peer_ip=10.2.0.8/16@peer_mac=24:57:20:08:21:00,device=usnic_2@peer_ip=10.3.0.8/16@peer_mac=24:57:20:08:50:00
}}}
Reviewed by Reese Faucette
cmr=v1.8.2
This commit was SVN r32156.
2014-07-08 19:14:46 +00:00
|
|
|
btl_usnic_map.c \
|
2013-07-19 22:13:58 +00:00
|
|
|
btl_usnic_mca.c \
|
|
|
|
btl_usnic_proc.c \
|
|
|
|
btl_usnic_proc.h \
|
|
|
|
btl_usnic_recv.c \
|
|
|
|
btl_usnic_recv.h \
|
|
|
|
btl_usnic_send.c \
|
|
|
|
btl_usnic_send.h \
|
Move all usNIC stats to _stats.c|h and export them as MPI_T pvars.
This commit moves all the module stats into their own struct so that
the stats only need to appear as a single line in the module_t
definition, and then moves all the logic for reporting the stats into
btl_usnic_stats.c|h.
Further, the stats are now exported as MPI_T_BIND_NO_OBJECT entities
(i.e., not bound to any particular MPI handle), and are marked as
READONLY and CONTINUOUS. They currently all default to verbose level
5 ("Application tuner / detailed", according to
https://svn.open-mpi.org/trac/ompi/wiki/MCAParamLevels).
Most of the statistics are counters, but a small number are high
watermark values. Due to how counters are reported via MPI_T, none of
the counters are exported through MPI_T if the MCA param
btl_usnic_stats_relative=1 (i.e., the module resets the stats back to
zero at a given frequency).
When MPI_T_pvar_handle_alloc() is invoked on any of these pvars, it
will return a count that is equal to the number of active usnic BTL
modules. The values returned for any given pvar (e.g.,
num_total_sends) are an array containing one value for each active
usnic BTL module. The ordering of values in the array is both
consistent across all usnic pvars and stable throughout a single job:
array slot 0 corresponds to module X, array slot 1 corresponds to
module Y, etc.
Mapping which array slot corresponds to which underlying Linux usnic_X
device works as follows:
* The btl_usnic_devices MPI_T state pvar is associated with a
btl_usnic_device MPI_T enum, and be obtained via
MPI_T_pvar_get_info().
* If all usNIC pvars are of length N, the values [0,N) in the
btl_usnic_device enum are associated with strings of the
corresponding underlying Linux device.
For exampe, to look up which Linux device is reported in all usNIC
pvars' array slot 1, look up the int value 1 in the btl_usnic_devices
enum. Its corresponding string value is underlying Linux device name
(e.g., "usnic_1").
cmr=v1.7.4:subject="usnic BTL MPI_T pvars"
This commit was SVN r29545.
2013-10-28 22:23:08 +00:00
|
|
|
btl_usnic_stats.h \
|
|
|
|
btl_usnic_stats.c \
|
2013-07-19 22:13:58 +00:00
|
|
|
btl_usnic_util.c \
|
2014-02-26 07:47:50 +00:00
|
|
|
btl_usnic_util.h \
|
|
|
|
btl_usnic_test.c \
|
2014-02-26 07:48:05 +00:00
|
|
|
btl_usnic_test.h \
|
2015-09-05 05:02:00 -07:00
|
|
|
$(test_sources)
|
2013-07-19 22:13:58 +00:00
|
|
|
|
|
|
|
# Make the output library in this directory, and name it either
|
|
|
|
# mca_<type>_<name>.la (for DSO builds) or libmca_<type>_<name>.la
|
|
|
|
# (for static builds).
|
|
|
|
|
George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL
All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic.
This commit was SVN r32317.
2014-07-26 00:47:28 +00:00
|
|
|
if MCA_BUILD_opal_btl_usnic_DSO
|
2013-07-19 22:13:58 +00:00
|
|
|
lib =
|
|
|
|
lib_sources =
|
|
|
|
component = mca_btl_usnic.la
|
|
|
|
component_sources = $(sources)
|
|
|
|
else
|
|
|
|
lib = libmca_btl_usnic.la
|
|
|
|
lib_sources = $(sources)
|
|
|
|
component =
|
|
|
|
component_sources =
|
|
|
|
endif
|
|
|
|
|
2014-07-31 04:41:04 +00:00
|
|
|
mcacomponentdir = $(opallibdir)
|
2013-07-19 22:13:58 +00:00
|
|
|
mcacomponent_LTLIBRARIES = $(component)
|
|
|
|
mca_btl_usnic_la_SOURCES = $(component_sources)
|
2015-02-19 05:35:38 -08:00
|
|
|
mca_btl_usnic_la_LDFLAGS = \
|
2015-06-09 15:14:22 -07:00
|
|
|
$(opal_btl_usnic_LDFLAGS) \
|
2015-02-19 05:35:38 -08:00
|
|
|
-module -avoid-version
|
2015-06-25 13:22:39 -07:00
|
|
|
mca_btl_usnic_la_LIBADD = \
|
|
|
|
$(OPAL_TOP_BUILDDIR)/opal/mca/common/libfabric/lib@OPAL_LIB_PREFIX@mca_common_libfabric.la
|
2013-07-19 22:13:58 +00:00
|
|
|
|
|
|
|
noinst_LTLIBRARIES = $(lib)
|
|
|
|
libmca_btl_usnic_la_SOURCES = $(lib_sources)
|
2015-06-17 08:15:29 -07:00
|
|
|
libmca_btl_usnic_la_LDFLAGS = -module -avoid-version $(opal_btl_usnic_LDFLAGS)
|
2014-02-26 07:47:50 +00:00
|
|
|
|
George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL
All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic.
This commit was SVN r32317.
2014-07-26 00:47:28 +00:00
|
|
|
if OPAL_BTL_USNIC_BUILD_UNIT_TESTS
|
2014-12-02 13:09:46 -08:00
|
|
|
usnic_btl_run_tests_CPPFLAGS = \
|
|
|
|
-DBTL_USNIC_RUN_TESTS_SYMBOL=\"opal_btl_usnic_run_tests\"
|
|
|
|
usnic_btl_run_tests_SOURCES = test/usnic_btl_run_tests.c
|
|
|
|
usnic_btl_run_tests_LDADD = -ldl
|
|
|
|
bin_PROGRAMS = usnic_btl_run_tests
|
George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL
All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic.
This commit was SVN r32317.
2014-07-26 00:47:28 +00:00
|
|
|
endif OPAL_BTL_USNIC_BUILD_UNIT_TESTS
|