Objet : Developers list for StarPU
Archives de la liste
Re: [Starpu-devel] Problem with partitioning matrix with starpu_matrix_filter_block
Chronologique Discussions
- From: Johan Mazel <johan.mazel@gmail.com>
- To: Samuel Thibault <samuel.thibault@inria.fr>, Johan Mazel <johan.mazel@gmail.com>, starpu-devel@lists.gforge.inria.fr
- Subject: Re: [Starpu-devel] Problem with partitioning matrix with starpu_matrix_filter_block
- Date: Thu, 9 Jan 2020 14:52:05 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=johan.mazel@gmail.com; spf=Pass smtp.mailfrom=johan.mazel@gmail.com; spf=None smtp.helo=postmaster@mail-pf1-f173.google.com
- Ironport-phdr: 9a23:p4hE7RILDrnrUEuar9mcpTZWNBhigK39O0sv0rFitYgeLfjxwZ3uMQTl6Ol3ixeRBMOHsqkC0bSP+Pu5EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCezbL9oMhm7rBjdusYYjId/N6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhTwZPDAl7m7Yls1wjLpaoB2/oRx/35XUa5yROPZnY6/RYc8WSW9HU81MVSJOH5m8YpMAAOoPP+lWr4fzqVgToxWgGQahH/ngxiNSi3LswaE2z+YsHAfb1wIgBdIOt3HUoc3xOqcVUeC61q/IxijEYfxM2Dby9ozIeQ0mrPGOWrJwcdDeyU81GwPAlFqRqJLqPzeO2+QCtmiU9etgVea1h2E7rAFxpyGiy8ExgYfKnoIY0k7I+Tl9zYovJtC1SFR3bcC5HJdMrS2WKol7T80kTmp1oig10KcGtoS+fCUSyJQo2Rrfa/uffoiN+B3jVeKRLS5ghHJrZb6znhiy/VWix+DyTMW031FKri1KktnIqH8BzQDc6s+CSvdl/0eh3yiA1xzL5+1aPUw5kbDXJp0hz7IqiJYfrFjPEjXrlEj0gqKabkAk9fKp6+TjbLXmvJicN4pshwH8NaQumtawAeIiPggLRWea+Pqz1Ln48E32RbVFlPw2kq3DvJ/GIsQbo7a1AxVJ3YY79xa/EzCm3cwDnXkbNl1FYgqHj5XwN17TPv/4E+mwg1C3nTdvxvDGJaHhAo7XInjMnrfheqx960FCxwYpzNBf4YhUCrAbL/7pVE/xro+QMhhsCAWx3uvjQOl914kXRGaTSvuCOabPvFvO+uIuKeCRYJM9uTDnKvFj6eS4yTcbnl8Ue+GM1IkabDjsHPNmKkPfZHP+j9MpHmIDvw54R+vv3hnKSiJafW6vGq4x+Dw/IIanFpvYAI+jh6aO0WG6GIdXbyZIEAOiC3DtIqeDW/4KIAebMMJl2mgGUrioTckk3AOjsCf1zrNmKqzf/ShO5sGr78R8++CGzUJ6zjdzFcnIljjVFzgozFNNfCc/2eVEmWI40k2KiPEqjPlRFNgV7PRMAF9jaMzsitdiAtW3YTrvO9eETFH8HIejCDA1C8o/mpoAOhkmXdqliR/H0myhBLpHz+XaVqxxybrV2j3KH+g4zn/H0Kc7iFx/G5lAMGSnguh08A2BXoM=
- 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>
Thank you very much for your quick answer.
I understand my problem now.
Best regards,
Johan
Le jeu. 9 janv. 2020 à 11:58, Samuel Thibault <samuel.thibault@inria.fr> a écrit :
Hello,
Johan Mazel, le mer. 08 janv. 2020 23:12:46 +0100, a ecrit:
> If I try to use starpu_matrix_filter_block (for example by decommenting line 51
> and 52 in test_starpu.c), I obtain the following results:
> * Worker 0 get values with index 0 -> 7.
The problem is not the partitioning: it is correct, as shown by
test_cpu: id (1804289383) ; nx: 2 ; ny: 4
The issue is in the data access in your test_cpu_func, you mustn't use
nx, but ld:
unsigned nx = STARPU_MATRIX_GET_NX(matrix_res);
unsigned ld = STARPU_MATRIX_GET_LD(matrix_res);
unsigned ny = STARPU_MATRIX_GET_NY(matrix_res);
for (j = 0; j < ny; j++) {
for (i = 0; i < nx; i++) {
printf("test_cpu: id (%u) ; res_m[%d,%d]: %lu\n", id, j, i, res_m[j*ld + i]);
}
}
Since partitioning is done in-place, ld really mustn't be ignored (and
it shouldn't be ignored in the general case anyway, because you never
know when you would change your code in a way that makes taking ld into
account mandatory)
Samuel
- [Starpu-devel] Problem with partitioning matrix with starpu_matrix_filter_block, Johan Mazel, 08/01/2020
- Re: [Starpu-devel] Problem with partitioning matrix with starpu_matrix_filter_block, Samuel Thibault, 09/01/2020
- Re: [Starpu-devel] Problem with partitioning matrix with starpu_matrix_filter_block, Johan Mazel, 09/01/2020
- Re: [Starpu-devel] Problem with partitioning matrix with starpu_matrix_filter_block, Samuel Thibault, 09/01/2020
Archives gérées par MHonArc 2.6.19+.