On Wed, Jan 2, 2013 at 1:41 PM, Larry Gritz <[email protected]> wrote:
> On Jan 2, 2013, at 11:32 AM, Richard Shaw wrote:
>
>> I don't have access to a box but I checked the build server and it
>> looks like F17 and above is using at least GCC 4.7.X.
>
> Oh, there's one more complication.  Looks like the atomic intrinsics aren't 
> available for all architectures. Somebody else told me they aren't available 
> for ARM, maybe they are also not available for PPC, that would explain why 
> it's not falling into the USE_GCC_ATOMICS case.

Yup. This is what I found:

http://gcc.gnu.org/wiki/Atomic


> I'll poke around and see what I can find.  I don't mind researching and 
> proposing a specific patch, but to make any real progress I need somebody 
> with a PPC who can compile it and verify that it works.

One part of that wiki says:
"If the full atomic implementation is not available, but a compare and
swap built-in is available, then the operation will be generated using
a compare and swap loop."

Is there an easy way to implement this for PPC? I assume a generic
solution would be more complicated or else someone would have already
done it but I wasn't sure if there was an easy way to just take care
of oiio.

Thanks,
Richard
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to