瀏覽代碼

examples/basic_examples/block.c: task->destroy must be set to 0 before calling starpu_task_destroy()

Nathalie Furmento 13 年之前
父節點
當前提交
ba6e618d50
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      examples/basic_examples/block.c

+ 1 - 0
examples/basic_examples/block.c

@@ -60,6 +60,7 @@ int execute_on(uint32_t where, device_func func, float *block, int pnx, int pny,
         if (STARPU_UNLIKELY(ret == -ENODEV))
 	{
                 FPRINTF(stderr, "No worker may execute this task\n");
+		task->destroy = 0;
                 starpu_task_destroy(task);
                 return 1;
 	}