diff --git a/rocclr/runtime/platform/runtime.cpp b/rocclr/runtime/platform/runtime.cpp index 5224f6b3f1..d042215eae 100644 --- a/rocclr/runtime/platform/runtime.cpp +++ b/rocclr/runtime/platform/runtime.cpp @@ -29,17 +29,6 @@ namespace amd { -#ifdef __linux__ - -static void __runtime_exit() __attribute__((destructor(102))); -static void __runtime_exit() { - if (ENABLE_CAL_SHUTDOWN) { - Runtime::tearDown(); - } -} - -#endif - volatile bool Runtime::initialized_ = false; bool Runtime::init() { @@ -129,9 +118,6 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) { #endif // DEBUG break; case DLL_PROCESS_DETACH: - if (!reserved || ENABLE_CAL_SHUTDOWN) { - Runtime::tearDown(); - } break; case DLL_THREAD_DETACH: { amd::Thread* thread = amd::Thread::current(); diff --git a/rocclr/runtime/utils/flags.hpp b/rocclr/runtime/utils/flags.hpp index 4563fe2ad2..8c07ba59e1 100644 --- a/rocclr/runtime/utils/flags.hpp +++ b/rocclr/runtime/utils/flags.hpp @@ -64,8 +64,6 @@ release(bool, GPU_FLUSH_ON_EXECUTION, false, \ "Submit commands to HW on every operation. 0 - Disable, 1 - Enable") \ release(bool, GPU_USE_SYNC_OBJECTS, true, \ "If enabled, use sync objects instead of polling") \ -release(bool, ENABLE_CAL_SHUTDOWN, false, \ - "Enable explicit CAL shutdown (for PM4 capture)") \ release(bool, CL_KHR_FP64, true, \ "Enable/Disable support for double precision") \ release(cstring, AMD_OCL_BUILD_OPTIONS, 0, \