MPI_Allreduce: MPI_ERR_BUFFER: invalid buffer pointer
I can run several test problems without issue on 1 node, for example:
python ns channel piso dt_division=10 supg_bool=True u_order=1 refinement_level=0
works just fine. It requires 512 time steps.
But as soon as I try to run it using MPI I get:
Time step 511 finished in 0.04 seconds, 99.8% done (t=0.499, T=0.5; 00:00:00 remaining).
-------
Process 0: Solving nonlinear variational problem.
Process 0: Solving linear system of size 128 x 128 (PETSc Krylov solver).
Process 0: Newton iteration 1: r (abs) = 6.519e-04 (tol = 1.000e-05) r (rel) = 1.000e-02 (tol = 1.000e-05)
Process 0: Solving linear system of size 128 x 128 (PETSc Krylov solver).
Process 0: Newton iteration 2: r (abs) = 6.519e-06 (tol = 1.000e-05) r (rel) = 1.000e-04 (tol = 1.000e-05)
Process 0: Newton solver finished in 2 iterations and 18 linear solver iterations.
Process 0: Solving linear system of size 64 x 64 (PETSc Krylov solver).
Process 0: Solving linear system oProcess 1: Solving nonlinear variational problem.
Process 1: Solving nonlinear variational problem.
Process 1: Solving nonlinear variational problem.
Process 1: Solving nonlinear variational problem.
Process 1: Solving nonlinear variational problem.
Process 1: Solving nonlinear variational problem.
Process 1: Solving nonlinear variational problem.
Process 1: Evaluating at x = <Point x = 1 y = 0.5 z = 0>
Process 3: Solving nonlinear variational problem.
Process 3: Solving nonlinear variational problem.
Process 3: Solving nonlinear variational problem.
Process 3: Solving nonlinear variational problem.
Process 3: Solving nonlinear variational problem.
Process 3: Solving nonlinear variational problem.
Process 3: Solving nonlinear variational problem.
Process 3: Evaluating at x = <Point x = 1 y = 0.5 z = 0>
Process 7: Solving nonlinear variational problem.
Process 7: Solving nonlinear variational problem.
Process 7: Solving nonlinear variational problem.
Process 7: Solving nonlinear variational problem.
Process 7: Solving nonlinear variational problem.
Process 7: Solving nonlinear variational problem.
Process 7: Solving nonlinear variational problem.
Process 7: Evaluating at x = <Point x = 1 y = 0.5 z = 0>
Process 4: Solving nonlinear variational problem.
Process 4: Solving nonlinear variational problem.
Process 4: Solving nonlinear variational problem.
Process 4: Solving nonlinear variational problem.
Process 4: Solving nonlinear variational problem.
Process 4: Solving nonlinear variational problem.
Process 4: Solving nonlinear variational problem.
Process 4: Evaluating at x = <Point x = 1 y = 0.5 z = 0>
f size 128 x 128 (PETSc Krylov solver).
Process 0: Solving linear system of size 64 x 64 (PETSc Krylov solver).
Process 0: Solving nonlinear variational problem.
Process 0: Solving linear system of size 128 x 128 (PETSc Krylov solver).
Process 0: Newton iteration 1: r (abs) = 6.530e-08 (tol = 1.000e-05) r (rel) = 1.000e-02 (tol = 1.000e-05)
Process 0: Newton solver finished in 1 iterations and 10 linear solver iterations.
Process 0: Evaluating at x = <Point x = 1 y = 0.5 z = 0>
Traceback (most recent call last):
File "ns", line 217, in <module>
result = main(args)
File "ns", line 192, in main
u, p = solver.
File "/scratch/
self.
File "/scratch/
M = problem.
File "/scratch/
return self.uEval(u, 0, (1.0, 0.5))
File "/scratch/
return self.eval(func, point)[component]
File "/scratch/
M[i] = MPI.sum(M[i])/N
File "/scratch/
return _common.
Exception: MPI_Allreduce: MPI_ERR_BUFFER: invalid buffer pointer
Traceback (most recent call last):
File "ns", line 217, in <module>
result = main(args)
File "ns", line 192, in main
u, p = solver.
File "/scratch/
self.
File "/scratch/
M = problem.
File "/scratch/
return self.uEval(u, 0, (1.0, 0.5))
File "/scratch/
return self.eval(func, point)[component]
File "/scratch/
M[i] = MPI.sum(M[i])/N
File "/scratch/
return _common.
Exception: MPI_Allreduce: MPI_ERR_BUFFER: invalid buffer pointer
Traceback (most recent call last):
File "ns", line 217, in <module>
result = main(args)
File "ns", line 192, in main
u, p = solver.
File "/scratch/
self.
File "/scratch/
M = problem.
File "/scratch/
return self.uEval(u, 0, (1.0, 0.5))
File "/scratch/
return self.eval(func, point)[component]
File "/scratch/
M[i] = MPI.sum(M[i])/N
File "/scratch/
return _common.
Exception: MPI_Allreduce: MPI_ERR_BUFFER: invalid buffer pointer
Any ideas? A simple test script runs fine with MPI.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Damiaan
- Solved:
- Last query:
- Last reply: