Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove surf_routing.hpp
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 17 Dec 2016 16:37:42 +0000 (17:37 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 17 Dec 2016 16:37:42 +0000 (17:37 +0100)
19 files changed:
src/kernel/routing/ClusterZone.cpp
src/kernel/routing/DijkstraZone.cpp
src/kernel/routing/FloydZone.cpp
src/kernel/routing/NetCard.cpp
src/kernel/routing/RoutedZone.cpp
src/kernel/routing/RoutedZone.hpp
src/s4u/s4u_engine.cpp
src/s4u/s4u_netzone.cpp
src/simgrid/host.cpp
src/surf/network_ib.cpp
src/surf/network_ib.hpp
src/surf/network_interface.hpp
src/surf/ptask_L07.cpp
src/surf/storage_interface.cpp
src/surf/surf_routing.cpp
src/surf/surf_routing.hpp [deleted file]
src/surf/xml/surfxml_parseplatf.cpp
teshsuite/simdag/is-router/is-router.cpp
tools/cmake/DefinePackages.cmake

index 9a0335b..f4715b7 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "src/kernel/routing/ClusterZone.hpp"
 #include "src/kernel/routing/NetCard.hpp"
 
 #include "src/kernel/routing/ClusterZone.hpp"
 #include "src/kernel/routing/NetCard.hpp"
+#include "src/kernel/routing/RoutedZone.hpp"
 #include "src/surf/network_interface.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_cluster, surf, "Routing part of surf");
 #include "src/surf/network_interface.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_cluster, surf, "Routing part of surf");
index eb8c653..db3525b 100644 (file)
@@ -5,9 +5,10 @@
 
 #include "src/kernel/routing/DijkstraZone.hpp"
 #include "src/kernel/routing/NetCard.hpp"
 
 #include "src/kernel/routing/DijkstraZone.hpp"
 #include "src/kernel/routing/NetCard.hpp"
-
 #include "src/surf/network_interface.hpp"
 
 #include "src/surf/network_interface.hpp"
 
+#include <float.h>
+
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_dijkstra, surf, "Routing part of surf -- dijkstra routing logic");
 
 /* Free functions */
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_dijkstra, surf, "Routing part of surf -- dijkstra routing logic");
 
 /* Free functions */
index 378119e..21780d2 100644 (file)
@@ -3,13 +3,15 @@
 /* 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. */
 
 /* 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 <limits>
 
 #include "src/kernel/routing/FloydZone.hpp"
 #include "src/kernel/routing/NetCard.hpp"
 #include "src/surf/network_interface.hpp"
 #include "xbt/log.h"
 
 
 #include "src/kernel/routing/FloydZone.hpp"
 #include "src/kernel/routing/NetCard.hpp"
 #include "src/surf/network_interface.hpp"
 #include "xbt/log.h"
 
+#include <float.h>
+#include <limits>
+
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_floyd, surf, "Routing part of surf");
 
 #define TO_FLOYD_COST(i, j) (costTable_)[(i) + (j)*table_size]
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_floyd, surf, "Routing part of surf");
 
 #define TO_FLOYD_COST(i, j) (costTable_)[(i) + (j)*table_size]
index 42c1e05..3b9652b 100644 (file)
@@ -5,7 +5,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "src/kernel/routing/NetCard.hpp"
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "src/kernel/routing/NetCard.hpp"
-#include "src/surf/surf_routing.hpp"
+#include "surf/surf_routing.h"
 #include <simgrid/s4u/host.hpp>
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route, surf, "Routing part of surf");
 #include <simgrid/s4u/host.hpp>
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route, surf, "Routing part of surf");
index e6019f1..eab11d9 100644 (file)
@@ -23,8 +23,8 @@ void routing_route_free(sg_platf_route_cbarg_t route)
   }
 }
 
   }
 }
 
-/* ************************************************************************** */
-/* *********************** GENERIC BUSINESS METHODS ************************* */
+/* ***************************************************************** */
+/* *********************** GENERIC METHODS ************************* */
 
 static const char* instr_node_name(xbt_node_t node)
 {
 
 static const char* instr_node_name(xbt_node_t node)
 {
index 8db82e1..918856f 100644 (file)
@@ -28,4 +28,9 @@ protected:
 }
 } // namespace
 
 }
 } // namespace
 
+SG_BEGIN_DECL()
+XBT_PRIVATE xbt_node_t new_xbt_graph_node(xbt_graph_t graph, const char* name, xbt_dict_t nodes);
+XBT_PRIVATE xbt_edge_t new_xbt_graph_edge(xbt_graph_t graph, xbt_node_t s, xbt_node_t d, xbt_dict_t edges);
+SG_END_DECL()
+
 #endif /* SIMGRID_ROUTING_GENERIC_HPP_ */
 #endif /* SIMGRID_ROUTING_GENERIC_HPP_ */
