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
mpim-sw
libcdi
Commits
3c3caaa9
Commit
3c3caaa9
authored
Feb 28, 2017
by
Thomas Jahns
🤸
Browse files
Fix incorrect PIO role computation.
parent
e9b6611f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pio_roles.c
View file @
3c3caaa9
...
...
@@ -117,7 +117,7 @@ cdiPioCSRBalanced(MPI_Comm commSuper, int IOMode, int nProcsIO)
if
(
commRank
==
commSize
-
1
)
role
=
specialRole
;
else
if
(
commRank
<=
clientsPerCollectorMax
*
(
nProcsIO
-
1
-
rest
))
role
=
(
commRank
+
1
%
(
clientsPerCollectorMax
+
1
))
!=
0
role
=
(
(
commRank
+
1
)
%
(
clientsPerCollectorMax
+
1
))
!=
0
?
PIO_ROLE_CLIENT
:
collType
;
else
role
=
((
commRank
-
clientsPerCollectorMax
*
(
nProcsIO
-
1
-
rest
)
+
1
)
...
...
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