f807cc1a7b
* occupancy.cpp with Makefile * occupancy sample changes according tothe comments * Changes according to the review comments * Occupancy Sample Changes * Changes according to review comments
21 righe
242 B
Makefile
21 righe
242 B
Makefile
HIP_PATH?= $(wildcard /opt/rocm/hip)
|
|
ifeq (,$(HIP_PATH))
|
|
HIP_PATH=../../..
|
|
endif
|
|
HIPCC=$(HIP_PATH)/bin/hipcc
|
|
|
|
EXE=./occupancy
|
|
|
|
.PHONY: test
|
|
|
|
all: test
|
|
|
|
$(EXE): occupancy.cpp
|
|
$(HIPCC) $^ -o $@
|
|
|
|
test: $(EXE)
|
|
$(EXE)
|
|
|
|
clean:
|
|
rm -f *.o $(EXE)
|