Re: About gcc builtin atomics
On Mon, 18 Jun 2012 20:40:40 +0000 (UTC), Thorsten Glaser <tg@mirbsd.de> wrote:
> Mikael Pettersson dixit:
>
> >That could work.
>
> Does anyone have got a test programme for the atomic builtins,
> which could ideally test their behaviour at runtime too, if there
> is a way to get it tested deterministically? (As I admitted earlier,
> I'm lacking skills in the parallel programming area...)
I don't know of any test suites targeted to testing atomic primitives.
Maybe libatomic_ops has one?
I've always relied on gcc's c, c++, and libgomp test suites when
testing my attempts to implement atomics in gcc.
/Mikael
Reply to: