Objet : Developers list for StarPU
Archives de la liste
Re: [Starpu-devel] Online Performance Monitoring With Performance Models in Fortran StarPU
Chronologique Discussions
- From: Marcelo Cogo Miletto <marcelo.miletto@inf.ufrgs.br>
- To: Olivier Aumage <olivier.aumage@inria.fr>
- Cc: starpu-devel@lists.gforge.inria.fr
- Subject: Re: [Starpu-devel] Online Performance Monitoring With Performance Models in Fortran StarPU
- Date: Tue, 20 Oct 2020 12:06:10 -0300
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=marcelo.miletto@inf.ufrgs.br; spf=Pass smtp.mailfrom=marcelo.miletto@inf.ufrgs.br; spf=None smtp.helo=postmaster@smtp.inf.ufrgs.br
- Ironport-phdr: 9a23:e56lRx9qospzkP9uRHKM819IXTAuvvDOBiVQ1KB22ugcTK2v8tzYMVDF4r011RmVBNqdtKkP1LaempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffgdFiCC/bL58Ixm7rwrcvdQKjIV/Lao81gHHqWZSdeRMwmNoK1OTnxLi6cq14ZVu7Sdete8/+sBZSan1cLg2QrJeDDQ9LmA6/9brugXZTQuO/XQTTGMbmQdVDgff7RH6WpDxsjbmtud4xSKXM9H6QawyVD+/9KpgVgPmhzkbOD446GHXi9J/jKRHoBK6uhdzx5fYbJyJOPZie6/Qe84RS2hcUcZLTyFODZ+zYYQBAeQBI+hWsovyp1UNoxqxCwahH//vxzxKhnPqwaE3yeYsHAfb1wIgBdIOt3HUoc3yOqgIS+C60LfHzTHEb/hLxzr974fIchc8qv+LXLJwddTeyVUzFwPCk16dronlMCmP1usRrWeb6+1gWfiqi24mrwF+vCSvxtsrioTSh4IVzF7E+T9kwIY7P924R1V7bcS/H5tKriyXMZZ9Tcw+TW9yoik61qEGtoChfCgM0JkpyRDSZ+Gaf4SW7RzuVOifLzl6iX95d7yymhi8/0a9xuDzVse63llHoy5Hn9TIsn0Ayx/e59SIRPZ94kutxyuD2gbO4e9KJkA0kLDUK58nwrMol5oTt17DHi7sl0nsgq+WbEMp8fWr5eT/erjqu5CROoFuhgz+PakigNGzDfkiPgQQUWWX4eux2b358UHkQ7hHgOc6n6vWvZzAO8gWprC1DglI2Yg58Rm/FS2p0NEAkHkHMl1FfBWHgpDyO1HLPPD4Fe2zg1WqkDdl3fzGI7PhAo/CLnjYirvuZqx951ZdyAo1099f+4pZBqwOLf/9QEP8tNPVAgUkPwCp2errFttw2psbWW2VA6+ZNK3SsUWP5uIqO+SMYZUauCzhJPc74/7uimU1mVocfamtw5QXdGy4HvN9LkWYZ3rsjM0NEXoEvgokQ+zqk0eOXiVJZ3qqRaIz+ik7CJ66DYfEXo2tm6CB0z2hHp1Oe2BKE02DHmn2d4qaX/cBcyaSIs56kjwYTritUYAh1R+ptA/gxLpoMPDY+iwetZL51dh6/ffflR8o9W88M8PI9GWMUWB5hCshWjo/06039Ut5y0mC3LI+iuFdHNNez/JPSAYzc5DGmb9UEdf3DyfIZNyETFHuadKpBnkUT9Y838MJKxJ4Es+pgxTEmS+rB7IJi7ujBZo6tL/SxXfqYcxnnSWVnJI9hkUrF5McfVatgbRyok2KX9aQzhep0p2yfKFZ5xbjsWeOyW3X7RNDVRJoF6TDUzYCaFHZtpLz/BGaFuP8OfEcKgJEjPW6BO5ScNSw0QdHQvmlJdrEbHn3kX3iXU/ZlIPJV5LjfiAm5AuYDUEFlw4J+nPfaVo/ACnnvmzEAycoH0i9Ok4=
- 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>
Thank you very much Olivier, that certainly will help me.
On 2020-10-20 10:13, Olivier Aumage wrote:
Hi,
Thanks for the report. The Fortran API is basically extended on demand, and
that feature had not been requested so far.
I have now added some minimal support for using performance models from the
Fortran API in the "master" branch of the StarPU repository.
The example file "examples/native_fortran/nf_vector.f90" shows an example on
how to use this.
Best regards,
--
Olivier Aumage
Le 20 oct. 2020 à 13:00, Marcelo Cogo Miletto <marcelo.miletto@inf.ufrgs.br> a écrit :
Dear StarPU team,
I have been trying, without success, to use a performance model for
online performance monitoring in a Fortran application that uses
StarPU (release 1.3.7) to use data-aware schedulers. The best result I
got so far was an empty model being dumped in the
$STAPU_HOME/.starpu/sampling/codelets/45.
I tried to include functions in the src/util/fstarpu.c and in
include/fstarpu_mod.F90, to allocate and configure the performance
model, assigning it to a codelet in a very similar way to how the task
codelet structure creation and configuration is done in the Fortran
examples (e.g., using fstarpu_codelet_allocate, fstarpu_codelet_set_name).
I use a c_ptr type variable in Fortran that should hold the performance
model structure address. Then, I set its symbol and its type to
STARPU_HISTORY_BASED, initialize it by calling starpu_perfmodel_init, and
assign it to the codelet structure using cl->model = &my_model, all
this with the functions abovementioned.
Other things that I have considered:
- STARPU_CALIBRATE set to 1
- STARPU_SCHED set to dmda
- Application calls fstarpu_init
- Application calls fstarpu_shutdown
The performance model dumped file reports that model->state->ncombs is
0, so it does not print anything after the file header:
##################
# Performance Model Version
45
####################
# COMBs
# number of combinations
0
At this point, I'm a little bit lost on where the problem is. As I'm
not very acquainted with Fortran, I wonder if this is the right path
to use such models in a StarPU Fortran application. Also, I would find
helpful if you have some minimal code example on how to do it properly
to share with me.
Best,
Marcelo Miletto.
_______________________________________________
Starpu-devel mailing list
Starpu-devel@lists.gforge.inria.fr
https://lists.gforge.inria.fr/mailman/listinfo/starpu-devel
- [Starpu-devel] Online Performance Monitoring With Performance Models in Fortran StarPU, Marcelo Cogo Miletto, 20/10/2020
- Re: [Starpu-devel] Online Performance Monitoring With Performance Models in Fortran StarPU, Olivier Aumage, 20/10/2020
- Re: [Starpu-devel] Online Performance Monitoring With Performance Models in Fortran StarPU, Marcelo Cogo Miletto, 20/10/2020
- Re: [Starpu-devel] Online Performance Monitoring With Performance Models in Fortran StarPU, Olivier Aumage, 20/10/2020
Archives gérées par MHonArc 2.6.19+.