Skip to content

Commit

Permalink
monitoring lib: rename to ompi_monitoring_prof.so
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jsquyres committed Feb 22, 2016
1 parent 308bbcb commit 795e204
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
23 changes: 13 additions & 10 deletions test/monitoring/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# Copyright (c) 2013-2015 Inria. All rights reserved.
# Copyright (c) 2015 Research Organization for Information Science
# and Technology (RIST). All rights reserved.
# Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
Expand All @@ -18,16 +19,18 @@ if PROJECT_OMPI
noinst_PROGRAMS = monitoring_test
monitoring_test_SOURCES = monitoring_test.c
monitoring_test_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS)
monitoring_test_LDADD = $(top_builddir)/ompi/libmpi.la $(top_builddir)/opal/libopen-pal.la
monitoring_test_LDADD = \
$(top_builddir)/ompi/libmpi.la \
$(top_builddir)/opal/libopen-pal.la

if MCA_BUILD_ompi_pml_monitoring_DSO
lib_LTLIBRARIES = monitoring_prof.la
monitoring_prof_la_SOURCES = monitoring_prof.c
monitoring_prof_la_LDFLAGS=-module -avoid-version -shared $(WRAPPER_EXTRA_LDFLAGS)
monitoring_prof_la_LIBADD = $(top_builddir)/ompi/libmpi.la $(top_builddir)/opal/libopen-pal.la
endif
lib_LTLIBRARIES = ompi_monitoring_prof.la
ompi_monitoring_prof_la_SOURCES = monitoring_prof.c
ompi_monitoring_prof_la_LDFLAGS= \
-module -avoid-version -shared $(WRAPPER_EXTRA_LDFLAGS)
ompi_monitoring_prof_la_LIBADD = \
$(top_builddir)/ompi/libmpi.la \
$(top_builddir)/opal/libopen-pal.la
endif # MCA_BUILD_ompi_pml_monitoring_DSO

endif

distclean:
rm -rf *.dSYM .deps .libs *.la *.lo monitoring_test *.log *.o *.trs Makefile
endif # PROJECT_OMPI
12 changes: 10 additions & 2 deletions test/monitoring/monitoring_prof.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* reserved.
* Copyright (c) 2013-2015 Inria. All rights reserved.
* Copyright (c) 2013-2015 Bull SAS. All rights reserved.
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand All @@ -14,12 +15,19 @@
/*
pml monitoring PMPI profiler
Designed by George Bosilca <bosilca@icl.utk.edu>, Emmanuel Jeannot <emmanuel.jeannot@inria.fr> and Guillaume Papauré <guillaume.papaure@bull.net>
Designed by:
George Bosilca <bosilca@icl.utk.edu>
Emmanuel Jeannot <emmanuel.jeannot@inria.fr>
Guillaume Papauré <guillaume.papaure@bull.net>
Contact the authors for questions.
To be run as:
mpirun -np 4 -x LD_PRELOAD=ompi_install_dir/lib/monitoring_prof.so --mca pml_monitoring_enable 1 ./my_app
mpirun -np 4 \
--mca pml_monitoring_enable 1 \
-x LD_PRELOAD=ompi_install_dir/lib/ompi_monitoring_prof.so \
./my_app
...
...
Expand Down

0 comments on commit 795e204

Please sign in to comment.