Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
e0203ac6
Commit
e0203ac6
authored
Jan 12, 2017
by
Caitlin Ross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added event tracing functionality to fat tree LPs
parent
e116532c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
codes/net/fattree.h
codes/net/fattree.h
+3
-0
src/networks/model-net/fattree.c
src/networks/model-net/fattree.c
+30
-1
No files found.
codes/net/fattree.h
View file @
e0203ac6
...
@@ -3,6 +3,9 @@
...
@@ -3,6 +3,9 @@
#include <ross.h>
#include <ross.h>
/* Functions used for ROSS event tracing */
extern
void
fattree_register_evtrace
();
/* Global variable for modelnet output directory name */
/* Global variable for modelnet output directory name */
extern
char
*
modelnet_stats_dir
;
extern
char
*
modelnet_stats_dir
;
...
...
src/networks/model-net/fattree.c
View file @
e0203ac6
...
@@ -2959,6 +2959,33 @@ tw_lptype fattree_lps[] =
...
@@ -2959,6 +2959,33 @@ tw_lptype fattree_lps[] =
{
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
},
{
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
},
};
};
/* For ROSS event tracing */
void
fattree_event_collect
(
fattree_message
*
m
,
tw_lp
*
lp
,
char
*
buffer
)
{
int
type
=
(
int
)
m
->
type
;
memcpy
(
buffer
,
&
type
,
sizeof
(
type
));
}
st_trace_type
fattree_trace_types
[]
=
{
{(
rbev_trace_f
)
fattree_event_collect
,
sizeof
(
int
),
(
ev_trace_f
)
fattree_event_collect
,
sizeof
(
int
)},
{
0
}
};
static
const
st_trace_type
*
fattree_get_trace_types
(
void
)
{
return
(
&
fattree_trace_types
[
0
]);
}
static
void
fattree_register_trace
(
st_trace_type
*
base_type
)
{
trace_type_register
(
LP_CONFIG_NM
,
base_type
);
trace_type_register
(
"fattree_switch"
,
base_type
);
}
/*** END of ROSS event tracing additions */
/* returns the fattree lp type for lp registration */
/* returns the fattree lp type for lp registration */
static
const
tw_lptype
*
fattree_get_cn_lp_type
(
void
)
static
const
tw_lptype
*
fattree_get_cn_lp_type
(
void
)
{
{
...
@@ -2987,6 +3014,8 @@ struct model_net_method fattree_method =
...
@@ -2987,6 +3014,8 @@ struct model_net_method fattree_method =
.
mn_report_stats
=
fattree_report_stats
,
.
mn_report_stats
=
fattree_report_stats
,
// .model_net_method_find_local_device = NULL,
// .model_net_method_find_local_device = NULL,
.
mn_collective_call
=
NULL
,
.
mn_collective_call
=
NULL
,
.
mn_collective_call_rc
=
NULL
.
mn_collective_call_rc
=
NULL
,
.
mn_trace_register
=
fattree_register_trace
,
.
mn_get_trace_type
=
fattree_get_trace_types
};
};
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