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
[ROCm/hip-tests commit: 6ca7a87e0e]
Ta zmiana jest zawarta w:
%! (template.HTML=
Aditya Atluri)złożyło 2016-09-02 13:17:17 -05:00
1 rodzic
cf0cbf866d
złożenie
99d59cbcbd
4 plików zmienionych
+9
-16
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -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
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika