|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
@c This file is part of the StarPU Handbook.
|
|
|
@c Copyright (C) 2009--2011 Universit@'e de Bordeaux 1
|
|
|
-@c Copyright (C) 2010, 2011 Centre National de la Recherche Scientifique
|
|
|
+@c Copyright (C) 2010, 2011, 2012 Centre National de la Recherche Scientifique
|
|
|
@c Copyright (C) 2011 Institut National de Recherche en Informatique et Automatique
|
|
|
@c See the file starpu.texi for copying conditions.
|
|
|
|
|
@@ -1090,6 +1090,15 @@ array. The constant argument passed with the @code{cl_arg} field of the
|
|
|
@code{starpu_task} structure is not counted in this number. This value should
|
|
|
not be above @code{STARPU_NMAXBUFS}.
|
|
|
|
|
|
+@item @code{modes}
|
|
|
+Is an array of @code{enum starpu_access_mode}. It describes the
|
|
|
+required access modes to the data neeeded by the codelet (e.g.
|
|
|
+@code{STARPU_RW}). The number of entries in this array must be
|
|
|
+specified in the @code{nbuffers} field (defined above), and should not
|
|
|
+exceed @code{STARPU_NMAXBUFS}.
|
|
|
+If unsufficient, this value can be set with the @code{--enable-maxbuffers}
|
|
|
+option when configuring StarPU.
|
|
|
+
|
|
|
@item @code{model} (optional)
|
|
|
This is a pointer to the task duration performance model associated to this
|
|
|
codelet. This optional field is ignored when set to @code{NULL}.
|
|
@@ -1124,13 +1133,17 @@ implementations. When set to @code{NULL}, no code is executed during the tasks,
|
|
|
such empty tasks can be useful for synchronization purposes.
|
|
|
|
|
|
@item @code{buffers}
|
|
|
-Is an array of @code{struct starpu_buffer_descr} structures. It describes the
|
|
|
-different pieces of data accessed by the task, and how they should be accessed.
|
|
|
-The @code{struct starpu_buffer_descr} structure is composed of two fields, the
|
|
|
-@code{handle} field specifies the handle of the piece of data, and the
|
|
|
-@code{mode} field is the required access mode (eg @code{STARPU_RW}). The number
|
|
|
+This field has been made deprecated. One should use instead the
|
|
|
+@code{handles} field to specify the handles to the data accessed by
|
|
|
+the task. The access modes are now defined in the @code{mode} field of
|
|
|
+the @code{struct starpu_codelet} structure.
|
|
|
+
|
|
|
+@item @code{handles}
|
|
|
+Is an array of @code{starpu_data_handle_t}. It specifies the handles
|
|
|
+to the different pieces of data accessed by the task. The number
|
|
|
of entries in this array must be specified in the @code{nbuffers} field of the
|
|
|
-@code{struct starpu_codelet} structure, and should not excede @code{STARPU_NMAXBUFS}.
|
|
|
+@code{struct starpu_codelet} structure, and should not exceed
|
|
|
+@code{STARPU_NMAXBUFS}.
|
|
|
If unsufficient, this value can be set with the @code{--enable-maxbuffers}
|
|
|
option when configuring StarPU.
|
|
|
|