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: Thu, 14 Jun 2012 11:41:12 +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>

Hi Mehdi,

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

> I'm still playing with the GCC plugin, it seems that there is no
> support for registering a scalar, I would expect to be able to write
> something like :
>
> int a;
> #pragma starpu register &a
>
> my_task(..., &a, ...)
>
> #pragma unregister &a
>
>
> Do you plan to support such syntax in the future?

I don’t think so. Registering is meant to be used for large data
buffers, whose transfer between GPUs and the main memory influences the
scheduler.

However, I suppose you’d like the task to return an int to indicate
success or failure, right?

I confess that the assumption has been that tasks are purely
computational, and that their result is typically stored in a large
array passed as an output parameter.

Could you tell us more about your use case?

> Is there another workaround that declaring a as int a[1];?

No, that would be the workaround. :-)

Thanks,
Ludo’.

PS: I haven’t forgotten about your other requests, but am slightly busy
with other things currently.





Archives gérées par MHonArc 2.6.19+.

Haut de le page