Преглед изворни кода

Adapt the model debug code to the recent interface changes (task etc.).

Cédric Augonnet пре 16 година
родитељ
комит
fe35fe26a3
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      src/core/perfmodel/perfmodel_history.c

+ 4 - 2
src/core/perfmodel/perfmodel_history.c

@@ -18,6 +18,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 #include <errno.h>
+#include <common/config.h>
 #include <core/perfmodel/perfmodel.h>
 #include <core/jobs.h>
 #include <core/workers.h>
@@ -496,9 +497,10 @@ void update_perfmodel_history(job_t j, enum starpu_perf_archtype arch, double me
 		fprintf(debug_file, "%lf\t", measured);
 		unsigned i;
 			
-		for (i = 0; i < j->nbuffers; i++)
+		struct starpu_task *task = j->task;
+		for (i = 0; i < task->cl->nbuffers; i++)
 		{
-			data_state *state = j->buffers[i].state;
+			data_state *state = task->buffers[i].state;
 
 			STARPU_ASSERT(state->ops);
 			STARPU_ASSERT(state->ops->display);