Commit 6494c592 authored by Shane Snyder's avatar Shane Snyder

stubbed out pmix group create

parent c2cff077
......@@ -15,7 +15,10 @@ BUILT_SOURCES =
include_HEADERS = include/ssg.h
if SSG_HAVE_MPI
include_HEADERS += include/ssg-mpi.h
endif
endif
if SSG_HAVE_PMIX
include_HEADERS += include/ssg-pmix.h
endif
noinst_HEADERS = ssg-config.h
TESTS_ENVIRONMENT =
......
/*
* Copyright (c) 2016 UChicago Argonne, LLC
*
* See COPYRIGHT in top-level directory.
*/
#pragma once
#include <pmix.h>
#include <ssg.h>
/** @file ssg-pmix.h
* Scalable Service Groups (SSG) interface
*
* An SSG group create routine based on PMIx.
*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* Creates an SSG group from a given MPI communicator.
*
* @param[in] group_name Name of the SSG group
* @param[in] comm MPI communicator containing group members
* @param[in] update_cb Callback function executed on group membership changes
* @param[in] update_cb_dat User data pointer passed to membership update callback
* @returns SSG group identifier for created group on success, SSG_GROUP_ID_NULL otherwise
*/
ssg_group_id_t ssg_group_create_pmix(
const char * group_name,
ssg_membership_update_cb update_cb,
void * update_cb_dat);
#ifdef __cplusplus
}
#endif
......@@ -19,6 +19,9 @@
#ifdef SSG_HAVE_MPI
#include <mpi.h>
#endif
#ifdef SSG_HAVE_PMIX
#include <pmix.h>
#endif
#include <mercury.h>
#include <abt.h>
......@@ -28,6 +31,9 @@
#ifdef SSG_HAVE_MPI
#include "ssg-mpi.h"
#endif
#ifdef SSG_HAVE_PMIX
#include "ssg-pmix.h"
#endif
#include "ssg-internal.h"
#include "swim-fd/swim-fd.h"
......@@ -314,6 +320,24 @@ fini:
}
#endif
#ifdef SSG_HAVE_PMIX
ssg_group_id_t ssg_group_create_pmix(
const char * group_name,
ssg_membership_update_cb update_cb,
void * update_cb_dat)
{
ssg_group_id_t group_id = SSG_GROUP_ID_NULL;
if (!ssg_inst) goto fini;
if (!PMIx_Initialized()) goto fini;
fini:
return group_id;
}
#endif
int ssg_group_destroy(
ssg_group_id_t group_id)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment