Objet : Developers list for StarPU
Archives de la liste
- From: Alfredo Buttari <alfredo.buttari@enseeiht.fr>
- To: starpu-devel@lists.gforge.inria.fr
- Subject: [Starpu-devel] Fortran interface for StarPU
- Date: Thu, 14 Apr 2016 10:03:32 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=alfredo.buttari@gmail.com; spf=Pass smtp.mailfrom=alfredo.buttari@gmail.com; spf=None smtp.helo=postmaster@mail-lf0-f48.google.com
- Ironport-phdr: 9a23:8kVkMhQnT6A20F3MjR/QzBqbjdpsv+yvbD5Q0YIujvd0So/mwa64YhGN2/xhgRfzUJnB7Loc0qyN4/CmBDFLuMzb+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq82VPlgD3WDnKZpJbzyI7izp/vEMhoVjLqtjgjDomVBvP9ps+GVzOFiIlAz97MrjtLRq8iBXpu5zv5UYCfayLOwESulDED08K31w6MD1uB3rSQqU+mBaXWsRiBVFRQnD9hDzGJnr4QXgse8o8S2UJ8D6SvgeRCi+5r1qAEvhjCkdOjI+tmvKltB5lqNzrRS6qhF+w5KSbpvDZ6k2Rb/UYd5PHTkJZc1WTSEUWo4=
- 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>
Dear StarPU developers,
--
in order to port the qr_mumps solver on StarPU, I have written (and re-written quite a few times) a module containing fortran interfaces for StarPU methods as well as a few wrappers for those methods that cannot be interfaced in a portable way. These wrappers are necessary mostly because of the following issues:
1) C variadic functions are not interoperable and (as far as I know) there's no portable way to call them in a fortran code other than going through a C wrapper.
2) some StarPU structs (for example starpu_codelet) are not interoperable.
3) the arguments of some functions are not of interoperable type. One weird and very common case is the unsigned type which (for some obscure reason) is not fortran interoperable. For arguments of this type we can use the fortran integer type and it will just work although, on paper, this is not portable.
In the attachment you can find the starpu_f_mod.f90 file containing a number of interfaces and a starpu_f_wrappers.c containing C wrappers. The package also contains a main program that shows how to use most of the interfaced routines.
I discussed with Sam Thibault about the possibility to integrate this interface in StarPU to make it available to the other concerned users. The module is far from being complete and only contains a small fraction of all the StarPU methods but if we agree on the approach and the syntax then it's just a matter of coding the rest gradually, as needed.
Ciao
Alfredo
-----------------------------------------
Alfredo Buttari, PhD
CNRS-IRIT
2 rue Camichel, 31071 Toulouse, France
http://buttari.perso.enseeiht.fr
Alfredo Buttari, PhD
CNRS-IRIT
2 rue Camichel, 31071 Toulouse, France
http://buttari.perso.enseeiht.fr
Attachment:
starpu_f.tgz
Description: GNU Zip compressed data
- [Starpu-devel] Fortran interface for StarPU, Alfredo Buttari, 14/04/2016
- Re: [Starpu-devel] Fortran interface for StarPU, Alfredo Buttari, 14/04/2016
Archives gérées par MHonArc 2.6.19+.