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
Matthieu Dorier
codes
Commits
c540528e
Commit
c540528e
authored
Feb 27, 2015
by
Misbah Mubarak
Browse files
Resolving merge conflicts
parents
51acfe14
108b4685
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/models/mpi-trace-replay/conf/modelnet-mpi-test.conf
View file @
c540528e
...
...
@@ -4,6 +4,7 @@ LPGROUPS
{
repetitions
=
"27"
;
nw
-
lp
=
"1"
;
modelnet_simplenet
=
"1"
;
}
}
PARAMS
...
...
src/models/mpi-trace-replay/model-net-mpi-wrklds.c
View file @
c540528e
...
...
@@ -142,6 +142,7 @@ struct nw_message
double
saved_send_time
;
double
saved_recv_time
;
double
saved_wait_time
;
struct
codes_workload_op
op
;
};
/* executes MPI wait operation */
...
...
@@ -802,8 +803,8 @@ static void codes_exec_comp_delay(nw_state* s, nw_message* m, tw_lp* lp)
tw_stime
ts
;
nw_message
*
msg
;
s
->
compute_time
+=
mpi_op
->
u
.
delay
.
n
sec
s
;
ts
=
mpi_op
->
u
.
delay
.
n
sec
s
+
g_tw_lookahead
+
0
.
1
;
s
->
compute_time
+=
s_to_ns
(
mpi_op
->
u
.
delay
.
sec
onds
)
;
ts
=
s_to_ns
(
mpi_op
->
u
.
delay
.
sec
onds
)
+
g_tw_lookahead
+
0
.
1
;
ts
+=
tw_rand_exponential
(
lp
->
rng
,
noise
);
e
=
tw_event_new
(
lp
->
gid
,
ts
,
lp
);
...
...
@@ -974,7 +975,6 @@ static void update_send_completion_queue_rc(nw_state* s, tw_bf * bf, nw_message
/* completed isends are added in the list */
static
void
update_send_completion_queue
(
nw_state
*
s
,
tw_bf
*
bf
,
nw_message
*
m
,
tw_lp
*
lp
)
{
if
(
TRACE
==
lp
->
gid
)
printf
(
"
\n
%lf isend operation completed req id %d "
,
tw_now
(
lp
),
m
->
op
.
u
.
send
.
req_id
);
if
(
m
->
op
.
op_type
==
CODES_WK_ISEND
)
...
...
@@ -1166,9 +1166,7 @@ static void get_next_mpi_operation_rc(nw_state* s, tw_bf * bf, nw_message * m, t
num_bytes_sent
-=
m
->
op
.
u
.
send
.
num_bytes
;
}
break
;
case
CODES_WK_RECV
:
case
CODES_WK_IRECV
:
{
codes_exec_mpi_recv_rc
(
s
,
m
,
lp
);
s
->
num_recvs
--
;
...
...
@@ -1178,7 +1176,7 @@ static void get_next_mpi_operation_rc(nw_state* s, tw_bf * bf, nw_message * m, t
{
tw_rand_reverse_unif
(
lp
->
rng
);
s
->
num_delays
--
;
s
->
compute_time
-=
m
->
op
.
u
.
delay
.
n
sec
s
;
s
->
compute_time
-=
s_to_ns
(
m
->
op
.
u
.
delay
.
sec
onds
)
;
}
break
;
case
CODES_WK_BCAST
:
...
...
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