adding explicite usage test

[ROCm/roctracer commit: 48a4440ab0]
This commit is contained in:
Evgeny
2019-01-15 13:18:47 -06:00
parent 6a6ab57602
commit 10a0801c07
5 changed files with 23 additions and 27 deletions
@@ -1,25 +1,15 @@
HIP_PATH?= $(wildcard /opt/rocm/hip)
ifeq (,$(HIP_PATH))
HIP_PATH=../../..
endif
HIPCC=$(HIP_PATH)/bin/hipcc
TARGET=hcc
HCC_HOME? = /opt/rocm/hcc
HIP_PATH? = /opt/rocm/hip
SOURCES = MatrixTranspose.cpp
OBJECTS = $(SOURCES:.cpp=.o)
EXECUTABLE=./MatrixTranspose
.PHONY: test
all: $(EXECUTABLE) test
HIPCC=$(HIP_PATH)/bin/hipcc
CXXFLAGS =-g
CXX=$(HIPCC)
all: $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(HIPCC) $(OBJECTS) -o $@
@@ -34,3 +24,4 @@ clean:
rm -f $(OBJECTS)
rm -f $(HIP_PATH)/src/*.o
.PHONY: all test clean