Skip to content
Snippets Groups Projects
Commit 1d98cbc6 authored by Moe Jette's avatar Moe Jette
Browse files

Add logic to log a gres plugins allocated bitmap

parent 43edb81e
No related branches found
No related tags found
No related merge requests found
......@@ -373,6 +373,14 @@ extern void node_state_log(List gres_list, char *node_name)
info(" gpu_cnt found:%u configured:%u avail:%u alloc:%u",
gres_ptr->gpu_cnt_found, gres_ptr->gpu_cnt_config,
gres_ptr->gpu_cnt_avail, gres_ptr->gpu_cnt_alloc);
if (gres_ptr->gpu_bit_alloc) {
char tmp_str[128];
bit_fmt(tmp_str, sizeof(tmp_str),
gres_ptr->gpu_bit_alloc);
info(" gpu_bit_alloc:%s", tmp_str);
} else {
info(" gpu_bit_alloc:NULL");
}
}
list_iterator_destroy(gres_iter);
}
......@@ -373,6 +373,14 @@ extern void node_state_log(List gres_list, char *node_name)
info(" nic_cnt found:%u configured:%u avail:%u alloc:%u",
gres_ptr->nic_cnt_found, gres_ptr->nic_cnt_config,
gres_ptr->nic_cnt_avail, gres_ptr->nic_cnt_alloc);
if (gres_ptr->nic_bit_alloc) {
char tmp_str[128];
bit_fmt(tmp_str, sizeof(tmp_str),
gres_ptr->nic_bit_alloc);
info(" nic_bit_alloc:%s", tmp_str);
} else {
info(" nic_bit_alloc:NULL");
}
}
list_iterator_destroy(gres_iter);
}
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