Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
343ba7c0
Commit
343ba7c0
authored
Nov 06, 2015
by
Misbah Mubarak
Browse files
bug fix in codes-workload-dump and dumpi trace workload method
parent
5163f041
Changes
3
Hide whitespace changes
Inline
Side-by-side
codes/codes-workload.h
View file @
343ba7c0
...
...
@@ -187,7 +187,7 @@ struct codes_workload_op
int
data_type
;
/* MPI data type to be matched with the recv */
int
count
;
/* number of elements to be received */
int
tag
;
/* tag of the message */
int
16
_t
req_id
;
int
32
_t
req_id
;
}
send
;
struct
{
/* TODO: not sure why source rank is here */
...
...
@@ -197,7 +197,7 @@ struct codes_workload_op
int
data_type
;
/* MPI data type to be matched with the send */
int
count
;
/* number of elements to be sent */
int
tag
;
/* tag of the message */
int
16
_t
req_id
;
int
32
_t
req_id
;
}
recv
;
/* TODO: non-stub for other collectives */
struct
{
...
...
@@ -205,10 +205,10 @@ struct codes_workload_op
}
collective
;
struct
{
int
count
;
int
16
_t
*
req_ids
;
int
32
_t
*
req_ids
;
}
waits
;
struct
{
int
16
_t
req_id
;
int
32
_t
req_id
;
}
wait
;
}
u
;
};
...
...
src/workload/codes-workload-dump.c
View file @
343ba7c0
...
...
@@ -341,8 +341,8 @@ int main(int argc, char *argv[])
recv_size
+=
op
.
u
.
recv
.
num_bytes
;
break
;
case
CODES_WK_ISEND
:
num_i
recv
s
++
;
i
recv
_size
+=
op
.
u
.
send
.
num_bytes
;
num_i
send
s
++
;
i
send
_size
+=
op
.
u
.
send
.
num_bytes
;
break
;
case
CODES_WK_IRECV
:
num_irecvs
++
;
...
...
src/workload/methods/codes-dumpi-trace-nw-wrkld.c
View file @
343ba7c0
...
...
@@ -375,6 +375,7 @@ int handleDUMPISend(const dumpi_send *prm, uint16_t thread,
assert
(
wrkld_per_rank
.
u
.
send
.
num_bytes
>
0
);
wrkld_per_rank
.
u
.
send
.
dest_rank
=
prm
->
dest
;
wrkld_per_rank
.
u
.
send
.
source_rank
=
myctx
->
my_rank
;
wrkld_per_rank
.
u
.
send
.
req_id
=
-
1
;
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