[petsc-users] MatSetValues with openMP and no data races

Mark Adams mfadams at lbl.gov
Thu Oct 12 08:44:26 CDT 2017


Coloring works for OMP assembly.

On Thu, Oct 12, 2017 at 9:40 AM, Guillaume Emond <guillaume.emond at polymtl.ca
> wrote:

> Goodmorning,
>
> I would like to clarify a point about the insertion of values with
> MatSetValues in a openMP loop. I know these routines are not thread safe.
> But, in our situation, we used a graph coloring algorithm on our mesh to
> make sure no adjacent element is inserted at the same time so no data races
> occurs when inserting values. Could these routines be used with openmp then
> or is there some internal variables that would not be thread safe?
>
> Guillaume
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171012/6104f7e2/attachment.html>


More information about the petsc-users mailing list