Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ArborX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Arndt, Daniel
ArborX
Merge requests
!135
Use MPI_Comm_dup to separate ArborX comm context from user's
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Use MPI_Comm_dup to separate ArborX comm context from user's
github/fork/aprokop/use_comm_dup
into
master
Overview
3
Commits
2
Pipelines
0
Changes
1
Merged
Arndt, Daniel
requested to merge
github/fork/aprokop/use_comm_dup
into
master
5 years ago
Overview
3
Commits
2
Pipelines
0
Changes
1
Expand
Created by: aprokop
This call should normally not involve any communication.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
3b8b63bc
2 commits,
4 years ago
1 file
+
7
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/ArborX_DistributedSearchTree.hpp
+
7
−
2
Options
@@ -40,6 +40,8 @@ public:
template
<
typename
Primitives
>
DistributedSearchTree
(
MPI_Comm
comm
,
Primitives
const
&
primitives
);
~
DistributedSearchTree
()
{
MPI_Comm_free
(
&
_comm
);
}
/** Returns the smallest axis-aligned box able to contain all the objects
* stored in the tree or an invalid box if the tree is empty.
*/
@@ -105,9 +107,12 @@ template <typename DeviceType>
template
<
typename
Primitives
>
DistributedSearchTree
<
DeviceType
>::
DistributedSearchTree
(
MPI_Comm
comm
,
Primitives
const
&
primitives
)
:
_comm
(
comm
)
,
_bottom_tree
(
primitives
)
:
_bottom_tree
(
primitives
)
{
// Create new context for the library to isolate library's communication from
// user's
MPI_Comm_dup
(
comm
,
&
_comm
);
int
comm_rank
;
MPI_Comm_rank
(
_comm
,
&
comm_rank
);
int
comm_size
;
Loading