Commit 5aa2e95c authored by EYRAUD-DUBOIS Lionel's avatar EYRAUD-DUBOIS Lionel

IndepAccel: nicer verbose output

parent 9b918a3f
......@@ -99,8 +99,13 @@ bool IndepAccel::tryGuess(Instance& ins, std::vector<int> taskSet, double target
while( (iterations <= nbCPU) && ((GPUload > nbGPU * target + target/2.0) || (CPUload > nbCPU * target + target/2.0)) ) {
if(verbosity >= 7)
cout << "IndepAccel: iteration "<< iterations << "CPUload= " << CPUload << " C1; " << setC1 << " C2: " << setC2 << " G1: " << setG1 << " G2: " << setG2 << endl;
if(verbosity >= 7) {
cout << "IndepAccel: iteration "<< iterations << "CPUload= " << CPUload << " GPUload= " << GPUload << endl;
cout << " C1: " << setC1 << endl;
cout << " C2: " << setC2 << endl;
cout << " G1: " << setG1 << endl;
cout << " G2: " << setG2 << endl;
}
while ((GPUload <= nbGPU * target) && (iterC2 != setC2.end())) {
setG2.push_back(*iterC2);
GPUload += gpuTime(ins, *iterC2);
......@@ -174,6 +179,9 @@ IndepResult IndepAccel::compute(Instance& instance, vector<int> &taskSet, vector
double low = lowerBoundTwoResource(instance, taskSet);
double up = std::numeric_limits<double>::infinity();
if(verbosity >= 6)
cerr << "IndepAccel: Lower bound is " << low << endl;
double target;
while(abs(up - low) > epsilon*low) {
if(up != std::numeric_limits<double>::infinity())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment