[petsc-users] [SOLVED] make test freeze

Matthew Knepley knepley at gmail.com
Fri Jan 6 10:24:24 CST 2017


On Fri, Jan 6, 2017 at 10:08 AM, Patrick Begou <
Patrick.Begou at legi.grenoble-inp.fr> wrote:

> Hi Matthew,
>
> Using the debuguer I finaly found the problem. It is related to MPI. In
> src/sys/objects/pinit.c line 779, petsc test the availability of
> PETSC_HAVE_MPI_INIT_THREAD and this is set to True beccause my OpenMPI
> version is compiled with  --enable-mpi-thread-multiple.
> However the call to MPI_Init_thread(argc,args,MPI_THREAD_FUNNELED,&provided)
> hangs and freeze the application.
>
> Unsetting PETSC_HAVE_MPI_INIT_THREAD in petsc solves the problem.
>
> I remember a HPC seminar on BULLX systems where they give us some
> informations about known problems whith the MPI_Init_thread call in
> openMPI. May be I should use a more recent version of OpenMPI. This also
> explain why I had this problem with previous versions of petsc (same
> OpenMPI environment).
> None of our codes mixes OpenMP and MPI.... so I never fall in this
> situation in production and petsc always behave fine (excepted for make
> test).
>

Thanks for finding this.


> Is there a way to turn off PETSC_HAVE_MPI_INIT_THREAD at configure time
> for Petsc ? I've manualy removed it in the generated petscconf.h file
> before compiling Petsc in debug mode but I don't think it is the best way
> to to this.....
>

Right now, no. I will talk to everyone to figure out the best solution and
update our release tarball.

  Thanks,

     Matt


> Thanks for your help in running separatly the test codes.
>
> Patrick
>
> --
> ===================================================================
> |  Equipe M.O.S.T.         |                                      |
> |  Patrick BEGOU           | mailto:Patrick.Begou at grenoble-inp.fr |
> |  LEGI                    |                                      |
> |  BP 53 X                 | Tel 04 76 82 51 35                   |
> |  38041 GRENOBLE CEDEX    | Fax 04 76 82 52 71                   |
> ===================================================================
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170106/78e2e2c7/attachment.html>


More information about the petsc-users mailing list