Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] GCC plugin and registering address of scalar

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] GCC plugin and registering address of scalar


Chronologique Discussions 
  • From: ludovic.courtes@inria.fr (Ludovic Courtès)
  • To: mehdi.amini@silkan.com
  • Cc: starpu-devel@lists.gforge.inria.fr
  • Subject: Re: [Starpu-devel] GCC plugin and registering address of scalar
  • Date: Fri, 15 Jun 2012 11:33:28 +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>

Mehdi AMINI <mehdi.amini@silkan.com> skribis:

> I'm generating code automatically using StarPU as a backend. Sometimes
> an integer can be produced and its value used later, in a different
> task. Sometimes it just that I don't know if its value will be used
> later and I have to pass it to the task by reference.
> I'll go for the int a[1]; solution :-)

Note that something like this works:

int xx;
#pragma starpu register &xx 1

(Ideally, one should be able to omit the “1”, though.)

Thanks,
Ludo’.





Archives gérées par MHonArc 2.6.19+.

Haut de le page