adding explicite usage test

This commit is contained in:
Evgeny
2019-01-15 13:18:47 -06:00
parent b9f4ca0759
commit 48a4440ab0
5 changed files with 23 additions and 27 deletions
+5 -14
View File
@@ -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