index 682932f..0f8798d 100644 (file)
@@ -17,7 +17,6 @@
 #include "src/kernel/routing/NetZoneImpl.hpp"
 
 #include "src/surf/network_interface.hpp"
 #include "src/kernel/routing/NetZoneImpl.hpp"
 
 #include "src/surf/network_interface.hpp"
-#include "src/surf/surf_routing.hpp" // routing_platf. FIXME:KILLME. SOON
 #include "surf/surf.h"               // routing_platf. FIXME:KILLME. SOON
 
 XBT_LOG_NEW_CATEGORY(s4u,"Log channels of the S4U (Simgrid for you) interface");
 #include "surf/surf.h"               // routing_platf. FIXME:KILLME. SOON
 
 XBT_LOG_NEW_CATEGORY(s4u,"Log channels of the S4U (Simgrid for you) interface");
index 9567d59..3d9e085 100644 (file)
@@ -10,7 +10,6 @@
 #include "simgrid/simix.hpp"
 #include "src/kernel/routing/NetCard.hpp"
 #include "src/surf/network_interface.hpp" // Link FIXME: move to proper header
 #include "simgrid/simix.hpp"
 #include "src/kernel/routing/NetCard.hpp"
 #include "src/surf/network_interface.hpp" // Link FIXME: move to proper header
-#include "src/surf/surf_routing.hpp"
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_netzone, "S4U Networking Zones");
 
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_netzone, "S4U Networking Zones");
 
index 0da2044..e655063 100644 (file)
@@ -101,7 +101,6 @@ xbt_dynar_t sg_hosts_as_dynar()
 // ========= Layering madness ==============*
 
 #include "src/surf/cpu_interface.hpp"
 // ========= Layering madness ==============*
 
 #include "src/surf/cpu_interface.hpp"
-#include "src/surf/surf_routing.hpp"
 
 // ========== User data Layer ==========
 void *sg_host_user(sg_host_t host) {
 
 // ========== User data Layer ==========
 void *sg_host_user(sg_host_t host) {
index 30d8f4a..d00e88c 100644 (file)
@@ -6,11 +6,11 @@
 
 #include <utility>
 
 
 #include <utility>
 
-#include "network_ib.hpp"
-
-#include "src/surf/HostImpl.hpp"
 #include "simgrid/sg_config.h"
 #include "simgrid/sg_config.h"
-#include "maxmin_private.hpp"
+#include "src/surf/HostImpl.hpp"
+#include "src/surf/maxmin_private.hpp"
+#include "src/surf/network_ib.hpp"
+#include "src/surf/xml/platf.hpp"
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_network);
 
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_network);
 
index 8d1103e..ac9b8a8 100644 (file)
@@ -7,9 +7,10 @@
 #ifndef SURF_NETWORK_IB_HPP_
 #define SURF_NETWORK_IB_HPP_
 
 #ifndef SURF_NETWORK_IB_HPP_
 #define SURF_NETWORK_IB_HPP_
 
-#include <xbt/base.h>
+#include "src/surf/network_smpi.hpp"
+#include "xbt/base.h"
 
 
-#include "network_smpi.hpp"
+#include <map>
 
 namespace simgrid {
   namespace surf {
 
 namespace simgrid {
   namespace surf {
index c5522a8..a16404c 100644 (file)
@@ -14,7 +14,6 @@
 #include "xbt/fifo.h"
 #include "xbt/dict.h"
 #include "surf_interface.hpp"
 #include "xbt/fifo.h"
 #include "xbt/dict.h"
 #include "surf_interface.hpp"
-#include "surf_routing.hpp"
 #include "src/surf/PropertyHolder.hpp"
 
 #include "simgrid/link.h"
 #include "src/surf/PropertyHolder.hpp"
 
 #include "simgrid/link.h"
index ebbd2cf..f2ae71e 100644 (file)
@@ -12,7 +12,6 @@
 #include "ptask_L07.hpp"
 
 #include "cpu_interface.hpp"
 #include "ptask_L07.hpp"
 
 #include "cpu_interface.hpp"
-#include "surf_routing.hpp"
 #include "xbt/lib.h"
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_host);
 #include "xbt/lib.h"
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_host);
index ff31c4c..dbbb601 100644 (file)
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_storage, surf, "Logging specific to the SURF storage module");
 
 xbt_lib_t file_lib;
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_storage, surf, "Logging specific to the SURF storage module");
 
 xbt_lib_t file_lib;
