Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[smpi] Allow zero-sized custom datatypes with MPI_Type_contiguous()
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 2 Sep 2014 11:29:28 +0000 (13:29 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 2 Sep 2014 11:43:18 +0000 (13:43 +0200)
commit105c1b117af96a9f150b5c06ed68209a8c66e052
treeb120dd1356437de521d5c3d4e7728995a813bf92
parent91436b33a0051d683daf3301a84132b93348d171
[smpi] Allow zero-sized custom datatypes with MPI_Type_contiguous()

MPI_Type_contiguous(0, oldtype, newtype) is valid in MPI but SMPI does
not accept it as the resulting datatype is considered invalid: SMPI
does not accept datatypes with size of 0. Fix the datatype validation
function in order to accept this.

This type of datatype is used in bcastzerotype.

bcast-NTSL is fixed as well (division by zero).
src/smpi/colls/bcast-NTSL.c
src/smpi/smpi_mpi_dt.c