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
dkrz-sw
yaxt
Commits
ee4425c4
Commit
ee4425c4
authored
May 25, 2021
by
Thomas Jahns
🤸
Browse files
Reduce type-dups in static redist collection.
parent
af078c42
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/xt_redist_collection_static.c
View file @
ee4425c4
...
@@ -147,16 +147,20 @@ xt_redist_collection_static_custom_new(
...
@@ -147,16 +147,20 @@ xt_redist_collection_static_custom_new(
size_t
ofs
=
i
==
0
?
0
:
nmsg
[
SEND
];
size_t
ofs
=
i
==
0
?
0
:
nmsg
[
SEND
];
const
MPI_Aint
*
disp
=
i
==
0
?
src_displacements
:
dst_displacements
;
const
MPI_Aint
*
disp
=
i
==
0
?
src_displacements
:
dst_displacements
;
generate_msg_infos
(
nmsg
[
i
],
num_redists_
,
msgs
+
ofs
,
disp
,
redists
,
generate_msg_infos
(
nmsg
[
i
],
num_redists_
,
msgs
+
ofs
,
disp
,
redists
,
num_ranks
[
i
],
(
const
int
*
restrict
(
*
))
ranks
[
i
],
new_comm
,
num_ranks
[
i
],
(
const
int
*
restrict
(
*
))
ranks
[
i
],
(
enum
xt_msg_direction
)
i
);
new_comm
,
(
enum
xt_msg_direction
)
i
);
free
(
ranks
[
i
][
0
]);
free
(
ranks
[
i
][
0
]);
}
}
struct
Xt_config_
config_
=
*
config
;
config_
.
flags
|=
exch_no_dt_dup
;
Xt_redist
redist_collection
=
Xt_redist
redist_collection
=
xt_redist_single_array_base_custom_new
(
xt_redist_single_array_base_custom_new
(
(
int
)
nmsg
[
SEND
],
(
int
)
nmsg
[
RECV
],
msgs
,
msgs
+
nmsg
[
SEND
],
new_comm
,
config
);
(
int
)
nmsg
[
SEND
],
(
int
)
nmsg
[
RECV
],
msgs
,
msgs
+
nmsg
[
SEND
],
new_comm
,
&
config_
);
xt_redist_msgs_
free
(
n
msg
_sum
,
msgs
,
new_comm
);
free
(
msg
s
);
xt_mpi_comm_smart_dedup
(
&
new_comm
,
tag_offset
);
xt_mpi_comm_smart_dedup
(
&
new_comm
,
tag_offset
);
return
redist_collection
;
return
redist_collection
;
}
}
...
...
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