Commit 0c3e972a authored by Shane Snyder's avatar Shane Snyder
Browse files

split mpi group create code into separate header

parent 7d305ef7
......@@ -5,8 +5,6 @@ bin_PROGRAMS =
bin_SCRIPTS =
noinst_LTLIBRARIES =
noinst_PROGRAMS =
lib_LTLIBRARIES =
noinst_HEADERS =
TESTS =
XFAIL_TESTS =
check_PROGRAMS =
......@@ -17,8 +15,11 @@ EXTRA_DIST =
BUILT_SOURCES =
src_libssg_la_SOURCES =
include_HEADERS = include/ssg.h
noinst_HEADERS += ssg-config.h
lib_LTLIBRARIES += src/libssg.la
if HAVE_MPI
include_HEADERS += include/ssg-mpi.h
endif
noinst_HEADERS = ssg-config.h
lib_LTLIBRARIES = src/libssg.la
EXTRA_DIST += prepare.sh
......
/*
* Copyright (c) 2016 UChicago Argonne, LLC
*
* See COPYRIGHT in top-level directory.
*/
#pragma once
/**
* Scalable Service Groups (SSG) interface
*
* An SSG group create routine based on MPI communicators.
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <mpi.h>
#include <ssg.h>
/**
* 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[out] group_id Pointer to output SSG group ID
* @returns SSG_SUCCESS on success, SSG error code otherwise
*/
int ssg_group_create_mpi(
const char * group_name,
MPI_Comm comm,
ssg_group_id_t * group_id);
#ifdef __cplusplus
}
#endif
......@@ -17,10 +17,6 @@
extern "C" {
#endif
#ifdef HAVE_MPI
#include <mpi.h>
#endif
#include <mercury.h>
#include <margo.h>
......@@ -107,21 +103,6 @@ int ssg_group_create_config(
const char * file_name,
ssg_group_id_t * group_id);
#ifdef HAVE_MPI
/**
* 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[out] group_id Pointer to output SSG group ID
* @returns SSG_SUCCESS on success, SSG error code otherwise
*/
int ssg_group_create_mpi(
const char * group_name,
MPI_Comm comm,
ssg_group_id_t * group_id);
#endif
/**
* Destroys data structures associated with a given SSG group ID.
*
......
check_PROGRAMS += \
tests/ssg-test-simple \
tests/ssg-test-attach
tests/ssg-test-simple
tests_ssg_test_simple_SOURCES = tests/ssg-test-simple.c
tests_ssg_test_simple_LDADD = src/libssg.la
tests_ssg_test_attach_SOURCES = tests/ssg-test-attach.c
tests_ssg_test_attach_LDADD = src/libssg.la
......@@ -17,6 +17,9 @@
#include <mercury.h>
#include <abt.h>
#include <ssg.h>
#if HAVE_MPI
#include <ssg-mpi.h>
#endif
#define DIE_IF(cond_expr, err_fmt, ...) \
do { \
......
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