Bladeren bron

specify what is described/explained in the hello-world example

Cédric Augonnet 16 jaren geleden
bovenliggende
commit
e6c184c3dc
1 gewijzigde bestanden met toevoegingen van 12 en 0 verwijderingen
  1. 12 0
      examples/basic-examples/hello-world.c

+ 12 - 0
examples/basic-examples/hello-world.c

@@ -14,6 +14,18 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
+/*
+ * This examples demonstrates how to construct and submit a task to StarPU and
+ * more precisely:
+ *  - how to allocate a new task structure (starpu_task_create)
+ *  - how to describe a multi-versionned computational kernel (ie. a codelet) 
+ *  - how to pass an argument to the codelet (task->cl_arg)
+ *  - how to declare a callback function that is called once the task has been
+ *    executed
+ *  - how to specify if starpu_submit_task is a blocking or non-blocking
+ *    operation (task->synchronous)
+ */
+
 #include <stdio.h>
 #include <stdint.h>
 #include <starpu.h>