Accéder au contenu.
Menu Sympa

starpu-devel - [Starpu-devel] Temporary buffer initialization

Objet : Developers list for StarPU

Archives de la liste

[Starpu-devel] Temporary buffer initialization


Chronologique Discussions 
  • From: Xavier Lacoste <xavier.lacoste@inria.fr>
  • To: starpu-devel@lists.gforge.inria.fr
  • Subject: [Starpu-devel] Temporary buffer initialization
  • Date: Wed, 16 Apr 2014 14:59:10 +0200
  • 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>

Hello,

I want to have a temporary buffer, allocated by starpu, and initialized (to zero).
Some task will add values in it afterward and then it will be send to an other process for a remote task.
These local tasks can be executed in any order.
In order to initialize the buffer (memset(data, 0, size)) should I use prologue callback function to check if the buffer is already allocated and if not tell starpu to allocate it and call my memset ? Or is the data already allocated in prologue ? Can I have a way to know if it's the first time it's used ?
If the prologue solution is the one to use, it would be nice if it was available in the starpu_mpi_insert_task() function.

I could insert a task to initialize it but it would allocate the buffer too early, when it is not used...

Regards,

XL.


----------------------------------------
Xavier Lacoste
INRIA Bordeaux Sud-Ouest
200, avenue de la Vieille Tour
33405 Talence Cedex
Tél : +33 (0)5 24 57 40 69











Archives gérées par MHonArc 2.6.19+.

Haut de le page