1
1

Put in temporary workaround for non-communative reduction operations

-- need to talk to Edgar/George about how to fix this properly.  But
now we at least give correct answers.

This commit was SVN r2882.
Этот коммит содержится в:
Jeff Squyres 2004-09-29 21:09:46 +00:00
родитель 0a6069a613
Коммит 5818adf6a4

Просмотреть файл

@ -262,6 +262,16 @@ int mca_coll_basic_reduce_log_intra(void *sbuf, void *rbuf, int count,
char *snd_buffer = sbuf;
char *rcv_buffer = rbuf;
/* JMS Codearound for now -- if the operations is not communative,
just call the linear algorithm. Need to talk to Edgar / George
about fixing this algorithm here to work with non-communative
operations. */
if (!ompi_op_is_commute(op)) {
return mca_coll_basic_reduce_lin_intra(sbuf, rbuf, count, dtype,
op, root, comm);
}
/* Some variables */
size = ompi_comm_size(comm);
rank = ompi_comm_rank(comm);