Skip to content

Commit

Permalink
fix hip?
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Applencourt committed Oct 22, 2024
1 parent fc422c9 commit bde5a38
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
36 changes: 12 additions & 24 deletions hip/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -285,34 +285,22 @@ libhiptracepoints_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/incl
libhiptracepoints_la_CFLAGS = -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Wno-sign-compare $(WERROR) $(LTTNG_UST_CFLAGS)
libhiptracepoints_la_LDFLAGS = $(LTTNG_UST_LIBS)

lib_LTLIBRARIES = \
libTracerHIP.la \
libHIPInterval.la
hipdir = $(pkglibdir)/hip
hip_LTLIBRARIES = libamdhip64.la

nodist_libTracerHIP_la_SOURCES = \
bt2dir = $(pkglibdir)/bt2
bt2_LTLIBRARIES = libHIPInterval.la

nodist_libamdhip64_la_SOURCES = \
$(HIP_PROBES_INCL) \
tracer_hip.c

libTracerHIP_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(top_srcdir)/sampling -I$(srcdir)/include -I./utils -I./
libTracerHIP_la_CFLAGS = -Wall -Wextra $(WERROR) $(LIBFFI_CFLAGS) $(LTTNG_UST_CFLAGS)
libTracerHIP_la_LDFLAGS = $(LTTNG_UST_LIBS) -ldl -lpthread $(LIBFFI_LIBS) ../sampling/libThapiSampling.la
libTracerHIP_la_LDFLAGS += -Wl,--version-script,$(srcdir)/hip.map -version-number 5:4:50400
libTracerHIP_la_DEPENDS = $(srcdir)/hip.map
libTracerHIP_la_LIBADD = libhiptracepoints.la

install-exec-hook:
$(MKDIR_P) $(DESTDIR)$(pkglibdir)/hip
$(LN_S) -f $(DESTDIR)$(libdir)/libTracerHIP.so.5.4.50400 $(DESTDIR)$(pkglibdir)/hip/libamdhip64.so.5
$(LN_S) -f $(DESTDIR)$(pkglibdir)/hip/libamdhip64.so.5 $(DESTDIR)$(pkglibdir)/hip/libamdhip64.so
$(MKDIR_P) $(DESTDIR)$(pkglibdir)/bt2
$(LN) -f $(DESTDIR)$(libdir)/libHIPInterval.so $(DESTDIR)$(pkglibdir)/bt2/libHIPInterval.so


uninstall-hook:
$(RM) -f $(DESTDIR)$(pkglibdir)/hip/libamdhip64.so.5 $(DESTDIR)$(pkglibdir)/hip/libamdhip64.so
-rmdir $(DESTDIR)$(pkglibdir)/hip
$(RM) -f $(DESTDIR)$(pkglibdir)/bt2/libHIPInterval.so
-rmdir $(DESTDIR)$(pkglibdir)/bt2
libamdhip64_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(top_srcdir)/sampling -I$(srcdir)/include -I./utils -I./
libamdhip64_la_CFLAGS = -Wall -Wextra $(WERROR) $(LIBFFI_CFLAGS) $(LTTNG_UST_CFLAGS)
libamdhip64_la_LDFLAGS = $(LTTNG_UST_LIBS) -ldl -lpthread $(LIBFFI_LIBS) ../sampling/libThapiSampling.la
libamdhip64_la_LDFLAGS += -Wl,--version-script,$(srcdir)/hip.map -version-number 5:4:50400
libamdhip64_la_DEPENDS = $(srcdir)/hip.map
libamdhip64_la_LIBADD = libhiptracepoints.la

tmplibdir = $(libdir)/tmp

Expand Down
4 changes: 2 additions & 2 deletions xprof/xprof.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ def env_tracers

[%w[opencl cl libOpenCL] + [File.join(LIBDIR,'libTracerOpenCL.so')],
%w[ze ze libze_loader] + [File.join(PKGLIBDIR,'ze','libze_loader.so')],
%w[cuda cuda libcud] + [File.join(PKGLIBDIR,'cuda','libcuda.so')],
%w[hip hip libamdhip64] + [File.join(LIBDIR,'libTracerHIP.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|
# 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 bde5a38

Please sign in to comment.