[OpenMP][OMPT] Make sure that 0 is never used as ID in tests (NFC)
authorJoachim Protze <protze@itc.rwth-aachen.de>
Fri, 4 Dec 2020 17:41:07 +0000 (18:41 +0100)
committerJoachim Protze <protze@itc.rwth-aachen.de>
Fri, 4 Dec 2020 17:41:56 +0000 (18:41 +0100)
openmp/runtime/test/ompt/callback.h

index f4e4f03..2bc26b5 100644 (file)
@@ -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");