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
Thomas Jahns
yaxt
Commits
69eb2f1b
Commit
69eb2f1b
authored
Mar 21, 2020
by
Thomas Jahns
🤸
Browse files
Merge declaration and definition.
parent
030b2726
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/test_redist_collection_parallel.c
View file @
69eb2f1b
...
...
@@ -306,8 +306,6 @@ test_rr_redist(MPI_Comm comm)
// redist test with two redists that do a round robin exchange in
// different directions
Xt_idxlist
src_indices
;
Xt_int
src_indices_
[
elems_per_rank
],
dst_indices_
[
2
][
elems_per_rank
];
for
(
Xt_int
i
=
0
;
i
<
elems_per_rank
;
++
i
)
{
...
...
@@ -319,7 +317,7 @@ test_rr_redist(MPI_Comm comm)
=
(
Xt_int
)((
temp
<
0
)
?
(
comm_size
*
elems_per_rank
-
1
)
:
temp
);
}
src_indices
=
xt_idxvec_new
(
src_indices_
,
elems_per_rank
);
Xt_idxlist
src_indices
=
xt_idxvec_new
(
src_indices_
,
elems_per_rank
);
Xt_redist
redists
[
2
];
for
(
size_t
i
=
0
;
i
<
2
;
++
i
)
{
Xt_idxlist
dst_indices
=
xt_idxvec_new
(
dst_indices_
[
i
],
elems_per_rank
);
...
...
tests/test_redist_repeat.c
View file @
69eb2f1b
...
...
@@ -157,7 +157,6 @@ int main(void) {
// generate redist_repetition
enum
{
num_repetitions
=
3
};
Xt_redist
redist_repeat
;
static
const
double
src_data
[
num_repetitions
][
src_slice_len
]
=
{{
1
,
2
,
3
,
4
,
5
},{
6
,
7
,
8
,
9
,
10
},{
11
,
12
,
13
,
14
,
15
}};
double
dst_data
[
num_repetitions
][
dst_slice_len
];
...
...
@@ -168,9 +167,10 @@ int main(void) {
int
src_displacements
[
num_repetitions
]
=
{
0
,
1
,
2
};
int
dst_displacements
[
num_repetitions
]
=
{
2
,
1
,
0
};
redist_repeat
=
xt_redist_repeat_asym_new
(
redist
,
src_extent
,
dst_extent
,
num_repetitions
,
src_displacements
,
dst_displacements
);
Xt_redist
redist_repeat
=
xt_redist_repeat_asym_new
(
redist
,
src_extent
,
dst_extent
,
num_repetitions
,
src_displacements
,
dst_displacements
);
// test communicator of redist
...
...
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