From 10648c4d70d36af14c42fa912eddee4f039bce4a Mon Sep 17 00:00:00 2001 From: "Alex (Bin) Xie" Date: Wed, 20 Apr 2022 12:02:52 -0400 Subject: [PATCH] SWDEV-329646 - MicroStation app crash upon closing Change-Id: I0ca272be42934ee96f45300fa06847cd74170f13 --- opencl/amdocl/cl_runtime.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opencl/amdocl/cl_runtime.cpp b/opencl/amdocl/cl_runtime.cpp index 652aa39129..c4b9f42502 100644 --- a/opencl/amdocl/cl_runtime.cpp +++ b/opencl/amdocl/cl_runtime.cpp @@ -19,6 +19,7 @@ THE SOFTWARE. */ #include "thread/thread.hpp" +#include "platform/runtime.hpp" #include #include @@ -45,6 +46,7 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) { #endif // DEBUG break; case DLL_PROCESS_DETACH: + amd::Runtime::setLibraryDetached(); break; case DLL_THREAD_DETACH: { amd::Thread* thread = amd::Thread::current(); @@ -54,4 +56,4 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) { break; } return true; -} \ No newline at end of file +}