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

Le 15/06/2012 11:33, Ludovic Courtès a écrit :
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.)



Mmmmmm, I thought it was what I tested, but I probably made an unrelated syntax error when I tested it, I had a message like "erreur: ‘xx’ is neither a pointer nor an array", it seems to work actually :-)

BTW are you sure for the 1 ?

I would produce a code like :

int size_of_int = sizeof(int);
#pragma starpu register &xx size_of_int


Mehdi






Archives gérées par MHonArc 2.6.19+.

Haut de le page