Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
56e896e4
Commit
56e896e4
authored
Jun 23, 2016
by
Nikhil Jane
Committed by
Nikhil
Aug 22, 2016
Browse files
Adding Nikhil's fat tree model from the uiuc_tracer branch of the codes-net repo
parent
45fdd016
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
codes/net/fattree.h
0 → 100644
View file @
56e896e4
#ifndef FATTREE_H
#define FATTREE_H
#include <ross.h>
typedef
struct
fattree_message
fattree_message
;
/* this message is used for both dragonfly compute nodes and routers */
struct
fattree_message
{
/* packet ID of the flit */
unsigned
long
long
packet_ID
;
/* event type of the flit */
short
type
;
/* category: comes from codes */
char
category
[
CATEGORY_NAME_MAX
];
/* final destination LP ID, this comes from codes can be a server or any other LP type*/
tw_lpid
final_dest_gid
;
/*sending LP ID from CODES, can be a server or any other LP type */
tw_lpid
sender_lp
;
/* destination terminal ID of the message */
int
dest_num
;
/* source terminal ID of the fattree */
unsigned
int
src_terminal_id
;
/* Intermediate LP ID from which this message is coming */
unsigned
int
intm_lp_id
;
short
saved_vc
;
short
saved_off
;
int
last_hop
;
int
intm_id
;
//to find which port I connect to sender with
// For buffer message
short
vc_index
;
short
vc_off
;
/* for reverse computation */
tw_stime
saved_available_time
;
tw_stime
saved_credit_time
;
uint64_t
packet_size
;
/* meta data to aggregate packets into a message at receiver */
uint64_t
msg_size
;
uint64_t
src_nic
;
uint64_t
uniq_id
;
uint64_t
saved_size
;
int
remote_event_size_bytes
;
int
local_event_size_bytes
;
};
#endif
/* end of include guard: FATTREE_H */
src/networks/model-net/fattree.c
0 → 100644
View file @
56e896e4
This diff is collapsed.
Click to expand it.
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