I am trying to create a datatype that may sometimes have a size of 0.
Specifically I am creating an MPI_TYPE_STRUCT with a count that may be
0. (Obviously it will not always be 0 otherwise it would be pointless
to have such a datatype). On my local machine, that has a recent
version of MPICH2, this seems to work fine.
However, on a remote machine, that has a custom version of MPICH1, I
run into problems. For the program I am writing I get
- no error when creating the first such datatype
- An error "0 - MPI_TYPE_COMMIT : Datatype is MPI_TYPE_NULL", when
commiting the second datatype (bit strange since I can't find
MPI_TYPE_NULL in the docs, I can only find MPI_DATATYPE_NULL).
For a short test program I have written to investigate this I get
- An error "0 - <NO ERROR MESSAGE> : Could not convert index 136657736
into a pointer", when committing the datatype.
Is it valid to have a datatype with a size of zero?
||12/14/2006 3:38:10 PM