def.h 644 Bytes
Newer Older
1 2 3 4 5 6
/*
 * Copyright (c) 2016 UChicago Argonne, LLC
 *
 * See COPYRIGHT in top-level directory.
 */

Jonathan Jenkins's avatar
Jonathan Jenkins committed
7 8
#pragma once

Jonathan Jenkins's avatar
Jonathan Jenkins committed
9 10 11 12
#include <ssg-config.h>
#include <mercury_types.h>
#include <abt.h>
#include <margo.h>
13

14 15 16
#ifdef HAVE_SWIM_FD
#include <swim.h>
#endif
Jonathan Jenkins's avatar
Jonathan Jenkins committed
17

Jonathan Jenkins's avatar
Jonathan Jenkins committed
18 19
struct ssg
{
Jonathan Jenkins's avatar
Jonathan Jenkins committed
20
    hg_class_t *hgcl;
Jonathan Jenkins's avatar
Jonathan Jenkins committed
21
    char **addr_strs;
Jonathan Jenkins's avatar
Jonathan Jenkins committed
22
    hg_addr_t *addrs;
Jonathan Jenkins's avatar
Jonathan Jenkins committed
23 24 25 26
    void *backing_buf;
    int num_addrs;
    int buf_size;
    int rank;
Jonathan Jenkins's avatar
Jonathan Jenkins committed
27 28 29 30 31 32 33
    margo_instance_id mid;
    hg_id_t barrier_rpc_id;
    int barrier_id;
    int barrier_count;
    ABT_mutex barrier_mutex;
    ABT_cond  barrier_cond;
    ABT_eventual barrier_eventual;
34 35 36
#if HAVE_SWIM_FD
    swim_context_t *swim_ctx;
#endif
Jonathan Jenkins's avatar
Jonathan Jenkins committed
37
};