<div dir="ltr"><div dir="ltr">On Wed, Oct 25, 2023 at 11:12 AM Qiyue Lu <<a href="mailto:qiyuelu1@gmail.com">qiyuelu1@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<br><div>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. </div><div>Should I re-configure the petsc installation with --with-openmp=1 option? I wonder are the building rules affected by this missing option?</div></div></blockquote><div><br></div><div>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.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Thanks,</div><div>Qiyue Lu</div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>