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
Этот коммит содержится в:
Tao Sang authored and Tao Sang committed 2020-04-15 13:46:36 -04:00
1 родитель 85fdbb85a2
Коммит 4c2ab3f41e
6 files changed
+46 -13

No files matched your search

+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