wait for everyone to enter and send before releasing them
(since oob sends are not synchronous) This commit was SVN r2913.
Этот коммит содержится в:
родитель
71671cb531
Коммит
8bde38b296
@ -40,14 +40,14 @@ int mca_oob_barrier(void)
|
||||
else {
|
||||
int tag=-1;
|
||||
for (i = 1; i < npeers; i++) {
|
||||
rc = mca_oob_send(&peers[i],&iov,1,tag,0);
|
||||
rc = mca_oob_recv(&peers[i],&iov,1,&tag,0);
|
||||
if (rc < 0) {
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 1; i < npeers; i++) {
|
||||
rc = mca_oob_recv(&peers[i],&iov,1,&tag,0);
|
||||
rc = mca_oob_send(&peers[i],&iov,1,tag,0);
|
||||
if (rc < 0) {
|
||||
return rc;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user