Sorry for the mistypo,
Jean-Pierre
---------------------- Forwarded by Jean-Pierre Prost/Watson/IBM Research
on 02/27/97 09:37 AM ---------------------------
From: Jean-Pierre Prost on 02/27/97 09:30 AM
To: snir @ watson.ibm.com
cc: mi-core @ mcs.anl.gov, mpi-io @ mcs.anl.gov
Subject: Re: canonical data representation (Document link not converted)
I fully agree with Marc on this issue. We should at least
achieve 2.
And requiring the user to remember if the numbers present in the
file are 64 bit or 32 bit besides the type itself is not unreasonable.
Jean-Pierre
(Embedded
image moved snir @ watson.ibm.com
to file: 02/26/97 09:23 PM
PIC31079.PCX)
To: hart @ fsl.noaa.gov
cc: mpi-core @ mcs.anl.gov (bcc: Jean-Pierre Prost/Watson/IBM Research)
Subject: canonical data representation
We can postpone dealing with canonical data representation, but we cannot
avoid altogether this issue, especially if we want to leave the door open
for interoperability. We have three choices
1, Ignore the issue
2. Put hooks in MPI that can be used to generate one or more specific data
encodings but postpone the specification for that encoding.
3. Specify a canonical encoding.
If we do not feel we can do 3, we should at least specify the MPI syntax
for 2, so that we can revisit the issue. I.e., if we cannot agree on a
canonical data encoding, we must, to the least, convince ourselves that
this can be later retrofited into MPI without requiring new functions.
By the way, there is one language that requires a canonical data
representation for its basic datatypes -- this is Java. So, if we were
doing an MPI binding for Java, the issue of canonical data representation
would not arise. Since Java implementations interoperate with C and C
interoperates with Fortran this, in principe, defines a "canonical" data
representation. It is canonical in the sense that each processor has a well
defined mechanism for mapping C or Fortran types to a sequence of bytes.
It is not canonical in the sense that there is a fixed encoding for 32 bit
integers, but not a fixed encoding for C values of type int. There is a
single representation of a 32 bit integer or of a 64 bit integer, but
different representations for int according as it is 32 bit or 64 bt long.
But this might well be what applications need: I doubt very much that users
will want 64 bit real numbers to be transparently truncated to 32 bits.
We were looking for a definition of "canonical" were the user will only
have to know that a file contains 5 floats, followed by 4 ints, followed by
20 chars. I suggest that we require the user to know that the file
contains 5 64 bit floating point numbers, followed by 4 32 bit integers,
followed by 20 byte characters, know what is the local size of its
datatypes, and declare variables accordingly.
##########################################
Jean-Pierre Prost
IBM T.J. Watson Research Center
PO Box 218
Yorktown Heights, NY 10598
USA
Phone: (914) 945 3225 - Fax: (914) 945 2141
Lotus Notes: Jean-Pierre Prost @ IBM Research
Internet: jpprost@watson.ibm.com
URL: http://www.research.ibm.com/people/p/prost/
##########################################
##########################################
Jean-Pierre Prost
IBM T.J. Watson Research Center
PO Box 218
Yorktown Heights, NY 10598
USA
Phone: (914) 945 3225 - Fax: (914) 945 2141
Lotus Notes: Jean-Pierre Prost @ IBM Research
Internet: jpprost@watson.ibm.com
URL: http://www.research.ibm.com/people/p/prost/
##########################################
--0__=MeYILNDb93o4TAfQFFuhjdCY7Za06kng1mNSFc5kqan3DIkcnELuLhSz
Content-type: application/octet-stream;
name="PIC31079.PCX"
Content-transfer-encoding: base64
CgUBCAAAAABoACwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAABaQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAD1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPH
E8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sTzRPHE8MTwhP1E9sT
zRPHE8MTwhPwEwzIBgzYE8wTxhPDE8IT7hPOBtcTzBPGE8MTE+wTwgbCBwbCEgbCEgbCEsUG1hPL
E8YTwxMT6hMMwgYHwgLCAwISwgfEEsMCwwbVE8sTxRPDExPpE8MGAwcCBwMCwhLDB8ISwgISwgLD
BtUTyhPFE8MTE+gTwgIHA8ICEw4DDgLDE8USwwLCEMIG1BPKE8UTwxMT5xMCAwcDAg4TDgITwgIS
D8ISD8ISBRICEcICwwbUE8oTxRPCExPmEwYCBwMCDgIOwgLDExITEhPCEg8GxgLDBtMMDAfJE8QT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AAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzApsrw
//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDAwNzA
psrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICAwMDA
wNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACAAICA
wMDAwNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACAgACA
AICAwMDAwNzApsrw//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////AAAAgAAAAIAAgIAAAACA
gACA//vwoKCkgICA/wAAAP8A//8AAAD//wD/AP//////
--0__=MeYILNDb93o4TAfQFFuhjdCY7Za06kng1mNSFc5kqan3DIkcnELuLhSz--