Always send a message even when the send_count is zero. Except for local operations (send + receive),
they can be safely skiped. This commit was SVN r6792.
Этот коммит содержится в:
родитель
e765294bc0
Коммит
a59fa8ac42
@ -70,14 +70,14 @@ int mca_coll_basic_scatterv_intra(void *sbuf, int *scounts,
|
||||
}
|
||||
|
||||
for (i = 0; i < size; ++i) {
|
||||
if (0 == scounts[i]) {
|
||||
continue;
|
||||
}
|
||||
ptmp = ((char *) sbuf) + (extent * disps[i]);
|
||||
|
||||
/* simple optimization */
|
||||
|
||||
if (i == rank) {
|
||||
if( 0 == scounts[i] ) { /* simple optimization or a local operation */
|
||||
continue;
|
||||
}
|
||||
err = ompi_ddt_sndrcv(ptmp, scounts[i], sdtype, rbuf, rcount, rdtype);
|
||||
} else {
|
||||
err = MCA_PML_CALL(send(ptmp, scounts[i], sdtype, i,
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user