Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

CESM ‘’PMPI_ALLGATHERV(1072): BUFFERS MUST NOT BE ALIASED‘’ ERROR

I am trying to use the reanalysis data to drive CESM. But it can't run, and the following error occurred. PMPI_Allgatherv(1072): Buffers must not be aliasedFatal error in PMPI_Allgatherv: Invalid buffer pointer, error stack:PMPI_Allgatherv(1124): MPI_Allgatherv(sbuf=0x7fff167e4748, scount=3, MPI_DOUBLE_PRECISION, rbuf=0x7fff167e4670, rcounts=0x7fff167e36f0, displs=0x7fff167e37f0, MPI_DOUBLE_PRECISION, comm=0x84000006) failedPMPI_Allgatherv(1072): Buffers must not be aliasedFatal error in PMPI_Allgatherv: Invalid buffer pointer, error stack:PMPI_Allgatherv(1124): MPI_Allgatherv(sbuf=0x7fff473610b8, scount=3, MPI_DOUBLE_PRECISION, rbuf=0x7fff47360ef0, rcounts=0x7fff4735ff70, displs=0x7fff47360070, MPI_DOUBLE_PRECISION, comm=0x84000006) failedPMPI_Allgatherv(1072): Buffers must not be aliasedFatal error in PMPI_Allgatherv: Invalid buffer pointer, error stack:PMPI_Allgatherv(1124): MPI_Allgatherv(sbuf=0x7fff5a308a28, scount=3, MPI_DOUBLE_PRECISION, rbuf=0x7fff5a3088f0, rcounts=0x7fff5a307970, displs=0x7fff5a307a70, MPI_DOUBLE_PRECISION, comm=0x84000006) failed Query a lot of web pages, and tried a lot of solutionsFor example, setting ‘setenv MPICH_NO_BUFFER_ALIAS_CHECK TRUE’ and ‘setenv I_MPI_COMPATIBILITY 4’ in env_mach_specific does not solve the problem.Setting ‘export MP_EUIDEVELOP=min’ in the environment variable still does not solve. Very distressed, is there any expert who knows other solutions?
 

jedwards

CSEG and Liaisons
Staff member
What version of the model?  What compiler?  What mpi?  This looks like an incompatibility between a particular mpi library and an older version of cesm.  If you can you may want to try a different mpi library.
 
Thank you for your reply.My modulefiles are : cesm/1.2.2    MPI/Intel/MPICH/3.1-icc13-dyn     intel-compilers/13.0.0  netcdf/4.3.2/02-CF-13I can use this set of configurations to run a case without MERRA nudging.Do I need to compile another version of MPI?
 

jedwards

CSEG and Liaisons
Staff member
You can try a different version of mpi or you can fix the aliasing leading to the error.   
 
I have tried mpi of ten versions of mpich-1.2.1, 1.5rc1, 3.0.1, 3.1.4, 3.1rc1, 3.2, 3.2a1, 3.3, etc., which can't solve this problem. Is there any other way?many thanks
 
Top