corrected offline kernel compilation on hipcc path

1. hipgenisa.sh now adds int main(){} during kernel compilation. User does not have to put it there
2. Renamed vcpy_isa.cpp to vcpy_kernel.cpp
3. Removed vcpy_isa.cu as the kernel code should be common for both paths
4. Changed Makefile and runkernel.cpp to work with above changes

Change-Id: I9f8c84706b44bb500bc493a68e959762b55a0142
このコミットが含まれているのは:
Aditya Atluri committed 2016-09-02 13:17:17 -05:00
1 親 0fdb5bf517
コミット 8f536d8580
5ファイル変更
+15 -17

検索条件に一致するファイルはありません

+5 -5
ファイルの表示
@@ -11,8 +11,8 @@ ifeq (${HIP_PLATFORM}, hcc)
all: runKernel.hip.out
vcpy_isa.compile: vcpy_isa.cpp
$(HIPCC) --genco $(GENCODEOBJECT_FLAGS) vcpy_isa.cpp -o vcpy_isa.co
vcpy_kernel.compile: vcpy_kernel.cpp
$(HIPCC) --genco $(GENCODEOBJECT_FLAGS) vcpy_kernel.cpp -o vcpy_kernel.co
clean:
rm -f *.co *.out
@@ -21,15 +21,15 @@ endif
ifeq (${HIP_PLATFORM}, nvcc)
vcpy_isa.compile: vcpy_isa.cu
$(HIPCC) --genco vcpy_isa.cu -o vcpy_isa.ptx
vcpy_kernel.compile: vcpy_kernel.cpp
$(HIPCC) --genco vcpy_kernel.cpp -o vcpy_kernel.ptx
clean:
rm -f *.ptx *.out
endif
all: vcpy_isa.compile runKernel.hip.out
all: vcpy_kernel.compile runKernel.hip.out
runKernel.hip.out: runKernel.cpp
$(HIPCC) $(OPT) runKernel.cpp -o runKernel.hip.out