Преглед на файлове

bug fix: we consider that a write-only buffer is cost-less (we still ignore
alloc cost) but we must not stop computing the data penality.

Cédric Augonnet преди 15 години
родител
ревизия
622da03466
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/core/perfmodel/perfmodel.c

+ 1 - 1
src/core/perfmodel/perfmodel.c

@@ -127,7 +127,7 @@ double data_expected_penalty(struct jobq_s *q, struct starpu_task *task)
 		starpu_data_handle handle = task->buffers[buffer].handle;
 
 		if (task->buffers[buffer].mode == STARPU_W)
-			break;
+			continue;
 
 		if (!is_data_present_or_requested(handle, memory_node))
 		{