Skip to content
Snippets Groups Projects
Commit 7fdb8395 authored by Danny Auble's avatar Danny Auble
Browse files

BLUEGENE - fix issue where incorrect block could be picked when requesting

on small blocks but need larger and the block size.
parent 1387a9b0
No related branches found
No related tags found
No related merge requests found
...@@ -377,7 +377,9 @@ static bg_record_t *_find_matching_block(List block_list, ...@@ -377,7 +377,9 @@ static bg_record_t *_find_matching_block(List block_list,
this by since we will usually be given a this by since we will usually be given a
larger block than our allocation request. larger block than our allocation request.
*/ */
if (!bg_conf->sub_blocks || bg_record->mp_count > 1) { if ((bg_record->cpu_cnt < request->procs)
|| !bg_conf->sub_blocks
|| (bg_record->mp_count > 1)) {
/* We use the proccessor count per block here /* We use the proccessor count per block here
mostly to see if we can run on a mostly to see if we can run on a
smaller block. smaller block.
......
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