Fix scheduling if node in more than one partition
I found a bug in cons_res/select_p_select_nodeinfo_set_all. If a node is part of two (or more) partitions the code will only count the number of cores/cpus in the partition that has the most running jobs on that node. Patch attached to fix the problem. I also added an new function to bitstring to count the number of bits in an range (bit_set_count_range) and made a minor improvement of (bit_set_count) while reviewing the range version. Best regards, Magnus
Showing
- src/common/bitstring.c 34 additions, 3 deletionssrc/common/bitstring.c
- src/common/bitstring.h 1 addition, 0 deletionssrc/common/bitstring.h
- src/common/slurm_xlator.h 1 addition, 0 deletionssrc/common/slurm_xlator.h
- src/plugins/select/cons_res/select_cons_res.c 6 additions, 9 deletionssrc/plugins/select/cons_res/select_cons_res.c
Please register or sign in to comment