Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yaxt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dkrz-sw
yaxt
Commits
ae6a165b
Commit
ae6a165b
authored
5 years ago
by
Moritz Hanke
Browse files
Options
Downloads
Patches
Plain Diff
prints only used ddt
parent
3ecc15f4
Branches
get_num_msg
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xt_exchanger_mix_isend_irecv.c
+9
-11
9 additions, 11 deletions
src/xt_exchanger_mix_isend_irecv.c
with
9 additions
and
11 deletions
src/xt_exchanger_mix_isend_irecv.c
+
9
−
11
View file @
ae6a165b
...
...
@@ -193,17 +193,16 @@ static void xt_exchanger_mix_isend_irecv_delete(Xt_exchanger exchanger) {
}
static
void
xt_exchanger_write_ddt
(
Xt_exchanger
exchanger
,
enum
xt_msg_direction
direction
,
MPI_Comm
comm
)
{
int
rank
,
size
;
struct
mix_msg
*
msgs
,
int
nmsg
,
MPI_Comm
comm
)
{
int
rank
;
xt_mpi_call
(
MPI_Comm_rank
(
comm
,
&
rank
),
comm
);
xt_mpi_call
(
MPI_Comm_size
(
comm
,
&
size
),
comm
);
for
(
int
i
=
0
;
i
<
size
;
++
i
)
{
for
(
int
i
=
0
;
i
<
nmsg
;
++
i
)
{
char
ddt_name_format
[]
=
"ddt_%s_from_%d_to_%d"
;
char
ddt_name
[
sizeof
(
ddt_name_format
)
+
4
+
2
*
10
+
1
];
snprintf
(
ddt_name
,
sizeof
(
ddt_name
),
ddt_name_format
,
(
direction
==
SEND
)
?
"send"
:
"recv"
,
rank
,
i
);
analyze_MPI_datatype
(
xt_exchanger_get_MPI_D
atatype
(
exchanger
,
i
,
direction
)
,
"xt_exchanger_debug_ddt"
,
ddt_name
);
(
msgs
[
i
].
type
==
SEND
)
?
"send"
:
"recv"
,
rank
,
msgs
[
i
].
data
.
rank
);
analyze_MPI_datatype
(
msgs
[
i
].
data
.
d
atatype
,
"xt_
exchanger
_debug_ddt"
,
ddt_name
);
}
}
...
...
@@ -214,10 +213,9 @@ static void xt_exchanger_mix_isend_irecv_s_exchange(Xt_exchanger exchanger,
Xt_exchanger_mix_isend_irecv
exchanger_msr
=
(
Xt_exchanger_mix_isend_irecv
)
exchanger
;
if
(
xt_exchanger_debug
)
{
xt_exchanger_write_ddt
(
exchanger
,
SEND
,
exchanger_msr
->
comm
);
xt_exchanger_write_ddt
(
exchanger
,
RECV
,
exchanger_msr
->
comm
);
}
if
(
xt_exchanger_debug
)
xt_exchanger_write_ddt
(
exchanger_msr
->
msgs
,
exchanger_msr
->
n
,
exchanger_msr
->
comm
);
if
(
exchanger_msr
->
n
>
0
)
{
size_t
nmsg
=
(
size_t
)
exchanger_msr
->
n
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment