Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] COO and other sparse interfaces in StarPU

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] COO and other sparse interfaces in StarPU


Chronologique Discussions 
  • From: Cyril Roelandt <cyril.roelandt@inria.fr>
  • To: Usman Dastgeer <usman.dastgeer@liu.se>
  • Cc: starpu-devel@lists.gforge.inria.fr
  • Subject: Re: [Starpu-devel] COO and other sparse interfaces in StarPU
  • Date: Sun, 14 Oct 2012 17:09:04 +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 !

On 10/10/2012 04:42 PM, Usman Dastgeer wrote:
Cyril however said he
could at least implement COO for instance.
Thanks. I can wait then. Let me know when it is done.


I've been working on the COO interface. Here is an overview of the current API:

void
starpu_coo_data_register(
starpu_data_handle_t *handleptr,
uint32_t home_node,
uint32_t nx,
uint32_t ny,
uint32_t n_values,
uintptr_t values,
uint32_t *columns,
uint32_t *rows,
size_t elemsize);

This is pretty straight-forward. The "n_values" parameter is the size of the "columns", "rows" and "values" arrays.

The following helpers are defined :

STARPU_COO_GET_COLUMNS(interface)
STARPU_COO_GET_ROWS(interface)
STARPU_COO_GET_VALUES(interface)
STARPU_COO_GET_NX(interface)
STARPU_COO_GET_NY(interface)
STARPU_COO_GET_NVALUES(interface)
STARPU_COO_GET_ELEMSIZE(interface)

so that one can easily manipulate the COO interface in the kernels.


Does that look good to you ? If so, I'll write the documentation and commit the code next week.


WBR,
Cyril Roelandt.





Archives gérées par MHonArc 2.6.19+.

Haut de le page