Просмотр исходного кода

Add sched_data field in starpu_task structure.

Samuel Thibault лет назад: 7
Родитель
Сommit
04a1eb1ceb
3 измененных файлов с 8 добавлено и 2 удалено
  1. 1 0
      ChangeLog
  2. 5 1
      doc/doxygen/chapters/api/codelet_and_tasks.doxy
  3. 2 1
      include/starpu_task.h

+ 1 - 0
ChangeLog

@@ -73,6 +73,7 @@ Small features:
     starpu_task_declare_deps_array()
   * Add dependency backward information in debugging mode for gdb's
     starpu-print-task
+  * Add sched_data field in starpu_task structure.
 
 Changes:
   * Vastly improve simgrid simulation time.

+ 5 - 1
doc/doxygen/chapters/api/codelet_and_tasks.doxy

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2011-2013,2015,2017                      Inria
  * Copyright (C) 2010-2017                                CNRS
- * Copyright (C) 2009-2011,2013-2017                      Université de Bordeaux
+ * Copyright (C) 2009-2011,2013-2018                      Université de Bordeaux
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -770,6 +770,10 @@ the configuration of a task allocated with starpu_task_create().
 \var struct starpu_omp_task *starpu_task::omp_task
     todo
 
+\var struct starpu_omp_task *starpu_task::sched_data
+    This field is managed by the scheduler, is it allowed to do whatever with
+    it.  Typically, some area would be allocated on push, and released on pop.
+
 \fn void starpu_task_init(struct starpu_task *task)
 \ingroup API_Codelet_And_Tasks
 Initialize \p task with default values. This function is

+ 2 - 1
include/starpu_task.h

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2011-2017                                Inria
- * Copyright (C) 2009-2017                                Université de Bordeaux
+ * Copyright (C) 2009-2018                                Université de Bordeaux
  * Copyright (C) 2010-2015,2017                           CNRS
  * Copyright (C) 2011                                     Télécom-SudParis
  * Copyright (C) 2016                                     Uppsala University
@@ -221,6 +221,7 @@ struct starpu_task
 #else
 	void *omp_task;
 #endif
+	void *sched_data;
 };
 
 /* Note: remember to update starpu_task_init as well */