Objet : Developers list for StarPU
Archives de la liste
- From: Usman Dastgeer <usman.dastgeer@liu.se>
- To: Samuel Thibault <samuel.thibault@ens-lyon.org>
- Cc: "starpu-devel@lists.gforge.inria.fr" <starpu-devel@lists.gforge.inria.fr>
- Subject: Re: [Starpu-devel] starpu_task_destroy
- Date: Tue, 14 Feb 2012 11:43:27 +0100
- Accept-language: en-US
- Acceptlanguage: en-US
- List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel>
- List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>
Sorry I was not concise in my previous email. The confusion actually started while looking into examples/openmp/vector_scal.c code as there you are using starpu_task_destroy(task) for task created with starpu_task_create() without explicitly setting destroy..
Then, just skimming through doc at starpu_task_destroy description I got bit confused:
— Function: void starpu_task_destroy (struct starpu_task *task)
Free the resource allocated during
starpu_task_create
and associated with task. This function can be called automatically after the execution of a task by setting thedestroy
flag of thestarpu_task
structure (default behaviour). Calling this function on a statically allocated task results in an undefined behaviour.and default value of destroy field says "0"
But then looking more into starpu_task_create() and destroy field description in doc it became clearer. So in brief, there is no conflicting statement in doc however the information looks a bit scattered to me.
--
Usman.
On Feb 14, 2012, at 11:18 AM, Samuel Thibault wrote:
Usman Dastgeer, le Tue 14 Feb 2012 11:07:19 +0100, a écrit :While reading doc, there is slight confusion about starpu_task_destroy and howit behaves with starpu_task_create.
Where is it so? If there is confusion anywhere, we have to fix it. What
I currently see it is always said that task created by
starpu_task_create() are automatically freed, is there any place where
it is not so?
(I'll answer OpenMP separately, since it's a completely different
matter)
Samuel
- Re: [Starpu-devel] starpu_task_destroy, Samuel Thibault, 14/02/2012
- Re: [Starpu-devel] starpu_task_destroy, Usman Dastgeer, 14/02/2012
- Re: [Starpu-devel] starpu_task_destroy, Samuel Thibault, 14/02/2012
- Re: [Starpu-devel] starpu_task_destroy, Usman Dastgeer, 14/02/2012
Archives gérées par MHonArc 2.6.19+.