Re: [OMPI users] unexpected behavior when combining MPI_Gather and MPI_Type_vector

2021-12-16 Thread George Bosilca via users
t; >> MPI_Type_vector (Gilles Gouaillardet) >> >> >> ---------- >> >> Message: 1 >> Date: Thu, 16 Dec 2021 10:29:27 +0100 >> From: Jonas Thies >> To: users@lists.open-mpi.org >>

Re: [OMPI users] unexpected behavior when combining MPI_Gather and MPI_Type_vector

2021-12-16 Thread Jonas Thies via users
i.org> Subject: [OMPI users] unexpected behavior when combining MPI_Gather and MPI_Type_vector Message-ID:<64075574-7a58-b194-208f-d455c10c8...@tudelft.nl> <mailto:64075574-7a58-b194-208f-d455c10c8...@tudelft.nl> Content-Type: text/plain; charset="utf-8&

Re: [OMPI users] unexpected behavior when combining MPI_Gather and MPI_Type_vector

2021-12-16 Thread George Bosilca via users
t; MPI_Type_vector (Gilles Gouaillardet) > > > -- > > Message: 1 > Date: Thu, 16 Dec 2021 10:29:27 +0100 > From: Jonas Thies > To: users@lists.open-mpi.org > Subject: [OMPI users] unexpected behavior when combining MPI_Gather >

Re: [OMPI users] unexpected behavior when combining MPI_Gather and MPI_Type_vector

2021-12-16 Thread Jonas Thies via users
for that. Best, Jonas MPI_Type_vector (Gilles Gouaillardet) -- Message: 1 Date: Thu, 16 Dec 2021 10:29:27 +0100 From: Jonas Thies To: users@lists.open-mpi.org Subject: [OMPI users] unexpected behavior when combining MPI_Gather

Re: [OMPI users] unexpected behavior when combining MPI_Gather and MPI_Type_vector

2021-12-16 Thread Gilles Gouaillardet via users
Jonas, In case I misunderstood your question and you want to print v_glob on P0: 9x2 0 9 1 10 2 11 3 12 4 13 5 14 6 15 7 16 8 17 then you have to fix the print invocation // note: print an additional column to show the displacement error we get: if (!rank) print("v_glob", rank, n, m,

Re: [OMPI users] unexpected behavior when combining MPI_Gather and MPI_Type_vector

2021-12-16 Thread Gilles Gouaillardet via users
Jonas, Assuming v_glob is what you expect, you will need to `MPI_Type_create_resized_type()` the received type so the block received from process 1 will be placed at the right position (v_glob[3][1] => upper bound = ((4*3+1) * sizeof(int)) Cheers, Gilles On Thu, Dec 16, 2021 at 6:33 PM Jonas

[OMPI users] unexpected behavior when combining MPI_Gather and MPI_Type_vector

2021-12-16 Thread Jonas Thies via users
Dear OpenMPI community, Here's a little puzzle for the Christmas holidays (although I would really appreciate a quick solution!). I'm stuck with the following relatively basic problem: given a local nloc x m matrix X_p in column-major ordering on each MPI process p, perform a single