Skip to content

Commit 2823d97

Browse files
authored
Merge pull request #8394 from gpaulsen/topic/v4.1.x/AddFence_nmToFluxPmix
Add fence_nb to flux pmix
2 parents 08b1f2d + 1a9cc28 commit 2823d97

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

opal/mca/pmix/flux/pmix_flux.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ static int flux_abort(int flag, const char msg[],
4242
opal_list_t *procs);
4343
static int flux_commit(void);
4444
static int flux_fence(opal_list_t *procs, int collect_data);
45+
static int flux_fencenb(opal_list_t *procs, int collect_data,
46+
opal_pmix_op_cbfunc_t cbfunc, void *cbdata);
4547
static int flux_put(opal_pmix_scope_t scope,
4648
opal_value_t *kv);
4749
static int flux_get(const opal_process_name_t *id,
@@ -65,6 +67,7 @@ const opal_pmix_base_module_t opal_pmix_flux_module = {
6567
.abort = flux_abort,
6668
.commit = flux_commit,
6769
.fence = flux_fence,
70+
.fence_nb = flux_fencenb,
6871
.put = flux_put,
6972
.get = flux_get,
7073
.publish = flux_publish,
@@ -675,6 +678,23 @@ static int flux_commit(void)
675678
return OPAL_SUCCESS;
676679
}
677680

681+
static int flux_fencenb(opal_list_t *procs, int collect_data,
682+
opal_pmix_op_cbfunc_t cbfunc, void *cbdata)
683+
{
684+
int rc;
685+
int status;
686+
if (PMI_SUCCESS != (rc = PMI_Barrier())) {
687+
OPAL_PMI_ERROR(rc, "PMI_Barrier");
688+
return OPAL_ERROR;
689+
}
690+
if (NULL == cbfunc) {
691+
return OPAL_ERROR;
692+
} else {
693+
cbfunc(status, cbdata);
694+
}
695+
return OPAL_SUCCESS;
696+
}
697+
678698
static int flux_fence(opal_list_t *procs, int collect_data)
679699
{
680700
int rc;

0 commit comments

Comments
 (0)