Skip to content

Commit 786bd35

Browse files
committed
Fix the test to respect arrays boundaries.
Add the missing parameter in the help text. Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
1 parent 1215776 commit 786bd35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/datatype/reduce_local.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ do { \
161161
for(int _r = repeats; _r > 0; _r--) { \
162162
memcpy(_p2, _p3, sizeof(TYPE) * (COUNT)); \
163163
tstart = MPI_Wtime(); \
164-
MPI_Reduce_local(_p1+_k, _p2+_k, (COUNT), (MPITYPE), (MPIOP)); \
164+
MPI_Reduce_local(_p1+_k, _p2+_k, (COUNT)-_k, (MPITYPE), (MPIOP)); \
165165
tend = MPI_Wtime(); \
166166
duration[_k] += (tend - tstart); \
167167
if( check ) { \
@@ -281,6 +281,7 @@ int main(int argc, char **argv)
281281
" -1 <number> : (mis)alignment in elements for the first op\n"
282282
" -2 <number> : (mis)alignment in elements for the result\n"
283283
" -v: increase the verbosity level\n"
284+
" -f: turn off correctness checks\n"
284285
" -h: this help message\n",
285286
argv[0]);
286287
exit(0);

0 commit comments

Comments
 (0)