Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] question on CPU/GPU tasks distribution

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] question on CPU/GPU tasks distribution


Chronologique Discussions 
  • From: "philippe.helluy@unistra.fr" <philippe.helluy@unistra.fr>
  • To: starpu-devel@lists.gforge.inria.fr
  • Subject: Re: [Starpu-devel] question on CPU/GPU tasks distribution
  • Date: Fri, 31 Aug 2018 11:43:27 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=philippe.helluy@unistra.fr; spf=Pass smtp.mailfrom=philippe.helluy@unistra.fr; spf=None smtp.helo=postmaster@mailhost.u-strasbg.fr
  • Ironport-phdr: 9a23:yWt7ExWz3aWklNS+8P+Clq3nQUrV8LGtZVwlr6E/grcLSJyIuqrYbBePt8tkgFKBZ4jH8fUM07OQ7/i/HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba9wIRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W/KlMJwgqJVrhGvqRNxzIHbYp2aOvVlc6PBft4XX3ZNUtpfWiFDBI63cosBD/AGPeZdt4TxqUMOrRu/BQmoBePv0idIiWHs0a06zeshFQXG3BEgHt8VrXTUqtT1NLwOUeCv1qbE1zvDb+lY1Tzg74XIahAhofCIXbJxacrR0VcgGxnFjlqOrYzlOy6V1+QWvmiG6epgVPmvi3I9qw5ruDSvyN0sh5DPi4kIyV7E7T10zJs7KNGkUkJ2Y9qpHIFOuy2EKYd6WN0uT3xqtSoi17ELt4K3cDIIxZkj3RLSZOaLf5aW7h/lSe2fOy13hGh/d7K6nxuy8Vavyun7VsSs1VZFtCtFkt3MtnAKzBzT9tKLSuZk8ke6xTaPzRrc6vpfLkA7j6bbJYQhzqYxlpoVr0vDAjf7lFj4gaOKbEkp+Oyl5/75brn4uJOQLZF4hhz8P6g2n8ywG+U4MgwAX2iB/uS80aXu/VX5QLVLiv02k7HZsIjEKsgBpq62HQtV0oI+6xe/FDqmzdIYnXgcLFJZYhKIlZLlO1/UIPzgF/ewn0yskCt3x/DBJrDhGYnNIWLZkLf5YLZx8lNTxxQtzd9B45JZEbUBIPPoWk/tr9zUFBA5MwKzw+b9B9VyyJkSWWOJAq+DMaPdq0WE5uw1I7rEWIhAoyr0MeA4ovLjk3I9sVscZrWym5QZb2q3E7JnJV+YaDzimIQvC2AP60AmTO3uiUWaXHhTanK2QrMU+zc6E568BMHNXMrl1KSB3SO6BoVbIGBLDlSRAF/1cYSfR+0FLiyIdJwy2gcYXKSsHtdynSqlsxX3nuI+f7jkvxYAvJem7+BboujalBU87ztxVp7PzmeMVH1ulyUGXW1vhfwtkQlG0l6GlJNArblAD9UKvaFUVAYhKYTVieJgWYirB1DxO+yRQVPjee2IRDE8StVrmI0Lakd5G9K5klbemjG2GbYOnbPNCoZmqq8=
  • 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>

The difference is a factor of two (400 s instead of 200 s for the GPU only). The amount of memory used for the data is (approximately) of 3 GB.

I will try your suggestions and tell you.

Best regards

ph

Le 31/08/2018 à 11:35, Samuel Thibault a écrit :
Hello,

philippe.helluy@unistra.fr, le ven. 31 août 2018 11:19:59 +0200, a ecrit:
Things are worse on bigger tests. The code is faster with GPU-only runs
(STARPU_NCPU=0) than with CPU+GPU runs.

Is there a big difference?

It seems that the dmdar scheduler is
not able to take the decision to put all the computations on the GPU only,
even when this is the better choice (I tried to change the beta to beta=2,
with no effect). In this particular case, the whole data could be put
entirely in the GPU memory.

Do you have hints on this behavior ?

Well, the problem is that the dmdar heuristic can tend to behave like
that: when a lot of tasks are ready, the scheduler may find that it
takes less time to transfer data back to the CPU (which is completely
idle) and run it there than waiting for the busy GPU to be available.
I'm surprised that increasing beta does not change, perhaps you could
use much bigger values.

Also, you may want to try the modular-heft scheduler. I don't know
if the version in 1.2 behaves correctly, but the version in the 1.3
branch should be fine. The difference with dmdar is that it does not
schedule all available ready tasks in advance, but at most a given
number of tasks or a given amount of computation time per computation
unit (by default 30 and infinity, they can be configured with the
STARPU_NTASKS_THRESHOLD and STARPU_EXP_LEN_THRESHOLD environment
variables). That way, tasks will be put on the CPU only if they
run not too slower there.

Your application case will probably interest people doing the scheduling
in StarPU. We will soon open a "task graph market" so you can submit
your testcase and people will be able to fix heuristics with your
application case in mind :)

Samuel





Archives gérées par MHonArc 2.6.19+.

Haut de le page