Error: Insufficient space in Bsend buffer

Discussion about building and installing Elmer
Post Reply
vencels
Posts: 63
Joined: 20 Sep 2016, 17:05
Antispam: Yes
Location: Latvia
Contact:

Error: Insufficient space in Bsend buffer

Post by vencels »

Hi,

I get an error related to MPI on Windows 10. MPI version is one that comes with Elmer.
The case has ~1M elements, memory >20GB. When running the case in serial without MPI, it works.

Is this buffer size hardcoded (e.g., CheckBuffer @ SParIterComm.F90) or there is a way to increase it?

Code: Select all

SolveLinearSystem: Parallel linear System Solver: iterative
SParIterSolver: Solving linear in parallel with iterative methods
IterSolver: Using iterative method: bicgstabl
IterSolver: Matrix is complex valued

job aborted:
[ranks] message

[0-10] terminated

[11] fatal error
Fatal error in MPI_Bsend: Invalid buffer pointer, error stack:
MPI_Bsend(buf=0x000002037CE64B60, count=149008, MPI_DOUBLE_PRECISION, dest=9, tag=6001, comm=0x84000000) failed
Insufficient space in Bsend buffer; requested 1192064; total buffer size is 6847912

---- error analysis -----

[11] on DESKTOP-KFHJ6TB
mpi has detected a fatal error and aborted ElmerSOlver_mpi

---- error analysis -----
kevinarden
Posts: 2237
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Error: Insufficient space in Bsend buffer

Post by kevinarden »

There is no MPI supplied with Elmer, Elmer uses the MPI on your machine. However Elmer is programmed to use MPI on your machine, and Bsend buffer is a default size in mpi programming, it can be controlled by the programmer.

https://learn.microsoft.com/en-us/messa ... d-function

Most programmers do not do this by default.
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Error: Insufficient space in Bsend buffer

Post by raback »

Hi Juris, Could you locate the line calling this? Perhaps adding output level you could narrow it down a bit if no proper way under Windows. -Peter
Post Reply