|
@@ -196,6 +196,9 @@ static double compute_expected_end(int workerid, double length)
|
|
|
double res;
|
|
|
/* This is a basic worker */
|
|
|
|
|
|
+ /* Here helgrind would shout that this is unprotected, but we
|
|
|
+ * are fine with getting outdated values, this is just an
|
|
|
+ * estimation */
|
|
|
res = worker_exp_start[workerid] + worker_exp_len[workerid] + length;
|
|
|
|
|
|
return res;
|
|
@@ -209,6 +212,9 @@ static double compute_expected_end(int workerid, double length)
|
|
|
|
|
|
double exp_end = DBL_MIN;
|
|
|
|
|
|
+ /* Here helgrind would shout that this is unprotected, but we
|
|
|
+ * are fine with getting outdated values, this is just an
|
|
|
+ * estimation */
|
|
|
int i;
|
|
|
for (i = 0; i < worker_size; i++)
|
|
|
{
|
|
@@ -235,6 +241,9 @@ static double compute_ntasks_end(int workerid)
|
|
|
double res;
|
|
|
/* This is a basic worker */
|
|
|
|
|
|
+ /* Here helgrind would shout that this is unprotected, but we
|
|
|
+ * are fine with getting outdated values, this is just an
|
|
|
+ * estimation */
|
|
|
res = ntasks[workerid] / starpu_worker_get_relative_speedup(perf_arch);
|
|
|
|
|
|
return res;
|
|
@@ -248,6 +257,9 @@ static double compute_ntasks_end(int workerid)
|
|
|
|
|
|
int ntasks_end=0;
|
|
|
|
|
|
+ /* Here helgrind would shout that this is unprotected, but we
|
|
|
+ * are fine with getting outdated values, this is just an
|
|
|
+ * estimation */
|
|
|
int i;
|
|
|
for (i = 0; i < worker_size; i++)
|
|
|
{
|