[mpich2-dev] Fw: 32-bit ROMIO: What is the best solution?

Rajeev Thakur thakur at mcs.anl.gov
Fri Feb 29 17:42:22 CST 2008


I'd be surprised if there are any sizeof(int*) == sizeof(int) assumptions,
because compilers on 64-bit systems would have warned about them. But there
could be.
 
Rajeev


  _____  

From: William Gropp [mailto:gropp at mcs.anl.gov] 
Sent: Friday, February 29, 2008 11:30 AM
To: Brian Smith
Cc: mpich2-dev at mcs.anl.gov; Bob Cernohous; owner-mpich2-dev at mcs.anl.gov
Subject: Re: [mpich2-dev] Fw: 32-bit ROMIO: What is the best solution?


Any place where sizeof(int*) == sizeof(int) is assumed is just broken - if
its easy to separate those out, we'll just apply a fix for those, since
that's needed for any platform and under all conditions. The
sizeof(MPI_Aint) == sizeof(void*) assumption will require more care. 

Bill

On Feb 29, 2008, at 11:08 AM, Brian Smith wrote:



That's basically what we are doing. The problem is, there are a large number
of places throughout the code (not just in ROMIO) where there are casts that
assume MPI_Aint == sizeof(void*)==sizeof(int*)==sizeof(int), so we are
walking through all that code and seeing what the casts are doing and fixing
them as appropriate. 



William Gropp
Paul and Cynthia Saylor Professor of Computer Science
University of Illinois Urbana-Champaign



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mcs.anl.gov/mailman/private/mpich2-dev/attachments/20080229/fe4058d7/attachment.htm>


More information about the mpich2-dev mailing list