Skip to content

Commit

Permalink
Merge pull request #6 from cfenoy/master
Browse files Browse the repository at this point in the history
Bug in selec/cons_res using tasks-per-node and cpus-per-task
  • Loading branch information
jette committed Aug 19, 2011
2 parents a8b291c + c1462e8 commit dff21d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/select/cons_res/dist_tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static int _compute_c_b_task_dist(struct job_record *job_ptr)
if (job_ptr->details->ntasks_per_node == 0)
maxtasks = maxtasks / job_ptr->details->cpus_per_task;
else
maxtasks = job_ptr->details->ntasks_per_node;
maxtasks = job_ptr->details->ntasks_per_node * job_res->nhosts;
}

/* Safe guard if the user didn't specified a lower number of
Expand Down

0 comments on commit dff21d7

Please sign in to comment.