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

21 строка
238 B
Makefile
Исходник Обычный вид История

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)