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
Thomas Jahns
yaxt
Commits
40c6e6f4
Commit
40c6e6f4
authored
Feb 27, 2020
by
Thomas Jahns
🤸
Browse files
Fix unnecessary uses of MPI_COMM_WORLD.
parent
3bb60290
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/xt_exchanger_neigh_alltoall.c
View file @
40c6e6f4
...
...
@@ -224,7 +224,7 @@ static void xt_exchanger_neigh_alltoall_delete(Xt_exchanger exchanger) {
xt_mpi_call
(
MPI_Type_free
(
dt
),
comm
);
}
free
(
exchanger_na
->
datatypes
);
xt_mpi_call
(
MPI_Comm_free
(
&
(
exchanger_na
->
comm
)),
MPI_COMM_WORLD
);
xt_mpi_call
(
MPI_Comm_free
(
&
(
exchanger_na
->
comm
)),
Xt_default_comm
);
free
(
exchanger_na
);
}
...
...
@@ -242,7 +242,7 @@ static void xt_exchanger_neigh_alltoall_s_exchange(Xt_exchanger exchanger,
exchanger_na
->
displs
,
exchanger_na
->
datatypes
+
(
size_t
)(
exchanger_na
->
nmsg
[
SEND
]),
exchanger_na
->
comm
),
MPI_COMM_WORLD
);
exchanger_na
->
comm
);
}
static
void
xt_exchanger_neigh_alltoall_a_exchange
(
Xt_exchanger
exchanger
,
...
...
@@ -261,7 +261,8 @@ static void xt_exchanger_neigh_alltoall_a_exchange(Xt_exchanger exchanger,
dst_data
,
exchanger_na
->
one_counts
,
exchanger_na
->
displs
,
exchanger_na
->
datatypes
+
(
size_t
)(
exchanger_na
->
nmsg
[
SEND
]),
exchanger_na
->
comm
,
&
tmp_request
),
MPI_COMM_WORLD
);
exchanger_na
->
comm
,
&
tmp_request
),
exchanger_na
->
comm
);
*
request
=
xt_request_msgs_new
(
1
,
&
tmp_request
,
exchanger_na
->
comm
);
}
...
...
Write
Preview
Supports
Markdown
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