better templating of type usage in StarPU implementation