Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
ssg
Commits
0dfa5b30
Commit
0dfa5b30
authored
Oct 28, 2016
by
Shane Snyder
Browse files
update to new swim init/finalize defintions
parent
4f2aa8ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/def.h
View file @
0dfa5b30
...
...
@@ -12,6 +12,9 @@
#include
<abt.h>
#include
<margo.h>
#endif
#ifdef HAVE_SWIM_FD
#include
<swim.h>
#endif
struct
ssg
{
...
...
@@ -31,4 +34,7 @@ struct ssg
ABT_cond
barrier_cond
;
ABT_eventual
barrier_eventual
;
#endif
#if HAVE_SWIM_FD
swim_context_t
*
swim_ctx
;
#endif
};
src/ssg.c
View file @
0dfa5b30
...
...
@@ -27,10 +27,6 @@
#include
<ssg-margo.h>
#endif
#ifdef HAVE_SWIM_FD
#include
<swim.h>
#endif
#define DO_DEBUG 0
#define DEBUG(...) \
do { \
...
...
@@ -571,7 +567,7 @@ hg_return_t ssg_lookup_margo(ssg_t s)
// if(s->rank == 0)
// swim_init(s->mid, s, 1);
// else
swim_init
(
s
->
mid
,
s
,
0
);
s
->
swim_ctx
=
swim_init
(
s
->
mid
,
s
,
0
);
#endif
fin:
...
...
@@ -710,6 +706,11 @@ void ssg_finalize(ssg_t s)
{
if
(
s
==
SSG_NULL
)
return
;
#ifdef HAVE_SWIM_FD
if
(
s
->
swim_ctx
)
swim_finalize
(
s
->
swim_ctx
);
#endif
#ifdef HAVE_MARGO
if
(
s
->
barrier_mutex
!=
ABT_MUTEX_NULL
)
ABT_mutex_free
(
&
s
->
barrier_mutex
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment