PETSc and OpenMP

Barry Smith bsmith at mcs.anl.gov
Mon Oct 9 10:50:47 CDT 2006


   Patrick,

    Are you using "user level threads", that is your code stops 
and starts additional threads directly or are you using loop level
threads, that is OpenMPI manages all the threads for you. If the 
later you are fine, if the former make sure only one thread
makes PETSc calls.

   Barry


On Mon, 9 Oct 2006, Patrick Lechner wrote:

> Dear all,
> I am currently writing a code and try to combine PETSc and OpenMP (where
> PETSc will be used inside a parallel environment).
> My questions now are:
>   1. Is it safe to combine these libraries?
>   2. What will I have to consider to make my code work reliably?
> Thanks a lot for your help.
> Best wishes,
> Patrick
> 




More information about the petsc-users mailing list