Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes-dev
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xin Wang
codes-dev
Commits
2a74260a
Commit
2a74260a
authored
Nov 28, 2016
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added implementation of MPI_Sendrecv
parent
6b53da93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
src/workload/methods/codes-dumpi-trace-nw-wrkld.c
src/workload/methods/codes-dumpi-trace-nw-wrkld.c
+35
-0
No files found.
src/workload/methods/codes-dumpi-trace-nw-wrkld.c
View file @
2a74260a
...
...
@@ -432,6 +432,41 @@ int handleDUMPIRecv(const dumpi_recv *prm, uint16_t thread,
}
int
handleDUMPISendrecv
(
const
dumpi_sendrecv
*
prm
,
uint16_t
thread
,
const
dumpi_time
*
cpu
,
const
dumpi_time
*
wall
,
const
dumpi_perfinfo
*
perf
,
void
*
uarg
)
{
rank_mpi_context
*
myctx
=
(
rank_mpi_context
*
)
uarg
;
{
struct
codes_workload_op
wrkld_per_rank
;
wrkld_per_rank
.
op_type
=
CODES_WK_SEND
;
wrkld_per_rank
.
u
.
send
.
tag
=
prm
->
sendtag
;
wrkld_per_rank
.
u
.
send
.
count
=
prm
->
sendcount
;
wrkld_per_rank
.
u
.
send
.
data_type
=
prm
->
sendtype
;
wrkld_per_rank
.
u
.
send
.
num_bytes
=
prm
->
sendcount
*
get_num_bytes
(
myctx
,
prm
->
sendtype
);
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
);
}
{
struct
codes_workload_op
wrkld_per_rank
;
wrkld_per_rank
.
op_type
=
CODES_WK_RECV
;
wrkld_per_rank
.
u
.
recv
.
tag
=
prm
->
recvtag
;
wrkld_per_rank
.
u
.
recv
.
count
=
prm
->
recvcount
;
wrkld_per_rank
.
u
.
recv
.
data_type
=
prm
->
recvtype
;
wrkld_per_rank
.
u
.
recv
.
num_bytes
=
prm
->
recvcount
*
get_num_bytes
(
myctx
,
prm
->
recvtype
);
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
;
update_times_and_insert
(
&
wrkld_per_rank
,
wall
,
myctx
);
}
return
0
;
}
int
handleDUMPIBcast
(
const
dumpi_bcast
*
prm
,
uint16_t
thread
,
const
dumpi_time
*
cpu
,
const
dumpi_time
*
wall
,
const
dumpi_perfinfo
*
perf
,
void
*
uarg
)
...
...
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