Skip to content

Commit

Permalink
sched: Add more log statements for resource loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dongahn committed Mar 20, 2018
1 parent d3685fc commit 22e7695
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sched/sched.c
Expand Up @@ -694,6 +694,8 @@ static int load_resources (ssrvctx_t *ctx)

setup_rdl_lua (ctx->h);

flux_log (ctx->h, LOG_INFO, "start to read resources");

switch (r_mode) {
case RSREADER_RESRC_EMUL:
if (rsreader_resrc_bulkload (ctx->rsapi, path, uri) != 0) {
Expand All @@ -718,6 +720,7 @@ static int load_resources (ssrvctx_t *ctx)
flux_log (ctx->h, LOG_ERR, "failed to build rs2rank");
goto done;
}
flux_log (ctx->h, LOG_INFO, "resrc constructed using RDL ");
if (ctx->arg.verbosity > 0) {
flux_log (ctx->h, LOG_INFO, "resrc state after resrc read");
dump_resrc_state (ctx->h, resrc_tree_root (ctx->rsapi));
Expand Down Expand Up @@ -747,11 +750,13 @@ static int load_resources (ssrvctx_t *ctx)
flux_log (ctx->h, LOG_ERR, "failed to load resrc using hwloc");
goto done;
}
flux_log (ctx->h, LOG_INFO, "resrc constructed using hwloc");
/* linking has already been done by build_hwloc_rs2rank above */
if (ctx->arg.verbosity > 0) {
flux_log (ctx->h, LOG_INFO, "resrc state after hwloc read");
dump_resrc_state (ctx->h, resrc_tree_root (ctx->rsapi));
}
flux_log (ctx->h, LOG_INFO, "loaded resrc");
rc = 0;
break;

Expand Down

0 comments on commit 22e7695

Please sign in to comment.