-/* 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
#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 <map>
#include <vector>
-namespace simgrid {
-namespace kernel {
-namespace resource {
+namespace simgrid::kernel::resource {
class XBT_PRIVATE IBNode;
explicit IBNode(int id) : id_(id){};
};
-class XBT_PRIVATE NetworkIBModel : public NetworkSmpiModel {
+class XBT_PRIVATE NetworkIBModel : public NetworkCm02Model {
std::unordered_map<std::string, IBNode> active_nodes;
std::unordered_map<NetworkAction*, std::pair<IBNode*, IBNode*>> active_comms;
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