+int MSG_FILE_LEVEL = -1; // Msg file level
+
 xbt_lib_t storage_lib;
 xbt_lib_t storage_lib;
-int ROUTING_STORAGE_LEVEL = -1;      //Routing for storagelevel
+int SIMIX_STORAGE_LEVEL        = -1; // Simix storage level
+int MSG_STORAGE_LEVEL          = -1; // Msg storage level
+int ROUTING_STORAGE_LEVEL      = -1; // Routing for storage level
 int ROUTING_STORAGE_HOST_LEVEL = -1;
 int SURF_STORAGE_LEVEL = -1;
 xbt_lib_t storage_type_lib;
 int ROUTING_STORAGE_HOST_LEVEL = -1;
 int SURF_STORAGE_LEVEL = -1;
 xbt_lib_t storage_type_lib;
index b5f8acb..6cb01aa 100644 (file)
@@ -3,13 +3,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. */
 
 /* 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 "src/surf/surf_routing.hpp"
 #include "simgrid/msg.h"
 
 #include "simgrid/msg.h"
 
-int MSG_FILE_LEVEL = -1;             //Msg file level
-
-int SIMIX_STORAGE_LEVEL = -1;        //Simix storage level
-int MSG_STORAGE_LEVEL = -1;          //Msg storage level
-
 xbt_lib_t as_router_lib;
 int ROUTING_ASR_LEVEL = -1;          //Routing level
 xbt_lib_t as_router_lib;
 int ROUTING_ASR_LEVEL = -1;          //Routing level
diff --git a/src/surf/surf_routing.hpp b/src/surf/surf_routing.hpp
deleted file mode 100644 (file)
index 64b1b70..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Copyright (c) 2013-2016. The SimGrid Team. All rights reserved.          */
-
-/* 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. */
-
-#ifndef NETWORK_ROUTING_HPP_
-#define NETWORK_ROUTING_HPP_
-
-#include <xbt/base.h>
-#include <xbt/signal.hpp>
-
-#include "src/kernel/routing/NetZoneImpl.hpp"
-#include "surf_interface.hpp"
-
-#include <float.h>
-#include <vector>
-
-SG_BEGIN_DECL()
-XBT_PRIVATE xbt_node_t new_xbt_graph_node (xbt_graph_t graph, const char *name, xbt_dict_t nodes);
-XBT_PRIVATE xbt_edge_t new_xbt_graph_edge (xbt_graph_t graph, xbt_node_t s, xbt_node_t d, xbt_dict_t edges);
-SG_END_DECL()
-
-#endif /* NETWORK_ROUTING_HPP_ */
index 2194009..9527602 100644 (file)
@@ -12,7 +12,7 @@
 #include "src/surf/network_interface.hpp"
 #include "src/instr/instr_private.h" // TRACE_start(). FIXME: remove by subscribing tracing to the surf signals
 
 #include "src/surf/network_interface.hpp"
 #include "src/instr/instr_private.h" // TRACE_start(). FIXME: remove by subscribing tracing to the surf signals
 
-#include "src/surf/xml/platf.hpp"
+#include "src/surf/xml/platf_private.hpp"
 
 #if HAVE_LUA
 extern "C" {
 
 #if HAVE_LUA
 extern "C" {
index 012e683..77d1bdc 100644 (file)
@@ -6,7 +6,7 @@
 #include "simgrid/s4u/host.hpp"
 #include "simgrid/simdag.h"
 #include "src/kernel/routing/NetCard.hpp"
 #include "simgrid/s4u/host.hpp"
 #include "simgrid/simdag.h"
 #include "src/kernel/routing/NetCard.hpp"
-#include "src/surf/surf_routing.hpp"
+#include "surf/surf_routing.h"
 #include <stdio.h>
 
 int main(int argc, char **argv)
 #include <stdio.h>
 
 int main(int argc, char **argv)
index 1a1d89d..8715452 100644 (file)
@@ -67,7 +67,6 @@ set(EXTRA_DIST
   src/surf/storage_n11.hpp
   src/surf/surf_interface.hpp
   src/surf/surf_private.h
   src/surf/storage_n11.hpp
   src/surf/surf_interface.hpp
   src/surf/surf_private.h
-  src/surf/surf_routing.hpp
   src/surf/PropertyHolder.hpp
   src/surf/host_clm03.hpp
   src/surf/HostImpl.hpp
   src/surf/PropertyHolder.hpp
   src/surf/host_clm03.hpp
   src/surf/HostImpl.hpp