[FLASH-USERS] Compiling issue due to MPI with LaserSlab example

BolañOs, Simon sbolanos at UCSD.EDU
Fri Aug 6 18:47:36 EDT 2021


Thank you. Using the new function requires another argument, and I dont know which one. Hence, I think I will have to build OpenMPI with MPI1 compatibility. I am not sure how to do that. Should I download a openmpi1.10? Or are they another method?
Cheers,
Simon.
________________________________
From: Tony Curtis <anthony.curtis at stonybrook.edu>
Sent: Friday, August 6, 2021 13:29
To: BolañOs, Simon <sbolanos at UCSD.EDU>
Cc: flash-users at flash.uchicago.edu <flash-users at flash.uchicago.edu>
Subject: Re: [FLASH-USERS] Compiling issue due to MPI with LaserSlab example



On Aug 6, 2021, at 4:20 PM, BolañOs, Simon <sbolanos at UCSD.EDU<mailto:sbolanos at UCSD.EDU>> wrote:

Hello,
I am trying to compile the LaserSlab example (2D) but I got the following error when compiling :
/src/hypre/include -ggdb -c -O2 -Wuninitialized -D_FORTIFY_SOURCE=2 -Wno-error=implicit-function-declaration -DFLASH_3T -DMAXBLOCKS=1000 -DNXB=16 -DNYB=16 -DNZB=1 -DN_DIM=2 -DDarwin io_set_grid_mpi_types.c
io_set_grid_mpi_types.c:198:8: error: expected expression
        err = MPI_Type_extent(varStencil,&printNewExtent);
              ^
/opt/homebrew/include/mpi.h:2865:31: note: expanded from macro 'MPI_Type_extent'
#define MPI_Type_extent(...)  THIS_FUNCTION_WAS_REMOVED_IN_MPI30(MPI_Type_extent, MPI_Type_get_extent)
                              ^
/opt/homebrew/include/mpi.h:327:59: note: expanded from macro 'THIS_FUNCTION_WAS_REMOVED_IN_MPI30'
#define THIS_FUNCTION_WAS_REMOVED_IN_MPI30(func, newfunc) _Static_assert(0, #func " was removed in MPI-3.0.  Use " #newfunc " instead.")

It seems a MPI function has been deprecated. Do you know how to circumvent such an issue?

The output above explains how to rename the routine (the middle line @ 2865).  Also, e.g. Open-MPI can be built with MPI1 compatibility if you want to go that kind of route.

Tony

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20210806/a4f14be1/attachment-0001.htm>


More information about the flash-users mailing list