<div dir="ltr">On Fri, Jan 4, 2013 at 2:01 PM, Petar Petrovic <span dir="ltr"><<a href="mailto:ppetrovic573@gmail.com" target="_blank">ppetrovic573@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thank you very much. <br><br>Just, how do you suggest I do this, do you think its best to write something like an MPI master-slave program where master would read matrix A and the set of vectors b_i, i=1..n and send A and b_i to i-th slave to do the job? <br>
</div>What is the way to send a PETSc data structure like a matrix or a vector from a master process to a concrete slave process?<br>More generally, I am not sure what is the way to state that the for loop can be done in parallel and not sequentially. Can you perhaps point me to an example that does something similar?<br>
</div></blockquote><div><br></div><div style>You'll have to learn the basics of MPI programming. We have several tutorials on our site, some of which include video, that you could look at. You also might want to look at a book such as Using MPI.</div>
<div> </div></div><br></div></div>