Re: [petsc-dev] Generality of VecScatter
29 Nov
2011
29 Nov
'11
9:08 a.m.
On Tue, Nov 29, 2011 at 08:52, Dmitry Karpeev <[email protected]> wrote:
From what I understand Barry doesn't want the threads to spin.
Lots of MPI calls spin because it's MUCH lower latency. Unless we have more threads than cores, what is the problem?
Also, synchronizing through an unguarded memory location seems to create a race conditions.
Not if writes are atomic. There is always a way to do atomic writes (usually machine-word) because otherwise the operating system could not implement synchronization primitives. Isn't cmpxchg instruction-set specific?
All instruction sets have some analogue of cmpxchg because it's the building block for all other primitives.
5367
Age (days ago)
5367
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jed Brown