Changing Ceil to double

This commit is contained in:
Noah L. Schrick 2022-01-30 23:07:22 -06:00
parent 7d9c1cfee8
commit ad44f5b6f2
2 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@ -371,8 +371,10 @@ AGGenInstance &AGGen::generate(bool batch_process, int batch_size, int numThrd,
int alloc; int alloc;
if(world.size() <= num_tasks) if(world.size() <= num_tasks)
alloc = 1; alloc = 1;
else else{
alloc = 1 + ceil((world.size()-num_tasks)/2); double ceil_val = (world.size()-num_tasks)/2;
alloc = 1 + ceil(ceil_val);
}
//Task 2 Node Allocating //Task 2 Node Allocating
int reduc_factor = 0; int reduc_factor = 0;