Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
mona
Commits
935269c5
Commit
935269c5
authored
Nov 24, 2020
by
Matthieu Dorier
Browse files
fixed reduce's return code
parent
d84fb7d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mona-coll.c
View file @
935269c5
...
...
@@ -887,14 +887,14 @@ na_return_t mona_comm_reduce(mona_comm_t comm,
// We should try implementing the reduce_scatter_gather algorithm,
// for large data sizes, and also enable n-ary trees instead of
// binomial.
na_return_t
na_ret
;
na_return_t
na_ret
=
NA_SUCCESS
;
int
comm_size
,
rank
,
lroot
,
relrank
;
int
mask
,
source
;
// the temp is to store the intermediate results recieved from the source
void
*
tempSrc
=
NULL
;
int
mallocRcvbuffer
=
0
;
if
(
count
==
0
)
return
0
;
if
(
count
==
0
)
return
na_ret
;
comm_size
=
comm
->
size
;
rank
=
comm
->
rank
;
...
...
Write
Preview
Markdown
is supported
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