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
641eb480
Commit
641eb480
authored
Nov 14, 2015
by
Misbah Mubarak
Browse files
allowing for zero bytes messages
parent
f5bba789
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/workload/codes-workload-dump.c
View file @
641eb480
...
...
@@ -309,7 +309,7 @@ int main(int argc, char *argv[])
assert
(
id
!=
-
1
);
do
{
codes_workload_get_next
(
id
,
0
,
i
,
&
op
);
//
codes_workload_print_op(stdout, &op, 0, i);
codes_workload_print_op
(
stdout
,
&
op
,
0
,
i
);
switch
(
op
.
op_type
)
{
...
...
src/workload/methods/codes-dumpi-trace-nw-wrkld.c
View file @
641eb480
...
...
@@ -335,7 +335,7 @@ int handleDUMPIISend(const dumpi_isend *prm, uint16_t thread, const dumpi_time *
wrkld_per_rank
.
u
.
send
.
count
=
prm
->
count
;
wrkld_per_rank
.
u
.
send
.
data_type
=
prm
->
datatype
;
wrkld_per_rank
.
u
.
send
.
num_bytes
=
prm
->
count
*
get_num_bytes
(
prm
->
datatype
);
assert
(
wrkld_per_rank
.
u
.
send
.
num_bytes
>
0
);
//
assert(wrkld_per_rank.u.send.num_bytes > 0);
wrkld_per_rank
.
u
.
send
.
req_id
=
prm
->
request
;
wrkld_per_rank
.
u
.
send
.
dest_rank
=
prm
->
dest
;
wrkld_per_rank
.
u
.
send
.
source_rank
=
myctx
->
my_rank
;
...
...
@@ -403,7 +403,7 @@ int handleDUMPIRecv(const dumpi_recv *prm, uint16_t thread,
wrkld_per_rank
.
u
.
recv
.
count
=
prm
->
count
;
wrkld_per_rank
.
u
.
recv
.
data_type
=
prm
->
datatype
;
wrkld_per_rank
.
u
.
recv
.
num_bytes
=
prm
->
count
*
get_num_bytes
(
prm
->
datatype
);
assert
(
wrkld_per_rank
.
u
.
recv
.
num_bytes
>
0
);
//
assert(wrkld_per_rank.u.recv.num_bytes > 0);
wrkld_per_rank
.
u
.
recv
.
source_rank
=
prm
->
source
;
wrkld_per_rank
.
u
.
recv
.
dest_rank
=
-
1
;
...
...
@@ -421,7 +421,7 @@ int handleDUMPIBcast(const dumpi_bcast *prm, uint16_t thread,
wrkld_per_rank
.
op_type
=
CODES_WK_BCAST
;
wrkld_per_rank
.
u
.
collective
.
num_bytes
=
prm
->
count
*
get_num_bytes
(
prm
->
datatype
);
assert
(
wrkld_per_rank
.
u
.
collective
.
num_bytes
>
0
);
//
assert(wrkld_per_rank.u.collective.num_bytes > 0);
update_times_and_insert
(
&
wrkld_per_rank
,
wall
,
myctx
);
return
0
;
...
...
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