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

Print error message if ionode count in recovered state incompatable with bluegene.conf

parent 75873f7c
No related branches found
No related tags found
No related merge requests found
......@@ -419,6 +419,12 @@ extern int select_p_state_restore(char *dir_name)
j = 0;
while(bg_info_record->ionode_inx[j] >= 0) {
if (bg_info_record->ionode_inx[j+1] >= bluegene_numpsets) {
fatal("Job state recovered incompatable with "
"bluegene.conf. ionodes=%u state=%d",
bluegene_numpsets,
bg_info_record->ionode_inx[j+1]);
}
bit_nset(ionode_bitmap,
bg_info_record->ionode_inx[j],
bg_info_record->ionode_inx[j+1]);
......@@ -426,6 +432,12 @@ extern int select_p_state_restore(char *dir_name)
}
j = 0;
while(bg_info_record->bp_inx[j] >= 0) {
if (bg_info_record->ionode_inx[j+1] >= bluegene_numpsets) {
fatal("Job state recovered incompatable with "
"bluegene.conf. ionodes=%u state=%d",
bluegene_numpsets,
bg_info_record->ionode_inx[j+1]);
}
bit_nset(node_bitmap,
bg_info_record->bp_inx[j],
bg_info_record->bp_inx[j+1]);
......
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