Files
rocm-systems/samples/2_Cookbook/14_gpu_arch/Makefile
T

21 lines
238 B
Makefile
Raw Normal View History

2020-10-12 02:44:58 -04:00
HIP_PATH?= $(wildcard /opt/rocm/hip)
ifeq (,$(HIP_PATH))
HIP_PATH=../../..
endif
HIPCC=$(HIP_PATH)/bin/hipcc
EXE=./gpuarch
.PHONY: test
all: test
$(EXE): gpuarch.cpp
$(HIPCC) $^ -o $@
test: $(EXE)
$(EXE)
clean:
rm -f *.o $(EXE)