dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #15005
Re: [HG DOLFIN] Add OpenMP code to assembler (commented out for now).
-
To:
dolfin-dev@xxxxxxxxxx
-
From:
Niclas Jansson <njansson@xxxxxx>
-
Date:
Wed, 26 Aug 2009 18:08:29 +0200
-
Delivered-to:
dolfin-dev@xxxxxxxxxx
-
In-reply-to:
<jmrab1m36eo.fsf@na53.nada.kth.se> (Niclas Jansson's message of "Wed\, 26 Aug 2009 18\:07\:43 +0200")
-
User-agent:
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Niclas Jansson <njansson@xxxxxxxxxx> writes:
> dolfin@xxxxxxxxxx (DOLFIN) writes:
>
>> One or more new changesets pushed to the primary dolfin repository.
>> A short summary of the last three changesets is included below.
>>
>> changeset: 6855:51f268bf79d79b0de5d3cb20a7cacb35357c81ce
>> tag: tip
>> user: "Garth N. Wells <gnw20@xxxxxxxxx>"
>> date: Wed Aug 26 14:30:18 2009 +0100
>> files: demo/pde/elasticity/cpp/main.cpp dolfin/fem/Assembler.cpp
>> description:
>> Add OpenMP code to assembler (commented out for now).
>>
>
If insertion is done in a critical section there would virtually be
no scope for speedup (for larger number of threads)
A better idea would probably be to either
1) Partition the mesh, and only have a critical section for shared
cells.
2) Assemble into a private matrix and either add them together A_1 +
... + A_n or add them together with some fancy tree reduction algorithm.
Niclas
Follow ups
References