Changing Ceil to double
This commit is contained in:
parent
7d9c1cfee8
commit
ad44f5b6f2
BIN
build/ag_gen
BIN
build/ag_gen
Binary file not shown.
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user