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
821d41f3
Commit
821d41f3
authored
Jun 12, 2017
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing byte assignment when matching sends and receives are found
parent
69f49064
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/network-workloads/model-net-mpi-replay.c
src/network-workloads/model-net-mpi-replay.c
+4
-5
No files found.
src/network-workloads/model-net-mpi-replay.c
View file @
821d41f3
...
...
@@ -25,7 +25,6 @@
#define CS_LP_DBG 1
#define EAGER_THRESHOLD 8192
#define RANK_HASH_TABLE_SZ 2000
#define NOISE 3.0
#define NW_LP_NM "nw-lp"
#define lprintf(_fmt, ...) \
do {if (CS_LP_DBG) printf(_fmt, __VA_ARGS__);} while (0)
...
...
@@ -631,7 +630,7 @@ static void gen_synthetic_tr(nw_state * s, tw_bf * bf, nw_message * m, tw_lp * l
num_syn_bytes_sent
+=
PAYLOAD_SZ
;
/* New event after MEAN_INTERVAL */
tw_stime
ts
=
mean_interval
+
tw_rand_exponential
(
lp
->
rng
,
NOISE
);
tw_stime
ts
=
mean_interval
+
tw_rand_exponential
(
lp
->
rng
,
noise
);
tw_event
*
e
;
nw_message
*
m_new
;
e
=
tw_event_new
(
lp
->
gid
,
ts
,
lp
);
...
...
@@ -1000,7 +999,7 @@ static int rm_matching_rcv(nw_state * ns,
&&
((
qi
->
source_rank
==
qitem
->
source_rank
)
||
qi
->
source_rank
==
-
1
))
{
matched
=
1
;
qi
tem
->
num_bytes
=
qi
->
num_bytes
;
qi
->
num_bytes
=
qitem
->
num_bytes
;
break
;
}
++
index
;
...
...
@@ -1052,7 +1051,7 @@ static int rm_matching_send(nw_state * ns,
(
qi
->
tag
==
qitem
->
tag
||
qitem
->
tag
==
-
1
)
&&
((
qi
->
source_rank
==
qitem
->
source_rank
)
||
qitem
->
source_rank
==
-
1
))
{
qi
->
num_bytes
=
qitem
->
num_bytes
;
qi
tem
->
num_bytes
=
qi
->
num_bytes
;
matched
=
1
;
break
;
}
...
...
@@ -1387,7 +1386,7 @@ static void codes_exec_mpi_send(nw_state* s,
"test"
,
dest_rank
,
mpi_op
->
u
.
send
.
num_bytes
,
(
self_overhead
+
soft_delay_mpi
+
nic_delay
),
sizeof
(
nw_message
),
(
const
void
*
)
&
remote_m
,
sizeof
(
nw_message
),
(
const
void
*
)
&
local_m
,
lp
);
}
if
(
enable_debug
)
if
(
enable_debug
&&
!
is_rend
)
{
if
(
mpi_op
->
op_type
==
CODES_WK_ISEND
)
{
...
...
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