Trilinos icon indicating copy to clipboard operation
Trilinos copied to clipboard

Amesos: mumps solver gives segfault during SymbolicFactorization()

Open swiesheier opened this issue 1 year ago • 13 comments

When solving a small linear system (~8000 degrees of freedom), I produce the following stack trace

mumps

dmumps_c(&(MDS)); is referred to as "initialization of MUMPS" . That said, I am not sure whether my observation is a bug or not. I can factorize my matrix using Superlu_Dist or any serial package such as UMFPACK. Interestingly, even smaller problems (~1000 degrees of freedom) can be factorized with MUMPS.

Any ideas?

swiesheier avatar Jan 09 '24 11:01 swiesheier

@trilinos/amesos

cgcgcg avatar Jan 09 '24 13:01 cgcgcg

@swiesheier Could you double check that the matrix is not singular?

EDIT NVM, the issue seems to be in some ordering call using metis.

cgcgcg avatar Jan 09 '24 13:01 cgcgcg

@cgcgcg So likely a bug in metis/gmsh ?

Anything I can do to narrow down the problem? The gmsh library does not provide debug information I think.

Strange is that it works for small problems (~1,000 degrees of freedom).

swiesheier avatar Jan 09 '24 13:01 swiesheier

You could try to reproduce the bug with MUMPS directly to be sure.

cgcgcg avatar Jan 09 '24 14:01 cgcgcg

What do you mean? Making the call dmumps_c(...) directly without using trilinos?

swiesheier avatar Jan 09 '24 14:01 swiesheier

Right. But let's see if someone from the @trilinos/amesos team has more insight.

cgcgcg avatar Jan 09 '24 15:01 cgcgcg

@ndellingwood @iyamazaki Do you have any idea what could be happening here?

cgcgcg avatar Jan 16 '24 14:01 cgcgcg

I agree with @cgcgcg. The issue may not be the Amesos MUMPS interface, but may be with your MUMPS to METIS interfacing. It may be good to run MUMPS' example/test with the same matrix.

iyamazaki avatar Jan 16 '24 14:01 iyamazaki

@iyamazaki

MUMPS' example/test

Can you point me to that folder? They have no github repo if I am not mistaken.

swiesheier avatar Jan 16 '24 15:01 swiesheier

Under MUMPS, I see a directory called examples, @swiesheier .

iyamazaki avatar Jan 16 '24 15:01 iyamazaki

I can only access the include directory on my installation. On their website, I also see no source code. Can you give me a link, @iyamazaki

swiesheier avatar Jan 16 '24 15:01 swiesheier

Under my MUMPS directory, I have:

$ ls MUMPS_5.3.3
ChangeLog  CREDITS  doc  examples  include  INSTALL  lib  libseq  LICENSE  Makefile  Makefile.inc  Make.inc  MATLAB  PORD  README  SCILAB  src  VERSION

iyamazaki avatar Jan 16 '24 15:01 iyamazaki

@ndellingwood @iyamazaki Do you have any idea what could be happening here?

I don't have any direct experience using MUMPS, thanks for the suggestions @iyamazaki !

ndellingwood avatar Jan 16 '24 17:01 ndellingwood