X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1366b293e8c700b12567e45076cf0e6b7a25478f..5f1dc33c9f76ee99973ba93f034f031451398ebe:/src/smpi/colls/smpi_automatic_selector.cpp diff --git a/src/smpi/colls/smpi_automatic_selector.cpp b/src/smpi/colls/smpi_automatic_selector.cpp index 8ff4452ea7..b6b3693767 100644 --- a/src/smpi/colls/smpi_automatic_selector.cpp +++ b/src/smpi/colls/smpi_automatic_selector.cpp @@ -4,7 +4,7 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include +#include #include @@ -13,17 +13,18 @@ //attempt to do a quick autotuning version of the collective, -paje_value pj_value; -#define TRACE_AUTO_COLL(cat) \ + +#define TRACE_AUTO_COLL(cat) \ if (TRACE_is_enabled()) { \ - type_t type = PJ_type_get_or_null(#cat, PJ_type_get_root()); \ + simgrid::instr::Type* type = PJ_type_get_root()->getChildOrNull(#cat); \ if (not type) { \ - type = PJ_type_event_new(#cat, PJ_type_get_root()); \ + type = simgrid::instr::Type::eventNew(#cat, PJ_type_get_root()); \ } \ char cont_name[25]; \ - snprintf(cont_name, 25, "rank-%d", smpi_process()->index()); \ - val_t value = pj_value.PJ_value_get_or_new(Colls::mpi_coll_##cat##_description[i].name, "1.0 1.0 1.0", type); \ - new NewEvent(SIMIX_get_clock(), PJ_container_get(cont_name), type, value); \ + 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); \ } #define AUTOMATIC_COLL_BENCH(cat, ret, args, args2) \