2
0

SWDEV-298331 - Fix FreeLibrary throw exception issue on Windows

release HIP resource at DLL_PROCESS_DETACH point

Change-Id: I884ab028eeec1aaa2f655746f7eeae130fd009e4


[ROCm/clr commit: 58e1867079]
Este cometimento está contido em:
haoyuan2
2022-02-25 11:30:22 -08:00
cometido por Hao Yuan
ascendente 8ce52aba5b
cometimento 133f476d2e
2 ficheiros modificados com 5 adições e 2 eliminações
+2 -1
Ver ficheiro
@@ -1,4 +1,4 @@
/* Copyright (c) 2008 - 2021 Advanced Micro Devices, Inc.
/* Copyright (c) 2008 - 2022 Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -142,6 +142,7 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) {
#endif // DEBUG
break;
case DLL_PROCESS_DETACH:
amd::shutDown();
break;
case DLL_THREAD_DETACH: {
amd::Thread* thread = amd::Thread::current();