Skip to content

Commit

Permalink
Adding warning that OMPT got re-initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Dec 6, 2023
1 parent 75c4f87 commit 6a50109
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apex/apex_ompt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::mutex> l(apex_apex_threadid_mutex);
apex_threadid = apex_numthreads++;
Expand Down

0 comments on commit 6a50109

Please sign in to comment.