[CP2K:9846] Re: Build failure on 32bit

Michael Banck mba... at debian.org
Mon Jan 8 13:53:22 UTC 2018


Hi,

On Mon, Jan 08, 2018 at 05:42:10AM -0800, Alfio Lazzaro wrote:
> mp_max_memory_size is the maximum size for a MPI message, which I set to 
> 2GB (2*2^30), i.e.
> 
> mp_max_memory_size = 2*INT(2, KIND=MPI_ADDRESS_KIND)**30 
> 
> The error is that I have to subtract 1 on a 32bit system (Thanks Tiziano to 
> point me that)... However, this is exact what the HUGE function does, 
> therefore I changed the code in the trunk with:
> 
> -   INTEGER(KIND=MPI_ADDRESS_KIND), PARAMETER, PRIVATE :: 
> mp_max_memory_size = 2*INT(2, KIND=MPI_ADDRESS_KIND)**30 
> +   INTEGER(KIND=MPI_ADDRESS_KIND), PARAMETER, PRIVATE :: 
> mp_max_memory_size = HUGE(INT(1,KIND=int_4))
> 
> Could you try it?

Thanks for the quick fix, I've included the patch in the package and
uploaded it now - let's see what the autobuilders say (might take a few
hours for them to pick it up).


Michael



More information about the CP2K-user mailing list