Do you know if this works in the trunk? If so, then it may just be a missing 
commit that should have come across to 1.8.2 and we can chase it down


On Aug 26, 2014, at 3:53 AM, Lisandro Dalcin <dalc...@gmail.com> wrote:

> I've just installed 1.8.2, something is still wrong with
> HINDEXED_BLOCK datatypes.
> 
> Please note the example below, it should print "ni=2" but I'm getting "ni=7".
> 
> $ cat type_hindexed_block.c
> #include <stdio.h>
> #include <mpi.h>
> int main(int argc, char *argv[])
> {
>  MPI_Datatype datatype;
>  MPI_Aint disps[] = {0,2,4,6,8};
>  int ni,na,nd,combiner;
>  MPI_Init(&argc, &argv);
>  MPI_Type_create_hindexed_block(5, 2, disps, MPI_BYTE, &datatype);
>  MPI_Type_get_envelope(datatype, &ni, &na, &nd, &combiner);
>  printf("ni=%d na=%d nd=%d combiner=%d\n", ni, na, nd, combiner);
>  MPI_Type_free(&datatype);
>  MPI_Finalize();
>  return 0;
> }
> 
> $ mpicc type_hindexed_block.c
> 
> $ ./a.out
> ni=7 na=5 nd=1 combiner=18
> 
> 
> -- 
> Lisandro Dalcin
> ============
> Research Scientist
> Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
> Numerical Porous Media Center (NumPor)
> King Abdullah University of Science and Technology (KAUST)
> http://numpor.kaust.edu.sa/
> 
> 4700 King Abdullah University of Science and Technology
> al-Khawarizmi Bldg (Bldg 1), Office # 4332
> Thuwal 23955-6900, Kingdom of Saudi Arabia
> http://www.kaust.edu.sa
> 
> Office Phone: +966 12 808-0459
> _______________________________________________
> devel mailing list
> de...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
> Link to this post: 
> http://www.open-mpi.org/community/lists/devel/2014/08/15709.php

Reply via email to