From 6a501099863735f67f7e129042f6c8db4a81b2ce Mon Sep 17 00:00:00 2001 From: Kevin Huck Date: Wed, 6 Dec 2023 15:35:24 -0500 Subject: [PATCH] Adding warning that OMPT got re-initialized --- src/apex/apex_ompt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apex/apex_ompt.cpp b/src/apex/apex_ompt.cpp index 9e89f622..b2f6c844 100644 --- a/src/apex/apex_ompt.cpp +++ b/src/apex/apex_ompt.cpp @@ -1827,6 +1827,7 @@ int ompt_initialize(ompt_function_lookup_t lookup, int initial_device_num, APEX_UNUSED(initial_device_num); APEX_UNUSED(tool_data); if (!apex::apex_options::use_ompt()) { return 0; } + if (enabled) { printf("Re-initializing OMPT!\n"); return 1; } { std::unique_lock l(apex_apex_threadid_mutex); apex_threadid = apex_numthreads++;