diff --git a/src/plugins/select/bluegene/bg_job_place.c b/src/plugins/select/bluegene/bg_job_place.c index e7d6ed73485e671f2d08111b367614c85fdc433a..62a3d5d33d3b53261529e24e8dbf2178e3549115 100644 --- a/src/plugins/select/bluegene/bg_job_place.c +++ b/src/plugins/select/bluegene/bg_job_place.c @@ -1290,72 +1290,6 @@ static int _sync_block_lists(List full_list, List incomp_list) return count; } -/* static void _build_select_struct(struct job_record *job_ptr, */ -/* bitstr_t *bitmap, uint32_t node_cnt2) */ -/* { */ -/* int i, j, k; */ -/* int first_bit, last_bit; */ -/* uint32_t node_cpus, total_cpus = 0, node_cnt; */ -/* job_resources_t *job_resrcs_ptr; */ - -/* if (job_ptr->select_job) { */ -/* error("select_p_job_test: already have select_job"); */ -/* free_job_resources(&job_ptr->select_job); */ -/* } */ - -/* node_cnt = bit_set_count(bitmap); */ -/* job_ptr->select_job = job_resrcs_ptr = create_job_resources(); */ -/* job_resrcs_ptr->cpu_array_reps = xmalloc(sizeof(uint32_t)*node_cnt);*/ -/* job_resrcs_ptr->cpu_array_value = xmalloc(sizeof(uint16_t)*node_cnt);*/ -/* job_resrcs_ptr->cpus = xmalloc(sizeof(uint16_t) * node_cnt); */ -/* job_resrcs_ptr->cpus_used = xmalloc(sizeof(uint16_t) * node_cnt); */ -/* job_resrcs_ptr->nhosts = node_cnt; */ -/* job_resrcs_ptr->node_bitmap = bit_copy(bitmap); */ -/* if (job_resrcs_ptr->node_bitmap == NULL) */ -/* fatal("bit_copy malloc failure"); */ -/* job_resrcs_ptr->ncpus = job_ptr->num_cpus; */ -/* if (build_job_resources(job_resrcs_ptr, (void - * *)node_record_table_ptr, 1)) */ -/* error("select_p_job_test: build_job_resources: %m"); */ - -/* if (job_ptr->num_cpus <= bg_conf->cpus_per_mp) */ -/* node_cpus = job_ptr->num_cpus; */ -/* else */ -/* node_cpus = bg_conf->cpus_per_mp; */ - -/* first_bit = bit_ffs(bitmap); */ -/* last_bit = bit_fls(bitmap); */ -/* for (i=first_bit, j=0, k=-1; i<=last_bit; i++) { */ -/* if (!bit_test(bitmap, i)) */ -/* continue; */ - -/* job_resrcs_ptr->cpus[j] = node_cpus; */ -/* if ((k == -1) || */ -/* (job_resrcs_ptr->cpu_array_value[k] != node_cpus)) { */ -/* job_resrcs_ptr->cpu_array_cnt++; */ -/* job_resrcs_ptr->cpu_array_reps[++k] = 1; */ -/* job_resrcs_ptr->cpu_array_value[k] = node_cpus; */ -/* } else */ -/* job_resrcs_ptr->cpu_array_reps[k]++; */ -/* total_cpus += node_cpus; */ -/* #if 0 */ -/* /\* This function could be used to control allocation of */ -/* * specific c-nodes for multiple job steps per job allocation.*/ -/* * Such functionality is not currently support on BlueGene */ -/* * systems. */ -/* * Also see #ifdef HAVE_BG logic in common/job_resources.c *\/*/ -/* if (set_job_resources_node(job_resrcs_ptr, j)) */ -/* error("select_p_job_test: - * set_job_resources_node: %m"); */ -/* #endif */ -/* j++; */ -/* } */ -/* if (job_resrcs_ptr->ncpus != total_cpus) { */ -/* error("select_p_job_test: ncpus mismatch %u != %u", */ -/* job_resrcs_ptr->ncpus, total_cpus); */ -/* } */ -/* } */ - static void _build_select_struct(struct job_record *job_ptr, bitstr_t *bitmap, uint32_t node_cnt) {