SWDEV-444670 - Enable teardown class

Force implicit runtime teardown with a global destructor.

Change-Id: Iabe63dedf5b94fefc98668585c45a61607120669


[ROCm/clr commit: c95a75a2bf]
This commit is contained in:
German Andryeyev committed 2024-04-16 12:00:06 -04:00
1 parent 854cbe1d24
commit 7f195e2996
7 file changed
+37 -14

No files matched your search

+2
View File
@@ -61,6 +61,7 @@ void init(bool* status) {
return;
}
g_devices.push_back(device);
amd::RuntimeTearDown::RegisterObject(device);
}
amd::Context* hContext = new amd::Context(devices, amd::Context::Info());
@@ -73,6 +74,7 @@ void init(bool* status) {
hContext->release();
}
host_context = hContext;
amd::RuntimeTearDown::RegisterObject(hContext);
PlatformState::instance().init();
*status = true;