Solve issues with hip-vdi runtime static lib

1.Combine libamdhip64_static_base.a and libamdvdi_static.a into libamdhip64_static.a.
2.Let hipcc use -use-staticlib to link libamdhip64_static.a.
3.Add some samples for static lib.
4.Fix compiling failure of code object.
Change-Id: Ia2333622a8d05639b90974c4c5d3d85654ba0138


[ROCm/hip commit: 4c2ab3f41e]
이 커밋은 다음에 포함됨:
Tao Sang
2020-04-06 09:58:35 -04:00
커밋한 사람 Tao Sang
부모 f89fcad87d
커밋 8a42ac4d03
6개의 변경된 파일과 46개의 추가작업 그리고 13개의 파일을 삭제
+5 -2
파일 보기
@@ -11,7 +11,7 @@ else
SOURCES=square.cpp
endif
all: square.out
all: square.out square.out.static
# Step
square.cpp: square.cu
@@ -20,5 +20,8 @@ square.cpp: square.cu
square.out: $(SOURCES)
$(HIPCC) $(CXXFLAGS) $(SOURCES) -o $@
square.out.static: $(SOURCES)
$(HIPCC) -use-staticlib $(CXXFLAGS) $(SOURCES) -o $@
clean:
rm -f *.o *.out square.cpp
rm -f *.o *.out *.out.static square.cpp