|
Lines 712-718
extern int pmixp_lib_fence(const pmixp_proc_t procs[], size_t nprocs,
Link Here
|
| 712 |
|
712 |
|
| 713 |
if (PMIXP_COLL_TYPE_FENCE_MAX == type) { |
713 |
if (PMIXP_COLL_TYPE_FENCE_MAX == type) { |
| 714 |
type = PMIXP_COLL_TYPE_FENCE_TREE; |
714 |
type = PMIXP_COLL_TYPE_FENCE_TREE; |
| 715 |
if (collect) { |
715 |
/* As practice shows the Tree algorithm show the better |
|
|
716 |
* performance for fence with zero data. Therefore, |
| 717 |
* if ndata is zero, the Ring algorithm is not used. */ |
| 718 |
if (collect && (ndata > 0)) { |
| 716 |
type = PMIXP_COLL_TYPE_FENCE_RING; |
719 |
type = PMIXP_COLL_TYPE_FENCE_RING; |
| 717 |
} |
720 |
} |
| 718 |
} |
721 |
} |