2
0
Ficheiros
rocm-systems/projects/hip/samples/0_Intro/module_api/Makefile
T
Maneesh Gupta 34ed6ed4cc module_api/Makefile: Use gencodeobject instead of genisa
Change-Id: I7e3523810f5603ad727b1fda7ff2d0dc53ec72d7


[ROCm/hip commit: 13d1721431]
2016-09-01 12:10:31 +05:30

20 linhas
421 B
Makefile

HIP_PATH?= $(wildcard /opt/rocm/hip)
ifeq (,$(HIP_PATH))
HIP_PATH=../../..
endif
HIPCC=$(HIP_PATH)/bin/hipcc
all: vcpy_isa.compile runKernel.hip.out
runKernel.cuda.out: runKernel.cpp
nvcc runKernel.cpp -o $@
vcpy_isa.compile: vcpy_isa.cpp
$(HIPCC) --gencodeobject --target-isa=fiji vcpy_isa.cpp -o vcpy_isa.co
runKernel.hip.out: runKernel.cpp
$(HIPCC) runKernel.cpp -o runKernel.hip.out
clean:
rm -f *.co *.out