[llvm-branch-commits] [openmp] d3ec512 - [OpenMP][OMPT] Make sure that 0 is never used as ID in tests (NFC)

Joachim Protze via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Dec 4 09:47:29 PST 2020


Author: Joachim Protze
Date: 2020-12-04T18:41:56+01:00
New Revision: d3ec512b1d6906486d9f8cea93385774f52e6065

URL: https://github.com/llvm/llvm-project/commit/d3ec512b1d6906486d9f8cea93385774f52e6065
DIFF: https://github.com/llvm/llvm-project/commit/d3ec512b1d6906486d9f8cea93385774f52e6065.diff

LOG: [OpenMP][OMPT] Make sure that 0 is never used as ID in tests (NFC)

Added: 
    

Modified: 
    openmp/runtime/test/ompt/callback.h

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/test/ompt/callback.h b/openmp/runtime/test/ompt/callback.h
index f4e4f038026d..2bc26b51da18 100644
--- a/openmp/runtime/test/ompt/callback.h
+++ b/openmp/runtime/test/ompt/callback.h
@@ -1139,6 +1139,8 @@ int ompt_initialize(
   ompt_get_unique_id = (ompt_get_unique_id_t) lookup("ompt_get_unique_id");
   ompt_finalize_tool = (ompt_finalize_tool_t)lookup("ompt_finalize_tool");
 
+  ompt_get_unique_id();
+
   ompt_get_num_procs = (ompt_get_num_procs_t) lookup("ompt_get_num_procs");
   ompt_get_num_places = (ompt_get_num_places_t) lookup("ompt_get_num_places");
   ompt_get_place_proc_ids = (ompt_get_place_proc_ids_t) lookup("ompt_get_place_proc_ids");


        


More information about the llvm-branch-commits mailing list