On Wed, Oct 25, 2023 at 11:12 AM Qiyue Lu <[email protected]> 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/>

Reply via email to