Commit d39c6689 authored by Shane Snyder's avatar Shane Snyder
Browse files

port tests over to new api changes

parent 44c02c37
......@@ -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;
......
......@@ -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);
......
......@@ -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);
......
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