Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes-dev
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xin Wang
codes-dev
Commits
ce5daf8d
Commit
ce5daf8d
authored
Aug 13, 2016
by
Nikhil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: leg work to make CODES know of the dragonfly-custom model
Change-Id: I1fb5685cd9e923ea91e0a5c55a90e68d93f4c4ef
parent
bfc3531f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
0 deletions
+8
-0
codes/model-net.h
codes/model-net.h
+2
-0
src/Makefile.subdir
src/Makefile.subdir
+1
-0
src/networks/model-net/model-net-lp.c
src/networks/model-net/model-net-lp.c
+4
-0
src/networks/model-net/model-net.c
src/networks/model-net/model-net.c
+1
-0
No files found.
codes/model-net.h
View file @
ce5daf8d
...
...
@@ -63,6 +63,8 @@ typedef struct mn_stats mn_stats;
X(SLIMFLY, "modelnet_slimfly", "slimfly", &slimfly_method)\
X(DRAGONFLY, "modelnet_dragonfly", "dragonfly", &dragonfly_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(MAX_NETS, NULL, NULL, NULL)
...
...
src/Makefile.subdir
View file @
ce5daf8d
...
...
@@ -147,6 +147,7 @@ src_libcodes_a_SOURCES = \
src/networks/model-net/simplenet-upd.c
\
src/networks/model-net/torus.c
\
src/networks/model-net/dragonfly.c
\
src/networks/model-net/dragonfly-custom.C
\
src/networks/model-net/slimfly.c
\
src/networks/model-net/loggp.c
\
src/networks/model-net/simplep2p.c
\
...
...
src/networks/model-net/model-net-lp.c
View file @
ce5daf8d
...
...
@@ -258,6 +258,10 @@ void model_net_base_configure(){
// note: dragonfly router uses the same event struct
msg_offsets
[
DRAGONFLY_ROUTER
]
=
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
]
=
offsetof
(
model_net_wrap_msg
,
msg
.
m_slim
);
msg_offsets
[
LOGGP
]
=
...
...
src/networks/model-net/model-net.c
View file @
ce5daf8d
...
...
@@ -21,6 +21,7 @@ extern struct model_net_method simplenet_method;
extern
struct
model_net_method
simplep2p_method
;
extern
struct
model_net_method
torus_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
dragonfly_router_method
;
extern
struct
model_net_method
loggp_method
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment