Skip to content

Commit

Permalink
omp?
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Applencourt committed Oct 22, 2024
1 parent bebd975 commit 27cd2d1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 19 deletions.
4 changes: 2 additions & 2 deletions cuda/tracer_cuda.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ then
else
export LD_LIBRARY_PATH=$pkglibdir/cuda:$LD_LIBRARY_PATH
fi
export LD_PRELOAD=$libdir/libTracerCUDA.so:$LD_PRELOAD
export LD_PRELOAD=$pkglibdir/cuda/libcuda.so:$LD_PRELOAD
export LTTNG_UST_ALLOW_BLOCKING=1
export LTTNG_UST_CUDA_VERBOSE=1
if [ ! -z "$cudart" ]
Expand All @@ -136,7 +136,7 @@ then
else
export LD_LIBRARY_PATH=$pkglibdir/cudart:$LD_LIBRARY_PATH
fi
export LD_PRELOAD=$libdir/libTracerCUDART.so:$LD_PRELOAD
export LD_PRELOAD=$pkglibdir/cudart/libcudart.so:$LD_PRELOAD
export LTTNG_UST_CUDART_VERBOSE=1
fi
lttng start
Expand Down
2 changes: 1 addition & 1 deletion hip/tracer_hip.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ then
else
export LD_LIBRARY_PATH=$pkglibdir/hip:$LD_LIBRARY_PATH
fi
export LD_PRELOAD=$libdir/libTracerHIP.so:$LD_PRELOAD
export LD_PRELOAD=$pkglibdir/hip/libamdhip64.so:$LD_PRELOAD
export LTTNG_UST_ALLOW_BLOCKING=1
export LTTNG_UST_HIP_VERBOSE=1
lttng start
Expand Down
2 changes: 1 addition & 1 deletion mpi/tracer_mpi.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ then
else
export LD_LIBRARY_PATH=$pkglibdir/mpi:$LD_LIBRARY_PATH
fi
export LD_PRELOAD=$libdir/libTracerMPI.so:$LD_PRELOAD
export LD_PRELOAD=$pkglibdir/mpi/libmpi.so:$LD_PRELOAD
export LTTNG_UST_ALLOW_BLOCKING=1
export LTTNG_UST_MPI_VERBOSE=1
lttng start
Expand Down
17 changes: 4 additions & 13 deletions omp/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ libompttracepoints_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/inc
libompttracepoints_la_CFLAGS = -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Wno-sign-compare $(WERROR) $(LTTNG_UST_CFLAGS)
libompttracepoints_la_LDFLAGS = $(LTTNG_UST_LIBS)

lib_LTLIBRARIES = libTracerOMPT.la libOMPInterval.la
lib_LTLIBRARIES = libTracerOMPT.la

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

nodist_libTracerOMPT_la_SOURCES = \
$(OMP_PROBES_INCL) \
Expand All @@ -145,18 +148,6 @@ libTracerOMPT_la_CFLAGS = -Wall -Wextra $(WERROR) $(LTTNG_UST_CFLAGS)
libTracerOMPT_la_LDFLAGS = $(LTTNG_UST_LIBS) -avoid-version -module ../sampling/libThapiSampling.la
libTracerOMPT_la_LIBADD = libompttracepoints.la

install-exec-hook:
$(MKDIR_P) $(DESTDIR)$(pkglibdir)/ompt
$(LN_S) -f $(DESTDIR)$(libdir)/libTracerOMPT.so $(DESTDIR)$(pkglibdir)/ompt/libompt.so
$(MKDIR_P) $(DESTDIR)$(pkglibdir)/bt2
$(LN) -f $(DESTDIR)$(libdir)/libOMPInterval.so $(DESTDIR)$(pkglibdir)/bt2/libOMPInterval.so

uninstall-hook:
$(RM) -f $(DESTDIR)$(pkglibdir)/ompt/libompt.so
-rmdir $(DESTDIR)$(pkglibdir)/ompt
$(RM) -f $(DESTDIR)$(pkglibdir)/bt2/libOMPInterval.so
-rmdir $(DESTDIR)$(pkglibdir)/bt2

xprof_utils.hpp: $(top_srcdir)/utils/xprof_utils.hpp
cp $< $@

Expand Down
2 changes: 1 addition & 1 deletion opencl/tracer_opencl.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ then
else
export LD_LIBRARY_PATH=$pkglibdir/opencl:$LD_LIBRARY_PATH
fi
export LD_PRELOAD=$libdir/libTracerOpenCL.so:$LD_PRELOAD
export LD_PRELOAD=$pkglibdir/opencl/libOpenCL.so:$LD_PRELOAD
export LTTNG_UST_ALLOW_BLOCKING=1
export LTTNG_UST_OPENCL_VERBOSE=1
lttng start
Expand Down
2 changes: 1 addition & 1 deletion ze/tracer_ze.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ then
else
export LD_LIBRARY_PATH=$pkglibdir/ze:$LD_LIBRARY_PATH
fi
export LD_PRELOAD=$libdir/libze_loader.so:$LD_PRELOAD
export LD_PRELOAD=$pkglibdir/ze/libze_loader.so:$LD_PRELOAD
export LTTNG_UST_ALLOW_BLOCKING=1
export LTTNG_UST_ZE_VERBOSE=1
lttng start
Expand Down

0 comments on commit 27cd2d1

Please sign in to comment.