811df250e6
Change-Id: I2fa9a556e0c4f25f4963ecef1d25eb922f9af1b9
22 рядки
498 B
Makefile
22 рядки
498 B
Makefile
HIP_PATH?= $(wildcard /opt/rocm/hip)
|
|
ifeq (,$(HIP_PATH))
|
|
HIP_PATH=../../..
|
|
endif
|
|
HIPCC=$(HIP_PATH)/bin/hipcc
|
|
HIP_PLATFORM=$(shell $(HIP_PATH)/bin/hipconfig --compiler)
|
|
|
|
ifeq (${HIP_PLATFORM}, hcc)
|
|
GENCODEOBJECT_FLAGS=--target-isa-fiji
|
|
endif
|
|
|
|
all: vcpy_isa.compile runKernel.hip.out
|
|
|
|
vcpy_isa.compile: vcpy_isa.cpp
|
|
$(HIPCC) --gencodeobject $(GENCODEOBJECT_FLAGS) vcpy_isa.cpp -o vcpy_isa.co
|
|
|
|
runKernel.hip.out: runKernel.cpp
|
|
$(HIPCC) runKernel.cpp -o runKernel.hip.out
|
|
|
|
clean:
|
|
rm -f *.co *.out
|