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

fix for support of gang scheduling with SelectTypeParameter=CR_CPU and task...

fix for support of gang scheduling with SelectTypeParameter=CR_CPU and task affinity (was using CPU count instead of core count in bitmap logic).
parent 2701712b
No related branches found
No related tags found
No related merge requests found
...@@ -244,7 +244,7 @@ static void _load_phys_res_cnt(void) ...@@ -244,7 +244,7 @@ static void _load_phys_res_cnt(void)
for (i = 0, node_ptr = node_record_table_ptr; i < node_record_count; for (i = 0, node_ptr = node_record_table_ptr; i < node_record_count;
i++, node_ptr++) { i++, node_ptr++) {
if ((gr_type == GS_CPU) || (gr_type == GS_CPU2)) { if (gr_type == GS_CPU) {
if (gs_fast_schedule) if (gs_fast_schedule)
bit = node_ptr->config_ptr->cpus; bit = node_ptr->config_ptr->cpus;
else else
...@@ -275,12 +275,12 @@ static uint16_t _get_phys_bit_cnt(int node_index) ...@@ -275,12 +275,12 @@ static uint16_t _get_phys_bit_cnt(int node_index)
struct node_record *node_ptr = node_record_table_ptr + node_index; struct node_record *node_ptr = node_record_table_ptr + node_index;
if (gs_fast_schedule) { if (gs_fast_schedule) {
if ((gr_type == GS_CPU) || (gr_type == GS_CPU2)) if (gr_type == GS_CPU)
return node_ptr->config_ptr->cpus; return node_ptr->config_ptr->cpus;
return node_ptr->config_ptr->cores * return node_ptr->config_ptr->cores *
node_ptr->config_ptr->sockets; node_ptr->config_ptr->sockets;
} else { } else {
if ((gr_type == GS_CPU) || (gr_type == GS_CPU2)) if (gr_type == GS_CPU)
return node_ptr->cpus; return node_ptr->cpus;
return node_ptr->cores * node_ptr->sockets; return node_ptr->cores * node_ptr->sockets;
} }
......
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