File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4968,9 +4968,6 @@ extern "C" void __hipUnregisterFatBinary(void *Data) {
49684968
49694969 logDebug (" Modules left: {}" , NumBins - 1 );
49704970
4971- if (Backend && NumBins == 1 )
4972- CHIPUninitialize ();
4973-
49744971 CHIP_CATCH_NO_RETURN
49754972}
49764973
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ extern void CHIPInitialize();
9191 * @brief
9292 * Singleton backend initialization function outer wrapper
9393 */
94- extern void CHIPUninitialize ();
94+ __attribute__ ((destructor)) extern void CHIPUninitialize();
9595
9696/* *
9797 * @brief
@@ -175,7 +175,7 @@ private:
175175 Type Type_;
176176
177177public:
178- BackendType (){};
178+ BackendType () {};
179179 BackendType (const std::string &StrIn) {
180180 if (StrIn == " opencl" ) {
181181 Type_ = BackendType::OpenCL;
You can’t perform that action at this time.
0 commit comments