]> AND Public Git Repository - simgrid.git/blobdiff - src/smpi/colls/smpi_automatic_selector.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'actor-priority' of https://github.com/Takishipp/simgrid into Takishipp...
[simgrid.git] / src / smpi / colls / smpi_automatic_selector.cpp
index 7b75b792561e55d6a5fa7167111dc54418c357c6..31ca8a976f77e1dfb1c0c50c1706a0e8300e47ff 100644 (file)
 
 #define TRACE_AUTO_COLL(cat)                                                                                           \
   if (TRACE_is_enabled()) {                                                                                            \
-    simgrid::instr::Type* type = PJ_type_get_root()->getChildOrNull(#cat);                                             \
-    if (not type) {                                                                                                    \
-      type = simgrid::instr::Type::eventNew(#cat, PJ_type_get_root());                                                 \
-    }                                                                                                                  \
+    simgrid::instr::Type* type = simgrid::instr::Type::getRootType()->getOrCreateEventType(#cat);                      \
+                                                                                                                       \
     char cont_name[25];                                                                                                \
     snprintf(cont_name, 25, "rank-%d", smpi_process()->index());                                                       \
-    simgrid::instr::Value* val =                                                                                       \
-        simgrid::instr::Value::get_or_new(Colls::mpi_coll_##cat##_description[i].name, "1.0 1.0 1.0", type);           \
-    new simgrid::instr::NewEvent(SIMIX_get_clock(), PJ_container_get(cont_name), type, val);                           \
+    type->addEntityValue(Colls::mpi_coll_##cat##_description[i].name, "1.0 1.0 1.0");                                  \
+    new simgrid::instr::NewEvent(SIMIX_get_clock(), simgrid::instr::Container::byName(cont_name), type,                \
+                                 type->getEntityValue(Colls::mpi_coll_##cat##_description[i].name));                   \
   }
 
 #define AUTOMATIC_COLL_BENCH(cat, ret, args, args2)                                                                    \