Skip to content
Snippets Groups Projects
Commit c48c86cc authored by Danny Auble's avatar Danny Auble
Browse files

Fixes to smap to further work better when the slurmctld isn't up.

parent 5667685b
No related branches found
No related tags found
No related merge requests found
......@@ -183,6 +183,11 @@ extern void init_grid(node_info_msg_t *node_info_ptr)
smap_system_ptr->node_cnt *= dim_size[i];
smap_system_ptr->grid = xmalloc(sizeof(smap_node_t *) *
smap_system_ptr->node_cnt);
/* We need to make sure we set up the wires if we
don't have a node_info_ptr.
*/
bg_configure_ba_setup_wires();
_internal_setup_grid(0, coords);
#endif
} else {
......
......@@ -116,7 +116,7 @@ int main(int argc, char *argv[])
break; /* just continue */
}
if (params.iterate == 0)
_smap_exit(1); /* Calls exit(), no return */
exit(1);
sleep(10); /* keep trying to reconnect */
}
}
......@@ -359,7 +359,7 @@ static void _smap_exit(int rc)
free_grid();
#ifdef HAVE_BG
ba_fini();
bg_configure_ba_fini();
#endif
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment