Example showing globals use with module APIs

[ROCm/hip commit: d638cd4fc1]
이 커밋은 다음에 포함됨:
Rahul Garg가 2017-10-24 18:12:25 +05:30를 커밋했습니다
1 부모 f52f6e53bb
커밋 bdbc4ce11c
3 파일이 변경됨
+225

검색과 일치하는 파일 없음

+17
파일 보기
@@ -0,0 +1,17 @@
HIP_PATH?= $(wildcard /opt/rocm/hip)
ifeq (,$(HIP_PATH))
HIP_PATH=../../..
endif
HIPCC=$(HIP_PATH)/bin/hipcc
HIP_PLATFORM=$(shell $(HIP_PATH)/bin/hipconfig --compiler)
all: vcpy_kernel.code runKernel.hip.out
runKernel.hip.out: runKernel.cpp
$(HIPCC) $(HIPCC_FLAGS) $< -o $@
vcpy_kernel.code: vcpy_kernel.cpp
$(HIPCC) --genco $(GENCO_FLAGS) $^ -o $@
clean:
rm -f *.code *.out