<div dir="ltr"><div>MPI processes are fine, I didn't express myself clearly. Let me try with another example. <br>Lets say I need to solve n linear systems Ax = b_i, i=1..n and I want to do this in parallel. I would like to employ n processes to do this, so each i-th process does A\b_i, and they all run in parallel. Something like:<br>
</div><div><br>for(i=0; i<n; i++)<br></div><div> solve(Ax=b_i)<br><br></div><div>where I would like to run this for loop in parallel. Can I do this?<br></div><div> <br>Let me just note that it doesn't necessarily need to be a A\b operation. There are parts of my program that are embarrassingly parallel which I would like to exploit. <br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 4, 2013 at 8:05 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This is not supported due to logging/profiling/debugging features. Can you explain more about your problem and why you don't want to use MPI processes?<div>
<div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Jan 4, 2013 at 12:01 PM, Petar Petrovic <span dir="ltr"><<a href="mailto:ppetrovic573@gmail.com" target="_blank">ppetrovic573@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hello,<br>I have read that PETSc isn't thread safe, however I am not sure I understand in which way. What I would like to do is execute parts of my code that make calls to PETSc routines in parallel, for example,<br>
if I have matices A, B, C and D, is it possible to call MatMatMult(A,B) on one thread and MatMatMult(C,D) on the other thread in parallel? Is there an example which shows how to do something this, e.g. combine PETSc with mine MPI calls or something similar?<br>
</div><div>Thank you very much for your help.<br></div></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>