diff --git a/src/plugins/gres/gpu/gres_gpu.c b/src/plugins/gres/gpu/gres_gpu.c index 6a4fbc92a87c4943c9e926963574e112af893640..673f3cceca86994b226ae4fd75c7f116b3fae87c 100644 --- a/src/plugins/gres/gpu/gres_gpu.c +++ b/src/plugins/gres/gpu/gres_gpu.c @@ -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); } diff --git a/src/plugins/gres/nic/gres_nic.c b/src/plugins/gres/nic/gres_nic.c index 2a79cd2491cce54f4c1c34dc41b5fed098bbb170..9999f79e6ac5c7e5cca0c8af6c6f92a2f92facae 100644 --- a/src/plugins/gres/nic/gres_nic.c +++ b/src/plugins/gres/nic/gres_nic.c @@ -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); }