Accéder au contenu.
Menu Sympa

starpu-devel - [Starpu-devel] Bug report: STARPU_SPMD does not handle buffers without explicit backing memory

Objet : Developers list for StarPU

Archives de la liste

[Starpu-devel] Bug report: STARPU_SPMD does not handle buffers without explicit backing memory


Chronologique Discussions 
  • From: "Jan Polák" <456647@mail.muni.cz>
  • To: starpu-devel@lists.gforge.inria.fr
  • Subject: [Starpu-devel] Bug report: STARPU_SPMD does not handle buffers without explicit backing memory
  • Date: Thu, 29 Aug 2019 12:19:09 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=456647@mail.muni.cz; spf=Pass smtp.mailfrom=456647@mail.muni.cz; spf=None smtp.helo=postmaster@arethusa2.fi.muni.cz
  • Ironport-phdr: 9a23:s+Yt7BGKy5izhq2g1qra5Z1GYnF86YWxBRYc798ds5kLTJ78oMywAkXT6L1XgUPTWs2DsrQY0rCQ6v66EjZZqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba5sIBmssAnct9cajYR8Jqos1xDEvmZGd+NKyG1yOFmdhQz85sC+/J5i9yRfpfcs/NNeXKv5Yqo1U6VWACwpPG4p6sLrswLDTRaU6XsHTmoWiBtIDBPb4xz8Q5z8rzH1tut52CmdIM32UbU5Uims4qt3VBPljjoMOjgk+2/Vl8NwlrpWrw68qBJwxIDbb4GbOuRjcK3ec90XXnZBU8VLWiBdDIOwc4kCAuwcNuhYtYn9oF4OoAOwCQeoHuzvzCJDiGXx3a0+0eMhEg/K1xEnEt8BsHnZrdT4OagQXO2uyanH1zTDb/dM1Tf49YjIdBEhreuQUrNxaMfcz1QkGQ3CjlWVs4PlPjWV2/wVs2eB9OpgSfyghHUmqwF3uDSg2sAsiozPi4kIyV7E7T10zJs6KNC6UkJ3f96pHIZKuyyVM4Z6WMEvTmd1sygg0LIGo4S0fC0SxZQn2RHfb/uHfpCS7RL5SumRPTd4hG9+eL2lmRq+60agyuzmWsmxzVZKqCtFnsPQuXEMzxDT686HReVh/kq5xDqC2ALe5vtaLU00iKbXMZEsz7oqmpcRqUjDGzX5mETyjK+YbEUk/e2o5vzob7jmp5KRNoB5hwPlP6QrgMO/AOA4PhILX2iG/+S81afv8lH4QblSlP05jrHZsIzGJcQcvqO5GBNV3Zw56xanEjeqyckXkmcZLF1bfBKKlIzpO1DVIPDkFvezmVuskDlsx/DcMb3uHI/BLnnFkLf7fLZy8VRQyAQpzYMX25UBEa0IOuruH0P8qtHcJhs4KBCvhenpD89y28UfX3iOC+mXKvD8q1iNs6gNKu/EXIgRMTW3Y6x5uqCw0SARnFYcee+swJ0WLnuqSKc1a36FaGbh149SWVwBuRAzGbSz1A+yFAVLbnP3ZJoSoykhAdv6X4LKR4TrhaGH3WGwDM8OPz0UOhW3CX7tMr68dbIMZSaVeJUzmyYJSbi8UIZ7kx+v8grnzbshJfiGonRJ56Km78B84qjorT938DV1C8qH1GTUEzNxl2IMATor2qE5ql4vk1o=
  • 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>

Hello, I have encountered a strange error which I have managed to reproduce in
the following code: https://pastebin.com/Rqjwtkpp (in the latest StarPU,
1.3.2).

The gist of the problem is that any buffers without explicit backing memory
(home node -1, null backing memory) are not passed through to the codelet
functions when running on combined workers through STARPU_SPMD. (And maybe
STARPU_FORKJOIN as well, but I've been unable to make "peager" planner run the
task on multiple workers for that case.)

Note that the whole interface in `buffers[1]` is NULL, not just the pointer to
data. This also causes crashes inside StarPU when tracing with FxT.

I have been unable to find a workaround yet.

The reproduction code demonstrates this by creating two buffer handles, one
with explicit memory and one without. The codelet then prints the memory
contents of the buffers. `buffer[0]` points to uninitialized (for simplicity),
but valid memory. `buffer[1]` is always NULL, unless the parallelism type is
changed.

I have also had a version of the code which wrote into the buffers in an
OpenCL kernel before passing them to the parallel CPU kernel. The writing has
worked, but the issue was still present.

Thank you and have a nice day,
Jan Polák




Archives gérées par MHonArc 2.6.19+.

Haut de le page