Skip to content
Snippets Groups Projects
Commit 489e973a authored by Prokopenko, Andrey's avatar Prokopenko, Andrey :thinking:
Browse files

Use MPI_Comm_dup to separate ArborX comm context from user's

This call should normally not involve any communication.
parent b6b7d7ee
No related branches found
No related tags found
1 merge request!135Use MPI_Comm_dup to separate ArborX comm context from user's
This commit is part of merge request !135. Comments created here will be created in the context of that merge request.
......@@ -105,9 +105,10 @@ template <typename DeviceType>
template <typename Primitives>
DistributedSearchTree<DeviceType>::DistributedSearchTree(
MPI_Comm comm, Primitives const &primitives)
: _comm(comm)
, _bottom_tree(primitives)
: _bottom_tree(primitives)
{
MPI_Comm_dup(comm, &_comm);
int comm_rank;
MPI_Comm_rank(_comm, &comm_rank);
int comm_size;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment