module_api/Makefile: Update as per newer hipgenisa.sh
Change-Id: I479c74eae00d7521434f2740ce5930e326ea05cf
[ROCm/hip-tests commit: 2145e2ba61]
This commit is contained in:
@@ -5,17 +5,13 @@ endif
|
|||||||
HIPCC=$(HIP_PATH)/bin/hipcc
|
HIPCC=$(HIP_PATH)/bin/hipcc
|
||||||
HIP_PLATFORM=$(shell $(HIP_PATH)/bin/hipconfig --compiler)
|
HIP_PLATFORM=$(shell $(HIP_PATH)/bin/hipconfig --compiler)
|
||||||
|
|
||||||
ifeq (${HIP_PLATFORM}, hcc)
|
|
||||||
GENCO_FLAGS=--target-isa=fiji
|
|
||||||
endif
|
|
||||||
|
|
||||||
all: vcpy_kernel.code runKernel.hip.out
|
all: vcpy_kernel.code runKernel.hip.out
|
||||||
|
|
||||||
runKernel.hip.out: runKernel.cpp
|
runKernel.hip.out: runKernel.cpp
|
||||||
$(HIPCC) $(HIPCC_FLAGS) $< -o $@
|
$(HIPCC) $(HIPCC_FLAGS) $< -o $@
|
||||||
|
|
||||||
vcpy_kernel.code: vcpy_kernel.cpp
|
vcpy_kernel.code: vcpy_kernel.cpp
|
||||||
$(HIPCC) --genco $(GENCO_FLAGS) $< -o $@
|
$(HIPCC) --genco $(GENCO_FLAGS) $^ -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.code *.out
|
rm -f *.code *.out
|
||||||
|
|||||||
Reference in New Issue
Block a user