MPI const compilations error in Ubuntu 14.04
Created by: williamfgc
Older OpenMPI 1.6.5 doesn't take first argument of MPI functions as const. Example:
/usr/lib/openmpi/include/mpi.h:1231:20: error:
initializing argument 1 of ‘int MPI_Gather(void*, int, MPI_Datatype, void*, int, MPI_Datatype, int, MPI_Comm)’ [-fpermissive]
OMPI_DECLSPEC int MPI_Gather(void *sendbuf, int sendcount, MPI_Datatype sendtype,
More recent versions, e.g. OpenMPI 1.10, have MPI_Gather(const void* ...