Skip to content

Commit 795e204

Browse files
committed
monitoring lib: rename to ompi_monitoring_prof.so
The library that is installed is specific to Open MPI, so put an "ompi_" prefix on it. Also do some minor line wrappings and cleanups of text. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
1 parent 308bbcb commit 795e204

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

test/monitoring/Makefile.am

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# Copyright (c) 2013-2015 Inria. All rights reserved.
66
# Copyright (c) 2015 Research Organization for Information Science
77
# and Technology (RIST). All rights reserved.
8+
# Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
89
# $COPYRIGHT$
910
#
1011
# Additional copyrights may follow
@@ -18,16 +19,18 @@ if PROJECT_OMPI
1819
noinst_PROGRAMS = monitoring_test
1920
monitoring_test_SOURCES = monitoring_test.c
2021
monitoring_test_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS)
21-
monitoring_test_LDADD = $(top_builddir)/ompi/libmpi.la $(top_builddir)/opal/libopen-pal.la
22+
monitoring_test_LDADD = \
23+
$(top_builddir)/ompi/libmpi.la \
24+
$(top_builddir)/opal/libopen-pal.la
2225

2326
if MCA_BUILD_ompi_pml_monitoring_DSO
24-
lib_LTLIBRARIES = monitoring_prof.la
25-
monitoring_prof_la_SOURCES = monitoring_prof.c
26-
monitoring_prof_la_LDFLAGS=-module -avoid-version -shared $(WRAPPER_EXTRA_LDFLAGS)
27-
monitoring_prof_la_LIBADD = $(top_builddir)/ompi/libmpi.la $(top_builddir)/opal/libopen-pal.la
28-
endif
27+
lib_LTLIBRARIES = ompi_monitoring_prof.la
28+
ompi_monitoring_prof_la_SOURCES = monitoring_prof.c
29+
ompi_monitoring_prof_la_LDFLAGS= \
30+
-module -avoid-version -shared $(WRAPPER_EXTRA_LDFLAGS)
31+
ompi_monitoring_prof_la_LIBADD = \
32+
$(top_builddir)/ompi/libmpi.la \
33+
$(top_builddir)/opal/libopen-pal.la
34+
endif # MCA_BUILD_ompi_pml_monitoring_DSO
2935

30-
endif
31-
32-
distclean:
33-
rm -rf *.dSYM .deps .libs *.la *.lo monitoring_test *.log *.o *.trs Makefile
36+
endif # PROJECT_OMPI

test/monitoring/monitoring_prof.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* reserved.
55
* Copyright (c) 2013-2015 Inria. All rights reserved.
66
* Copyright (c) 2013-2015 Bull SAS. All rights reserved.
7+
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
78
* $COPYRIGHT$
89
*
910
* Additional copyrights may follow
@@ -14,12 +15,19 @@
1415
/*
1516
pml monitoring PMPI profiler
1617
17-
Designed by George Bosilca <bosilca@icl.utk.edu>, Emmanuel Jeannot <emmanuel.jeannot@inria.fr> and Guillaume Papauré <guillaume.papaure@bull.net>
18+
Designed by:
19+
George Bosilca <bosilca@icl.utk.edu>
20+
Emmanuel Jeannot <emmanuel.jeannot@inria.fr>
21+
Guillaume Papauré <guillaume.papaure@bull.net>
22+
1823
Contact the authors for questions.
1924
2025
To be run as:
2126
22-
mpirun -np 4 -x LD_PRELOAD=ompi_install_dir/lib/monitoring_prof.so --mca pml_monitoring_enable 1 ./my_app
27+
mpirun -np 4 \
28+
--mca pml_monitoring_enable 1 \
29+
-x LD_PRELOAD=ompi_install_dir/lib/ompi_monitoring_prof.so \
30+
./my_app
2331
2432
...
2533
...

0 commit comments

Comments
 (0)