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

Tony Curtis anthony.curtis at stonybrook.edu
Fri Aug 6 16:29:09 EDT 2021



> On Aug 6, 2021, at 4:20 PM, BolañOs, Simon <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/05a83cb1/attachment.htm>


More information about the flash-users mailing list