Fixing standalone sample compilation and CHANGELOG

Change-Id: I4b8cf46b32e3d76bcedeadb12357fb6eed1ee213
This commit is contained in:
gobhardw authored and Ammar Elwazir committed 2023-05-17 11:46:24 -04:00
1 parent ac6a76d718
commit d6f481e570
7 files changed
+63 -41

No files matched your search

@@ -4,12 +4,14 @@ ROCM_PATH ?= /opt/rocm
HIP_PATH ?= $(ROCM_PATH)/hip
HIPCC := $(HIP_PATH)/bin/hipcc
ROCM_PATH ?=/opt/rocm
ROCPROFILER_LIBS_PATH ?=$(ROCM_PATH)/lib
ROCPROFILER_INCLUDES=$(ROCPROFILER_LIBS_PATH)/../include/rocprofiler/
ifndef ROCPROFILER_PATH
$(warning You may need to set ROCPROFILER_PATH to the path of the rocprofiler source)
endif
ROCPROFILER_PATH ?= $(ROCM_PATH)/include/rocprofiler
CXXFLAGS += -std=c++17 -Wall
ifdef DEBUG
@@ -35,9 +37,9 @@ deps := $(srcs:%.cpp=%.d)
CPPFLAGS += -DHAVE_MEMFD_CREATE
$(prog): CC = $(HIPCC)
$(prog): CPPFLAGS += -I$(ROCM_PATH)/include -I$(ROCPROFILER_PATH)
$(prog): LDFLAGS := -L$(ROCM_PATH)/lib -L$(ROCPROFILER_PATH)/build
$(prog): LDLIBS += -ldl -lpthread -lhsa-runtime64 -lrocprofiler64 -lrocm-dbgapi -ldw -lelf
$(prog): CPPFLAGS += -I$(ROCPROFILER_INCLUDES) -I$(ROCM_PATH)/include
$(prog): LDFLAGS := -L$(ROCPROFILER_LIBS_PATH) -L$(ROCM_PATH)/lib
$(prog): LDLIBS += -ldl -lpthread -lhsa-runtime64 -lrocprofiler64v2 -lrocm-dbgapi -ldw -lelf
$(objs): CXX = $(HIPCC)
# Targets