added sample for how-to-use pre-compiled kernels1. Corrected the exit output of kernel compilation by hipcc

2. Added sample which loads/run kernel binary during runtime?

Change-Id: I26ccaca1f844fee317592e26c9e654ce548b96a8
Tá an tiomantas seo le fáil i:
Aditya Atluri tiomanta 2016-08-31 13:56:07 -05:00
1 tuismitheoir 6754587ed2
tiomantas 667ec7cbe2
6 comhad athraithe
+178 -1

Níor tháinig aon chomhaid le do chuardach

+19
Féach ar an gComhad
@@ -0,0 +1,19 @@
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) --genisa --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