> I am trying to use openmp in the element assemble procedure of step-40. Has
> anyone done this before? Any advice is appreciated.
Our implementation of PETScWrappers is not thread-safe, so you can not
write into matrices/vectors concurrently. That means using TBB (what
we use inside deal.II) or OpenMP won't help you much, because it would
require locking.
Our Trilinos wrappers are thread-safe, though.
Even if you change the implementation of PETScWrappers to allow this
(it wouldn't be too difficult, ask me if you want to know more), you
still have the problem that anything in the linear solver (matrix
vector products, preconditioners, ...) are likely not running
multi-threaded.
> My purpose is to increase the assembly time by making use of multi-threads
> of each core. Is this feasible?
You know you can run one MPI task per core, right?
--
Timo Heister
http://www.math.clemson.edu/~heister/