← Back to team overview

dolfin team mailing list archive

[Bug 661342] Re: Importing PyTrilinos can cause MPI crash

 

Problem is that PyTrilinos does not check for MPI responsibility, plus
it finalises MPI using a function added to 'atexit', which is called
before some objects are destroyed.

In some cases, careful import order can avoid errors. Using PyTrilinos
and PETSc together will always crash. Using the two together is not so
crazy - Trilinos now supports the use of PETSc matrices and vectors. If
essential, a hack that should work is to to remove the Epetra MPI
finalize function from the atexit list.

** Changed in: dolfin
       Status: New => Won't Fix

-- 
Importing PyTrilinos can cause MPI crash
https://bugs.launchpad.net/bugs/661342
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.

Status in DOLFIN: Won't Fix

Bug description:
The import order appears to be very important with PyTrlinos, and can cause some MPI problems. 
In the below code, order doesn't help. The program just crashes.

from PyTrilinos import Epetra
from dolfin import *
parameters["linear_algebra_backend"] = "Epetra"
xx = PETScVector(20)





References