[petsc-users] PETSc and threads

Jed Brown jedbrown at mcs.anl.gov
Fri Jan 4 14:43:09 CST 2013


On Fri, Jan 4, 2013 at 2:01 PM, Petar Petrovic <ppetrovic573 at gmail.com>wrote:

> Thank you very much.
>
> 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?
> 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?
> 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?
>

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130104/e992b71b/attachment.html>


More information about the petsc-users mailing list