Accéder au contenu.
Menu Sympa

starpu-devel - [Starpu-devel] Online Performance Monitoring With Performance Models in Fortran StarPU

Objet : Developers list for StarPU

Archives de la liste

[Starpu-devel] Online Performance Monitoring With Performance Models in Fortran StarPU


Chronologique Discussions 
  • From: Marcelo Cogo Miletto <marcelo.miletto@inf.ufrgs.br>
  • To: starpu-devel@lists.gforge.inria.fr
  • Subject: [Starpu-devel] Online Performance Monitoring With Performance Models in Fortran StarPU
  • Date: Tue, 20 Oct 2020 08:00:16 -0300
  • Authentication-results: mail2-smtp-roc.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:SR6koRSHWsKmPxvv0VteFv+akdpsv+yvbD5Q0YIujvd0So/mwa6zZBON2/xhgRfzUJnB7Loc0qyK6v+mBjdLuM7JmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanbr5+MRe7oR/Tu8QYjoduN7o9wQbVr3VVfOhb2XlmLk+JkRbm4cew8p9j8yBOtP8k6sVNT6b0cbkmQLJBFDgpPHw768PttRnYUAuA/WAcXXkMkhpJGAfK8hf3VYrsvyTgt+p93C6aPdDqTb0xRD+v4btnRAPuhSwaMTMy7WPZhdFqjK9Drx2uuxNxzYDUbo+LKfRwfazcct0BSGpdXMtRVTBNDp+mYoYNCecKIOZWr5P6p1sLtRawAhOjBPnzxTBWgn/22rAx3vomEQHJ2wwrAtUAsHXQrNrrKKcSTee1x7TPwDXGdfxWwyvy55bMchAmu/2MWLNwcc7PxkkzCwPFiU6dqY3jPzObzOgNrmab7/BvVeK0kWIosBtxryGpy8wxhYbHmpgbxUrY9SVl3ok1P9u4RVZ1b9K4EJVcqjyXOYRoTs0sX21kpTg2x6MItJKmfyUHy5YqyhrCZvGHfYaF4AzvWPiMLTp7in9od7Gyiwq2/EW8zOD3S8q60E5SoyZYndTBuGoB2hzc58SdV/dx412t1SiB2gzL5exJIVo4mbfYJpMv2LI9lJUevV7dEiL2hkn7irKdeF8+9eiy8evnZ63rpp+COI9wjQHzKr8umsmjAeQgKAQOXm6b+eqm2L3+8035WrpKjuYsnqbCqpDWPcUbpqinDA9Jyosv9hmyAjm83NkYknQLNk9JdA+dg4T3NVzCOPX4Au2+g1Sonjdr3ffGPrj5D5XINHfDiqvucqh5605b0gYzyNFf55ZKBbEdPPLzXVT8tN3eDh83KQC03ujnCM9y1oMFQ26AGbWZPLvIsVCU/uIvP/WMZIgNtTbmN/gq/eTujWckmVMEYKamw4UXZ268Hvl9J0WZYGHsgssaEWsQsQo+QuvqiEeNUTFNfXqyXqQ85is6CI28F4vDSJqt0/S923KgApRMfn0DBl2SHHPAc4SfR+xKZyyVOMBs1D0CT7moDYE7hj+0swqv7rN9JefQ/WUzsp3knP104+DPiRZ6oTl9Fc+Q12bLSmBwk38UQBc32q45vEJnxUzF27Iu0K8QLsBa+/4cClRyDpXb1eEvU4mjCDKERc+ATROdevvjBDgwStwrxNpXPxR8Hdvkkx7Z0DHsCaVHzuXWVqxxybrV2j3KH+g4y3vC0/Bw3UIjXtMJNGuowLNx7QfIQYTTwR3Ay/SaMJ8E1SuIz1+tiHKUtRgEAg92X+PYU2oQfQ3ct4ah6w==
  • 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 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.




Archives gérées par MHonArc 2.6.19+.

Haut de le page