X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/28874d42ad02de8c1ec9d26b34086b377371d2c1..3e8cbdbebfce89fb0abf0cb8710c8505e111d097:/src/surf/network_ib.hpp diff --git a/src/surf/network_ib.hpp b/src/surf/network_ib.hpp index 37884ed705..a97ed9e4c3 100644 --- a/src/surf/network_ib.hpp +++ b/src/surf/network_ib.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2021. The SimGrid Team. +/* Copyright (c) 2014-2023. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -7,15 +7,13 @@ #ifndef SURF_NETWORK_IB_HPP_ #define SURF_NETWORK_IB_HPP_ -#include "src/surf/network_smpi.hpp" +#include "src/surf/network_cm02.hpp" #include "xbt/base.h" #include #include -namespace simgrid { -namespace kernel { -namespace resource { +namespace simgrid::kernel::resource { class XBT_PRIVATE IBNode; @@ -37,7 +35,7 @@ public: explicit IBNode(int id) : id_(id){}; }; -class XBT_PRIVATE NetworkIBModel : public NetworkSmpiModel { +class XBT_PRIVATE NetworkIBModel : public NetworkCm02Model { std::unordered_map active_nodes; std::unordered_map> active_comms; @@ -55,9 +53,7 @@ public: static void IB_create_host_callback(s4u::Host const& host); static void IB_action_state_changed_callback(NetworkAction& action, Action::State /*previous*/); - static void IB_action_init_callback(NetworkAction& action); + static void IB_comm_start_callback(const activity::CommImpl& comm); }; -} // namespace resource -} // namespace kernel -} // namespace simgrid +} // namespace simgrid::kernel::resource #endif