Skip to content

Commit

Permalink
mpi?
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Applencourt committed Oct 22, 2024
1 parent bde5a38 commit 0113985
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 26 deletions.
37 changes: 12 additions & 25 deletions mpi/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -128,30 +128,22 @@ libmpitracepoints_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/incl
libmpitracepoints_la_CFLAGS = -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Wno-sign-compare $(WERROR) $(LTTNG_UST_CFLAGS)
libmpitracepoints_la_LDFLAGS = $(LTTNG_UST_LIBS)

nodist_libTracerMPI_la_SOURCES = \
mpidir = $(pkglibdir)/mpi
mpi_LTLIBRARIES = libmpi

bt2dir = $(pkglibdir)/bt2
bt2_LTLIBRARIES = libMPIInterval.la

nodist_libmpi_la_SOURCES = \
$(MPI_PROBES_INCL) \
$(MPI_STATIC_PROBES_INCL) \
tracer_mpi.c

libTracerMPI_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(srcdir)/include -I./utils -I./
libTracerMPI_la_CFLAGS = -Wall -Wextra $(WERROR) $(LIBFFI_CFLAGS) $(LTTNG_UST_CFLAGS)
libTracerMPI_la_LDFLAGS = $(LTTNG_UST_LIBS) -ldl -lpthread
libTracerMPI_la_LIBADD = libmpitracepoints.la

install-exec-hook:
$(MKDIR_P) $(DESTDIR)$(pkglibdir)/mpi
$(LN_S) -f $(DESTDIR)$(libdir)/libTracerMPI.so.1.0.0 $(DESTDIR)$(pkglibdir)/mpi/libmpi.so.1
$(LN_S) -f $(DESTDIR)$(pkglibdir)/mpi/libmpi.so.1 $(DESTDIR)$(pkglibdir)/mpi/libmpi.so
$(MKDIR_P) $(DESTDIR)$(pkglibdir)/bt2
$(LN) -f $(DESTDIR)$(libdir)/libMPIInterval.so $(DESTDIR)$(pkglibdir)/bt2/libMPIInterval.so


uninstall-hook:
$(RM) -f $(DESTDIR)$(libdir)/libTracerMPI.so.1.0.0 $(DESTDIR)$(pkglibdir)/mpi/libmpi.so.1
$(RM) -f $(DESTDIR)$(pkglibdir)/mpi/libmpi.so.1 $(DESTDIR)$(pkglibdir)/mpi/libmpi.so
-rmdir $(DESTDIR)$(pkglibdir)/mpi
$(RM) -f $(DESTDIR)$(pkglibdir)/bt2/libMPIInterval.so
-rmdir $(DESTDIR)$(pkglibdir)/bt2
libmpi_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(srcdir)/include -I./utils -I./
libmpi_la_CFLAGS = -Wall -Wextra $(WERROR) $(LIBFFI_CFLAGS) $(LTTNG_UST_CFLAGS)
libmpi_la_LDFLAGS = $(LTTNG_UST_LIBS) -ldl -lpthread
libmpi_la_LDFLAGS += -version-info 1:0:0
libmpi_la_LIBADD = libmpitracepoints.la

tmplibdir = $(libdir)/tmp
install-data-hook:
Expand Down Expand Up @@ -222,8 +214,3 @@ libMPIInterval_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include
libMPIInterval_la_CFLAGS = -Wall -Wextra -Wno-unused-parameter $(WERROR) $(BABELTRACE2_CFLAGS)
libMPIInterval_la_CXXFLAGS = -std=c++17 -Wall -Wextra -Wno-unused-parameter $(WERROR) $(BABELTRACE2_CFLAGS)
libMPIInterval_la_LDFLAGS = $(BABELTRACE2_LIBS) -avoid-version -module

lib_LTLIBRARIES = \
libTracerMPI.la \
libMPIInterval.la

2 changes: 1 addition & 1 deletion xprof/xprof.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def env_tracers
%w[ze ze libze_loader] + [File.join(PKGLIBDIR,'ze','libze_loader.so')],
%w[cuda cuda libcuda] + [File.join(PKGLIBDIR,'cuda','libcuda.so')],
%w[hip hip libamdhip64] + [File.join(PKGLIBDIR,'hip', 'libamdhip64.so')],
%w[mpi mpi libmpi] + [File.join(LIBDIR,'libTracerMPI.so')]].each do |name, bt_name, lib, libtracer|
%w[mpi mpi libmpi] + [File.join(PKGLIBDIR,'mpi','libTracerMPI.so')]].each do |name, bt_name, lib, libtracer|
# Backend requested, skip omp. It will be handled in a custom case bellow
next unless OPTIONS[:'backend-names'].include?(bt_name)

Expand Down

0 comments on commit 0113985

Please sign in to comment.