Files
rocm-systems/samples/2_Cookbook/14_gpu_arch/Makefile
T
Sarbojit Sarkar a45f6f7ff3 Added sample with __gfx*__ macro used
Change-Id: I80a474947ea1b755082dad5329d1aff3ee78840c
2020-10-14 06:56:39 -04:00

21 خطوط
238 B
Makefile

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)