oshmem/scoll: Fix bug in basic/barrier algorithm
Этот коммит содержится в:
родитель
a67ff065ae
Коммит
e690521cdd
@ -559,9 +559,10 @@ static int _algorithm_adaptive(struct oshmem_group_t *group, long *pSync)
|
|||||||
/* check if we have only local peers */
|
/* check if we have only local peers */
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
int my_id = oshmem_proc_group_find_id(group, group->my_pe);
|
||||||
|
|
||||||
for (i = 0; i < group->proc_count; i++) {
|
for (i = 0; i < group->proc_count; i++) {
|
||||||
if (i == group->id)
|
if (i == my_id)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!OPAL_PROC_ON_LOCAL_NODE(group->proc_array[i]->super.proc_flags)) {
|
if (!OPAL_PROC_ON_LOCAL_NODE(group->proc_array[i]->super.proc_flags)) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user