Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] Problem with performance model calibration

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] Problem with performance model calibration


Chronologique Discussions 
  • From: Mirko Myllykoski <mirkom@cs.umu.se>
  • To: Samuel Thibault <samuel.thibault@inria.fr>, starpu-devel@lists.gforge.inria.fr
  • Subject: Re: [Starpu-devel] Problem with performance model calibration
  • Date: Fri, 5 Jun 2020 14:13:35 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=mirkom@cs.umu.se; spf=Pass smtp.mailfrom=mirkom@cs.umu.se; spf=None smtp.helo=postmaster@mail.cs.umu.se
  • Ironport-phdr: 9a23:0ZK29xLoJjliC+FOHNmcpTZWNBhigK39O0sv0rFitYgfLfvxwZ3uMQTl6Ol3ixeRBMOHsq8C0raN+Pq+EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCe9bL9oMRm7ogvcusYIjYZjN6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhTwZPDAl7m7Yls1wjLpaoB2/oRx/35XUa5yROPZnY6/RYc8WSW9HU81MVSJOH5m8YpMSAeQfM+ZWr479qVgAoxSwCgajBv/gxDBTi3/q36A3yfgtHR3I0QEiGd8FrXTarM/yNKcXSe27y6jIzS/Ab/NRxDzz74jJchQlofCMXrJwdtHRyUouFwjYiViQrI3lPymW1uQKtmiW9PZvVfm1h246rgFxvyKjxtwyhYTQgI8e11/L+zljzokvOd24VFB0YcSiEJZItSyXKpZ6T8csTmxqtis3y7kLtYKncSYEyJkqyBHRZvibf4SW/h7uUOKcLClkiX9leb+xiRi8/EyuxOHgSMS531BHpTdGnNnUrn0ByhLe5tSdRvdj8Eqs3SyD2g/P5u1eP0w5lbLXJ4A9zrIsi5YetFrPEjPqlEnoiaKbdl8r9faq5unibbjpuIGQOo5xhwHwNqkhgNGzDOE2MgUAXmWW+OGx1LP+8UHnXLpHi/k7n6nFvJ/AI8kQu7S3DBVP0ok57hayFzem38ocnXkANF9FfQiIj4ntO13UPP/4Fu2zg0mpkDd23fzGJaPuDo3MLnjFjrjhYa5w51NSxQYv19xT+ZxZB7UbLP/8RkP9rsLUAx8hPwyx2ennCdF91o0EWWKIB6+UKKbSsV6S5uIsJOmMYZQYtyrmK/Q/+v7uiGI5lUUGfaa3xZcXcmy3Hux6I0WFZnrhmswBEXsQsQokVOzqlUSOXiNNaHasQa084io2CIanDYfYWoCtm6aN3Ci1Hp1RfGBGBU6DHW3pd4WCQfcMaTidLtVvkjweBvCdTNoa3BSzuQuy97pmJOPJ/jFQ4Ynq0cV446vPlRA4/CFwE+yc1XuMRid6hDVMDyQq1bpnvAlxx0mO1YB8gudEDppc6fRTXQp8NJjGzuU8BcqhdBjGe4KsSUylRZ2DEDU1X9E22NwPKxJ4Gs+hiRXr1DHsHroI0aeGUs9nupnA1mT8cp4ug03N07Ms2hx/GpMWZD+Ww5Vn/g2WPLbn1kCQlqKkb6MZhXef/3zF0G+T+lpVAlcpDPf1GEsHb06TluzXo0PPS7j3V+YiOwpFj8WZbLZPd5vygAceHauxCJHle2u03lyIK1OQ3LrVNdjhYCMA2TibE0VWyw0=
  • 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>
  • Organization: Umeå University / HPC2N

Ok. I cannot really comment on the cudaEventDisableTiming flag but it would definitely explain why my experiment failed (unless I removed the flag but I do not have any memory of it).

However, I remember getting slightly worried over the fact that there was a potential delay between when a tasks starts/finishes and when the timing information is recorded. As you said, this probably does not matter when scheduling is concerned but I can see how it could impact the performance models.

I should also mention that I am compiling StarPU with the --disable-cuda-memcpy-peer flag enabled. This seems to improve the performance (sometimes significantly) but I have not evaluated its effect recently. I can see how this could cause problems if the CUDA threads is busy doing something else while a task starts/finishes.

- Mirko

On 2020-06-05 13:52, Samuel Thibault wrote:
Mirko Myllykoski, le ven. 05 juin 2020 13:49:00 +0200, a ecrit:
My memory is that StarPU does not actually extract the execution time
from the events. Instead, StarPU records the wall-time when the CUDA
event is checked (in _starpu_driver_end_job?). Is this correct?

Yes. Last time we had a look, asking CUDA to record the time was
bringing various additional synchronization. Anyway, what StarPU needs
to know for scheduling decisions is what it will be able to observe to
release other tasks, it doesn't really need to care about what actually
happens inside the GPU.

Samuel





Archives gérées par MHonArc 2.6.19+.

Haut de le page