M1 MPI_ABORT when running LaserSlab simulation in FLASH
Hello,
I am currently trying to run LaserSlab simulation bundled in FLASH code that uses HYPRE. On a linux computer I can run it without problems but on my M1 Macbook Pro 16'' I have some MPI issues.
mpirun --mca mpi_abort_print_stack 1 -np 1 flash4
results in an error after simulation initialization:
.... *** Wrote plotfile to lasslab_hdf5_plt_cnt_0000 **** Initial plotfile written Driver init all done
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD with errorcode -1.
NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes. You may or may not see output from other processes, depending on exactly when Open MPI kills them.
[MFMC-0000-0004:37849] [0] func:0 libopen-pal.40.dylib 0x0000000103f82144 opal_backtrace_buffer + 56 [MFMC-0000-0004:37849] [1] func:1 libmpi.40.dylib 0x0000000103c5b59c ompi_mpi_abort + 228 [MFMC-0000-0004:37849] [2] func:2 flash4 0x0000000102916520 hypre_MPI_Abort + 12 [MFMC-0000-0004:37849] [3] func:3 flash4 0x000000010299a8e8 hypre_MAlloc + 132 [MFMC-0000-0004:37849] [4] func:4 flash4 0x00000001028f936c HYPRE_SStructGridCreate + 104 [MFMC-0000-0004:37849] [5] func:5 flash4 0x00000001028f755c hypre_sstructgridcreate_ + 56 [MFMC-0000-0004:37849] [6] func:6 flash4 0x0000000102738ba8 gr_hypresetupgrid_ + 1864 [MFMC-0000-0004:37849] [7] func:7 flash4 0x0000000102737a0c gr_hypregridstatus_ + 332 [MFMC-0000-0004:37849] [8] func:8 flash4 0x0000000102640f84 grid_advancediffusion_ + 180 [MFMC-0000-0004:37849] [9] func:9 flash4 0x0000000102672fa0 radtrans_ + 4432 [MFMC-0000-0004:37849] [10] func:10 flash4 0x000000010262aa44 driver_evolveflash_ + 1332 [MFMC-0000-0004:37849] [11] func:11 flash4 0x000000010299cc08 main + 40 [MFMC-0000-0004:37849] [12] func:12 dyld 0x00000001ad9d3e50 start + 2544
There is obviously something fishy with HYPRE and MPI on the macbook. Do you have any clue what is wrong?
I use following libraries:
MPI_PATH = /opt/homebrew/Cellar/open-mpi/4.1.5 HDF5_PATH = /opt/homebrew/Cellar/hdf5-mpi/1.12.2_1 HYPRE_PATH = /opt/homebrew/Cellar/hypre/2.28.0
Hi again,
so the problem seems to be in the Homebrew version of HYPRE. I installed HYPRE from the source code and suddenly everything works. Maybe the Homebrew version of HYPRE doesn't support HDF5-MPI. Can you please check it?
Cheers
Glad to hear you found the issue! Unfortunately, we can't debug or support Homebrew versions of libraries. It's great that installing from source worked for you—sometimes the pre-built packages lack certain features or configurations.
Cheers!