[petsc-users] OpenMP doesn't work anymore with PETSc building rules

Matthew Knepley knepley at gmail.com
Wed Oct 25 10:48:07 CDT 2023


On Wed, Oct 25, 2023 at 11:12 AM Qiyue Lu <qiyuelu1 at gmail.com> wrote:

> Hello,
> I have an in-house code enabled OpenMP and it works. Now I am trying to
> incorporate PETSc as the linear solver and build together using the
> building rules in $PETSC_HOME/lib/petsc/conf/rules. However, I found the
> OpenMP part doesn't work anymore.
> Should I re-configure the petsc installation with --with-openmp=1 option?
> I wonder are the building rules affected by this missing option?
>

There are parts of PETSc that are not threadsafe unless you configure using
--with-threadsafety. If you plan to call PETSc methods from different
threads, you need this.

  Thanks,

     Matt


> Thanks,
> Qiyue Lu
>


-- 
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

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231025/dcf945b0/attachment.html>


More information about the petsc-users mailing list