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
5fcc75db
Commit
5fcc75db
authored
Aug 16, 2018
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding functional QoS in sequential mode for the 1-D dragonfly
parent
66290294
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
744 additions
and
153 deletions
+744
-153
codes/net/dragonfly-custom.h
codes/net/dragonfly-custom.h
+4
-0
scripts/allocation_gen/config_alloc-upd.conf
scripts/allocation_gen/config_alloc-upd.conf
+3
-3
scripts/allocation_gen/config_alloc.conf
scripts/allocation_gen/config_alloc.conf
+3
-3
src/network-workloads/conf/dragonfly-custom/dfdally_8k.conf
src/network-workloads/conf/dragonfly-custom/dfdally_8k.conf
+7
-7
src/network-workloads/model-net-mpi-replay.c
src/network-workloads/model-net-mpi-replay.c
+78
-31
src/networks/model-net/dragonfly-custom.C
src/networks/model-net/dragonfly-custom.C
+628
-104
src/networks/model-net/model-net-lp.c
src/networks/model-net/model-net-lp.c
+1
-1
src/networks/model-net/model-net.c
src/networks/model-net/model-net.c
+5
-2
src/workload/methods/codes-online-comm-wrkld.C
src/workload/methods/codes-online-comm-wrkld.C
+15
-2
No files found.
codes/net/dragonfly-custom.h
View file @
5fcc75db
...
...
@@ -78,6 +78,10 @@ struct terminal_custom_message
/* for reverse computation */
int
path_type
;
short
last_saved_qos
;
short
saved_qos_status
;
int
saved_qos_data
;
tw_stime
saved_available_time
;
tw_stime
saved_avg_time
;
tw_stime
saved_rcv_time
;
...
...
scripts/allocation_gen/config_alloc-upd.conf
View file @
5fcc75db
CONT
3456
rand
1024
2
1
1024
128
512
512
scripts/allocation_gen/config_alloc.conf
View file @
5fcc75db
CONT
3456
1024
1
28
rand
2048
1024
1
024
src/network-workloads/conf/dragonfly-custom/dfdally_8k.conf
View file @
5fcc75db
...
...
@@ -31,17 +31,17 @@ PARAMS
# number of groups in the network
num_groups
=
"65"
;
# buffer size in bytes for local virtual channels
local_vc_size
=
"
32768
"
;
local_vc_size
=
"
16384
"
;
#buffer size in bytes for global virtual channels
global_vc_size
=
"
32768
"
;
global_vc_size
=
"
16384
"
;
#buffer size in bytes for compute node virtual channels
cn_vc_size
=
"32768"
;
#bandwidth in GiB/s for local channels
local_bandwidth
=
"2
5
.0"
;
local_bandwidth
=
"2.0"
;
# bandwidth in GiB/s for global channels
global_bandwidth
=
"2
5
.0"
;
global_bandwidth
=
"2.0"
;
# bandwidth in GiB/s for compute node-router channels
cn_bandwidth
=
"2
5
.0"
;
cn_bandwidth
=
"2.0"
;
# Number of row channels
num_row_chans
=
"1"
;
# Number of column channels
...
...
@@ -54,9 +54,9 @@ PARAMS
# number of global channels per router
num_global_channels
=
"8"
;
# network config file for intra-group connections
intra
-
group
-
connections
=
"
/home/mubarak/codes-online/codes
/src/network-workloads/conf/dragonfly-custom/dfdally_8k_intra"
;
intra
-
group
-
connections
=
"
..
/src/network-workloads/conf/dragonfly-custom/dfdally_8k_intra"
;
# network config file for inter-group connections
inter
-
group
-
connections
=
"
/home/mubarak/codes-online/codes
/src/network-workloads/conf/dragonfly-custom/dfdally_8k_inter"
;
inter
-
group
-
connections
=
"
..
/src/network-workloads/conf/dragonfly-custom/dfdally_8k_inter"
;
# routing protocol to be used
routing
=
"prog-adaptive"
;
}
src/network-workloads/model-net-mpi-replay.c
View file @
5fcc75db
This diff is collapsed.
Click to expand it.
src/networks/model-net/dragonfly-custom.C
View file @
5fcc75db
This diff is collapsed.
Click to expand it.
src/networks/model-net/model-net-lp.c
View file @
5fcc75db
...
...
@@ -532,7 +532,7 @@ void model_net_base_event(
tw_lp
*
lp
){
if
(
m
->
h
.
magic
!=
model_net_base_magic
)
printf
(
"
\n
LP ID mismatched %llu "
,
lp
->
gid
);
printf
(
"
\n
LP ID mismatched %llu
%d
"
,
lp
->
gid
);
assert
(
m
->
h
.
magic
==
model_net_base_magic
);
...
...
src/networks/model-net/model-net.c
View file @
5fcc75db
...
...
@@ -314,6 +314,7 @@ static model_net_event_return model_net_event_impl_base(
void
const
*
self_event
,
tw_lp
*
sender
)
{
if
(
remote_event_size
+
self_event_size
+
sizeof
(
model_net_wrap_msg
)
>
g_tw_msg_sz
){
tw_error
(
TW_LOC
,
"Error: model_net trying to transmit an event of size "
...
...
@@ -328,11 +329,13 @@ static model_net_event_return model_net_event_impl_base(
tw_lpid
dest_mn_lp
=
model_net_find_local_device_mctx
(
net_id
,
recv_map_ctx
,
final_dest_lp
);
if
(
src_mn_lp
==
dest_mn_lp
&&
message_size
<
(
uint64_t
)
codes_node_eager_limit
)
if
(
src_mn_lp
==
dest_mn_lp
&&
message_size
<
(
uint64_t
)
codes_node_eager_limit
)
{
printf
(
"
\n
Calling model-net noop event! %d %d %s"
,
src_mn_lp
,
dest_mn_lp
,
category
);
return
model_net_noop_event
(
final_dest_lp
,
is_pull
,
offset
,
message_size
,
remote_event_size
,
remote_event
,
self_event_size
,
self_event
,
sender
);
}
tw_stime
poffset
=
codes_local_latency
(
sender
);
if
(
mn_in_sequence
){
tw_stime
tmp
=
mn_msg_offset
;
...
...
src/workload/methods/codes-online-comm-wrkld.C
View file @
5fcc75db
...
...
@@ -23,6 +23,7 @@
#include "lammps.h"
#include "nekbone_swm_user_code.h"
#include "nearest_neighbor_swm_user_code.h"
#include "all_to_one_swm_user_code.h"
#define ALLREDUCE_SHORT_MSG_SIZE 2048
...
...
@@ -754,7 +755,6 @@ static void workload_caller(void * arg)
{
shared_context
*
sctx
=
static_cast
<
shared_context
*>
(
arg
);
//printf("\n workload name %s ", sctx->workload_name);
if
(
strcmp
(
sctx
->
workload_name
,
"lammps"
)
==
0
)
{
LAMMPS_SWM
*
lammps_swm
=
static_cast
<
LAMMPS_SWM
*>
(
sctx
->
swm_obj
);
...
...
@@ -770,6 +770,11 @@ static void workload_caller(void * arg)
NearestNeighborSWMUserCode
*
nn_swm
=
static_cast
<
NearestNeighborSWMUserCode
*>
(
sctx
->
swm_obj
);
nn_swm
->
call
();
}
else
if
(
strcmp
(
sctx
->
workload_name
,
"incast"
)
==
0
)
{
AllToOneSWMUserCode
*
incast_swm
=
static_cast
<
AllToOneSWMUserCode
*>
(
sctx
->
swm_obj
);
incast_swm
->
call
();
}
}
static
int
comm_online_workload_load
(
const
char
*
params
,
int
app_id
,
int
rank
)
{
...
...
@@ -807,10 +812,13 @@ static int comm_online_workload_load(const char * params, int app_id, int rank)
{
path
.
append
(
"/skeleton.json"
);
}
else
if
(
strcmp
(
o_params
->
workload_name
,
"incast"
)
==
0
)
{
path
.
append
(
"/incast.json"
);
}
else
tw_error
(
TW_LOC
,
"
\n
Undefined workload type %s "
,
o_params
->
workload_name
);
//printf("\n path %s ", path.c_str());
try
{
std
::
ifstream
jsonFile
(
path
.
c_str
());
boost
::
property_tree
::
json_parser
::
read_json
(
jsonFile
,
root
);
...
...
@@ -837,6 +845,11 @@ static int comm_online_workload_load(const char * params, int app_id, int rank)
NearestNeighborSWMUserCode
*
nn_swm
=
new
NearestNeighborSWMUserCode
(
root
,
generic_ptrs
);
my_ctx
->
sctx
.
swm_obj
=
(
void
*
)
nn_swm
;
}
else
if
(
strcmp
(
o_params
->
workload_name
,
"incast"
)
==
0
)
{
AllToOneSWMUserCode
*
incast_swm
=
new
AllToOneSWMUserCode
(
root
,
generic_ptrs
);
my_ctx
->
sctx
.
swm_obj
=
(
void
*
)
incast_swm
;
}
if
(
global_prod_thread
==
NULL
)
{
...
...
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