geodynamics / pylith

PyLith is a finite element code for the solution of dynamic and quasi-static tectonic deformation problems.
Other
154 stars 98 forks source link

pylith generates an MPI error if run offline #770

Open baagaard-usgs opened 2 months ago

baagaard-usgs commented 2 months ago

Describe the bug

In using the PyLith binary offline, the following error often occurs

Abort(941216911): Fatal error in internal_Init: Other MPI error, error stack:
internal_Init(66)........: MPI_Init(argc=0x30e02abe8, argv=0x30e02abe0) failed
MPII_Init_thread(234)....: 
MPID_Init(513)...........: 
MPIDI_OFI_init_local(580): OFI fi_fabric failed (ofi_init.c:580:MPIDI_OFI_init_local:Invalid argument)

This appears to be related to the hostname.

baagaard-usgs commented 1 week ago

The workaround is to use sockets for MPI communication by setting the environment variable IF_PROVIDER to sockets.

export FI_PROVIDER=sockets