SWDEV-444670 - Enable teardown class

Force implicit runtime teardown with a global destructor.

Change-Id: Iabe63dedf5b94fefc98668585c45a61607120669
Cette révision appartient à :
German Andryeyev
2024-04-12 11:22:15 -04:00
Parent a1e0970d6d
révision c95a75a2bf
7 fichiers modifiés avec 37 ajouts et 14 suppressions
+2
Voir le fichier
@@ -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;