<div class="gmail_quote">On Mon, Jul 23, 2012 at 9:08 PM, Alexander Goncharov <span dir="ltr"><<a href="mailto:alexvg77@gmail.com" target="_blank">alexvg77@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello!<br>
<br>
I have a question about pthread support in PETSC. I could not find it in<br>
the development version. Is it going to be supported in the new release?<br>
<br>
The reason I tried development version is because in petsc-3.3 compiled<br>
with pthreadclasses=1 all jobs would be sent to one core, if I start<br>
executables separately. Same for MPI, mpirun -np 4 would show up as 4<br>
processes with 25% CPU usage each, in the "top" output. Without<br>
pthreadclasses all is ok. I would have processes with each utilizing<br>
separate core at 100%. Have you come across such a behavior?<br></blockquote><div><br></div><div><div>Sounds like an affinity problem. When running with multiple MPI processes and threads, you generally have to specify the number of threads manually.</div>
<div><br></div><div>The threading code is in the process of being overhauled to a cleaner and more flexible design. It's not ready for use yet, but should be in a couple months.</div></div></div>