builddir?=$(CURDIR)/build
# Do not touch below.
+
+# HIP C compiler.
HIPCC=$(ROCM)/bin/hipcc
+
+# This is used in some of the HIP headers.
PLATFORM=__HIP_PLATFORM_$(VENDOR)__
-# LTTng-UST
+# LTTng-UST flags.
LTTNG_UST_CFLAGS=$(shell pkg-config --cflags lttng-ust)
LTTNG_UST_LIBS=$(shell pkg-config --libs lttng-ust)
-# Rocprofiler-sdk
+# Rocprofiler-sdk flags. There is not rocprofiler-sdk.pc for pkg-config.
ROCPROFILER_SDK_CFLAGS=-I $(ROCM)/include -L $(ROCM)/lib -Wl,-rpath=$(ROCM)/lib
ROCPROFILER_SDK_LIBS=-lrocprofiler-sdk
DEPS_CFLAGS=$(LTTNG_UST_CFLAGS) $(ROCPROFILER_SDK_CFLAGS)
DEPS_LIBS=$(LTTNG_UST_LIBS) $(ROCPROFILER_SDK_LIBS)
-
# HIP stuff.
AUTOGEN_HIP_API=$(builddir)/lttng-ust-hip-defs.h \
$(builddir)/lttng-ust-hip.h \
scripts/check $(TARGET) $^
clean:
- rm -rf ./build
+ rm -rf $(builddir)
rm -rf ./traces
dist: