<div class="gmail_quote">On Tue, May 8, 2012 at 9:23 PM, Dave Nystrom <span dir="ltr"><<a href="mailto:dnystrom1@comcast.net" target="_blank">dnystrom1@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":166">I see that petsc-dev now has some OpenMP support.  Would a serial, non-mpi<br>
code that uses petsc-dev be able to gain much performance improvement from it<br>
now for the case of doing sparse linear solve with cg and jacobi<br>
preconditioning?</div></blockquote></div><br><div>The kernels are being transitioned to use the threadcomm, which enables OpenMP and other threading models.</div><div><br></div><div>We anticipate that pthreads will provide the best performance because operations can be less synchronous than with OpenMP (for which a parallel  region implies barrier semantics). But if other parts of an application are using OpenMP, it would be preferable for PETSc to also use OpenMP so that it can share the same thread pool. The same applies to TBB.</div>