module_api sample: Remove unnecessary platform checks

Change-Id: I1d531264d51ff952a3a68d554672b6d293e23379


[ROCm/hip commit: 0cc51f2a72]
This commit is contained in:
Maneesh Gupta committed 2016-09-04 21:25:14 +05:30
1 parent 1e740cb3e8
commit 218f4f2c6e
2 files changed
+10 -28

No files matched your search

@@ -3,31 +3,20 @@ ifeq (,$(HIP_PATH))
HIP_PATH=../../..
endif
HIPCC=$(HIP_PATH)/bin/hipcc
OPT=
HIP_PLATFORM=$(shell $(HIP_PATH)/bin/hipconfig --compiler)
all: vcpy_kernel.compile runKernel.hip.out
ifeq (${HIP_PLATFORM}, hcc)
GENCO_FLAGS=--target-isa=fiji
endif
all: vcpy_kernel.code runKernel.hip.out
runKernel.hip.out: runKernel.cpp
$(HIPCC) $(OPT) runKernel.cpp -o runKernel.hip.out
$(HIPCC) $(HIPCC_FLAGS) $< -o $@
ifeq (${HIP_PLATFORM}, hcc)
vcpy_kernel.compile: vcpy_kernel.cpp
$(HIPCC) --genco --target-isa=fiji vcpy_kernel.cpp -o vcpy_kernel.co
vcpy_kernel.code: vcpy_kernel.cpp
$(HIPCC) --genco $(GENCO_FLAGS) $< -o $@
clean:
rm -f *.co *.out
endif
ifeq (${HIP_PLATFORM}, nvcc)
vcpy_kernel.compile: vcpy_kernel.cpp
$(HIPCC) --genco vcpy_kernel.cpp -o vcpy_kernel.ptx
clean:
rm -f *.ptx *.out
endif
rm -f *.code *.out