[mpi-22] FW: [mpi-21] Proposal: MPI_OFFSET built-in type

Rajeev Thakur thakur at [hidden]
Thu Jan 24 11:18:52 CST 2008



A similar one is needed for MPI_Aint.

Rajeev 

> -----Original Message-----
> From: mpi-22-bounces_at_[hidden] 
> [mailto:mpi-22-bounces_at_[hidden]] On Behalf Of Richard Graham
> Sent: Thursday, January 24, 2008 11:09 AM
> To: mpi-22_at_[hidden]
> Subject: [mpi-22] FW: [mpi-21] Proposal: MPI_OFFSET built-in type
> 
> Moving this to the appropriate list.
> 
> Rich
> 
> ------ Forwarded Message
> From: Robert Latham <robl_at_[hidden]>
> Reply-To: "Mailing list for discussion of MPI 2.1" 
> <mpi-21_at_[hidden]>
> Date: Thu, 24 Jan 2008 10:41:52 -0600
> To: <mpi-21_at_[hidden]>
> Subject: [mpi-21] Proposal: MPI_OFFSET built-in type
> 
> I hope this is less contentious than adding 'const' keywords...
> 
> 
> I would like to propose a new built-in type MPI_OFFSET, defined to be
> a type corresponding to INTEGER(KIND=MPI_OFFSET_KIND) or MPI_Offset
> 
> This is a minor addition to the standard, which would have no impact
> on existing code while serving to simplify code which exchanges file
> offsets among processes.
> 
> There is a workaround in the standard: a user can define a type from
> MPI_BYTE:
> 
>  MPI_Type_contiguous(sizeof(MPI_Offset), MPI_BYTE, &offtype);
> 
> However, it would clearly be more convienient to operate on built-in
> types.  
> 
> MPI Datatype: MPI_OFFSET
> Corresponding C type: long long int
> Corresponding Fortran type: INTEGER(KIND=MPI_OFFSET_KIND)
> 
> 
> Thanks
> ==rob
> 
> -- 
> Rob Latham
> Mathematics and Computer Science Division    A215 0178 EA2D B059 8CDF
> Argonne National Lab, IL USA                 B29D F333 664A 4280 315B
> _______________________________________________
> mpi-21 mailing list
> mpi-21_at_[hidden]
> http://lists.cs.uiuc.edu/mailman/listinfo/mpi-21
> 
> ------ End of Forwarded Message
> 
> _______________________________________________
> mpi-22 mailing list
> mpi-22_at_[hidden]
> http://lists.cs.uiuc.edu/mailman/listinfo/mpi-22
> 
> 



More information about the Mpi-22 mailing list