SWDEV-444670 - Register the Runtime::tearDown function to be called at exit
Change-Id: I2200b8154ce6806bf99150d0d68f6f20138fa3dc
This commit is contained in:
1 parent
66f6a3e255
commit
5e294f89a8
2 file changed
+11
-3
No files matched your search
@@ -120,4 +120,12 @@ uint ReferenceCountedObject::release() {
|
||||
return newCount;
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
void __attribute__((destructor)) hipTearDown() {
|
||||
if (amd::IS_HIP) {
|
||||
Runtime::tearDown();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace amd
|
||||
Reference in new issue
Block a user