Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lima-camera-slsdetector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
LimaGroup
Lima-camera-slsdetector
Commits
a45b2891
Commit
a45b2891
authored
6 years ago
by
Samuel Debionne
Browse files
Options
Downloads
Patches
Plain Diff
Oops
parent
921e29db
No related branches found
No related tags found
No related merge requests found
Pipeline
#5986
failed
6 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/slsDetectorMpiUsers.h
+7
-7
7 additions, 7 deletions
include/slsDetectorMpiUsers.h
with
7 additions
and
7 deletions
include/slsDetectorMpiUsers.h
+
7
−
7
View file @
a45b2891
...
...
@@ -8,16 +8,16 @@
class
slsDetectorMpiUsers
{
public:
slsDetectorMpiUsers
(
bool
_is_master
,
int
_id
=
0
)
:
m_is_master
(
_is_master
),
slsDetectorMpiUsers
(
int
_id
=
0
)
:
m_world_size
(
0
),
m_rank
(
0
),
m_detector
(
NULL
)
{
// Initialize the MPI environment
MPI_Init
(
NULL
,
NULL
);
// Get the number of processes
int
world_size
;
MPI_Comm_size
(
MPI_COMM_WORLD
,
&
world_size
);
MPI_Comm_size
(
MPI_COMM_WORLD
,
&
m_world_size
);
// Get the rank of the process
MPI_Comm_rank
(
MPI_COMM_WORLD
,
&
m_rank
);
...
...
@@ -49,7 +49,7 @@ public:
return
res
;
}
int
setOnl
setReceiverOnline
ine
(
int
const
online
=
-
1
)
int
setReceiverOnline
(
int
const
online
=
-
1
)
{
int
res
;
if
(
is_master
())
...
...
@@ -585,11 +585,11 @@ public:
}
private
:
bool
is_master
()
const
{
return
m_
is_master
;
}
bool
is_master
()
const
{
return
m_
rank
==
0
;
}
slsDetectorUsers
*
m_detector
;
bool
m_is_master
;
int
m_world_size
;
int
m_rank
;
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment