Accéder au contenu.
Menu Sympa

starpu-devel - [Starpu-devel] data_unregister_submit() does not flush data from GPU to CPU

Veuillez patienter...

starpu-devel@inria.fr

Objet : Developers list for StarPU

Archives de la liste

[Starpu-devel] data_unregister_submit() does not flush data from GPU to CPU


Chronologique Discussions 
  • From: Aleksandr Mikhalev <aleksandr.mikhalev@kaust.edu.sa>
  • To: starpu-devel@lists.gforge.inria.fr
  • Cc: Hatem Ltaief <hatem.ltaief@kaust.edu.sa>
  • Subject: [Starpu-devel] data_unregister_submit() does not flush data from GPU to CPU
  • Date: Tue, 24 Jul 2018 16:18:36 +0300
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=aleksandr.mikhalev@kaust.edu.sa; spf=Pass smtp.mailfrom=aleksandr.mikhalev@kaust.edu.sa; spf=None smtp.helo=postmaster@mail-ed1-f46.google.com
  • Ironport-phdr: 9a23:ZGCKkh21biEEefWjsmDT+DRfVm0co7zxezQtwd8ZseIRLPad9pjvdHbS+e9qxAeQG9mDtbQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPYghEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7Vq4/Vyi84Kh3SR/okCYHOCA/8GHLkcx7kaZXrAu8qxBj34LYZYeYP+d8cKzAZ9MXXWpPUclMWSJCDI2ycYwBAPYaMOZds4X9okEDrRuiCQSuAu7k1z9GhmXx3a0/y+ksDQXG0xIjH9IVqnvUqsj6NL0PWu6yzanIzjXDYOlS2Tjj9ojDbxcsruuIXb1ucsrR0lMgFwXYgVWKs4DlOjKV1ucNs2eB6+pvS/yvhnUkqw5rvziv3dsshpPXiY0I11DI7z55z5wsKNC+VUV1YsakHYNOuy2GM4Z6WMAvTmFytCok1rELuoS3cScLxZg/2hLTd/iKf5KV7h/hSeqdOyp0iXx5dL6lmRq+7Fasx+vhXceuyllKtDBKktzUu3ANyRPT7s+HR+N4/ki72DaP0xnf5f9ZLkwpjKbbJZEsz78qmpoctkTDGSD2mEHog6OMakok/e2o5/zmYrXguJCcK5d5hh/iPqkqgMCyAuQ1PhIQU2SH+umwzrLu8EzhTLVPlPI2k63ZsJ7AJcQco660GxVa0oI95Ba8FDepytIYkmQdLF5ffRKHjovpO1HUL/D8E/i/nU+hkDRxyPDbJb3hHo/BIWben7f8Z7p98FRTxBIpzd9D/5JUFq0BIPXrV0/qqNzXFAU5MxSpw+r+FdpyyJ0eVnyLAqKCNKPSsESI5v40I+WWa48VtjH9K+Iq5/Hwl3M5mFkdfbOo3ZQNcny4EO5mcA2lZi/3nt4bCXpPsgcgQejCjFyZTSUVaHi1Ra0xoDA9EoOvS4nZFa63h7nU9SO2HYZfYGxcQnWNEnfhc4iaE6MFbC+ROcZnniZCULmiS4Yl2A+Gtwbn0KYhI+bJvDYR48GwnONp7vHewElhvQd/CN6QhiTUFzktzzE4AgQu1aU6mnRTj1KK0Kx2mftdTIAB5PpUSRt8OJLBifdzWYmrBlDxO+yRQVPjee2IRCkrR4ttkdwHfl1hXdiuk1bY1njyWuJHp/mwHJUxt5nk8T3xKsJ6kSuU0aAgixwrTpIKOzH4wKF48AfXCsjClEDLz6s=
  • 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 developers,

My name is Aleksandr, I am a post-doctoral fellow in KAUST. I work on STARS-H
project, a low-rank and hierarchical matrix market. I am about to submit
StarPU issue, related with data synchronisation between CPU and GPU. Attached
is a minimal working example, that I tested against several versions of
StarPU. Problem is StarPU does not copy output data from GPU to CPU if
corresponding handle is destroyed by starpu_data_unregister_submit(). The
same holds true for starpu_invalidate_data_submit(). If I understood
correctly, idea of “submit” functions is to hint StarPU to flush data from
GPU to CPU, but instead it simply purges data on GPU without update in the
main RAM. I could not find this problem in a bug tracker of StarPU, so I put
it in the mailing list.

If I miss any critical info about setup and execution of the example, just
let me now. This is how I did it:

1. I tested official release and 3 branches of git repository:
release 1.2.4
master branch (commit 5a69695aaeb434553ec193d184620c93311a4dc7)
starpu-1.2 branch (commit 02085cfbf9605106467f4bde52cf0abc7e7db0d3)
starpu-1.3 branch (commit 62cb08e2e2aa71e21847cad6cd02e0edb2d49c3a)

2. How I installed each StarPU from git repo:
./autogen.sh
./configure --disable-opencl --disable-build-examples --disable-starpu-top
--disable-build-doc --disable-build-tests --disable-starpufft
--disable-fortran --prefix=/starpu/path
make -j
make install

3. Test with "dmda" scheduler, result was the same for all tested versions:
data_unregister: OK
data_unregister_submit: WRONG
data_unregister_submit: WRONG


--

This message and its contents, including attachments are intended solely
for the original recipient. If you are not the intended recipient or have
received this message in error, please notify me immediately and delete
this message from your computer system. Any unauthorized use or
distribution is prohibited. Please consider the environment before printing
this email.


Regards,
Aleksandr.

Attachment: test.c
Description: Binary data




Archives gérées par MHonArc 2.6.19+.

Haut de le page