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: Ic8c95228eb139058da8b5d66ba8439486154ca6f
This commit is contained in:
Tao Sang
2020-04-06 09:58:35 -04:00
parent ee95a07c35
commit da27fd2b09
6 changed files with 52 additions and 10 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
constexpr unsigned __hipFatMAGIC2 = 0x48495046; // "HIPF"
thread_local std::stack<ihipExec_t> execStack_;
PlatformState* PlatformState::platform_ = new PlatformState();
PlatformState* PlatformState::platform_; // Initiaized as nullptr by default
struct __CudaFatBinaryWrapper {
unsigned int magic;