[Mpi-forum] Interest of changing lower bound in MPI_Type_create_resized
lecas@idris.fr
dimitri.lecas at idris.fr
Fri Dec 9 09:31:23 CST 2016
Le 12/08/2016 à 03:14 PM, Thakur, Rajeev a écrit :
> When MPI sends a message, the second datatype is taken from the location (lower bound + extent), the third datatype from (lower bound + 2*extent), and so on. So the lower bound does affect what is sent.
>
> Rajeev
>
This is not what i understand from the chapter 4.1.11 Use of General
Datatypes in Communication
If a datatype have n entries and we are sending count datatype
i=0,..., count-1
j=0,..,n-1
So the address in memory to get each entries is : addr(i,j) =
buf+extent*i+disp(j)
There is nowhere the usage of lower bound for having location of next
datatype.
buf is the argument in send/recv function.
>> On Dec 8, 2016, at 7:54 AM, lecas at idris.fr <dimitri.lecas at idris.fr> wrote:
>>
>> Hi,
>>
>> In MPI_Type_create_resized we can change the extent and the lower bound.
>>
>> I don't understand what is the interest of changing the lower bound,
>> since for sending message, only the extent is used.
>>
>> Is there an example where the value for lower bound in
>> MPI_Type_create_resized have a real impact ?
>>
>> Thanks
>>
>> --
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Dimitri Lecas
>>
>>
>> _______________________________________________
>> mpi-forum mailing list
>> mpi-forum at lists.mpi-forum.org
>> https://lists.mpi-forum.org/mailman/listinfo/mpi-forum
> _______________________________________________
> mpi-forum mailing list
> mpi-forum at lists.mpi-forum.org
> https://lists.mpi-forum.org/mailman/listinfo/mpi-forum
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dimitri Lecas
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2960 bytes
Desc: Signature cryptographique S/MIME
URL: <http://lists.mpi-forum.org/pipermail/mpi-forum/attachments/20161209/c847605e/attachment-0001.bin>
-------------- next part --------------
_______________________________________________
mpi-forum mailing list
mpi-forum at lists.mpi-forum.org
https://lists.mpi-forum.org/mailman/listinfo/mpi-forum
More information about the mpi-forum
mailing list