Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
ssg
Commits
d39c6689
Commit
d39c6689
authored
Jun 20, 2017
by
Shane Snyder
Browse files
port tests over to new api changes
parent
44c02c37
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/ssg-internal.h
View file @
d39c6689
...
...
@@ -62,13 +62,6 @@ MERCURY_GEN_PROC(ssg_group_descriptor_t, \
((
uint64_t
)
(
name_hash
))
\
((
hg_string_t
)
(
addr_str
)));
struct
ssg_group_descriptor
{
uint64_t
magic_nr
;
uint64_t
name_hash
;
char
*
addr_str
;
};
struct
ssg_group
{
char
*
group_name
;
...
...
tests/ssg-test-attach.c
View file @
d39c6689
...
...
@@ -136,8 +136,8 @@ int main(int argc, char *argv[])
if
(
!
is_attacher
)
{
sret
=
ssg_group_create_mpi
(
group_name
,
ssg_comm
,
&
g_id
);
DIE_IF
(
sret
!=
SSG_SUCCESS
,
"ssg_group_create"
);
g_id
=
ssg_group_create_mpi
(
group_name
,
ssg_comm
);
DIE_IF
(
g_id
==
SSG_GROUP_ID_NULL
,
"ssg_group_create"
);
if
(
my_world_rank
==
1
)
MPI_Send
(
&
g_id
,
sizeof
(
g_id
),
MPI_BYTE
,
0
,
0
,
MPI_COMM_WORLD
);
...
...
tests/ssg-test-simple.c
View file @
d39c6689
...
...
@@ -138,12 +138,12 @@ int main(int argc, char *argv[])
DIE_IF
(
sret
!=
SSG_SUCCESS
,
"ssg_init"
);
if
(
strcmp
(
mode
,
"conf"
)
==
0
)
sret
=
ssg_group_create_config
(
group_name
,
conf_file
,
&
g_id
);
g_id
=
ssg_group_create_config
(
group_name
,
conf_file
);
#ifdef SSG_HAVE_MPI
else
if
(
strcmp
(
mode
,
"mpi"
)
==
0
)
sret
=
ssg_group_create_mpi
(
group_name
,
MPI_COMM_WORLD
,
&
g_id
);
g_id
=
ssg_group_create_mpi
(
group_name
,
MPI_COMM_WORLD
);
#endif
DIE_IF
(
sret
!=
SSG_SUCCESS
,
"ssg_group_create"
);
DIE_IF
(
g_id
==
SSG_GROUP_ID_NULL
,
"ssg_group_create"
);
/* sleep to give all group members a chance to create the group */
if
(
sleep_time
>
0
)
margo_thread_sleep
(
mid
,
sleep_time
*
1000
.
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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