SWDEV-444670 - Register the Runtime::tearDown function to be called at exit

Change-Id: I2200b8154ce6806bf99150d0d68f6f20138fa3dc


[ROCm/clr commit: 5e294f89a8]
This commit is contained in:
Ioannis Assiouras
2024-02-07 13:53:50 +00:00
rodzic 79a57a6fc1
commit 8392200773
2 zmienionych plików z 11 dodań i 3 usunięć
@@ -120,4 +120,12 @@ uint ReferenceCountedObject::release() {
return newCount;
}
#ifndef _WIN32
void __attribute__((destructor)) hipTearDown() {
if (amd::IS_HIP) {
Runtime::tearDown();
}
}
#endif
} // namespace amd