Commit ce5daf8d authored by Nikhil's avatar Nikhil

WIP: leg work to make CODES know of the dragonfly-custom model

Change-Id: I1fb5685cd9e923ea91e0a5c55a90e68d93f4c4ef
parent bfc3531f
...@@ -63,6 +63,8 @@ typedef struct mn_stats mn_stats; ...@@ -63,6 +63,8 @@ typedef struct mn_stats mn_stats;
X(SLIMFLY, "modelnet_slimfly", "slimfly", &slimfly_method)\ X(SLIMFLY, "modelnet_slimfly", "slimfly", &slimfly_method)\
X(DRAGONFLY, "modelnet_dragonfly", "dragonfly", &dragonfly_method)\ X(DRAGONFLY, "modelnet_dragonfly", "dragonfly", &dragonfly_method)\
X(DRAGONFLY_ROUTER, "modelnet_dragonfly_router", "dragonfly_router", &dragonfly_router_method)\ X(DRAGONFLY_ROUTER, "modelnet_dragonfly_router", "dragonfly_router", &dragonfly_router_method)\
X(DRAGONFLY_CUSTOM, "modelnet_dragonfly_custom", "dragonfly_custom", &dragonfly_custom_method)\
X(DRAGONFLY_CUSTOM_ROUTER, "modelnet_dragonfly_custom_router", "dragonfly_custom_router", &dragonfly_custom_router_method)\
X(LOGGP, "modelnet_loggp", "loggp", &loggp_method)\ X(LOGGP, "modelnet_loggp", "loggp", &loggp_method)\
X(MAX_NETS, NULL, NULL, NULL) X(MAX_NETS, NULL, NULL, NULL)
......
...@@ -147,6 +147,7 @@ src_libcodes_a_SOURCES = \ ...@@ -147,6 +147,7 @@ src_libcodes_a_SOURCES = \
src/networks/model-net/simplenet-upd.c \ src/networks/model-net/simplenet-upd.c \
src/networks/model-net/torus.c \ src/networks/model-net/torus.c \
src/networks/model-net/dragonfly.c \ src/networks/model-net/dragonfly.c \
src/networks/model-net/dragonfly-custom.C \
src/networks/model-net/slimfly.c \ src/networks/model-net/slimfly.c \
src/networks/model-net/loggp.c \ src/networks/model-net/loggp.c \
src/networks/model-net/simplep2p.c \ src/networks/model-net/simplep2p.c \
......
...@@ -258,6 +258,10 @@ void model_net_base_configure(){ ...@@ -258,6 +258,10 @@ void model_net_base_configure(){
// note: dragonfly router uses the same event struct // note: dragonfly router uses the same event struct
msg_offsets[DRAGONFLY_ROUTER] = msg_offsets[DRAGONFLY_ROUTER] =
offsetof(model_net_wrap_msg, msg.m_dfly); offsetof(model_net_wrap_msg, msg.m_dfly);
msg_offsets[DRAGONFLY_CUSTOM] =
offsetof(model_net_wrap_msg, msg.m_dfly);
msg_offsets[DRAGONFLY_CUSTOM_ROUTER] =
offsetof(model_net_wrap_msg, msg.m_dfly);
msg_offsets[SLIMFLY] = msg_offsets[SLIMFLY] =
offsetof(model_net_wrap_msg, msg.m_slim); offsetof(model_net_wrap_msg, msg.m_slim);
msg_offsets[LOGGP] = msg_offsets[LOGGP] =
......
...@@ -21,6 +21,7 @@ extern struct model_net_method simplenet_method; ...@@ -21,6 +21,7 @@ extern struct model_net_method simplenet_method;
extern struct model_net_method simplep2p_method; extern struct model_net_method simplep2p_method;
extern struct model_net_method torus_method; extern struct model_net_method torus_method;
extern struct model_net_method dragonfly_method; extern struct model_net_method dragonfly_method;
extern struct model_net_method dragonfly-custom_method;
extern struct model_net_method slimfly_method; extern struct model_net_method slimfly_method;
extern struct model_net_method dragonfly_router_method; extern struct model_net_method dragonfly_router_method;
extern struct model_net_method loggp_method; extern struct model_net_method loggp_method;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment