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

do not abort if a task executing nowhere requests data being fetched on a given node

Samuel Thibault пре 9 година
родитељ
комит
218d2349c3
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      src/datawizard/coherency.c

+ 1 - 3
src/datawizard/coherency.c

@@ -898,6 +898,7 @@ static struct _starpu_data_replicate *get_replicate(starpu_data_handle_t handle,
 {
 	if (mode & (STARPU_SCRATCH|STARPU_REDUX))
 	{
+		STARPU_ASSERT(workerid >= 0);
 		if (!handle->per_worker)
 		{
 			_starpu_spin_lock(&handle->header_lock);
@@ -1059,10 +1060,7 @@ void __starpu_push_task_output(struct _starpu_job *j)
 			continue;
 
 		if (node != -1)
-		{
-			STARPU_ASSERT(workerid >= 0);
 			local_replicate = get_replicate(handle, mode, workerid, node);
-		}
 
 		/* Keep a reference for future
 		 * _starpu_release_task_enforce_sequential_consistency call */