Re: [OMPI users] Q regarding MPI_SHORT and MPI_Isend

2009-11-24 Thread Natarajan CS
Thanks everyone for the reply and happy Turkey day! Cheers! On Tue, Nov 24, 2009 at 10:46 AM, Jeff Squyres wrote: > On Nov 23, 2009, at 4:49 PM, Natarajan CS wrote: > > Oh okay that explains the behaviour of MPI_SHORT, guess sizeof is going to >> give me the same value no matter what MPI_Datat

Re: [OMPI users] Q regarding MPI_SHORT and MPI_Isend

2009-11-24 Thread Jeff Squyres
On Nov 23, 2009, at 4:49 PM, Natarajan CS wrote: Oh okay that explains the behaviour of MPI_SHORT, guess sizeof is going to give me the same value no matter what MPI_Datatype I use? Thanks for the quick response! Correct. MPI_ is just a handle to an internal MPI data structure. Its size

Re: [OMPI users] Q regarding MPI_SHORT and MPI_Isend

2009-11-24 Thread George Bosilca
Each predefined MPI datatype is mapped to a standard type. The table that defines this relation can be found in the MPI Standard (2.2) in Annex A page 534. george. On Nov 23, 2009, at 16:49 , Natarajan CS wrote: Oh okay that explains the behaviour of MPI_SHORT, guess sizeof is going to

Re: [OMPI users] Q regarding MPI_SHORT and MPI_Isend

2009-11-23 Thread Natarajan CS
Oh okay that explains the behaviour of MPI_SHORT, guess sizeof is going to give me the same value no matter what MPI_Datatype I use? Thanks for the quick response! On Mon, Nov 23, 2009 at 2:33 PM, Edmund Sumbar wrote: > On Mon, 23 Nov 2009, Natarajan CS wrote: > > [...] > > 1) When I use MPI_SH

Re: [OMPI users] Q regarding MPI_SHORT and MPI_Isend

2009-11-23 Thread Edmund Sumbar
On Mon, 23 Nov 2009, Natarajan CS wrote: [...] 1) When I use MPI_SHORT instead of short to count the number of data transferred I get an array that is half the size. (ie MPI_Isend(&data2[0][0][0], (int) (sizeof(data2)/sizeof(MPI_SHORT)), MPI_SHORT, rank, 123, cartcomm,&request[rank-1]); MPI_

[OMPI users] Q regarding MPI_SHORT and MPI_Isend

2009-11-23 Thread Natarajan CS
Hello all, I have 2 rather simple questions and have been scratching my head for the last hour for an answer. Probably just need a fresh pair of eyes!. My MPI lib is Intel MPI 3.2.1 The code segment that has been the bane of my last hour of existence is : if (MPI_Bcast(ssx,tp, MPI