Objet : Developers list for StarPU
Archives de la liste
- From: Maxim Abalenkov <maxim.abalenkov@gmail.com>
- To: Nathalie Furmento <nathalie.furmento@labri.fr>
- Cc: starpu-devel@lists.gforge.inria.fr
- Subject: Re: [Starpu-devel] [daxpy with StarPU-MPI]
- Date: Wed, 17 Oct 2018 15:56:51 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=maxim.abalenkov@gmail.com; spf=Pass smtp.mailfrom=maxim.abalenkov@gmail.com; spf=None smtp.helo=postmaster@mail-wr1-f43.google.com
- Ironport-phdr: 9a23:+51lqBArmPaHLXFin9zAUyQJP3N1i/DPJgcQr6AfoPdwSPTzosbcNUDSrc9gkEXOFd2Cra4c1KyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUhjexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Qiqp4bt1RxD0iScHLz85/3/Risxsl6JQvRatqwViz4LIfI2ZMfxzdb7fc9wHX2pMRsZfWS9dDYyzcoUBAegOM/hWr4f6vFYBtweyBQy2CePv1jNFhHn71rA63eQ7FgHG2RQtEdUUv3XbrdX1MboZXPyuw6bSyTXMcfVW2TT66IjWbxsspvSMUqh/cMrQzEkjDRnKgU6KpozhITyV0OcNs2+F7+d7WuKvjnQoqwB1ojS12sgsjYzJi5sTx1vZ+yt5x4M1Kse5SE59edOkH5pQtz2eN4RsWcwuWWBouCE8x7YbupC7ZDAHxIo7yxPbcfCKcIiF7gj9WOqPPDt0nn1odbynixqv/0Ws1vfwW8q33VpQsCZIncXAumoO2hHQ7MWMV+Fz8V272TmV0gDe8uFELl4wlarcM5Mhx6Q/lpsXsUjaEC72glj6gLaYdkgr9OWk8evnYrLhpp+TM497lBvyPbgpmsy6Geg4Mw4OUHaH+emkyrHv4Un0TK9Jg/A2iKXVro7WKdkBqqO2DQJZyoMj5Ay+Dzei3tQYh34HLFdddRKClYfoNFDOIPXiAfilmFujijNryO7APr3iBZXNMGPOkLjkfbln6k5czBA/wsxY55JREr0BOu78WlfttNzECR80Kxe0w/r9B9VnzoMeRHuDDbKHP6PMr1CI4vkiI+2NZI8OpDb9MOIp5/HgjX8+g18dcrem0YEWaHC+BPRmIl+WbWDigtcbQi82uV8YRfDqgVmDXHZ9emy3UqQg4XlvDou6DY7HR43rjqGb2Sq9App+YmlMEFHKH22+JKueXPJZTSuCI8opuzYNUbWnSIg/nUWrvR/7zvxuJOPQ9ysbsozL29185umVnhY3o28nR/+B2n2AGjkn1lgDQCU7ieUm+RQkmwWzlJNgivkdLuR9ovZAUwM0L5nZlrUoBNX7WwaHddCMGg//HoeWRAopR9d0+OcgJl5nEoz73B/G1iuuRbQSku7TXcFmwufnx3H0Yv1F5TPG2a0m1QR0R8JOMSi5nPc6+VSIQYHOlEqdmuChcqFOhCM=
- 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 Nathalie,
False alarm. I have got it working on a Mac too. There was an error related to saving the vector segments into files.
Maybe, I can contribute this example to the StarPU-MPI examples collection in the Git repository?
—
Best wishes,
Maxim
On 17 Oct 2018, at 15:51, Maxim Abalenkov <maxim.abalenkov@gmail.com> wrote:Dear Nathalie,<daxpy_mpi.c>Thank you very much for your help. I have corrected the mistakes you noticed. The code runs and computes the result correctly on Linux. However, it still crashes with the SIGABRT error on Mac. Please find the debug log attached. Unfortunately, I can’t get a more meaningful output from it.—Best wishes,Maxim<daxpy_mpi.h><gdb.log><Makefile><tst_daxpy_mpi.c>On 17 Oct 2018, at 14:09, Nathalie Furmento <nathalie.furmento@labri.fr> wrote:Here some mistakes i found in your code.
* when allocating hx and hy, you should specify sizeof(starpu_data_handle_t) and not sizeof(starpu_data_handle_t*)
// allocate data handles
starpu_data_handle_t *hx = (starpu_data_handle_t *) malloc((size_t)NT*sizeof(starpu_data_handle_t));
starpu_data_handle_t *hy = (starpu_data_handle_t *) malloc((size_t)NT*sizeof(starpu_data_handle_t));
* you need to check if hx[i] and hy[i] are valid before calling starpu_data_unregister()
// unregister vector handles
for (int i = 0; i < NT; i++)
{
if (hx[i]) starpu_data_unregister(hx[i]);
if (hy[i]) starpu_data_unregister(hy[i]);
}
Everything else seems ok, let us know if it keeps failing, and more important, a backtrace of your segfault would be really useful. We cannot guess otherwise how it fails.
Cheers,
Nathalie
On oct. 17, 12:54, Maxim Abalenkov wrote:Dear Samuel et al.,
I hope all is well with you. Would you please be so kind to check the logic of my StarPU-MPI “daxpy” code? I’m following the Handbook code snippet on StarPU-MPI. I use two vectors x, y of length N=10 split into NT=5 segments nb=2 elements each. Running on a single processor with mpiexec -np 1 ./tst_daxpy_mpi the first three segments are calculated correctly, while the last two are unchanged. It seems there is a synchronisation issue. In case I launch the code on two CPUs it crashes with a segmentation fault. Thank you and have a good day ahead!
—
- [Starpu-devel] [daxpy with StarPU-MPI], Maxim Abalenkov, 16/10/2018
- Re: [Starpu-devel] [daxpy with StarPU-MPI], Samuel Thibault, 16/10/2018
- Re: [Starpu-devel] [daxpy with StarPU-MPI], Maxim Abalenkov, 16/10/2018
- Re: [Starpu-devel] [daxpy with StarPU-MPI], Maxim Abalenkov, 17/10/2018
- Re: [Starpu-devel] [daxpy with StarPU-MPI], Nathalie Furmento, 17/10/2018
- Re: [Starpu-devel] [daxpy with StarPU-MPI], Maxim Abalenkov, 17/10/2018
- Re: [Starpu-devel] [daxpy with StarPU-MPI], Maxim Abalenkov, 17/10/2018
- Re: [Starpu-devel] [daxpy with StarPU-MPI], Nathalie Furmento, 17/10/2018
- Re: [Starpu-devel] [daxpy with StarPU-MPI], Maxim Abalenkov, 17/10/2018
- Re: [Starpu-devel] [daxpy with StarPU-MPI], Maxim Abalenkov, 17/10/2018
- Re: [Starpu-devel] [daxpy with StarPU-MPI], Nathalie Furmento, 17/10/2018
- Re: [Starpu-devel] [daxpy with StarPU-MPI], Maxim Abalenkov, 17/10/2018
- Re: [Starpu-devel] [daxpy with StarPU-MPI], Maxim Abalenkov, 16/10/2018
- Re: [Starpu-devel] [daxpy with StarPU-MPI], Samuel Thibault, 16/10/2018
Archives gérées par MHonArc 2.6.19+.